Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
openairinterface5G
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Merge Requests
15
Merge Requests
15
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
oai
openairinterface5G
Commits
cded3bd6
Commit
cded3bd6
authored
May 19, 2018
by
yilmazt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
polartest sync update
parent
2ef63f24
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
cmake_targets/CMakeLists.txt
cmake_targets/CMakeLists.txt
+3
-0
openair1/PHY/CODING/TESTBENCH/polartest.c
openair1/PHY/CODING/TESTBENCH/polartest.c
+9
-7
openair1/PHY/CODING/nrPolar_tools/nr_polar_plot.m
openair1/PHY/CODING/nrPolar_tools/nr_polar_plot.m
+0
-0
No files found.
cmake_targets/CMakeLists.txt
View file @
cded3bd6
...
...
@@ -2297,6 +2297,9 @@ target_link_libraries (dlsim_tm4
pthread m rt
${
CONFIG_LIBRARIES
}
${
ATLAS_LIBRARIES
}
${
XFORMS_LIBRARIES
}
${
T_LIB
}
)
add_executable
(
polartest
${
OPENAIR1_DIR
}
/PHY/CODING/TESTBENCH/polartest.c
)
target_link_libraries
(
polartest m SIMU PHY PHY_NR -lm
${
ATLAS_LIBRARIES
}
)
foreach
(
myExe dlsim dlsim_tm7 ulsim pbchsim scansim mbmssim pdcchsim pucchsim prachsim syncsim
)
add_executable
(
${
myExe
}
...
...
openair1/PHY/CODING/TESTBENCH/polartest.c
View file @
cded3bd6
...
...
@@ -8,7 +8,7 @@
#include "PHY/CODING/nrPolar_tools/nr_polar_defs.h"
#include "PHY/CODING/nrPolar_tools/nr_polar_pbch_defs.h"
#include "SIMULATION/TOOLS/
defs
.h"
#include "SIMULATION/TOOLS/
sim
.h"
int
main
(
int
argc
,
char
*
argv
[])
{
...
...
@@ -22,7 +22,7 @@ int main(int argc, char *argv[]) {
randominit
(
0
);
//Default simulation values (Aim for iterations = 1000000.)
int
itr
,
iterations
=
1000
,
arguments
,
polarMessageType
=
1
;
//0=DCI, 1=PBCH, 2=UCI
double
SNRstart
=
-
20
.
0
,
SNRstop
=
2
0
.
0
,
SNRinc
=
0
.
5
;
//dB
double
SNRstart
=
-
20
.
0
,
SNRstop
=
0
.
0
,
SNRinc
=
0
.
5
;
//dB
double
SNR
,
SNR_lin
;
int16_t
nBitError
=
0
;
// -1 = Decoding failed (All list entries have failed the CRC checks).
...
...
@@ -83,17 +83,19 @@ int main(int argc, char *argv[]) {
//Logging
time_t
currentTime
;
time
(
&
currentTime
);
char
fileName
[
512
],
currentTimeInfo
[
25
];
char
*
folderName
,
fileName
[
512
],
currentTimeInfo
[
25
];
sprintf
(
fileName
,
"./polartestResults/_ListSize_%d_pmAppr_%d_Payload_%d_Itr_%d"
,
decoderListSize
,
pathMetricAppr
,
testLength
,
iterations
);
folderName
=
getenv
(
"HOME"
);
strcat
(
folderName
,
"/Desktop/polartestResults"
);
sprintf
(
fileName
,
"%s/_ListSize_%d_pmAppr_%d_Payload_%d_Itr_%d"
,
folderName
,
decoderListSize
,
pathMetricAppr
,
testLength
,
iterations
);
strftime
(
currentTimeInfo
,
25
,
"_%Y-%m-%d-%H-%M-%S.csv"
,
localtime
(
&
currentTime
));
strcat
(
fileName
,
currentTimeInfo
);
//Create "
.
/polartestResults" folder if it doesn't already exist.
//Create "
~/Desktop
/polartestResults" folder if it doesn't already exist.
struct
stat
folder
=
{
0
};
if
(
stat
(
"./polartestResults"
,
&
folder
)
==
-
1
)
mkdir
(
"./polartestResults"
,
S_IRWXU
|
S_IRWXO
);
if
(
stat
(
folderName
,
&
folder
)
==
-
1
)
mkdir
(
folderName
,
S_IRWXU
|
S_IRWXG
|
S_IRWXO
);
FILE
*
logFile
;
FILE
*
logFile
;
logFile
=
fopen
(
fileName
,
"w"
);
if
(
logFile
==
NULL
)
{
fprintf
(
stderr
,
"[polartest.c] Problem creating file %s with fopen
\n
"
,
fileName
);
...
...
openair1/PHY/CODING/nrPolar_tools/nr_polar_plot.m
deleted
100644 → 0
View file @
2ef63f24
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