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
c739337e
Commit
c739337e
authored
Aug 06, 2021
by
Hongzhi Wang
Committed by
Hongzhi Wang
Mar 09, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding offload multiple segments
parent
52450c44
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
164 additions
and
2151 deletions
+164
-2151
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c
+143
-2143
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_types.h
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_types.h
+14
-0
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
+7
-8
No files found.
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c
View file @
c739337e
This diff is collapsed.
Click to expand it.
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_types.h
View file @
c739337e
...
...
@@ -74,6 +74,20 @@ typedef struct nrLDPC_dec_params {
e_nrLDPC_outMode
outMode
;
/**< Output format */
}
t_nrLDPC_dec_params
;
/**
Structure containing LDPC decoder parameters.
*/
typedef
struct
nrLDPCoffload_params
{
uint8_t
BG
;
/**< Base graph */
uint16_t
Z
;
uint16_t
Kr
;
uint8_t
rv
;
uint32_t
E
;
uint16_t
n_cb
;
uint16_t
F
;
/**< Filler bits */
uint8_t
Qm
;
/**< Modulation */
}
t_nrLDPCoffload_params
;
/**
Structure containing LDPC decoder processing time statistics.
*/
...
...
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
View file @
c739337e
...
...
@@ -576,7 +576,6 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
offset
=
0
;
if
(
enable_ldpc_offload
)
{
memset
(
harq_process
->
c
[
0
],
0
,
Kr_bytes
);
if
(
harq_process
->
C
==
1
)
{
if
(
A
>
3824
)
...
...
@@ -594,7 +593,10 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
E
=
nr_get_E
(
G
,
harq_process
->
C
,
Qm
,
n_layers
,
0
);
memcpy
((
&
z_ol
[
0
]),
ulsch_llr
,
G
*
sizeof
(
int16_t
));
for
(
r
=
0
;
r
<
harq_process
->
C
;
r
++
)
{
memset
(
harq_process
->
c
[
r
],
0
,
Kr_bytes
);
memcpy
((
&
z_ol
[
0
]),
ulsch_llr
+
r
*
E
,
E
*
sizeof
(
int16_t
));
for
(
i
=
0
,
j
=
0
;
j
<
((
kc
*
harq_process
->
Z
)
>>
4
)
+
1
;
i
+=
2
,
j
++
)
{
...
...
@@ -602,7 +604,7 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
}
ret
=
nrLDPC_decoder_offload
(
p_decParams
,
harq_process
->
C
,
1
,
//
harq_process->C,
pusch_pdu
->
pusch_data
.
rv_index
,
harq_process
->
F
,
E
,
...
...
@@ -610,8 +612,6 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
(
int8_t
*
)
&
pl_ol128
[
0
],
llrProcBuf
);
for
(
r
=
0
;
r
<
harq_process
->
C
;
r
++
)
{
for
(
int
m
=
0
;
m
<
Kr
>>
3
;
m
++
)
{
harq_process
->
c
[
r
][
m
]
=
(
uint8_t
)
llrProcBuf
[
m
];
}
...
...
@@ -627,12 +627,12 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
#endif
no_iteration_ldpc
=
ulsch
->
max_ldpc_iterations
+
1
;
}
/*
for (int k=0;k<8;k++)
for
(
int
k
=
0
;
k
<
8
;
k
++
)
{
printf
(
"output decoder [%d] = 0x%02x
\n
"
,
k
,
harq_process
->
c
[
r
][
k
]);
printf
(
"llrprocbuf [%d] = %x adr %p
\n
"
,
k
,
llrProcBuf
[
k
],
llrProcBuf
+
k
);
}
*/
memcpy
(
harq_process
->
b
+
offset
,
harq_process
->
c
[
r
],
...
...
@@ -649,7 +649,6 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
for
(
r
=
0
;
r
<
harq_process
->
C
;
r
++
)
{
E
=
nr_get_E
(
G
,
harq_process
->
C
,
Qm
,
n_layers
,
r
);
printf
(
"rm length %d seg %d
\n
"
,
E
,
r
);
union
ldpcReqUnion
id
=
{.
s
=
{
ulsch
->
rnti
,
frame
,
nr_tti_rx
,
0
,
0
}};
notifiedFIFO_elt_t
*
req
=
newNotifiedFIFO_elt
(
sizeof
(
ldpcDecode_t
),
id
.
p
,
phy_vars_gNB
->
respDecode
,
nr_processULSegment_ptr
);
ldpcDecode_t
*
rdata
=
(
ldpcDecode_t
*
)
NotifiedFifoData
(
req
);
...
...
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