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
lizhongxiao
OpenXG-RAN
Commits
b29f92c1
Commit
b29f92c1
authored
Oct 07, 2021
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add MCS table option to ulsim
parent
36190b1c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+11
-2
No files found.
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
b29f92c1
...
...
@@ -320,7 +320,6 @@ int main(int argc, char **argv)
int
modify_dmrs
=
0
;
/* L_PTRS = ptrs_arg[0], K_PTRS = ptrs_arg[1] */
int
ptrs_arg
[
2
]
=
{
-
1
,
-
1
};
// Invalid values
/* mapping type = dmrs_arg[0], Add Pos = dmrs_arg[1], dmrs config type = dmrs_arg[2] */
int
dmrs_arg
[
3
]
=
{
-
1
,
-
1
,
-
1
};
// Invalid values
uint16_t
ptrsSymPos
=
0
;
uint16_t
ptrsSymbPerSlot
=
0
;
...
...
@@ -519,6 +518,10 @@ int main(int argc, char **argv)
exit
(
-
1
);
}
break
;
case
'B'
:
mcs_table
=
atoi
(
optarg
);
break
;
case
'F'
:
input_fd
=
fopen
(
optarg
,
"r"
);
...
...
@@ -610,6 +613,7 @@ int main(int argc, char **argv)
printf
(
"-y Number of TX antennas used at UE
\n
"
);
printf
(
"-z Number of RX antennas used at gNB
\n
"
);
printf
(
"-A Interpolation_filname Run with Abstraction to generate Scatter plot using interpolation polynomial in file
\n
"
);
printf
(
"-B MCS table
\n
"
);
//printf("-C Generate Calibration information for Abstraction (effective SNR adjustment to remove Pe bias w.r.t. AWGN)\n");
printf
(
"-F Input filename (.txt format) for RX conformance testing
\n
"
);
printf
(
"-G Offset of samples to read from file (0 default)
\n
"
);
...
...
@@ -895,6 +899,7 @@ int main(int argc, char **argv)
dmrs_config_type
=
pusch_dmrs_type1
;
else
if
(
dmrs_arg
[
2
]
==
2
)
dmrs_config_type
=
pusch_dmrs_type2
;
num_dmrs_cdm_grps_no_data
=
dmrs_arg
[
3
];
}
uint8_t
length_dmrs
=
pusch_len1
;
...
...
@@ -1555,7 +1560,12 @@ int main(int argc, char **argv)
roundStats
[
snrRun
],
effRate
[
snrRun
],
effTP
[
snrRun
],
TBS
);
FILE
*
fd
=
fopen
(
"nr_ulsim.log"
,
"w"
);
if
(
fd
==
NULL
)
{
printf
(
"Problem with filename %s
\n
"
,
"nr_ulsim.log"
);
exit
(
-
1
);
}
dump_pusch_stats
(
fd
,
gNB
);
fclose
(
fd
);
printf
(
"*****************************************
\n
"
);
printf
(
"
\n
"
);
...
...
@@ -1589,7 +1599,6 @@ int main(int argc, char **argv)
printf
(
"*************
\n
"
);
printf
(
"PUSCH test OK
\n
"
);
printf
(
"*************
\n
"
);
break
;
}
snrStats
[
snrRun
]
=
SNR
;
...
...
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