Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
9ae6095a
Commit
9ae6095a
authored
2 years ago
by
Thomas Schlichter
Browse files
Options
Downloads
Patches
Plain Diff
nr_ulsim: fix calculation of statistics
parent
54b7fde0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!1800
integration_2022_wk44
,
!1764
NR_UE: improve timing and initial frequency synchronization
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openair1/SIMULATION/NR_PHY/ulsim.c
+2
-2
2 additions, 2 deletions
openair1/SIMULATION/NR_PHY/ulsim.c
with
2 additions
and
2 deletions
openair1/SIMULATION/NR_PHY/ulsim.c
+
2
−
2
View file @
9ae6095a
...
@@ -1074,6 +1074,7 @@ int main(int argc, char **argv)
...
@@ -1074,6 +1074,7 @@ int main(int argc, char **argv)
varArray_t
*
table_rx
=
initVarArray
(
1000
,
sizeof
(
double
));
varArray_t
*
table_rx
=
initVarArray
(
1000
,
sizeof
(
double
));
int
error_flag
=
0
;
int
error_flag
=
0
;
n_false_positive
=
0
;
n_false_positive
=
0
;
roundStats
[
snrRun
]
=
0
;
effRate
[
snrRun
]
=
0
;
effRate
[
snrRun
]
=
0
;
effTP
[
snrRun
]
=
0
;
effTP
[
snrRun
]
=
0
;
reset_meas
(
&
gNB
->
phy_proc_rx
);
reset_meas
(
&
gNB
->
phy_proc_rx
);
...
@@ -1098,7 +1099,6 @@ int main(int argc, char **argv)
...
@@ -1098,7 +1099,6 @@ int main(int argc, char **argv)
crc_status
=
1
;
crc_status
=
1
;
errors_decoding
=
0
;
errors_decoding
=
0
;
memset
((
void
*
)
roundStats
,
0
,
50
*
sizeof
(
roundStats
[
0
]));
while
(
round
<
max_rounds
&&
crc_status
)
{
while
(
round
<
max_rounds
&&
crc_status
)
{
round_trials
[
round
][
snrRun
]
++
;
round_trials
[
round
][
snrRun
]
++
;
ulsch_ue
->
harq_processes
[
harq_pid
]
->
round
=
round
;
ulsch_ue
->
harq_processes
[
harq_pid
]
->
round
=
round
;
...
@@ -1539,7 +1539,7 @@ int main(int argc, char **argv)
...
@@ -1539,7 +1539,7 @@ int main(int argc, char **argv)
effRate
[
snrRun
]
/=
(
double
)
n_trials
;
effRate
[
snrRun
]
/=
(
double
)
n_trials
;
printf
(
"*****************************************
\n
"
);
printf
(
"*****************************************
\n
"
);
printf
(
"SNR %f: n_errors (%d/%d,%d/%d,%d/%d,%d/%d) (negative CRC), false_positive %d/%d, errors_scrambling (%u/%u,%u/%u,%u/%u,%u/%u
\n
"
,
SNR
,
n_errors
[
0
][
snrRun
],
round_trials
[
0
][
snrRun
],
n_errors
[
1
][
snrRun
],
round_trials
[
1
][
snrRun
],
n_errors
[
2
][
snrRun
],
round_trials
[
2
][
snrRun
],
n_errors
[
3
][
snrRun
],
round_trials
[
3
][
snrRun
],
n_false_positive
,
n_trials
,
errors_scrambling
[
0
][
snrRun
],
available_bits
*
n
_trials
,
errors_scrambling
[
1
][
snrRun
],
available_bits
*
n
_trials
,
errors_scrambling
[
2
][
snrRun
],
available_bits
*
n
_trials
,
errors_scrambling
[
3
][
snrRun
],
available_bits
*
n
_trials
);
printf
(
"SNR %f: n_errors (%d/%d,%d/%d,%d/%d,%d/%d) (negative CRC), false_positive %d/%d, errors_scrambling (%u/%u,%u/%u,%u/%u,%u/%u
\n
"
,
SNR
,
n_errors
[
0
][
snrRun
],
round_trials
[
0
][
snrRun
],
n_errors
[
1
][
snrRun
],
round_trials
[
1
][
snrRun
],
n_errors
[
2
][
snrRun
],
round_trials
[
2
][
snrRun
],
n_errors
[
3
][
snrRun
],
round_trials
[
3
][
snrRun
],
n_false_positive
,
n_trials
,
errors_scrambling
[
0
][
snrRun
],
available_bits
*
round
_trials
[
0
][
snrRun
]
,
errors_scrambling
[
1
][
snrRun
],
available_bits
*
round
_trials
[
1
][
snrRun
]
,
errors_scrambling
[
2
][
snrRun
],
available_bits
*
round
_trials
[
2
][
snrRun
]
,
errors_scrambling
[
3
][
snrRun
],
available_bits
*
round
_trials
[
3
][
snrRun
]
);
printf
(
"
\n
"
);
printf
(
"
\n
"
);
blerStats
[
0
][
snrRun
]
=
(
double
)
n_errors
[
0
][
snrRun
]
/
round_trials
[
0
][
snrRun
];
blerStats
[
0
][
snrRun
]
=
(
double
)
n_errors
[
0
][
snrRun
]
/
round_trials
[
0
][
snrRun
];
blerStats
[
1
][
snrRun
]
=
(
double
)
n_errors
[
1
][
snrRun
]
/
round_trials
[
1
][
snrRun
];
blerStats
[
1
][
snrRun
]
=
(
double
)
n_errors
[
1
][
snrRun
]
/
round_trials
[
1
][
snrRun
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment