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
wangjie
OpenXG-RAN
Commits
5f0e2e74
Commit
5f0e2e74
authored
Apr 23, 2021
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes in SNR/noise computation for ulsch
parent
dc2182cf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
+11
-7
No files found.
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
View file @
5f0e2e74
...
...
@@ -1218,16 +1218,20 @@ int nr_rx_pusch(PHY_VARS_gNB *gNB,
rel15_ul
);
nr_gnb_measurements
(
gNB
,
ulsch_id
,
harq_pid
,
symbol
);
int
num_symb
=
rel15_ul
->
nr_of_symbols
;
for
(
aarx
=
0
;
aarx
<
frame_parms
->
nb_antennas_rx
;
aarx
++
)
{
gNB
->
pusch_vars
[
ulsch_id
]
->
ulsch_power
[
aarx
]
=
signal_energy_nodc
(
&
gNB
->
pusch_vars
[
ulsch_id
]
->
ul_ch_estimates
[
aarx
][
symbol
*
frame_parms
->
ofdm_symbol_size
],
rel15_ul
->
rb_size
*
12
);
LOG_D
(
PHY
,
"ulsch_power[%d] symbol %d %f (%p)
\n
"
,
aarx
,
symbol
,
dB_fixed_x10
(
gNB
->
pusch_vars
[
ulsch_id
]
->
ulsch_power
[
aarx
])
/
10
.
0
,
&
gNB
->
pusch_vars
[
ulsch_id
]
->
ul_ch_estimates
[
aarx
][
symbol
*
frame_parms
->
ofdm_symbol_size
]);
if
(
gNB
->
pusch_vars
[
ulsch_id
]
->
ulsch_power
[
aarx
]
==
1
)
return
(
1
);
if
(
symbol
==
rel15_ul
->
start_symbol_index
)
{
gNB
->
pusch_vars
[
ulsch_id
]
->
ulsch_power
[
aarx
]
=
0
;
gNB
->
pusch_vars
[
ulsch_id
]
->
ulsch_noise_power
[
aarx
]
=
0
;
for
(
int
rb
=
0
;
rb
<
rel15_ul
->
rb_size
;
rb
++
)
gNB
->
pusch_vars
[
ulsch_id
]
->
ulsch_noise_power
[
aarx
]
+=
gNB
->
measurements
.
n0_subband_power
[
aarx
][
rel15_ul
->
bwp_start
+
rel15_ul
->
rb_start
+
rb
]
/
rel15_ul
->
rb_size
;
}
gNB
->
pusch_vars
[
ulsch_id
]
->
ulsch_power
[
aarx
]
+=
signal_energy_nodc
(
&
gNB
->
pusch_vars
[
ulsch_id
]
->
ul_ch_estimates
[
aarx
][
symbol
*
frame_parms
->
ofdm_symbol_size
],
rel15_ul
->
rb_size
*
12
)
/
num_symb
;
if
(
gNB
->
pusch_vars
[
ulsch_id
]
->
ulsch_power
[
aarx
]
==
1
)
return
(
1
);
for
(
int
rb
=
0
;
rb
<
rel15_ul
->
rb_size
;
rb
++
)
{
printf
(
"aarx %d symbol %d, rb %d => %d
\n
"
,
aarx
,
symbol
,
rb
,
dB_fixed
(
gNB
->
measurements
.
n0_subband_power
[
aarx
][
rel15_ul
->
bwp_start
+
rel15_ul
->
rb_start
+
rb
]));
gNB
->
pusch_vars
[
ulsch_id
]
->
ulsch_noise_power
[
aarx
]
+=
gNB
->
measurements
.
n0_subband_power
[
aarx
][
rel15_ul
->
bwp_start
+
rel15_ul
->
rb_start
+
rb
]
/
rel15_ul
->
rb_size
/
num_symb
;
}
}
}
stop_meas
(
&
gNB
->
ulsch_channel_estimation_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