Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Balaji Kolla
openairinterface5G
Commits
89529d60
Commit
89529d60
authored
Jan 31, 2019
by
Florian Kaltenberger
Browse files
chaning SNR computation in nr_pbchsim and changing test_case_list.xml accordingly
parent
de3461c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
cmake_targets/autotests/test_case_list.xml
View file @
89529d60
...
...
@@ -1065,12 +1065,12 @@
<pre_exec>$OPENAIR_DIR/cmake_targets/autotests/tools/free_mem.bash</pre_exec>
<pre_exec_args></pre_exec_args>
<main_exec> $OPENAIR_DIR/targets/bin/nr_pbchsim.Rel15</main_exec>
<main_exec_args>-s
-11 -S-10
-n1000 -R106
-s
-11 -S-10
-n10 -I -R106
-s
-11 -S-10
-n1000 -R217 -N10
-s
-11 -S-10
-n10 -I -R217 -N10
-s
-11 -S-10
-n1000 -R273 -N20
-s
-11 -S-10
-n10 -I -R273 -N20</main_exec_args>
<main_exec_args>-s
0 -S1
-n1000 -R106
-s
0 -S1
-n10 -I -R106
-s
0 -S1
-n1000 -R217 -N10
-s
0 -S1
-n10 -I -R217 -N10
-s
0 -S1
-n1000 -R273 -N20
-s
0 -S1
-n10 -I -R273 -N20</main_exec_args>
<tags>nr_pbchsim.test1 nr_pbchsim.test2</tags>
<search_expr_true>PBCH test OK</search_expr_true>
<search_expr_false>segmentation fault|assertion|exiting|fatal</search_expr_false>
...
...
openair1/SIMULATION/NR_PHY/pbchsim.c
View file @
89529d60
...
...
@@ -510,9 +510,9 @@ int main(int argc, char **argv)
//multipath_channel(gNB2UE,s_re,s_im,r_re,r_im,frame_length_complex_samples,0);
//AWGN
sigma2_dB
=
1
0
*
log10
((
double
)
txlev
)
-
SNR
;
sigma2_dB
=
2
0
*
log10
((
double
)
AMP
/
4
)
-
SNR
;
sigma2
=
pow
(
10
,
sigma2_dB
/
10
);
//
printf("sigma2 %f (%f dB)\n",sigma2,sigma2_dB);
//printf("sigma2 %f (%f
dB), tx_lev %f (%f
dB)\n",sigma2,sigma2_dB
,txlev,10*log10((double)txlev)
);
for
(
i
=
0
;
i
<
frame_parms
->
samples_per_subframe
;
i
++
)
{
for
(
aa
=
0
;
aa
<
frame_parms
->
nb_antennas_rx
;
aa
++
)
{
...
...
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