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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
0ddf21db
Commit
0ddf21db
authored
Jan 07, 2026
by
Mario Joa-Ng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support prach with non-zero start symbol.
parent
9b0bb594
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
radio/fhi_72/oaioran.c
radio/fhi_72/oaioran.c
+6
-3
No files found.
radio/fhi_72/oaioran.c
View file @
0ddf21db
...
@@ -173,6 +173,9 @@ static int read_prach_data(ru_info_t *ru, int frame, int slot)
...
@@ -173,6 +173,9 @@ static int read_prach_data(ru_info_t *ru, int frame, int slot)
struct
xran_fh_init
*
fh_init
=
get_xran_fh_init
();
struct
xran_fh_init
*
fh_init
=
get_xran_fh_init
();
struct
xran_fh_config
*
fh_cfg
=
get_xran_fh_config
(
0
);
struct
xran_fh_config
*
fh_cfg
=
get_xran_fh_config
(
0
);
nr_prach_info_t
prach_info
=
get_prach_info
(
0
);
nr_prach_info_t
prach_info
=
get_prach_info
(
0
);
int
prach_start_sym
=
prach_info
.
start_symbol
;
int
prach_end_sym
=
prach_info
.
N_dur
+
prach_start_sym
;
struct
xran_ru_config
*
ru_conf
=
&
fh_cfg
->
ru_conf
;
struct
xran_ru_config
*
ru_conf
=
&
fh_cfg
->
ru_conf
;
int
slots_per_frame
=
10
<<
fh_cfg
->
frame_conf
.
nNumerology
;
int
slots_per_frame
=
10
<<
fh_cfg
->
frame_conf
.
nNumerology
;
int
slots_per_subframe
=
1
<<
fh_cfg
->
frame_conf
.
nNumerology
;
int
slots_per_subframe
=
1
<<
fh_cfg
->
frame_conf
.
nNumerology
;
...
@@ -190,7 +193,7 @@ static int read_prach_data(ru_info_t *ru, int frame, int slot)
...
@@ -190,7 +193,7 @@ static int read_prach_data(ru_info_t *ru, int frame, int slot)
LOG_W
(
HW
,
"we get rach data from ru, but it is not scheduled %d.%d
\n
"
,
frame
,
slot
);
LOG_W
(
HW
,
"we get rach data from ru, but it is not scheduled %d.%d
\n
"
,
frame
,
slot
);
return
-
1
;
return
-
1
;
}
}
for
(
sym_idx
=
0
;
sym_idx
<
prach_info
.
N_dur
;
sym_idx
++
)
{
for
(
sym_idx
=
prach_start_sym
;
sym_idx
<
prach_end_sym
;
sym_idx
++
)
{
for
(
int
aa
=
0
;
aa
<
ru
->
nb_rx
;
aa
++
)
{
for
(
int
aa
=
0
;
aa
<
ru
->
nb_rx
;
aa
++
)
{
int16_t
*
dst
,
*
src
;
int16_t
*
dst
,
*
src
;
int
idx
=
0
;
int
idx
=
0
;
...
@@ -200,7 +203,7 @@ static int read_prach_data(ru_info_t *ru, int frame, int slot)
...
@@ -200,7 +203,7 @@ static int read_prach_data(ru_info_t *ru, int frame, int slot)
src
=
(
int16_t
*
)
bufs
->
prachdstdecomp
[
aa
%
nb_rx_per_ru
][
tti
%
XRAN_N_FE_BUF_LEN
].
pBuffers
[
sym_idx
].
pData
;
src
=
(
int16_t
*
)
bufs
->
prachdstdecomp
[
aa
%
nb_rx_per_ru
][
tti
%
XRAN_N_FE_BUF_LEN
].
pBuffers
[
sym_idx
].
pData
;
/* convert Network order to host order */
/* convert Network order to host order */
if
(
ru_conf
->
compMeth_PRACH
==
XRAN_COMPMETHOD_NONE
)
{
if
(
ru_conf
->
compMeth_PRACH
==
XRAN_COMPMETHOD_NONE
)
{
if
(
sym_idx
==
0
)
{
if
(
sym_idx
==
prach_start_sym
)
{
for
(
idx
=
0
;
idx
<
139
*
2
;
idx
++
)
{
for
(
idx
=
0
;
idx
<
139
*
2
;
idx
++
)
{
dst
[
idx
]
=
((
int16_t
)
ntohs
(
src
[
idx
+
g_kbar
]));
dst
[
idx
]
=
((
int16_t
)
ntohs
(
src
[
idx
+
g_kbar
]));
}
}
...
@@ -233,7 +236,7 @@ static int read_prach_data(ru_info_t *ru, int frame, int slot)
...
@@ -233,7 +236,7 @@ static int read_prach_data(ru_info_t *ru, int frame, int slot)
AssertFatal
(
1
==
0
,
"BFP decompression not supported on this architecture"
);
AssertFatal
(
1
==
0
,
"BFP decompression not supported on this architecture"
);
#endif
#endif
// note: this is hardwired for 139 point PRACH sequence, kbar=2
// note: this is hardwired for 139 point PRACH sequence, kbar=2
if
(
sym_idx
==
0
)
//
if
(
sym_idx
==
prach_start_sym
)
for
(
idx
=
0
;
idx
<
(
139
*
2
);
idx
++
)
for
(
idx
=
0
;
idx
<
(
139
*
2
);
idx
++
)
dst
[
idx
]
=
local_dst
[
idx
+
g_kbar
];
dst
[
idx
]
=
local_dst
[
idx
+
g_kbar
];
else
else
...
...
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