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
493dab70
Commit
493dab70
authored
Apr 29, 2021
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updating ulsim
adding option to change numberology
parent
8a7a7937
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+14
-2
No files found.
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
493dab70
...
...
@@ -234,7 +234,7 @@ int main(int argc, char **argv)
//int8_t interf1 = -21, interf2 = -21;
FILE
*
input_fd
=
NULL
;
SCM_t
channel_model
=
AWGN
;
//Rayleigh1_anticorr;
uint16_t
N_RB_DL
=
106
,
N_RB_UL
=
106
,
mu
=
1
;
uint16_t
N_RB_DL
=
106
,
N_RB_UL
=
106
,
mu
=
3
;
NB_UE_INST
=
1
;
...
...
@@ -298,7 +298,7 @@ int main(int argc, char **argv)
/* initialize the sin-cos table */
InitSinLUT
();
while
((
c
=
getopt
(
argc
,
argv
,
"a:b:c:d:ef:g:h:ikl:m:n:p:r:s:y:z:F:G:H:M:N:PR:S:T:U:L:Z"
))
!=
-
1
)
{
while
((
c
=
getopt
(
argc
,
argv
,
"a:b:c:d:ef:g:h:ikl:m:n:p:r:s:
u:w:
y:z:F:G:H:M:N:PR:S:T:U:L:Z"
))
!=
-
1
)
{
printf
(
"handling optarg %c
\n
"
,
c
);
switch
(
c
)
{
...
...
@@ -424,6 +424,14 @@ int main(int argc, char **argv)
printf
(
"Setting SNR0 to %f
\n
"
,
snr0
);
break
;
case
'u'
:
mu
=
atoi
(
optarg
);
break
;
case
'w'
:
start_rb
=
atoi
(
optarg
);
break
;
/*
case 't':
eff_tp_check = (float)atoi(optarg)/100;
...
...
@@ -552,6 +560,8 @@ int main(int argc, char **argv)
printf
(
"-n Number of trials to simulate
\n
"
);
printf
(
"-p Use extended prefix mode
\n
"
);
printf
(
"-t Delay spread for multipath channel
\n
"
);
printf
(
"-u Set the numerology
\n
"
);
printf
(
"-w Start PRB for PUSCH
\n
"
);
//printf("-x Transmission mode (1,2,6 for the moment)\n");
printf
(
"-y Number of TX antennas used in eNB
\n
"
);
printf
(
"-z Number of RX antennas used in UE
\n
"
);
...
...
@@ -592,10 +602,12 @@ int main(int argc, char **argv)
if
(
N_RB_UL
>=
217
)
sampling_frequency
=
122
.
88
;
else
if
(
N_RB_UL
>=
106
)
sampling_frequency
=
61
.
44
;
else
if
(
N_RB_UL
>=
32
)
sampling_frequency
=
32
.
72
;
else
{
printf
(
"Need at least 106 PRBs
\b
"
);
exit
(
-
1
);
}
if
(
N_RB_UL
==
273
)
bandwidth
=
100
;
else
if
(
N_RB_UL
==
217
)
bandwidth
=
80
;
else
if
(
N_RB_UL
==
106
)
bandwidth
=
40
;
else
if
(
N_RB_UL
==
32
)
bandwidth
=
50
;
else
{
printf
(
"Add N_RB_UL %d
\n
"
,
N_RB_UL
);
exit
(
-
1
);
}
if
(
openair0_cfg
[
0
].
threequarter_fs
==
1
)
sampling_frequency
*=
.
75
;
...
...
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