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
ZhouShuya
OpenXG-RAN
Commits
b16538c5
Commit
b16538c5
authored
May 22, 2019
by
Hitesh07
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nr_dlsim SNR vs BLER plot fix
parent
19558fda
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
openair1/PHY/NR_UE_TRANSPORT/nr_dlsch_decoding.c
openair1/PHY/NR_UE_TRANSPORT/nr_dlsch_decoding.c
+2
-2
openair1/SIMULATION/NR_PHY/dlsim.c
openair1/SIMULATION/NR_PHY/dlsim.c
+8
-8
No files found.
openair1/PHY/NR_UE_TRANSPORT/nr_dlsch_decoding.c
View file @
b16538c5
...
...
@@ -523,7 +523,7 @@ uint32_t nr_dlsch_decoding(PHY_VARS_NR_UE *phy_vars_ue,
ret
=
2
;
}
else
{
printf
(
"CRC NOK
\n
"
);
//
printf("CRC NOK\n");
ret
=
1
+
dlsch
->
max_ldpc_iterations
;
}
...
...
@@ -1133,7 +1133,7 @@ uint32_t nr_dlsch_decoding_mthread(PHY_VARS_NR_UE *phy_vars_ue,
ret
=
2
;
}
else
{
printf
(
"CRC NOK
\n
"
);
//
printf("CRC NOK\n");
ret
=
1
+
dlsch
->
max_ldpc_iterations
;
}
...
...
openair1/SIMULATION/NR_PHY/dlsim.c
View file @
b16538c5
...
...
@@ -681,19 +681,19 @@ int main(int argc, char **argv)
UE_mac
->
scheduled_response
.
frame
=
frame
;
UE_mac
->
scheduled_response
.
slot
=
slot
;
for
(
SNR
=
snr0
;
SNR
<
snr1
;
SNR
+=
.
2
)
{
for
(
SNR
=
-
10
;
SNR
<
2
;
SNR
+=
.
5
)
{
n_errors
=
0
;
//n_errors2 = 0;
//n_alamouti = 0;
for
(
trial
=
0
;
trial
<
n_trials
;
trial
++
)
{
for
(
trial
=
0
;
trial
<
1000
;
trial
++
)
{
// multipath channel
//multipath_channel(gNB2UE,s_re,s_im,r_re,r_im,frame_length_complex_samples,0);
//AWGN
sigma2_dB
=
10
*
log10
((
double
)
txlev
)
-
SNR
;
sigma2_dB
=
20
*
log10
((
double
)
AMP
/
4
)
-
SNR
;
//
10*log10((double)txlev)-SNR;
sigma2
=
pow
(
10
,
sigma2_dB
/
10
);
// printf("sigma2 %f (%f dB)\n",sigma2,sigma2_dB);
...
...
@@ -725,7 +725,7 @@ int main(int argc, char **argv)
nr_ue_scheduled_response
(
&
UE_mac
->
scheduled_response
);
printf
(
"Running phy procedures UE RX %d.%d
\n
"
,
frame
,
slot
);
//
printf("Running phy procedures UE RX %d.%d\n",frame,slot);
phy_procedures_nrUE_RX
(
UE
,
&
UE_proc
,
...
...
@@ -745,13 +745,13 @@ int main(int argc, char **argv)
printf
(
"SNR %f : n_errors (negative CRC) = %d/%d
\n
"
,
SNR
,
n_errors
,
n_trials
);
if
((
float
)
n_errors
/
(
float
)
n_trials
<=
target_error_rate
)
{
/*
if ((float)n_errors/(float)n_trials <= target_error_rate) {
printf("PDCCH test OK\n");
break;
}
}
*/
if
(
n_trials
==
1
)
break
;
//
if (n_trials==1)
//
break;
}
// NSR
...
...
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