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
17f29b77
Commit
17f29b77
authored
Mar 22, 2016
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tracing in unitary simulations (ulsim/prachsim)
parent
26f5d0d9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
openair1/SIMULATION/LTE_PHY/prachsim.c
openair1/SIMULATION/LTE_PHY/prachsim.c
+1
-0
openair1/SIMULATION/LTE_PHY/ulsim.c
openair1/SIMULATION/LTE_PHY/ulsim.c
+8
-6
No files found.
openair1/SIMULATION/LTE_PHY/prachsim.c
View file @
17f29b77
...
...
@@ -326,6 +326,7 @@ int main(int argc, char **argv)
Nid_cell
,
3
,
N_RB_DL
,
0
,
osf
,
0
);
...
...
openair1/SIMULATION/LTE_PHY/ulsim.c
View file @
17f29b77
...
...
@@ -513,11 +513,6 @@ int main(int argc, char **argv)
nsymb
=
(
PHY_vars_eNB
->
lte_frame_parms
.
Ncp
==
0
)
?
14
:
12
;
coded_bits_per_codeword
=
nb_rb
*
(
12
*
get_Qm
(
mcs
))
*
nsymb
;
rate
=
(
double
)
dlsch_tbs25
[
get_I_TBS
(
mcs
)][
nb_rb
-
1
]
/
(
coded_bits_per_codeword
);
printf
(
"Rate = %f (mod %d), coded bits %d
\n
"
,
rate
,
get_Qm
(
mcs
),
coded_bits_per_codeword
);
sprintf
(
bler_fname
,
"ULbler_mcs%d_nrb%d_ChannelModel%d_nsim%d.csv"
,
mcs
,
nb_rb
,
chMod
,
n_frames
);
bler_fd
=
fopen
(
bler_fname
,
"w"
);
...
...
@@ -809,6 +804,13 @@ int main(int argc, char **argv)
CBA_RNTI
,
srs_flag
);
coded_bits_per_codeword
=
nb_rb
*
(
12
*
get_Qm_ul
(
mcs
))
*
nsymb
;
if
(
cqi_flag
==
1
)
coded_bits_per_codeword
-=
PHY_vars_UE
->
ulsch_ue
[
0
]
->
O
;
rate
=
(
double
)
dlsch_tbs25
[
get_I_TBS
(
mcs
)][
nb_rb
-
1
]
/
(
coded_bits_per_codeword
);
printf
(
"Rate = %f (mod %d), coded bits %d
\n
"
,
rate
,
get_Qm_ul
(
mcs
),
coded_bits_per_codeword
);
PHY_vars_UE
->
frame_tx
=
(
PHY_vars_UE
->
frame_tx
+
1
)
&
1023
;
...
...
@@ -1516,7 +1518,7 @@ int main(int argc, char **argv)
rate
*
effective_rate
,
100
*
effective_rate
,
rate
,
rate
*
get_Qm
(
mcs
),
rate
*
get_Qm
_ul
(
mcs
),
(
1
.
0
*
(
round_trials
[
0
]
-
errs
[
0
])
+
2
.
0
*
(
round_trials
[
1
]
-
errs
[
1
])
+
3
.
0
*
(
round_trials
[
2
]
-
errs
[
2
])
+
4
.
0
*
(
round_trials
[
3
]
-
errs
[
3
]))
/
((
double
)
round_trials
[
0
])
/
(
double
)
PHY_vars_eNB
->
ulsch_eNB
[
0
]
->
harq_processes
[
harq_pid
]
->
TBS
,
(
1
.
0
*
(
round_trials
[
0
]
-
errs
[
0
])
+
2
.
0
*
(
round_trials
[
1
]
-
errs
[
1
])
+
3
.
0
*
(
round_trials
[
2
]
-
errs
[
2
])
+
4
.
0
*
(
round_trials
[
3
]
-
errs
[
3
]))
/
((
double
)
round_trials
[
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