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
canghaiwuhen
OpenXG-RAN
Commits
17013159
Commit
17013159
authored
Feb 20, 2014
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5080
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
9a575c71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
openair1/SIMULATION/LTE_PHY/ulsim.c
openair1/SIMULATION/LTE_PHY/ulsim.c
+17
-10
No files found.
openair1/SIMULATION/LTE_PHY/ulsim.c
View file @
17013159
...
...
@@ -124,6 +124,7 @@ int main(int argc, char **argv) {
int
aarx
,
aatx
;
double
channelx
,
channely
;
double
sigma2
,
sigma2_dB
=
10
,
SNR
,
SNR2
,
snr0
=-
2
.
0
,
snr1
,
SNRmeas
,
rate
,
saving_bler
;
double
input_snr_step
=
.
2
,
snr_int
=
30
;
double
blerr
;
//int **txdataF, **txdata;
...
...
@@ -222,7 +223,7 @@ int main(int argc, char **argv) {
logInit
();
while
((
c
=
getopt
(
argc
,
argv
,
"hapbm:n:Y:X:s:q:d:D:c:r:i:f:y:c:oA:C:R:g:N:l:S:T:QB:PI:L"
))
!=
-
1
)
{
while
((
c
=
getopt
(
argc
,
argv
,
"hapbm:n:Y:X:s:
w:e:
q:d:D:c:r:i:f:y:c:oA:C:R:g:N:l:S:T:QB:PI:L"
))
!=
-
1
)
{
switch
(
c
)
{
case
'a'
:
channel_model
=
AWGN
;
...
...
@@ -310,7 +311,13 @@ int main(int argc, char **argv) {
}
break
;
case
's'
:
snr0
=
atoi
(
optarg
);
snr0
=
atof
(
optarg
);
break
;
case
'w'
:
snr_int
=
atof
(
optarg
);
break
;
case
'e'
:
input_snr_step
=
atof
(
optarg
);
break
;
case
'y'
:
n_rx
=
atoi
(
optarg
);
...
...
@@ -405,7 +412,7 @@ int main(int argc, char **argv) {
printf
(
"Setting mcs = %d
\n
"
,
mcs
);
printf
(
"n_frames = %d
\n
"
,
n_frames
);
snr1
=
snr0
+
25
.
0
;
snr1
=
snr0
+
snr_int
;
printf
(
"SNR0 %f, SNR1 %f
\n
"
,
snr0
,
snr1
);
/*
...
...
@@ -698,7 +705,7 @@ int main(int argc, char **argv) {
if
((
subframe
>
5
)
||
(
subframe
<
4
))
PHY_vars_UE
->
frame
++
;
for
(
SNR
=
snr0
;
SNR
<
snr1
;
SNR
+=
.
2
)
{
for
(
SNR
=
snr0
;
SNR
<
snr1
;
SNR
+=
input_snr_step
)
{
errs
[
0
]
=
0
;
errs
[
1
]
=
0
;
errs
[
2
]
=
0
;
...
...
@@ -1173,15 +1180,15 @@ int main(int argc, char **argv) {
errs
[
0
],
round_trials
[
0
],
errs
[
1
],
round_trials
[
1
],
round_trials
[
0
],
errs
[
2
],
round_trials
[
2
],
round_trials
[
0
],
errs
[
3
],
round_trials
[
3
],
round_trials
[
0
],
(
double
)
errs
[
0
]
/
(
round_trials
[
0
]),
(
double
)
errs
[
1
]
/
(
round_trials
[
1
]),
(
double
)
errs
[
2
]
/
(
round_trials
[
2
]),
(
double
)
errs
[
3
]
/
(
round_trials
[
3
]),
(
double
)
errs
[
1
]
/
(
round_trials
[
0
]),
(
double
)
errs
[
2
]
/
(
round_trials
[
0
]),
(
double
)
errs
[
3
]
/
(
round_trials
[
0
]),
rate
*
((
double
)(
round_trials
[
0
])
/
((
double
)
round_trials
[
0
]
+
round_trials
[
1
]
+
round_trials
[
2
]
+
round_trials
[
3
])),
100
*
((
double
)(
round_trials
[
0
])
/
((
double
)
round_trials
[
0
]
+
round_trials
[
1
]
+
round_trials
[
2
]
+
round_trials
[
3
])),
rate
,
...
...
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