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
e54d4a98
Commit
e54d4a98
authored
Sep 06, 2023
by
Tsung-Yu Chan
Committed by
Tsung Yu Chan
Sep 25, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix / fix the log2_maxh for llr
- init the variable for simde_m256i avoid error in ubuntu
parent
428af852
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
+11
-5
No files found.
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
View file @
e54d4a98
...
@@ -615,7 +615,9 @@ void nr_ulsch_channel_compensation(c16_t *rxFext,
...
@@ -615,7 +615,9 @@ void nr_ulsch_channel_compensation(c16_t *rxFext,
uint32_t
nb_rb
,
uint32_t
nb_rb
,
uint32_t
output_shift
)
uint32_t
output_shift
)
{
{
simde__m256i
QAM_ampa_256
,
QAM_ampb_256
,
QAM_ampc_256
;
simde__m256i
QAM_ampa_256
=
simde_mm256_setzero_si256
();
simde__m256i
QAM_ampb_256
=
simde_mm256_setzero_si256
();
simde__m256i
QAM_ampc_256
=
simde_mm256_setzero_si256
();
if
(
mod_order
==
4
)
{
if
(
mod_order
==
4
)
{
QAM_ampa_256
=
simde_mm256_set1_epi16
(
QAM16_n1
);
QAM_ampa_256
=
simde_mm256_set1_epi16
(
QAM16_n1
);
...
@@ -1874,10 +1876,14 @@ int nr_rx_pusch_tp(PHY_VARS_gNB *gNB,
...
@@ -1874,10 +1876,14 @@ int nr_rx_pusch_tp(PHY_VARS_gNB *gNB,
for
(
int
aarx
=
0
;
aarx
<
frame_parms
->
nb_antennas_rx
;
aarx
++
)
for
(
int
aarx
=
0
;
aarx
<
frame_parms
->
nb_antennas_rx
;
aarx
++
)
avgs
=
cmax
(
avgs
,
avg
[
aatx
*
frame_parms
->
nb_antennas_rx
+
aarx
]);
avgs
=
cmax
(
avgs
,
avg
[
aatx
*
frame_parms
->
nb_antennas_rx
+
aarx
]);
if
(
rel15_ul
->
nrOfLayers
==
1
)
pusch_vars
->
log2_maxh
=
(
log2_approx
(
avgs
)
>>
1
)
+
2
;
if
(
rel15_ul
->
nrOfLayers
==
2
&&
rel15_ul
->
qam_mod_order
<
6
)
else
pusch_vars
->
log2_maxh
=
(
log2_approx
(
avgs
)
>>
1
)
-
3
;
// for MMSE
pusch_vars
->
log2_maxh
=
(
log2_approx
(
avgs
)
>>
1
);
else
pusch_vars
->
log2_maxh
=
(
log2_approx
(
avgs
)
>>
1
)
+
1
+
log2_approx
(
frame_parms
->
nb_antennas_rx
>>
2
);
if
(
pusch_vars
->
log2_maxh
<
0
)
pusch_vars
->
log2_maxh
=
0
;
stop_meas
(
&
gNB
->
rx_pusch_init_stats
);
stop_meas
(
&
gNB
->
rx_pusch_init_stats
);
...
...
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