Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ZhouShuya
OpenXG-RAN
Commits
948dc6b1
Commit
948dc6b1
authored
Sep 09, 2020
by
Rakesh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix in channel estimation
parent
0b757348
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
openair1/PHY/NR_UE_TRANSPORT/nr_pbch.c
openair1/PHY/NR_UE_TRANSPORT/nr_pbch.c
+10
-7
No files found.
openair1/PHY/NR_UE_TRANSPORT/nr_pbch.c
View file @
948dc6b1
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
#include "PHY/LTE_REFSIG/lte_refsig.h"
#include "PHY/LTE_REFSIG/lte_refsig.h"
#include "PHY/INIT/phy_init.h"
#include "PHY/INIT/phy_init.h"
//#define DEBUG_PBCH
1
//#define DEBUG_PBCH
//#define DEBUG_PBCH_ENCODING
//#define DEBUG_PBCH_ENCODING
#ifdef OPENAIR2
#ifdef OPENAIR2
...
@@ -61,7 +61,8 @@ uint16_t nr_pbch_extract(int **rxdataF,
...
@@ -61,7 +61,8 @@ uint16_t nr_pbch_extract(int **rxdataF,
int
nushiftmod4
=
frame_parms
->
nushift
;
int
nushiftmod4
=
frame_parms
->
nushift
;
unsigned
int
rx_offset
=
frame_parms
->
first_carrier_offset
+
frame_parms
->
ssb_start_subcarrier
;
//and
unsigned
int
rx_offset
=
frame_parms
->
first_carrier_offset
+
frame_parms
->
ssb_start_subcarrier
;
//and
if
(
rx_offset
>=
frame_parms
->
ofdm_symbol_size
)
rx_offset
-=
frame_parms
->
ofdm_symbol_size
;
// if (rx_offset>= frame_parms->ofdm_symbol_size) rx_offset-=frame_parms->ofdm_symbol_size;
rx_offset
=
(
rx_offset
)
%
(
frame_parms
->
ofdm_symbol_size
);
AssertFatal
(
symbol
>=
1
&&
symbol
<
5
,
AssertFatal
(
symbol
>=
1
&&
symbol
<
5
,
"symbol %d illegal for PBCH extraction
\n
"
,
"symbol %d illegal for PBCH extraction
\n
"
,
...
@@ -103,8 +104,8 @@ uint16_t nr_pbch_extract(int **rxdataF,
...
@@ -103,8 +104,8 @@ uint16_t nr_pbch_extract(int **rxdataF,
j
++
;
j
++
;
}
}
//rx_offset=(rx_offset+1)&(frame_parms->ofdm_symbol_size-1
);
rx_offset
=
(
rx_offset
+
1
)
%
(
frame_parms
->
ofdm_symbol_size
);
rx_offset
=
(
rx_offset
>=
frame_parms
->
ofdm_symbol_size
)
?
(
rx_offset
-
frame_parms
->
ofdm_symbol_size
+
1
)
:
(
rx_offset
+
1
);
//
rx_offset = (rx_offset >= frame_parms->ofdm_symbol_size) ? (rx_offset - frame_parms->ofdm_symbol_size + 1) : (rx_offset+1);
}
}
rxF_ext
+=
9
;
rxF_ext
+=
9
;
...
@@ -126,12 +127,14 @@ uint16_t nr_pbch_extract(int **rxdataF,
...
@@ -126,12 +127,14 @@ uint16_t nr_pbch_extract(int **rxdataF,
j
++
;
j
++
;
}
}
//rx_offset=(rx_offset+1)&(frame_parms->ofdm_symbol_size-1
);
rx_offset
=
(
rx_offset
+
1
)
%
(
frame_parms
->
ofdm_symbol_size
);
rx_offset
=
(
rx_offset
>=
frame_parms
->
ofdm_symbol_size
)
?
(
rx_offset
-
frame_parms
->
ofdm_symbol_size
+
1
)
:
(
rx_offset
+
1
);
//
rx_offset = (rx_offset >= frame_parms->ofdm_symbol_size) ? (rx_offset - frame_parms->ofdm_symbol_size + 1) : (rx_offset+1);
}
}
rxF_ext
+=
9
;
rxF_ext
+=
9
;
}
else
rx_offset
=
(
rx_offset
>=
frame_parms
->
ofdm_symbol_size
)
?
(
rx_offset
-
frame_parms
->
ofdm_symbol_size
+
12
)
:
(
rx_offset
+
12
);
//rx_offset = (rx_offset+12)&(frame_parms->ofdm_symbol_size-1);
}
else
{
//rx_offset = (rx_offset >= frame_parms->ofdm_symbol_size) ? (rx_offset - frame_parms->ofdm_symbol_size + 12) : (rx_offset+12);
rx_offset
=
(
rx_offset
+
12
)
%
(
frame_parms
->
ofdm_symbol_size
);
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment