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
e9cfd9c6
Commit
e9cfd9c6
authored
Jan 12, 2024
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
from Raymond: correct PRACH idx counter
parent
abdf35b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
radio/ETHERNET/oran/5g/oaioran.c
radio/ETHERNET/oran/5g/oaioran.c
+8
-7
No files found.
radio/ETHERNET/oran/5g/oaioran.c
View file @
e9cfd9c6
...
...
@@ -169,15 +169,15 @@ int read_prach_data(ru_info_t *ru, int frame, int slot)
/* convert Network order to host order */
if
(
ru_conf
->
compMeth_PRACH
==
XRAN_COMPMETHOD_NONE
)
{
if
(
sym_idx
==
0
)
{
for
(
idx
=
0
;
idx
<
576
/
2
;
idx
++
)
for
(
idx
=
0
;
idx
<
139
*
2
;
idx
++
)
{
dst
[
idx
]
=
((
int16_t
)
ntohs
(
src
[
idx
]))
>>
2
;
dst
[
idx
]
=
((
int16_t
)
ntohs
(
src
[
idx
+
4
]))
;
}
}
else
{
for
(
idx
=
0
;
idx
<
576
/
2
;
idx
++
)
for
(
idx
=
0
;
idx
<
139
*
2
;
idx
++
)
{
dst
[
idx
]
+=
((
int16_t
)
ntohs
(
src
[
idx
]))
>>
2
;
dst
[
idx
]
+=
((
int16_t
)
ntohs
(
src
[
idx
+
4
]))
;
}
}
}
else
if
(
ru_conf
->
compMeth_PRACH
==
XRAN_COMPMETHOD_BLKFLOAT
)
{
...
...
@@ -200,10 +200,11 @@ int read_prach_data(ru_info_t *ru, int frame, int slot)
bfp_decom_rsp
.
data_out
=
(
int16_t
*
)
local_dst
;
bfp_decom_rsp
.
len
=
0
;
xranlib_decompress_avx512
(
&
bfp_decom_req
,
&
bfp_decom_rsp
);
if
(
sym_idx
==
0
)
//memcpy((void*)dst,(void*)local_dst,576); // 576 is short PRACH 139 -> 144*4
for
(
idx
=
0
;
idx
<
(
576
/
2
);
idx
++
)
dst
[
idx
]
=
local_dst
[
idx
]
>>
2
;
// note: this is hardwired for 139 point PRACH sequence, kbar=2
if
(
sym_idx
==
0
)
//
for
(
idx
=
0
;
idx
<
(
139
*
2
);
idx
++
)
dst
[
idx
]
=
local_dst
[
idx
+
4
];
else
for
(
idx
=
0
;
idx
<
(
576
/
2
);
idx
++
)
dst
[
idx
]
+=
(
local_dst
[
idx
]
>>
2
);
for
(
idx
=
0
;
idx
<
(
139
*
2
);
idx
++
)
dst
[
idx
]
+=
(
local_dst
[
idx
+
4
]
);
}
// COMPMETHOD_BLKFLOAT
}
//aa
}
// symb_indx
...
...
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