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
62133070
Commit
62133070
authored
Nov 19, 2020
by
Francesco Mani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix indentation in nr_prach
parent
bba103dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
193 additions
and
195 deletions
+193
-195
openair1/PHY/NR_TRANSPORT/nr_prach.c
openair1/PHY/NR_TRANSPORT/nr_prach.c
+193
-195
No files found.
openair1/PHY/NR_TRANSPORT/nr_prach.c
View file @
62133070
...
...
@@ -301,205 +301,203 @@ void rx_nr_prach_ru(RU_t *ru,
// do DFT
if
(
mu
==
1
)
{
if
(
fp
->
N_RB_UL
<=
100
)
AssertFatal
(
1
==
0
,
"N_RB_UL %d not support for NR PRACH yet
\n
"
,
fp
->
N_RB_UL
);
else
if
(
fp
->
N_RB_UL
<
137
)
{
if
(
fp
->
threequarter_fs
==
0
)
{
//40 MHz @ 61.44 Ms/s
//50 MHz @ 61.44 Ms/s
prach2
=
prach
[
aa
]
+
(
Ncp
<<
2
);
// Ncp is for 30.72 Ms/s, so multiply by 2 for I/Q, and 2 to bring to 61.44 Ms/s
if
(
prach_sequence_length
==
0
)
{
if
(
prachFormat
==
0
||
prachFormat
==
1
||
prachFormat
==
2
)
{
dftlen
=
49152
;
dft
(
DFT_49152
,
prach2
,
rxsigF
[
aa
],
1
);
if
(
fp
->
N_RB_UL
<=
100
)
AssertFatal
(
1
==
0
,
"N_RB_UL %d not support for NR PRACH yet
\n
"
,
fp
->
N_RB_UL
);
else
if
(
fp
->
N_RB_UL
<
137
)
{
if
(
fp
->
threequarter_fs
==
0
)
{
//40 MHz @ 61.44 Ms/s
//50 MHz @ 61.44 Ms/s
prach2
=
prach
[
aa
]
+
(
Ncp
<<
2
);
// Ncp is for 30.72 Ms/s, so multiply by 2 for I/Q, and 2 to bring to 61.44 Ms/s
if
(
prach_sequence_length
==
0
)
{
if
(
prachFormat
==
0
||
prachFormat
==
1
||
prachFormat
==
2
)
{
dftlen
=
49152
;
dft
(
DFT_49152
,
prach2
,
rxsigF
[
aa
],
1
);
}
if
(
prachFormat
==
1
||
prachFormat
==
2
)
{
dft
(
DFT_49152
,
prach2
+
98304
,
rxsigF
[
aa
]
+
98304
,
1
);
reps
++
;
}
if
(
prachFormat
==
2
)
{
dft
(
DFT_49152
,
prach2
+
(
98304
*
2
),
rxsigF
[
aa
]
+
(
98304
*
2
),
1
);
dft
(
DFT_49152
,
prach2
+
(
98304
*
3
),
rxsigF
[
aa
]
+
(
98304
*
3
),
1
);
reps
+=
2
;
}
if
(
prachFormat
==
3
)
{
dftlen
=
12288
;
for
(
int
i
=
0
;
i
<
4
;
i
++
)
dft
(
DFT_12288
,
prach2
+
(
i
*
12288
*
2
),
rxsigF
[
aa
]
+
(
i
*
12288
*
2
),
1
);
reps
=
4
;
}
}
// 839 sequence
else
{
if
(
prachStartSymbol
==
0
)
prach2
+=
64
;
// 32 samples @ 61.44 Ms/s in first symbol of each half subframe (15/30 kHz only)
dftlen
=
2048
;
dft
(
DFT_2048
,
prach2
,
rxsigF
[
aa
],
1
);
if
(
prachFormat
!=
9
/*C0*/
)
{
dft
(
DFT_2048
,
prach2
+
4096
,
rxsigF
[
aa
]
+
4096
,
1
);
reps
++
;
}
if
(
prachFormat
==
5
/*A2*/
||
prachFormat
==
6
/*A3*/
||
prachFormat
==
8
/*B4*/
||
prachFormat
==
10
/*C2*/
)
{
dft
(
DFT_2048
,
prach2
+
4096
*
2
,
rxsigF
[
aa
]
+
4096
*
2
,
1
);
dft
(
DFT_2048
,
prach2
+
4096
*
3
,
rxsigF
[
aa
]
+
4096
*
3
,
1
);
reps
+=
2
;
}
if
(
prachFormat
==
6
/*A3*/
||
prachFormat
==
8
/*B4*/
)
{
dft
(
DFT_2048
,
prach2
+
4096
*
4
,
rxsigF
[
aa
]
+
4096
*
4
,
1
);
dft
(
DFT_2048
,
prach2
+
4096
*
5
,
rxsigF
[
aa
]
+
4096
*
5
,
1
);
reps
+=
2
;
}
if
(
prachFormat
==
8
/*B4*/
)
{
for
(
int
i
=
6
;
i
<
12
;
i
++
)
dft
(
DFT_2048
,
prach2
+
(
4096
*
i
),
rxsigF
[
aa
]
+
(
4096
*
i
),
1
);
reps
+=
6
;
}
}
if
(
prachFormat
==
1
||
prachFormat
==
2
)
{
dft
(
DFT_49152
,
prach2
+
98304
,
rxsigF
[
aa
]
+
98304
,
1
);
reps
++
;
}
if
(
prachFormat
==
2
)
{
dft
(
DFT_49152
,
prach2
+
(
98304
*
2
),
rxsigF
[
aa
]
+
(
98304
*
2
),
1
);
dft
(
DFT_49152
,
prach2
+
(
98304
*
3
),
rxsigF
[
aa
]
+
(
98304
*
3
),
1
);
reps
+=
2
;
}
if
(
prachFormat
==
3
)
{
dftlen
=
12288
;
for
(
int
i
=
0
;
i
<
4
;
i
++
)
dft
(
DFT_12288
,
prach2
+
(
i
*
12288
*
2
),
rxsigF
[
aa
]
+
(
i
*
12288
*
2
),
1
);
reps
=
4
;
}
}
// 839 sequence
else
{
if
(
prachStartSymbol
==
0
)
prach2
+=
64
;
// 32 samples @ 61.44 Ms/s in first symbol of each half subframe (15/30 kHz only)
dftlen
=
2048
;
dft
(
DFT_2048
,
prach2
,
rxsigF
[
aa
],
1
);
if
(
prachFormat
!=
9
/*C0*/
)
{
dft
(
DFT_2048
,
prach2
+
4096
,
rxsigF
[
aa
]
+
4096
,
1
);
reps
++
;
}
if
(
prachFormat
==
5
/*A2*/
||
prachFormat
==
6
/*A3*/
||
prachFormat
==
8
/*B4*/
||
prachFormat
==
10
/*C2*/
)
{
dft
(
DFT_2048
,
prach2
+
4096
*
2
,
rxsigF
[
aa
]
+
4096
*
2
,
1
);
dft
(
DFT_2048
,
prach2
+
4096
*
3
,
rxsigF
[
aa
]
+
4096
*
3
,
1
);
reps
+=
2
;
}
if
(
prachFormat
==
6
/*A3*/
||
prachFormat
==
8
/*B4*/
)
{
dft
(
DFT_2048
,
prach2
+
4096
*
4
,
rxsigF
[
aa
]
+
4096
*
4
,
1
);
dft
(
DFT_2048
,
prach2
+
4096
*
5
,
rxsigF
[
aa
]
+
4096
*
5
,
1
);
reps
+=
2
;
}
if
(
prachFormat
==
8
/*B4*/
)
{
for
(
int
i
=
6
;
i
<
12
;
i
++
)
dft
(
DFT_2048
,
prach2
+
(
4096
*
i
),
rxsigF
[
aa
]
+
(
4096
*
i
),
1
);
reps
+=
6
;
}
}
}
else
{
// threequarter sampling
// 40 MHz @ 46.08 Ms/s
prach2
=
prach
[
aa
]
+
(
3
*
Ncp
);
// 46.08 is 1.5 * 30.72, times 2 for I/Q
if
(
prach_sequence_length
==
0
)
{
AssertFatal
(
fp
->
N_RB_UL
<=
107
,
"cannot do 108..136 PRBs with 3/4 sampling
\n
"
);
if
(
prachFormat
==
0
||
prachFormat
==
1
||
prachFormat
==
2
)
{
dftlen
=
36864
;
dft
(
DFT_36864
,
prach2
,
rxsigF
[
aa
],
1
);
reps
++
;
}
if
(
prachFormat
==
1
||
prachFormat
==
2
)
{
dft
(
DFT_36864
,
prach2
+
73728
,
rxsigF
[
aa
]
+
73728
,
1
);
reps
++
;
}
if
(
prachFormat
==
2
)
{
dft
(
DFT_36864
,
prach2
+
(
73728
*
2
),
rxsigF
[
aa
]
+
(
73728
*
2
),
1
);
dft
(
DFT_36864
,
prach2
+
(
73728
*
3
),
rxsigF
[
aa
]
+
(
73728
*
3
),
1
);
reps
+=
2
;
}
if
(
prachFormat
==
3
)
{
dftlen
=
9216
;
for
(
int
i
=
0
;
i
<
4
;
i
++
)
dft
(
DFT_9216
,
prach2
+
(
i
*
9216
*
2
),
rxsigF
[
aa
]
+
(
i
*
9216
*
2
),
1
);
reps
=
4
;
}
}
else
{
if
(
prachStartSymbol
==
0
)
prach2
+=
48
;
// 24 samples @ 46.08 Ms/s in first symbol of each half subframe (15/30 kHz only)
dftlen
=
1536
;
dft
(
DFT_1536
,
prach2
,
rxsigF
[
aa
],
1
);
if
(
prachFormat
!=
9
/*C0*/
)
{
dft
(
DFT_1536
,
prach2
+
3072
,
rxsigF
[
aa
]
+
3072
,
1
);
reps
++
;
}
if
(
prachFormat
==
5
/*A2*/
||
prachFormat
==
6
/*A3*/
||
prachFormat
==
8
/*B4*/
||
prachFormat
==
10
/*C2*/
)
{
dft
(
DFT_1536
,
prach2
+
3072
*
2
,
rxsigF
[
aa
]
+
3072
*
2
,
1
);
dft
(
DFT_1536
,
prach2
+
3072
*
3
,
rxsigF
[
aa
]
+
3072
*
3
,
1
);
reps
+=
2
;
}
if
(
prachFormat
==
6
/*A3*/
||
prachFormat
==
8
/*B4*/
)
{
dft
(
DFT_1536
,
prach2
+
3072
*
4
,
rxsigF
[
aa
]
+
3072
*
4
,
1
);
dft
(
DFT_1536
,
prach2
+
3072
*
5
,
rxsigF
[
aa
]
+
3072
*
5
,
1
);
reps
+=
2
;
}
if
(
prachFormat
==
8
/*B4*/
)
{
for
(
int
i
=
6
;
i
<
12
;
i
++
)
dft
(
DFT_1536
,
prach2
+
(
3072
*
i
),
rxsigF
[
aa
]
+
(
3072
*
i
),
1
);
reps
+=
6
;
}
}
// short format
}
// 3/4 sampling
}
// <=50 MHz BW
else
if
(
fp
->
N_RB_UL
<=
273
)
{
if
(
fp
->
threequarter_fs
==
0
)
{
prach2
=
prach
[
aa
]
+
(
Ncp
<<
3
);
//80,90,100 MHz @ 122.88 Ms/s
if
(
prach_sequence_length
==
0
)
{
if
(
prachFormat
==
0
||
prachFormat
==
1
||
prachFormat
==
2
)
{
dftlen
=
98304
;
dft
(
DFT_98304
,
prach2
,
rxsigF
[
aa
],
1
);
}
else
{
// threequarter sampling
// 40 MHz @ 46.08 Ms/s
prach2
=
prach
[
aa
]
+
(
3
*
Ncp
);
// 46.08 is 1.5 * 30.72, times 2 for I/Q
if
(
prach_sequence_length
==
0
)
{
AssertFatal
(
fp
->
N_RB_UL
<=
107
,
"cannot do 108..136 PRBs with 3/4 sampling
\n
"
);
if
(
prachFormat
==
0
||
prachFormat
==
1
||
prachFormat
==
2
)
{
dftlen
=
36864
;
dft
(
DFT_36864
,
prach2
,
rxsigF
[
aa
],
1
);
reps
++
;
}
if
(
prachFormat
==
1
||
prachFormat
==
2
)
{
dft
(
DFT_36864
,
prach2
+
73728
,
rxsigF
[
aa
]
+
73728
,
1
);
reps
++
;
}
if
(
prachFormat
==
2
)
{
dft
(
DFT_36864
,
prach2
+
(
73728
*
2
),
rxsigF
[
aa
]
+
(
73728
*
2
),
1
);
dft
(
DFT_36864
,
prach2
+
(
73728
*
3
),
rxsigF
[
aa
]
+
(
73728
*
3
),
1
);
reps
+=
2
;
}
if
(
prachFormat
==
3
)
{
dftlen
=
9216
;
for
(
int
i
=
0
;
i
<
4
;
i
++
)
dft
(
DFT_9216
,
prach2
+
(
i
*
9216
*
2
),
rxsigF
[
aa
]
+
(
i
*
9216
*
2
),
1
);
reps
=
4
;
}
}
else
{
if
(
prachStartSymbol
==
0
)
prach2
+=
48
;
// 24 samples @ 46.08 Ms/s in first symbol of each half subframe (15/30 kHz only)
dftlen
=
1536
;
dft
(
DFT_1536
,
prach2
,
rxsigF
[
aa
],
1
);
if
(
prachFormat
!=
9
/*C0*/
)
{
dft
(
DFT_1536
,
prach2
+
3072
,
rxsigF
[
aa
]
+
3072
,
1
);
reps
++
;
}
if
(
prachFormat
==
5
/*A2*/
||
prachFormat
==
6
/*A3*/
||
prachFormat
==
8
/*B4*/
||
prachFormat
==
10
/*C2*/
)
{
dft
(
DFT_1536
,
prach2
+
3072
*
2
,
rxsigF
[
aa
]
+
3072
*
2
,
1
);
dft
(
DFT_1536
,
prach2
+
3072
*
3
,
rxsigF
[
aa
]
+
3072
*
3
,
1
);
reps
+=
2
;
}
if
(
prachFormat
==
6
/*A3*/
||
prachFormat
==
8
/*B4*/
)
{
dft
(
DFT_1536
,
prach2
+
3072
*
4
,
rxsigF
[
aa
]
+
3072
*
4
,
1
);
dft
(
DFT_1536
,
prach2
+
3072
*
5
,
rxsigF
[
aa
]
+
3072
*
5
,
1
);
reps
+=
2
;
}
if
(
prachFormat
==
8
/*B4*/
)
{
for
(
int
i
=
6
;
i
<
12
;
i
++
)
dft
(
DFT_1536
,
prach2
+
(
3072
*
i
),
rxsigF
[
aa
]
+
(
3072
*
i
),
1
);
reps
+=
6
;
}
}
// short format
}
// 3/4 sampling
}
// <=50 MHz BW
else
if
(
fp
->
N_RB_UL
<=
273
)
{
if
(
fp
->
threequarter_fs
==
0
)
{
prach2
=
prach
[
aa
]
+
(
Ncp
<<
3
);
//80,90,100 MHz @ 122.88 Ms/s
if
(
prach_sequence_length
==
0
)
{
if
(
prachFormat
==
0
||
prachFormat
==
1
||
prachFormat
==
2
)
{
dftlen
=
98304
;
dft
(
DFT_98304
,
prach2
,
rxsigF
[
aa
],
1
);
}
if
(
prachFormat
==
1
||
prachFormat
==
2
)
{
dft
(
DFT_98304
,
prach2
+
196608
,
rxsigF
[
aa
]
+
196608
,
1
);
reps
++
;
}
if
(
prachFormat
==
2
)
{
dft
(
DFT_98304
,
prach2
+
(
196608
*
2
),
rxsigF
[
aa
]
+
(
196608
*
2
),
1
);
dft
(
DFT_98304
,
prach2
+
(
196608
*
3
),
rxsigF
[
aa
]
+
(
196608
*
3
),
1
);
reps
+=
2
;
}
if
(
prachFormat
==
3
)
{
dftlen
=
24576
;
for
(
int
i
=
0
;
i
<
4
;
i
++
)
dft
(
DFT_24576
,
prach2
+
(
i
*
2
*
24576
),
rxsigF
[
aa
]
+
(
i
*
2
*
24576
),
1
);
reps
=
4
;
}
}
if
(
prachFormat
==
1
||
prachFormat
==
2
)
{
dft
(
DFT_98304
,
prach2
+
196608
,
rxsigF
[
aa
]
+
196608
,
1
);
reps
++
;
}
if
(
prachFormat
==
2
)
{
dft
(
DFT_98304
,
prach2
+
(
196608
*
2
),
rxsigF
[
aa
]
+
(
196608
*
2
),
1
);
dft
(
DFT_98304
,
prach2
+
(
196608
*
3
),
rxsigF
[
aa
]
+
(
196608
*
3
),
1
);
reps
+=
2
;
}
if
(
prachFormat
==
3
)
{
dftlen
=
24576
;
for
(
int
i
=
0
;
i
<
4
;
i
++
)
dft
(
DFT_24576
,
prach2
+
(
i
*
2
*
24576
),
rxsigF
[
aa
]
+
(
i
*
2
*
24576
),
1
);
reps
=
4
;
}
}
else
{
if
(
prachStartSymbol
==
0
)
prach2
+=
128
;
// 64 samples @ 122.88 Ms/s in first symbol of each half subframe (15/30 kHz only)
dftlen
=
4096
;
dft
(
DFT_4096
,
prach2
,
rxsigF
[
aa
],
1
);
if
(
prachFormat
!=
9
/*C0*/
)
{
dft
(
DFT_4096
,
prach2
+
8192
,
rxsigF
[
aa
]
+
8192
,
1
);
reps
++
;
}
if
(
prachFormat
==
5
/*A2*/
||
prachFormat
==
6
/*A3*/
||
prachFormat
==
8
/*B4*/
||
prachFormat
==
10
/*C2*/
)
{
dft
(
DFT_4096
,
prach2
+
8192
*
2
,
rxsigF
[
aa
]
+
8192
*
2
,
1
);
dft
(
DFT_4096
,
prach2
+
8192
*
3
,
rxsigF
[
aa
]
+
8192
*
3
,
1
);
reps
+=
2
;
}
if
(
prachFormat
==
6
/*A3*/
||
prachFormat
==
8
/*B4*/
)
{
dft
(
DFT_4096
,
prach2
+
8192
*
4
,
rxsigF
[
aa
]
+
8192
*
4
,
1
);
dft
(
DFT_4096
,
prach2
+
8192
*
5
,
rxsigF
[
aa
]
+
8192
*
5
,
1
);
reps
+=
2
;
}
if
(
prachFormat
==
8
/*B4*/
)
{
for
(
int
i
=
6
;
i
<
12
;
i
++
)
dft
(
DFT_4096
,
prach2
+
(
8192
*
i
),
rxsigF
[
aa
]
+
(
8192
*
i
),
1
);
reps
+=
6
;
}
}
}
else
{
AssertFatal
(
fp
->
N_RB_UL
<=
217
,
"cannot do more than 217 PRBs with 3/4 sampling
\n
"
);
prach2
=
prach
[
aa
]
+
(
6
*
Ncp
);
// 80 MHz @ 92.16 Ms/s
if
(
prach_sequence_length
==
0
)
{
if
(
prachFormat
==
0
||
prachFormat
==
1
||
prachFormat
==
2
)
{
dftlen
=
73728
;
dft
(
DFT_73728
,
prach2
,
rxsigF
[
aa
],
1
);
reps
++
;
}
if
(
prachFormat
==
1
||
prachFormat
==
2
)
{
dft
(
DFT_73728
,
prach2
+
(
2
*
73728
),
rxsigF
[
aa
]
+
(
2
*
73728
),
1
);
reps
++
;
}
if
(
prachFormat
==
3
)
{
dftlen
=
18432
;
for
(
int
i
=
0
;
i
<
4
;
i
++
)
dft
(
DFT_18432
,
prach2
+
(
i
*
2
*
18432
),
rxsigF
[
aa
]
+
(
i
*
2
*
18432
),
1
);
reps
=
4
;
}
}
else
{
if
(
prachStartSymbol
==
0
)
prach2
+=
96
;
// 64 samples @ 122.88 Ms/s in first symbol of each half subframe (15/30 kHz only)
dftlen
=
3072
;
dft
(
DFT_3072
,
prach2
,
rxsigF
[
aa
],
1
);
if
(
prachFormat
!=
9
/*C0*/
)
{
dft
(
DFT_3072
,
prach2
+
6144
,
rxsigF
[
aa
]
+
6144
,
1
);
reps
++
;
}
if
(
prachFormat
==
5
/*A2*/
||
prachFormat
==
6
/*A3*/
||
prachFormat
==
8
/*B4*/
||
prachFormat
==
10
/*C2*/
)
{
dft
(
DFT_3072
,
prach2
+
6144
*
2
,
rxsigF
[
aa
]
+
6144
*
2
,
1
);
dft
(
DFT_3072
,
prach2
+
6144
*
3
,
rxsigF
[
aa
]
+
6144
*
3
,
1
);
reps
+=
2
;
}
if
(
prachFormat
==
6
/*A3*/
||
prachFormat
==
8
/*B4*/
)
{
dft
(
DFT_3072
,
prach2
+
6144
*
4
,
rxsigF
[
aa
]
+
6144
*
4
,
1
);
dft
(
DFT_3072
,
prach2
+
6144
*
5
,
rxsigF
[
aa
]
+
6144
*
5
,
1
);
reps
+=
2
;
}
if
(
prachFormat
==
8
/*B4*/
)
{
for
(
int
i
=
6
;
i
<
12
;
i
++
)
dft
(
DFT_3072
,
prach2
+
(
6144
*
i
),
rxsigF
[
aa
]
+
(
6144
*
i
),
1
);
reps
+=
6
;
}
}
else
{
if
(
prachStartSymbol
==
0
)
prach2
+=
128
;
// 64 samples @ 122.88 Ms/s in first symbol of each half subframe (15/30 kHz only)
dftlen
=
4096
;
dft
(
DFT_4096
,
prach2
,
rxsigF
[
aa
],
1
);
if
(
prachFormat
!=
9
/*C0*/
)
{
dft
(
DFT_4096
,
prach2
+
8192
,
rxsigF
[
aa
]
+
8192
,
1
);
reps
++
;
}
if
(
prachFormat
==
5
/*A2*/
||
prachFormat
==
6
/*A3*/
||
prachFormat
==
8
/*B4*/
||
prachFormat
==
10
/*C2*/
)
{
dft
(
DFT_4096
,
prach2
+
8192
*
2
,
rxsigF
[
aa
]
+
8192
*
2
,
1
);
dft
(
DFT_4096
,
prach2
+
8192
*
3
,
rxsigF
[
aa
]
+
8192
*
3
,
1
);
reps
+=
2
;
}
if
(
prachFormat
==
6
/*A3*/
||
prachFormat
==
8
/*B4*/
)
{
dft
(
DFT_4096
,
prach2
+
8192
*
4
,
rxsigF
[
aa
]
+
8192
*
4
,
1
);
dft
(
DFT_4096
,
prach2
+
8192
*
5
,
rxsigF
[
aa
]
+
8192
*
5
,
1
);
reps
+=
2
;
}
if
(
prachFormat
==
8
/*B4*/
)
{
for
(
int
i
=
6
;
i
<
12
;
i
++
)
dft
(
DFT_4096
,
prach2
+
(
8192
*
i
),
rxsigF
[
aa
]
+
(
8192
*
i
),
1
);
reps
+=
6
;
}
}
}
else
{
AssertFatal
(
fp
->
N_RB_UL
<=
217
,
"cannot do more than 217 PRBs with 3/4 sampling
\n
"
);
prach2
=
prach
[
aa
]
+
(
6
*
Ncp
);
// 80 MHz @ 92.16 Ms/s
if
(
prach_sequence_length
==
0
)
{
if
(
prachFormat
==
0
||
prachFormat
==
1
||
prachFormat
==
2
)
{
dftlen
=
73728
;
dft
(
DFT_73728
,
prach2
,
rxsigF
[
aa
],
1
);
reps
++
;
}
if
(
prachFormat
==
1
||
prachFormat
==
2
)
{
dft
(
DFT_73728
,
prach2
+
(
2
*
73728
),
rxsigF
[
aa
]
+
(
2
*
73728
),
1
);
reps
++
;
}
if
(
prachFormat
==
3
)
{
dftlen
=
18432
;
for
(
int
i
=
0
;
i
<
4
;
i
++
)
dft
(
DFT_18432
,
prach2
+
(
i
*
2
*
18432
),
rxsigF
[
aa
]
+
(
i
*
2
*
18432
),
1
);
reps
=
4
;
}
}
else
{
if
(
prachStartSymbol
==
0
)
prach2
+=
96
;
// 64 samples @ 122.88 Ms/s in first symbol of each half subframe (15/30 kHz only)
dftlen
=
3072
;
dft
(
DFT_3072
,
prach2
,
rxsigF
[
aa
],
1
);
if
(
prachFormat
!=
9
/*C0*/
)
{
dft
(
DFT_3072
,
prach2
+
6144
,
rxsigF
[
aa
]
+
6144
,
1
);
reps
++
;
}
if
(
prachFormat
==
5
/*A2*/
||
prachFormat
==
6
/*A3*/
||
prachFormat
==
8
/*B4*/
||
prachFormat
==
10
/*C2*/
)
{
dft
(
DFT_3072
,
prach2
+
6144
*
2
,
rxsigF
[
aa
]
+
6144
*
2
,
1
);
dft
(
DFT_3072
,
prach2
+
6144
*
3
,
rxsigF
[
aa
]
+
6144
*
3
,
1
);
reps
+=
2
;
}
if
(
prachFormat
==
6
/*A3*/
||
prachFormat
==
8
/*B4*/
)
{
dft
(
DFT_3072
,
prach2
+
6144
*
4
,
rxsigF
[
aa
]
+
6144
*
4
,
1
);
dft
(
DFT_3072
,
prach2
+
6144
*
5
,
rxsigF
[
aa
]
+
6144
*
5
,
1
);
reps
+=
2
;
}
if
(
prachFormat
==
8
/*B4*/
)
{
for
(
int
i
=
6
;
i
<
12
;
i
++
)
dft
(
DFT_3072
,
prach2
+
(
6144
*
i
),
rxsigF
[
aa
]
+
(
6144
*
i
),
1
);
reps
+=
6
;
}
}
}
}
}
}
else
if
(
mu
==
3
)
{
if
(
fp
->
threequarter_fs
)
{
AssertFatal
(
1
==
0
,
"3/4 sampling not supported for numerology %d
\n
"
,
mu
);
...
...
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