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
a78588cd
Commit
a78588cd
authored
Feb 06, 2019
by
laurent
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop-nr' into ocp_nrsimulator
parents
b8ccf3f2
8f96cd50
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
13 deletions
+18
-13
ci-scripts/oai-ci-vm-tool
ci-scripts/oai-ci-vm-tool
+2
-2
ci-scripts/waitBuildOnVM.sh
ci-scripts/waitBuildOnVM.sh
+5
-1
cmake_targets/autotests/test_case_list.xml
cmake_targets/autotests/test_case_list.xml
+6
-6
cmake_targets/build_oai
cmake_targets/build_oai
+1
-1
openair1/SIMULATION/NR_PHY/dlsim.c
openair1/SIMULATION/NR_PHY/dlsim.c
+1
-1
openair1/SIMULATION/NR_PHY/pbchsim.c
openair1/SIMULATION/NR_PHY/pbchsim.c
+3
-2
No files found.
ci-scripts/oai-ci-vm-tool
View file @
a78588cd
...
@@ -252,7 +252,7 @@ case $key in
...
@@ -252,7 +252,7 @@ case $key in
VM_NAME
=
ci-phy-sim
VM_NAME
=
ci-phy-sim
ARCHIVES_LOC
=
phy_sim
ARCHIVES_LOC
=
phy_sim
LOG_PATTERN
=
.Rel15.txt
LOG_PATTERN
=
.Rel15.txt
NB_PATTERN_FILES
=
7
NB_PATTERN_FILES
=
8
BUILD_OPTIONS
=
"--phy_simulators"
BUILD_OPTIONS
=
"--phy_simulators"
RUN_OPTIONS
=
"./run_exec_autotests.bash -g
\"
01510*
\"
-q -np -b"
RUN_OPTIONS
=
"./run_exec_autotests.bash -g
\"
01510*
\"
-q -np -b"
NBARGS
=
$[$NBARGS
+256]
NBARGS
=
$[$NBARGS
+256]
...
@@ -330,7 +330,7 @@ case $key in
...
@@ -330,7 +330,7 @@ case $key in
VM_NAME
=
ci-phy-sim
VM_NAME
=
ci-phy-sim
ARCHIVES_LOC
=
phy_sim
ARCHIVES_LOC
=
phy_sim
LOG_PATTERN
=
.Rel15.txt
LOG_PATTERN
=
.Rel15.txt
NB_PATTERN_FILES
=
7
NB_PATTERN_FILES
=
8
BUILD_OPTIONS
=
"--phy_simulators"
BUILD_OPTIONS
=
"--phy_simulators"
RUN_OPTIONS
=
"./run_exec_autotests.bash -g
\"
01510*
\"
-q -np -b"
RUN_OPTIONS
=
"./run_exec_autotests.bash -g
\"
01510*
\"
-q -np -b"
NBARGS
=
$[$NBARGS
+256]
NBARGS
=
$[$NBARGS
+256]
...
...
ci-scripts/waitBuildOnVM.sh
View file @
a78588cd
...
@@ -165,6 +165,10 @@ function check_on_vm_build {
...
@@ -165,6 +165,10 @@ function check_on_vm_build {
fi
fi
done
done
if
[
$NB_PATTERN_FILES
-ne
$NB_FOUND_FILES
]
;
then
STATUS
=
-1
;
fi
if
[
$NB_PATTERN_FILES
-ne
$NB_FOUND_FILES
]
then
echo
"Expecting
$NB_PATTERN_FILES
log files and found
$NB_FOUND_FILES
"
STATUS
=
-1
fi
}
}
cmake_targets/autotests/test_case_list.xml
View file @
a78588cd
...
@@ -1065,12 +1065,12 @@
...
@@ -1065,12 +1065,12 @@
<pre_exec>
$OPENAIR_DIR/cmake_targets/autotests/tools/free_mem.bash
</pre_exec>
<pre_exec>
$OPENAIR_DIR/cmake_targets/autotests/tools/free_mem.bash
</pre_exec>
<pre_exec_args></pre_exec_args>
<pre_exec_args></pre_exec_args>
<main_exec>
$OPENAIR_DIR/targets/bin/nr_pbchsim.Rel15
</main_exec>
<main_exec>
$OPENAIR_DIR/targets/bin/nr_pbchsim.Rel15
</main_exec>
<main_exec_args>
-s
-11 -S-10
-n1000 -R106
<main_exec_args>
-s
0 -S1
-n1000 -R106
-s
-11 -S-10
-n10 -I -R106
-s
0 -S1
-n10 -I -R106
-s
-11 -S-10
-n1000 -R217 -N10
-s
0 -S1
-n1000 -R217 -N10
-s
-11 -S-10
-n10 -I -R217 -N10
-s
0 -S1
-n10 -I -R217 -N10
-s
-11 -S-10
-n1000 -R273 -N20
-s
0 -S1
-n1000 -R273 -N20
-s
-11 -S-10
-n10 -I -R273 -N20
</main_exec_args>
-s
0 -S1
-n10 -I -R273 -N20
</main_exec_args>
<tags>
nr_pbchsim.test1 nr_pbchsim.test2
</tags>
<tags>
nr_pbchsim.test1 nr_pbchsim.test2
</tags>
<search_expr_true>
PBCH test OK
</search_expr_true>
<search_expr_true>
PBCH test OK
</search_expr_true>
<search_expr_false>
segmentation fault|assertion|exiting|fatal
</search_expr_false>
<search_expr_false>
segmentation fault|assertion|exiting|fatal
</search_expr_false>
...
...
cmake_targets/build_oai
View file @
a78588cd
...
@@ -699,7 +699,7 @@ function main() {
...
@@ -699,7 +699,7 @@ function main() {
echo_info
"Compiling unitary tests simulators"
echo_info
"Compiling unitary tests simulators"
# TODO: fix: dlsim_tm4 pucchsim prachsim pdcchsim pbchsim mbmssim
# TODO: fix: dlsim_tm4 pucchsim prachsim pdcchsim pbchsim mbmssim
#simlist="dlsim_tm4 dlsim ulsim pucchsim prachsim pdcchsim pbchsim mbmssim"
#simlist="dlsim_tm4 dlsim ulsim pucchsim prachsim pdcchsim pbchsim mbmssim"
simlist
=
"dlsim ulsim polartest ldpctest nr_pbchsim nr_dlschsim"
simlist
=
"dlsim ulsim polartest ldpctest nr_pbchsim nr_dlschsim
nr_dlsim
"
for
f
in
$simlist
;
do
for
f
in
$simlist
;
do
compilations
\
compilations
\
phy_simulators
$f
\
phy_simulators
$f
\
...
...
openair1/SIMULATION/NR_PHY/dlsim.c
View file @
a78588cd
...
@@ -395,7 +395,7 @@ int main(int argc, char **argv)
...
@@ -395,7 +395,7 @@ int main(int argc, char **argv)
frame_parms
->
N_RB_UL
=
N_RB_DL
;
frame_parms
->
N_RB_UL
=
N_RB_DL
;
// stub to configure frame_parms
// stub to configure frame_parms
nr_phy_config_request_sim
(
gNB
,
N_RB_DL
,
N_RB_DL
,
mu
);
nr_phy_config_request_sim
(
gNB
,
N_RB_DL
,
N_RB_DL
,
mu
,
Nid_cell
);
// call MAC to configure common parameters
// call MAC to configure common parameters
phy_init_nr_gNB
(
gNB
,
0
,
0
);
phy_init_nr_gNB
(
gNB
,
0
,
0
);
...
...
openair1/SIMULATION/NR_PHY/pbchsim.c
View file @
a78588cd
...
@@ -356,6 +356,7 @@ int main(int argc, char **argv)
...
@@ -356,6 +356,7 @@ int main(int argc, char **argv)
frame_parms
->
nb_antennas_rx
=
n_rx
;
frame_parms
->
nb_antennas_rx
=
n_rx
;
frame_parms
->
N_RB_DL
=
N_RB_DL
;
frame_parms
->
N_RB_DL
=
N_RB_DL
;
frame_parms
->
N_RB_UL
=
N_RB_DL
;
frame_parms
->
N_RB_UL
=
N_RB_DL
;
frame_parms
->
Nid_cell
=
Nid_cell
;
nr_phy_config_request_sim
(
gNB
,
N_RB_DL
,
N_RB_DL
,
mu
,
Nid_cell
);
nr_phy_config_request_sim
(
gNB
,
N_RB_DL
,
N_RB_DL
,
mu
,
Nid_cell
);
phy_init_nr_gNB
(
gNB
,
0
,
0
);
phy_init_nr_gNB
(
gNB
,
0
,
0
);
...
@@ -510,9 +511,9 @@ int main(int argc, char **argv)
...
@@ -510,9 +511,9 @@ int main(int argc, char **argv)
//multipath_channel(gNB2UE,s_re,s_im,r_re,r_im,frame_length_complex_samples,0);
//multipath_channel(gNB2UE,s_re,s_im,r_re,r_im,frame_length_complex_samples,0);
//AWGN
//AWGN
sigma2_dB
=
10
*
log10
((
double
)
txlev
)
-
SNR
;
sigma2_dB
=
20
*
log10
((
double
)
AMP
/
4
)
-
SNR
;
sigma2
=
pow
(
10
,
sigma2_dB
/
10
);
sigma2
=
pow
(
10
,
sigma2_dB
/
10
);
//
printf("sigma2 %f (%f dB)\n",sigma2,sigma2_dB
);
//
printf("sigma2 %f (%f dB), tx_lev %f (%f dB)\n",sigma2,sigma2_dB,txlev,10*log10((double)txlev)
);
for
(
i
=
0
;
i
<
frame_parms
->
samples_per_subframe
;
i
++
)
{
for
(
i
=
0
;
i
<
frame_parms
->
samples_per_subframe
;
i
++
)
{
for
(
aa
=
0
;
aa
<
frame_parms
->
nb_antennas_rx
;
aa
++
)
{
for
(
aa
=
0
;
aa
<
frame_parms
->
nb_antennas_rx
;
aa
++
)
{
...
...
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