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
alex037yang
OpenXG-RAN
Commits
07b20ce0
Commit
07b20ce0
authored
Sep 10, 2013
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@4143
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
a3ba3b65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
openair1/SIMULATION/LTE_PHY/mbmssim.c
openair1/SIMULATION/LTE_PHY/mbmssim.c
+10
-10
No files found.
openair1/SIMULATION/LTE_PHY/mbmssim.c
View file @
07b20ce0
...
...
@@ -353,14 +353,14 @@ int main(int argc, char **argv) {
0
);
// Create transport channel structures for 2 transport blocks (MIMO)
PHY_vars_eNB
->
dlsch_eNB_MCH
=
new_eNB_dlsch
(
1
,
8
,
0
);
PHY_vars_eNB
->
dlsch_eNB_MCH
=
new_eNB_dlsch
(
1
,
8
,
N_RB_DL
,
0
);
if
(
!
PHY_vars_eNB
->
dlsch_eNB_MCH
)
{
printf
(
"Can't get eNB dlsch structures
\n
"
);
exit
(
-
1
);
}
PHY_vars_UE
->
dlsch_ue_MCH
[
0
]
=
new_ue_dlsch
(
1
,
8
,
MAX_TURBO_ITERATIONS_MBSFN
,
0
);
PHY_vars_UE
->
dlsch_ue_MCH
[
0
]
=
new_ue_dlsch
(
1
,
8
,
MAX_TURBO_ITERATIONS_MBSFN
,
N_RB_DL
,
0
);
PHY_vars_eNB
->
lte_frame_parms
.
num_MBSFN_config
=
1
;
PHY_vars_eNB
->
lte_frame_parms
.
MBSFN_config
[
0
].
radioframeAllocationPeriod
=
0
;
...
...
@@ -461,7 +461,7 @@ int main(int argc, char **argv) {
2
*
frame_parms
->
samples_per_tti
,
hold_channel
);
//AWGN
sigma2_dB
=
10
*
log10
((
double
)
tx_lev
)
+
10
*
log10
(
PHY_vars_eNB
->
lte_frame_parms
.
ofdm_symbol_size
/
(
NB_RB
*
12
))
-
SNR
;
sigma2_dB
=
10
*
log10
((
double
)
tx_lev
)
+
10
*
log10
(
(
double
)
PHY_vars_eNB
->
lte_frame_parms
.
ofdm_symbol_size
/
(
NB_RB
*
12
))
-
SNR
;
sigma2
=
pow
(
10
,
sigma2_dB
/
10
);
if
(
n_frames
==
1
)
printf
(
"Sigma2 %f (sigma2_dB %f)
\n
"
,
sigma2
,
sigma2_dB
);
...
...
@@ -521,15 +521,15 @@ int main(int argc, char **argv) {
printf
(
"errors %d/%d (Pe %e)
\n
"
,
errs
[
round
],
trials
,(
double
)
errs
[
round
]
/
trials
);
if
(
awgn_flag
==
0
)
fprintf
(
fd
,
"SNR_%d
= [SNR_%d %f]; errs_mch_%d =[errs_mch_%d %d]; mch_trials_%d =[mch_trials
_%d %d];
\n
"
,
mcs
,
mcs
,
SNR
,
mcs
,
mcs
,
errs
[
0
],
mcs
,
mcs
,
trials
);
fprintf
(
fd
,
"SNR_%d
_%d = [SNR_%d_%d %f]; errs_mch_%d_%d =[errs_mch_%d_%d %d]; mch_trials_%d_%d =[mch_trials_%d
_%d %d];
\n
"
,
mcs
,
N_RB_DL
,
mcs
,
N_RB_DL
,
SNR
,
mcs
,
N_RB_DL
,
mcs
,
N_RB_DL
,
errs
[
0
],
mcs
,
N_RB_DL
,
mcs
,
N_RB_DL
,
trials
);
else
fprintf
(
fd
,
"SNR_awgn_%d = [SNR_awgn_%d %f]; errs_mch_awgn_%d =[errs_mch_awgn_%d %d]; mch_trials_awgn_%d =[mch_trials_awgn_%d %d];
\n
"
,
mcs
,
mcs
,
SNR
,
mcs
,
mcs
,
errs
[
0
],
mcs
,
mcs
,
trials
);
mcs
,
N_RB_DL
,
mcs
,
N_RB_DL
,
SNR
,
mcs
,
N_RB_DL
,
mcs
,
N_RB_DL
,
errs
[
0
],
mcs
,
N_RB_DL
,
mcs
,
N_RB_DL
,
trials
);
fflush
(
fd
);
if
(
errs
[
0
]
==
0
)
break
;
...
...
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