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
lizhongxiao
OpenXG-RAN
Commits
a4d43c24
Commit
a4d43c24
authored
Feb 16, 2023
by
Roberto Louro Magueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the ad_shift, considering the previous improvement
parent
451449e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
+11
-2
No files found.
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
View file @
a4d43c24
...
...
@@ -1925,7 +1925,13 @@ void nr_rx_pusch(PHY_VARS_gNB *gNB,
int
off
=
((
rel15_ul
->
rb_size
&
1
)
==
1
)
?
4
:
0
;
uint32_t
rxdataF_ext_offset
=
0
;
uint8_t
shift_ch_ext
=
rel15_ul
->
nrOfLayers
>
1
?
log2_approx
(
max_ch
>>
11
)
:
0
;
uint8_t
ad_shift
=
1
+
log2_approx
(
frame_parms
->
nb_antennas_rx
>>
2
)
+
(
rel15_ul
->
nrOfLayers
==
2
);
int
ad_shift
=
0
;
if
(
rel15_ul
->
nrOfLayers
==
1
)
{
ad_shift
=
1
+
log2_approx
(
frame_parms
->
nb_antennas_rx
>>
2
);
}
else
{
ad_shift
=
-
3
;
// For 2-layers, we are already doing a bit shift in the nr_ulsch_zero_forcing_rx_2layers() function, so we can use more bits
}
for
(
uint8_t
symbol
=
rel15_ul
->
start_symbol_index
;
symbol
<
(
rel15_ul
->
start_symbol_index
+
rel15_ul
->
nr_of_symbols
);
symbol
++
)
{
uint8_t
dmrs_symbol_flag
=
(
rel15_ul
->
ul_dmrs_symb_pos
>>
symbol
)
&
0x01
;
...
...
@@ -1994,7 +2000,10 @@ void nr_rx_pusch(PHY_VARS_gNB *gNB,
for
(
aarx
=
0
;
aarx
<
frame_parms
->
nb_antennas_rx
;
aarx
++
)
avgs
=
cmax
(
avgs
,
avg
[
aatx
*
frame_parms
->
nb_antennas_rx
+
aarx
]);
gNB
->
pusch_vars
[
ulsch_id
]
->
log2_maxh
=
(
log2_approx
(
avgs
)
/
2
)
+
ad_shift
;
gNB
->
pusch_vars
[
ulsch_id
]
->
log2_maxh
=
(
log2_approx
(
avgs
)
>>
1
)
+
ad_shift
;
if
(
gNB
->
pusch_vars
[
ulsch_id
]
->
log2_maxh
<
0
)
{
gNB
->
pusch_vars
[
ulsch_id
]
->
log2_maxh
=
0
;
}
gNB
->
pusch_vars
[
ulsch_id
]
->
cl_done
=
1
;
}
...
...
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