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
Michael Black
OpenXG-RAN
Commits
ea6524c5
Commit
ea6524c5
authored
Aug 24, 2022
by
Hongzhi Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update cmakelists and ulsim
parent
0ccb3a2d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
+5
-11
cmake_targets/CMakeLists.txt
cmake_targets/CMakeLists.txt
+1
-7
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+4
-4
No files found.
cmake_targets/CMakeLists.txt
View file @
ea6524c5
...
...
@@ -831,14 +831,8 @@ TARGET_LINK_LIBRARIES(benetel_5g pthread dl rt m numa)
# LDPC offload library
##########################################################
include_directories
(
"/usr/local/include"
)
set
(
HWLIB_LDPC_OFFLOAD_SOURCE
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c
)
if
(
EXISTS
"/usr/local/lib64/librte_pmd_hpac_sdfec_pmd.so"
)
add_library
(
ldpc_offload MODULE
${
HWLIB_LDPC_OFFLOAD_SOURCE
}
)
add_library
(
ldpc_offload MODULE
${
OPENAIR1_DIR
}
/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c
)
set_target_properties
(
ldpc_offload PROPERTIES COMPILE_FLAGS
"-include rte_config.h -march=native -I/usr/local/include -DALLOW_EXPERIMENTAL_API"
)
...
...
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
ea6524c5
...
...
@@ -361,7 +361,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:i:kl:m:n:o
:p:q:r:s:t:u:v:w:y:z
:F:G:H:I:M:N:PR:S:T:U:L:ZW:"
))
!=
-
1
)
{
while
((
c
=
getopt
(
argc
,
argv
,
"a:b:c:d:ef:g:h:i:kl:m:n:o
p:q:r:s:t:u:v:w:y:z:C
:F:G:H:I:M:N:PR:S:T:U:L:ZW:"
))
!=
-
1
)
{
printf
(
"handling optarg %c
\n
"
,
c
);
switch
(
c
)
{
...
...
@@ -481,7 +481,7 @@ int main(int argc, char **argv)
break
;
case
'o'
:
ldpc_offload_flag
=
atoi
(
optarg
)
;
ldpc_offload_flag
=
1
;
break
;
case
'p'
:
...
...
@@ -646,6 +646,7 @@ int main(int argc, char **argv)
//printf("-x Transmission mode (1,2,6 for the moment)\n");
printf
(
"-y Number of TX antennas used at UE
\n
"
);
printf
(
"-z Number of RX antennas used at gNB
\n
"
);
printf
(
"-v Set the max rounds
\n
"
);
printf
(
"-A Interpolation_filname Run with Abstraction to generate Scatter plot using interpolation polynomial in file
\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
"
);
...
...
@@ -1070,14 +1071,13 @@ int main(int argc, char **argv)
double
blerStats
[
4
][
100
];
double
berStats
[
4
][
100
];
double
snrStats
[
100
];
double
ldpcDecStats
[
100
];
double
ldpcDecStats
[
100
]
=
{
0
}
;
memset
(
errors_scrambling
,
0
,
sizeof
(
uint32_t
)
*
4
*
100
);
memset
(
n_errors
,
0
,
sizeof
(
int
)
*
4
*
100
);
memset
(
round_trials
,
0
,
sizeof
(
int
)
*
4
*
100
);
memset
(
blerStats
,
0
,
sizeof
(
double
)
*
4
*
100
);
memset
(
berStats
,
0
,
sizeof
(
double
)
*
4
*
100
);
memset
(
snrStats
,
0
,
sizeof
(
double
)
*
100
);
memset
(
ldpcDecStats
,
0
,
sizeof
(
double
)
*
100
);
for
(
SNR
=
snr0
;
SNR
<
snr1
;
SNR
+=
snr_step
)
{
varArray_t
*
table_rx
=
initVarArray
(
1000
,
sizeof
(
double
));
int
error_flag
=
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