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
380a2a55
Commit
380a2a55
authored
Feb 15, 2022
by
Hongzhi Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix for dtx detected
parent
1d0a7b38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
+8
-5
No files found.
openair1/PHY/NR_TRANSPORT/nr_ulsch_decoding.c
View file @
380a2a55
...
@@ -461,6 +461,7 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
...
@@ -461,6 +461,7 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
harq_process
->
round
=
nr_rv_to_round
(
pusch_pdu
->
pusch_data
.
rv_index
);
harq_process
->
round
=
nr_rv_to_round
(
pusch_pdu
->
pusch_data
.
rv_index
);
harq_process
->
new_rx
=
false
;
// flag to indicate if this is a new reception for this harq (initialized to false)
harq_process
->
new_rx
=
false
;
// flag to indicate if this is a new reception for this harq (initialized to false)
dtx_det
=
0
;
if
(
harq_process
->
round
==
0
)
{
if
(
harq_process
->
round
==
0
)
{
harq_process
->
new_rx
=
true
;
harq_process
->
new_rx
=
true
;
harq_process
->
ndi
=
pusch_pdu
->
pusch_data
.
new_data_indicator
;
harq_process
->
ndi
=
pusch_pdu
->
pusch_data
.
new_data_indicator
;
...
@@ -583,7 +584,7 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
...
@@ -583,7 +584,7 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
Kr_bytes
=
Kr
>>
3
;
Kr_bytes
=
Kr
>>
3
;
offset
=
0
;
offset
=
0
;
if
(
enable_ldpc_offload
)
{
if
(
(
enable_ldpc_offload
)
&&
(
dtx_det
==
0
)
)
{
if
(
harq_process
->
C
==
1
)
{
if
(
harq_process
->
C
==
1
)
{
if
(
A
>
3824
)
if
(
A
>
3824
)
...
@@ -603,7 +604,7 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
...
@@ -603,7 +604,7 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
memset
(
harq_process
->
c
[
r
],
0
,
Kr_bytes
);
memset
(
harq_process
->
c
[
r
],
0
,
Kr_bytes
);
//if ((dtx_det==0)&&(pusch_pdu->pusch_data.rv_index==0)){
//if ((dtx_det==0)&&(pusch_pdu->pusch_data.rv_index==0)){
if
(
dtx_det
==
0
){
//
if (dtx_det==0){
if
(
mcs
>
9
){
if
(
mcs
>
9
){
memcpy
((
&
z_ol
[
0
]),
ulsch_llr
+
r_offset
,
E
*
sizeof
(
short
));
memcpy
((
&
z_ol
[
0
]),
ulsch_llr
+
r_offset
,
E
*
sizeof
(
short
));
...
@@ -701,10 +702,11 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
...
@@ -701,10 +702,11 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
printf("llrprocbuf [%d] = %x adr %p\n", k, llrProcBuf[k], llrProcBuf+k);
printf("llrprocbuf [%d] = %x adr %p\n", k, llrProcBuf[k], llrProcBuf+k);
}
}
*/
*/
}
/*
}
else{
else{
dtx_det = 0;
no_iteration_ldpc = ulsch->max_ldpc_iterations+1;
no_iteration_ldpc = ulsch->max_ldpc_iterations+1;
}
}*/
bool
decodeSuccess
=
(
no_iteration_ldpc
<=
ulsch
->
max_ldpc_iterations
);
bool
decodeSuccess
=
(
no_iteration_ldpc
<=
ulsch
->
max_ldpc_iterations
);
if
(
decodeSuccess
)
{
if
(
decodeSuccess
)
{
...
@@ -751,7 +753,8 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
...
@@ -751,7 +753,8 @@ uint32_t nr_ulsch_decoding(PHY_VARS_gNB *phy_vars_gNB,
ulsch
->
last_iteration_cnt
=
no_iteration_ldpc
;
ulsch
->
last_iteration_cnt
=
no_iteration_ldpc
;
}
}
else
{
else
{
dtx_det
=
0
;
void
(
*
nr_processULSegment_ptr
)(
void
*
)
=
&
nr_processULSegment
;
void
(
*
nr_processULSegment_ptr
)(
void
*
)
=
&
nr_processULSegment
;
for
(
r
=
0
;
r
<
harq_process
->
C
;
r
++
)
{
for
(
r
=
0
;
r
<
harq_process
->
C
;
r
++
)
{
...
...
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