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
lizhongxiao
OpenXG-RAN
Commits
1f42d8d5
Commit
1f42d8d5
authored
Dec 20, 2023
by
Jaroslava Fiedlerova
Committed by
Raymond Knopp
Jan 03, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Perform interleaving on the T2 card - UE and gNB encoder modification
parent
5c418b58
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
16 deletions
+7
-16
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c
+1
-1
openair1/PHY/NR_TRANSPORT/nr_dlsch_coding.c
openair1/PHY/NR_TRANSPORT/nr_dlsch_coding.c
+4
-11
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_coding.c
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_coding.c
+2
-4
No files found.
openair1/PHY/CODING/nrLDPC_decoder/nrLDPC_decoder_offload.c
View file @
1f42d8d5
...
@@ -575,7 +575,7 @@ static void set_ldpc_enc_op(struct rte_bbdev_enc_op **ops,
...
@@ -575,7 +575,7 @@ static void set_ldpc_enc_op(struct rte_bbdev_enc_op **ops,
ops
[
i
]
->
ldpc_enc
.
n_filler
=
p_offloadParams
->
F
;
ops
[
i
]
->
ldpc_enc
.
n_filler
=
p_offloadParams
->
F
;
ops
[
i
]
->
ldpc_enc
.
n_cb
=
p_offloadParams
->
n_cb
;
ops
[
i
]
->
ldpc_enc
.
n_cb
=
p_offloadParams
->
n_cb
;
ops
[
i
]
->
ldpc_enc
.
rv_index
=
p_offloadParams
->
rv
;
ops
[
i
]
->
ldpc_enc
.
rv_index
=
p_offloadParams
->
rv
;
ops
[
i
]
->
ldpc_enc
.
op_flags
=
RTE_BBDEV_LDPC_
INTERLEAVER_BYPASS
|
RTE_BBDEV_LDPC_
RATE_MATCH
;
ops
[
i
]
->
ldpc_enc
.
op_flags
=
RTE_BBDEV_LDPC_RATE_MATCH
;
ops
[
i
]
->
ldpc_enc
.
code_block_mode
=
1
;
ops
[
i
]
->
ldpc_enc
.
code_block_mode
=
1
;
ops
[
i
]
->
ldpc_enc
.
output
=
outputs
[
start_idx
+
i
];
ops
[
i
]
->
ldpc_enc
.
output
=
outputs
[
start_idx
+
i
];
ops
[
i
]
->
ldpc_enc
.
input
=
inputs
[
start_idx
+
i
];
ops
[
i
]
->
ldpc_enc
.
input
=
inputs
[
start_idx
+
i
];
...
...
openair1/PHY/NR_TRANSPORT/nr_dlsch_coding.c
View file @
1f42d8d5
...
@@ -368,20 +368,13 @@ int nr_dlsch_encoding(PHY_VARS_gNB *gNB,
...
@@ -368,20 +368,13 @@ int nr_dlsch_encoding(PHY_VARS_gNB *gNB,
impp
.
rv
=
rel15
->
rvIndex
[
0
];
impp
.
rv
=
rel15
->
rvIndex
[
0
];
int
nb_re_dmrs
=
int
nb_re_dmrs
=
(
rel15
->
dmrsConfigType
==
NFAPI_NR_DMRS_TYPE1
)
?
(
6
*
rel15
->
numDmrsCdmGrpsNoData
)
:
(
4
*
rel15
->
numDmrsCdmGrpsNoData
);
(
rel15
->
dmrsConfigType
==
NFAPI_NR_DMRS_TYPE1
)
?
(
6
*
rel15
->
numDmrsCdmGrpsNoData
)
:
(
4
*
rel15
->
numDmrsCdmGrpsNoData
);
impp
.
G
=
nr_get_G
(
rel15
->
rbSize
,
impp
.
G
=
nr_get_G
(
rel15
->
rbSize
,
rel15
->
NrOfSymbols
,
nb_re_dmrs
,
get_num_dmrs
(
rel15
->
dlDmrsSymbPos
),
harq
->
unav_res
,
rel15
->
NrOfSymbols
,
rel15
->
qamModOrder
[
0
],
rel15
->
nrOfLayers
);
nb_re_dmrs
,
get_num_dmrs
(
rel15
->
dlDmrsSymbPos
),
harq
->
unav_res
,
rel15
->
qamModOrder
[
0
],
rel15
->
nrOfLayers
);
uint8_t
tmp
[
BBDEV_LDPC_MAX_E
]
__attribute__
((
aligned
(
32
)));
uint8_t
*
e
=
tmp
;
int
r_offset
=
0
;
int
r_offset
=
0
;
for
(
int
r
=
0
;
r
<
impp
.
n_segments
;
r
++
)
{
for
(
int
r
=
0
;
r
<
impp
.
n_segments
;
r
++
)
{
impp
.
E
=
nr_get_E
(
impp
.
G
,
impp
.
n_segments
,
impp
.
Qm
,
rel15
->
nrOfLayers
,
r
);
impp
.
E
=
nr_get_E
(
impp
.
G
,
impp
.
n_segments
,
impp
.
Qm
,
rel15
->
nrOfLayers
,
r
);
ldpc_interface_offload
.
LDPCencoder
(
&
harq
->
c
[
r
],
&
e
,
&
impp
)
;
uint8_t
*
f
=
impp
.
output
+
r_offset
;
nr_interleaving_ldpc
(
impp
.
E
,
impp
.
Qm
,
e
,
impp
.
output
+
r_offset
);
ldpc_interface_offload
.
LDPCencoder
(
&
harq
->
c
[
r
],
&
f
,
&
impp
);
r_offset
+=
impp
.
E
;
r_offset
+=
impp
.
E
;
}
}
}
else
{
}
else
{
...
...
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_coding.c
View file @
1f42d8d5
...
@@ -164,12 +164,10 @@ int nr_ulsch_encoding(PHY_VARS_NR_UE *ue,
...
@@ -164,12 +164,10 @@ int nr_ulsch_encoding(PHY_VARS_NR_UE *ue,
}
}
start_meas
(
&
ue
->
ulsch_ldpc_encoding_stats
);
start_meas
(
&
ue
->
ulsch_ldpc_encoding_stats
);
if
(
ldpc_interface_offload
.
LDPCencoder
)
{
if
(
ldpc_interface_offload
.
LDPCencoder
)
{
uint8_t
tmp
[
BBDEV_LDPC_MAX_E
]
__attribute__
((
aligned
(
32
)));
uint8_t
*
e
=
tmp
;
for
(
int
j
=
0
;
j
<
impp
.
n_segments
;
j
++
)
{
for
(
int
j
=
0
;
j
<
impp
.
n_segments
;
j
++
)
{
impp
.
E
=
nr_get_E
(
G
,
impp
.
n_segments
,
impp
.
Qm
,
ulsch
->
pusch_pdu
.
nrOfLayers
,
j
);
impp
.
E
=
nr_get_E
(
G
,
impp
.
n_segments
,
impp
.
Qm
,
ulsch
->
pusch_pdu
.
nrOfLayers
,
j
);
ldpc_interface_offload
.
LDPCencoder
(
&
harq_process
->
c
[
j
],
&
e
,
&
impp
)
;
uint8_t
*
f
=
harq_process
->
f
+
r_offset
;
nr_interleaving_ldpc
(
impp
.
E
,
impp
.
Qm
,
e
,
harq_process
->
f
+
r_offset
);
ldpc_interface_offload
.
LDPCencoder
(
&
harq_process
->
c
[
j
],
&
f
,
&
impp
);
r_offset
+=
impp
.
E
;
r_offset
+=
impp
.
E
;
}
}
}
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