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
zzha zzha
OpenXG-RAN
Commits
6f677929
Commit
6f677929
authored
Jul 29, 2022
by
Roberto Louro Magueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Variable rename
parent
069bebfa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
+4
-9
No files found.
openair1/PHY/NR_ESTIMATION/nr_ul_channel_estimation.c
View file @
6f677929
...
...
@@ -1115,7 +1115,7 @@ int nr_srs_channel_estimation(const PHY_VARS_gNB *gNB,
const
uint64_t
subcarrier_offset
=
frame_parms
->
first_carrier_offset
+
srs_pdu
->
bwp_start
*
12
;
const
uint8_t
srs_symbols_per_rb
=
srs_pdu
->
comb_size
==
0
?
6
:
3
;
const
uint8_t
n_noise_est
imates
=
frame_parms
->
nb_antennas_rx
*
srs_symbols_per_rb
;
const
uint8_t
n_noise_est
=
frame_parms
->
nb_antennas_rx
*
srs_symbols_per_rb
;
uint8_t
count_estimates
=
0
;
uint64_t
sum_re
=
0
;
uint64_t
sum_re2
=
0
;
...
...
@@ -1138,14 +1138,9 @@ int nr_srs_channel_estimation(const PHY_VARS_gNB *gNB,
sum_im2
=
sum_im2
+
noise_imag
[
ant
*
nr_srs_info
->
sc_list_length
+
sc_idx
]
*
noise_imag
[
ant
*
nr_srs_info
->
sc_list_length
+
sc_idx
];
count_estimates
++
;
if
(
count_estimates
==
n_noise_estimates
)
{
noise_power_per_rb
[
rb
]
=
sum_re2
/
n_noise_estimates
-
(
sum_re
/
n_noise_estimates
)
*
(
sum_re
/
n_noise_estimates
)
+
sum_im2
/
n_noise_estimates
-
(
sum_im
/
n_noise_estimates
)
*
(
sum_im
/
n_noise_estimates
);
if
(
noise_power_per_rb
[
rb
]
==
0
)
{
noise_power_per_rb
[
rb
]
=
1
;
}
if
(
count_estimates
==
n_noise_est
)
{
noise_power_per_rb
[
rb
]
=
max
(
sum_re2
/
n_noise_est
-
(
sum_re
/
n_noise_est
)
*
(
sum_re
/
n_noise_est
)
+
sum_im2
/
n_noise_est
-
(
sum_im
/
n_noise_est
)
*
(
sum_im
/
n_noise_est
),
1
);
snr_per_rb
[
rb
]
=
dB_fixed
((
int32_t
)((
*
signal_power
<<
factor_bits
)
/
noise_power_per_rb
[
rb
]))
-
factor_dB
;
count_estimates
=
0
;
sum_re
=
0
;
...
...
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