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
6f28d0e3
Commit
6f28d0e3
authored
Nov 03, 2020
by
Florian Kaltenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some fixes - prachsim working now for FR2 - added testcases
parent
4ab9c755
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
16 deletions
+23
-16
cmake_targets/autotests/test_case_list.xml
cmake_targets/autotests/test_case_list.xml
+9
-5
openair1/PHY/NR_TRANSPORT/nr_prach.c
openair1/PHY/NR_TRANSPORT/nr_prach.c
+4
-3
openair1/PHY/NR_UE_TRANSPORT/nr_prach.c
openair1/PHY/NR_UE_TRANSPORT/nr_prach.c
+2
-0
openair1/SIMULATION/NR_PHY/prachsim.c
openair1/SIMULATION/NR_PHY/prachsim.c
+8
-8
No files found.
cmake_targets/autotests/test_case_list.xml
View file @
6f28d0e3
...
@@ -1302,10 +1302,12 @@
...
@@ -1302,10 +1302,12 @@
<testCase
id=
"015112"
>
<testCase
id=
"015112"
>
<class>
execution
</class>
<class>
execution
</class>
<desc>
nr_prachsim Test cases. (Test1: 106 PRBs - Prach format A2),
<desc>
nr_prachsim Test cases. (Test1: 30kHz SCS, 106 PRBs, Prach format A2),
(Test2: 217 PRBs - Prach format A2),
(Test2: 30kHz SCS, 217 PRBs, Prach format A2),
(Test3: 273 PRBs - Prach format A2),
(Test3: 30kHz SCS, 273 PRBs, Prach format A2),
(Test4: 106 PRBs - Prach format 0)
</desc>
(Test4: 30kHz SCS, 106 PRBs, Prach format 0)
(Test5: 120kHz SCS, 32 PRBs, Prach format A2)
(Test5: 120kHz SCS, 66 PRBs, Prach format A2)
</desc>
<pre_compile_prog></pre_compile_prog>
<pre_compile_prog></pre_compile_prog>
<compile_prog>
$OPENAIR_DIR/cmake_targets/build_oai
</compile_prog>
<compile_prog>
$OPENAIR_DIR/cmake_targets/build_oai
</compile_prog>
<compile_prog_args>
--phy_simulators -c
</compile_prog_args>
<compile_prog_args>
--phy_simulators -c
</compile_prog_args>
...
@@ -1315,7 +1317,9 @@
...
@@ -1315,7 +1317,9 @@
<main_exec_args>
-a -s -30 -n 100 -p 63 -R 106
<main_exec_args>
-a -s -30 -n 100 -p 63 -R 106
-a -s -30 -n 100 -p 63 -R 217
-a -s -30 -n 100 -p 63 -R 217
-a -s -30 -n 100 -p 63 -R 273
-a -s -30 -n 100 -p 63 -R 273
-a -s -30 -n 100 -p 63 -R 106 -c 4
</main_exec_args>
-a -s -30 -n 100 -p 63 -R 106 -c 4
-a -s -30 -n 100 -p 32 -R 32 -m 3 -c52
-a -s -30 -n 100 -p 32 -R 66 -m 3 -c52
</main_exec_args>
<tags>
nr_prachsim.test1 nr_prachsim.test2 nr_prachsim.test3 nr_prachsim.test4
</tags>
<tags>
nr_prachsim.test1 nr_prachsim.test2 nr_prachsim.test3 nr_prachsim.test4
</tags>
<search_expr_true>
PRACH test OK
</search_expr_true>
<search_expr_true>
PRACH 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>
...
...
openair1/PHY/NR_TRANSPORT/nr_prach.c
View file @
6f28d0e3
...
@@ -185,7 +185,7 @@ void rx_nr_prach_ru(RU_t *ru,
...
@@ -185,7 +185,7 @@ void rx_nr_prach_ru(RU_t *ru,
for
(
int
aa
=
0
;
aa
<
ru
->
nb_rx
;
aa
++
){
for
(
int
aa
=
0
;
aa
<
ru
->
nb_rx
;
aa
++
){
if
(
prach_sequence_length
==
0
)
slot2
=
(
slot
/
fp
->
slots_per_subframe
)
*
fp
->
slots_per_subframe
;
if
(
prach_sequence_length
==
0
)
slot2
=
(
slot
/
fp
->
slots_per_subframe
)
*
fp
->
slots_per_subframe
;
prach
[
aa
]
=
(
int16_t
*
)
&
ru
->
common
.
rxdata
[
aa
][
(
slot2
*
fp
->
get_samples_per_slot
(
slot
,
fp
)
)
+
sample_offset_slot
-
ru
->
N_TA_offset
];
prach
[
aa
]
=
(
int16_t
*
)
&
ru
->
common
.
rxdata
[
aa
][
fp
->
get_samples_slot_timestamp
(
slot2
,
fp
,
0
)
+
sample_offset_slot
-
ru
->
N_TA_offset
];
}
}
idft_size_idx_t
dftsize
;
idft_size_idx_t
dftsize
;
...
@@ -512,14 +512,14 @@ void rx_nr_prach_ru(RU_t *ru,
...
@@ -512,14 +512,14 @@ void rx_nr_prach_ru(RU_t *ru,
if
(
slot
%
(
fp
->
slots_per_subframe
/
2
)
==
0
&&
prachStartSymbol
==
0
)
if
(
slot
%
(
fp
->
slots_per_subframe
/
2
)
==
0
&&
prachStartSymbol
==
0
)
prach2
+=
64
;
// 32 samples @ 61.44 Ms/s in first symbol of each half subframe
prach2
+=
64
;
// 32 samples @ 61.44 Ms/s in first symbol of each half subframe
dftlen
=
512
;
dftlen
=
512
;
dftsize
=
I
DFT_512
;
dftsize
=
DFT_512
;
}
}
else
if
(
fp
->
N_RB_UL
==
66
)
{
else
if
(
fp
->
N_RB_UL
==
66
)
{
prach2
=
prach
[
aa
]
+
(
Ncp
<<
3
);
// Ncp is for 30.72 Ms/s, so multiply by 4 for I/Q, and 2 for 122.88Msps
prach2
=
prach
[
aa
]
+
(
Ncp
<<
3
);
// Ncp is for 30.72 Ms/s, so multiply by 4 for I/Q, and 2 for 122.88Msps
if
(
slot
%
(
fp
->
slots_per_subframe
/
2
)
==
0
&&
prachStartSymbol
==
0
)
if
(
slot
%
(
fp
->
slots_per_subframe
/
2
)
==
0
&&
prachStartSymbol
==
0
)
prach2
+=
128
;
// 64 samples @ 122.88 Ms/s in first symbol of each half subframe
prach2
+=
128
;
// 64 samples @ 122.88 Ms/s in first symbol of each half subframe
dftlen
=
1024
;
dftlen
=
1024
;
dftsize
=
I
DFT_1024
;
dftsize
=
DFT_1024
;
}
}
else
{
else
{
AssertFatal
(
1
==
0
,
"N_RB_UL %d not support for numerology %d
\n
"
,
fp
->
N_RB_UL
,
mu
);
AssertFatal
(
1
==
0
,
"N_RB_UL %d not support for numerology %d
\n
"
,
fp
->
N_RB_UL
,
mu
);
...
@@ -551,6 +551,7 @@ void rx_nr_prach_ru(RU_t *ru,
...
@@ -551,6 +551,7 @@ void rx_nr_prach_ru(RU_t *ru,
AssertFatal
(
1
==
0
,
"Numerology not supported
\n
"
);
AssertFatal
(
1
==
0
,
"Numerology not supported
\n
"
);
}
}
//LOG_M("ru_rxsigF_tmp.m","rxsFtmp", rxsigF[aa], dftlen*2*reps, 1, 1);
//Coherent combining of PRACH repetitions (assumes channel does not change, to be revisted for "long" PRACH)
//Coherent combining of PRACH repetitions (assumes channel does not change, to be revisted for "long" PRACH)
LOG_D
(
PHY
,
"Doing PRACH combining of %d reptitions N_ZC %d
\n
"
,
reps
,
N_ZC
);
LOG_D
(
PHY
,
"Doing PRACH combining of %d reptitions N_ZC %d
\n
"
,
reps
,
N_ZC
);
...
...
openair1/PHY/NR_UE_TRANSPORT/nr_prach.c
View file @
6f28d0e3
...
@@ -105,6 +105,8 @@ int32_t generate_nr_prach(PHY_VARS_NR_UE *ue, uint8_t gNB_id, uint8_t slot){
...
@@ -105,6 +105,8 @@ int32_t generate_nr_prach(PHY_VARS_NR_UE *ue, uint8_t gNB_id, uint8_t slot){
sample_offset_slot
=
(
prachStartSymbol
==
0
?
0
:
fp
->
ofdm_symbol_size
*
prachStartSymbol
+
fp
->
nb_prefix_samples0
+
fp
->
nb_prefix_samples
*
(
prachStartSymbol
-
1
));
sample_offset_slot
=
(
prachStartSymbol
==
0
?
0
:
fp
->
ofdm_symbol_size
*
prachStartSymbol
+
fp
->
nb_prefix_samples0
+
fp
->
nb_prefix_samples
*
(
prachStartSymbol
-
1
));
prach_start
=
fp
->
get_samples_slot_timestamp
(
slot
,
fp
,
0
)
+
sample_offset_slot
;
prach_start
=
fp
->
get_samples_slot_timestamp
(
slot
,
fp
,
0
)
+
sample_offset_slot
;
//printf("prachstartsymbold %d, sample_offset_slot %d, prach_start %d\n",prachStartSymbol, sample_offset_slot, prach_start);
// First compute physical root sequence
// First compute physical root sequence
/************************************************************************
/************************************************************************
* 4G and NR NCS tables are slightly different and depend on prach format
* 4G and NR NCS tables are slightly different and depend on prach format
...
...
openair1/SIMULATION/NR_PHY/prachsim.c
View file @
6f28d0e3
...
@@ -372,12 +372,6 @@ int main(int argc, char **argv){
...
@@ -372,12 +372,6 @@ int main(int argc, char **argv){
}
}
}
}
if
(
config_index
<
67
&&
mu
==
1
)
{
prach_sequence_length
=
0
;
slot
=
subframe
*
2
;
slot_gNB
=
1
+
(
subframe
*
2
);
}
uint16_t
N_ZC
=
prach_sequence_length
==
0
?
839
:
139
;
printf
(
"Config_index %d, prach_sequence_length %d
\n
"
,
config_index
,
prach_sequence_length
);
// Configure log
// Configure log
logInit
();
logInit
();
set_glog
(
loglvl
);
set_glog
(
loglvl
);
...
@@ -422,7 +416,13 @@ int main(int argc, char **argv){
...
@@ -422,7 +416,13 @@ int main(int argc, char **argv){
frame_parms
->
numerology_index
,
frame_parms
->
numerology_index
,
frame_parms
->
N_RB_UL
*
(
180e3
)
*
(
1
<<
frame_parms
->
numerology_index
));
frame_parms
->
N_RB_UL
*
(
180e3
)
*
(
1
<<
frame_parms
->
numerology_index
));
//nsymb = (frame_parms->Ncp == 0) ? 14 : 12;
subframe
=
slot
/
frame_parms
->
slots_per_subframe
;
if
(
config_index
<
67
&&
mu
==
1
)
{
prach_sequence_length
=
0
;
slot
=
subframe
*
2
;
slot_gNB
=
1
+
(
subframe
*
2
);
}
uint16_t
N_ZC
=
prach_sequence_length
==
0
?
839
:
139
;
printf
(
"Config_index %d, prach_sequence_length %d
\n
"
,
config_index
,
prach_sequence_length
);
printf
(
"FFT Size %d, Extended Prefix %d, Samples per subframe %d, Frame type %s, Frequency Range %s
\n
"
,
printf
(
"FFT Size %d, Extended Prefix %d, Samples per subframe %d, Frame type %s, Frequency Range %s
\n
"
,
NUMBER_OF_OFDM_CARRIERS
,
NUMBER_OF_OFDM_CARRIERS
,
...
@@ -765,7 +765,7 @@ int main(int argc, char **argv){
...
@@ -765,7 +765,7 @@ int main(int argc, char **argv){
LOG_M
(
"prachF0.m"
,
"prachF0"
,
&
gNB
->
prach_vars
.
prachF
[
0
],
N_ZC
,
1
,
1
);
LOG_M
(
"prachF0.m"
,
"prachF0"
,
&
gNB
->
prach_vars
.
prachF
[
0
],
N_ZC
,
1
,
1
);
LOG_M
(
"rxsig0.m"
,
"rxs0"
,
&
gNB
->
common_vars
.
rxdata
[
0
][
subframe
*
frame_parms
->
samples_per_subframe
],
frame_parms
->
samples_per_subframe
,
1
,
1
);
LOG_M
(
"rxsig0.m"
,
"rxs0"
,
&
gNB
->
common_vars
.
rxdata
[
0
][
subframe
*
frame_parms
->
samples_per_subframe
],
frame_parms
->
samples_per_subframe
,
1
,
1
);
LOG_M
(
"ru_rxsig0.m"
,
"rxs0"
,
&
ru
->
common
.
rxdata
[
0
][
subframe
*
frame_parms
->
samples_per_subframe
],
frame_parms
->
samples_per_subframe
,
1
,
1
);
LOG_M
(
"ru_rxsig0.m"
,
"rxs0"
,
&
ru
->
common
.
rxdata
[
0
][
subframe
*
frame_parms
->
samples_per_subframe
],
frame_parms
->
samples_per_subframe
,
1
,
1
);
LOG_M
(
"r
xsigF0.m"
,
"rxsF0"
,
gNB
->
prach_vars
.
rxsigF
[
0
],
N_ZC
,
1
,
1
);
LOG_M
(
"r
u_rxsigF0.m"
,
"rxsF0"
,
ru
->
prach_rxsigF
[
0
]
[
0
],
N_ZC
,
1
,
1
);
LOG_M
(
"prach_preamble.m"
,
"prachp"
,
&
gNB
->
X_u
[
0
],
N_ZC
,
1
,
1
);
LOG_M
(
"prach_preamble.m"
,
"prachp"
,
&
gNB
->
X_u
[
0
],
N_ZC
,
1
,
1
);
LOG_M
(
"ue_prach_preamble.m"
,
"prachp"
,
&
UE
->
X_u
[
0
],
N_ZC
,
1
,
1
);
LOG_M
(
"ue_prach_preamble.m"
,
"prachp"
,
&
UE
->
X_u
[
0
],
N_ZC
,
1
,
1
);
#endif
#endif
...
...
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