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
f49dbf47
Commit
f49dbf47
authored
May 03, 2024
by
Jaroslava Fiedlerova
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/NR_UE_DCI_RX_improvements' into integration_2024_w18
parents
af498835
114fb5db
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
73 deletions
+44
-73
openair1/PHY/CODING/nrPolar_tools/nr_polar_decoder.c
openair1/PHY/CODING/nrPolar_tools/nr_polar_decoder.c
+20
-7
openair1/PHY/CODING/nrPolar_tools/nr_polar_encoder.c
openair1/PHY/CODING/nrPolar_tools/nr_polar_encoder.c
+6
-6
openair1/PHY/NR_UE_TRANSPORT/dci_nr.c
openair1/PHY/NR_UE_TRANSPORT/dci_nr.c
+18
-60
No files found.
openair1/PHY/CODING/nrPolar_tools/nr_polar_decoder.c
View file @
f49dbf47
...
@@ -621,7 +621,7 @@ uint32_t polar_decoder_int16(int16_t *input,
...
@@ -621,7 +621,7 @@ uint32_t polar_decoder_int16(int16_t *input,
uint8_t
ones_flag
,
uint8_t
ones_flag
,
int8_t
messageType
,
int8_t
messageType
,
uint16_t
messageLength
,
uint16_t
messageLength
,
uint8_t
aggregation_level
)
uint8_t
aggregation_level
)
{
{
t_nrPolar_params
*
polarParams
=
nr_polar_params
(
messageType
,
messageLength
,
aggregation_level
,
true
);
t_nrPolar_params
*
polarParams
=
nr_polar_params
(
messageType
,
messageLength
,
aggregation_level
,
true
);
...
@@ -638,7 +638,13 @@ uint32_t polar_decoder_int16(int16_t *input,
...
@@ -638,7 +638,13 @@ uint32_t polar_decoder_int16(int16_t *input,
#endif
#endif
int16_t
d_tilde
[
polarParams
->
N
];
int16_t
d_tilde
[
polarParams
->
N
];
nr_polar_rate_matching_int16
(
input
,
d_tilde
,
polarParams
->
rate_matching_pattern
,
polarParams
->
K
,
polarParams
->
N
,
polarParams
->
encoderLength
,
polarParams
->
i_bil
);
nr_polar_rate_matching_int16
(
input
,
d_tilde
,
polarParams
->
rate_matching_pattern
,
polarParams
->
K
,
polarParams
->
N
,
polarParams
->
encoderLength
,
polarParams
->
i_bil
);
for
(
int
i
=
0
;
i
<
polarParams
->
N
;
i
++
)
{
for
(
int
i
=
0
;
i
<
polarParams
->
N
;
i
++
)
{
if
(
d_tilde
[
i
]
<-
128
)
d_tilde
[
i
]
=-
128
;
if
(
d_tilde
[
i
]
<-
128
)
d_tilde
[
i
]
=-
128
;
...
@@ -792,13 +798,20 @@ uint32_t polar_decoder_int16(int16_t *input,
...
@@ -792,13 +798,20 @@ uint32_t polar_decoder_int16(int16_t *input,
printf
(
"
\n\n
"
);
printf
(
"
\n\n
"
);
#endif
#endif
#if
0
#if
def POLAR_CODING_DEBUG
printf("A %l
lx B %llx|%llx Cprime %llx|%llx (crc %x,rxcrc %llx
%d)\n",
printf
(
"A %l
x B %lx|%lx Cprime %lx|%lx (crc %x,rxcrc %lx, XOR %lx, bits
%d)
\n
"
,
Ar
,
Ar
,
B[1],B[0],Cprime[1],Cprime[0],crc,
B
[
1
],
rxcrc,polarParams->payloadBits);
B
[
0
],
Cprime
[
1
],
Cprime
[
0
],
crc
,
rxcrc
,
crc
^
rxcrc
,
polarParams
->
payloadBits
);
#endif
#endif
out
[
0
]
=
Ar
;
out
[
0
]
=
Ar
;
polarReturn
crc
^
rxcrc
;
polarReturn
crc
^
rxcrc
;
}
}
openair1/PHY/CODING/nrPolar_tools/nr_polar_encoder.c
View file @
f49dbf47
...
@@ -488,12 +488,12 @@ void build_polar_tables(t_nrPolar_params *polarParams) {
...
@@ -488,12 +488,12 @@ void build_polar_tables(t_nrPolar_params *polarParams) {
void
polar_encoder_fast
(
uint64_t
*
A
,
void
polar_encoder_fast
(
uint64_t
*
A
,
void
*
out
,
void
*
out
,
int32_t
crcmask
,
int32_t
crcmask
,
uint8_t
ones_flag
,
uint8_t
ones_flag
,
int8_t
messageType
,
int8_t
messageType
,
uint16_t
messageLength
,
uint16_t
messageLength
,
uint8_t
aggregation_level
)
{
uint8_t
aggregation_level
)
{
t_nrPolar_params
*
polarParams
=
nr_polar_params
(
messageType
,
messageLength
,
aggregation_level
,
false
);
t_nrPolar_params
*
polarParams
=
nr_polar_params
(
messageType
,
messageLength
,
aggregation_level
,
false
);
#ifdef POLAR_CODING_DEBUG
#ifdef POLAR_CODING_DEBUG
...
...
openair1/PHY/NR_UE_TRANSPORT/dci_nr.c
View file @
f49dbf47
...
@@ -680,36 +680,6 @@ static void nr_pdcch_unscrambling(c16_t *e_rx,
...
@@ -680,36 +680,6 @@ static void nr_pdcch_unscrambling(c16_t *e_rx,
}
}
}
}
/* This function compares the received DCI bits with
* re-encoded DCI bits and returns the number of mismatched bits
*/
static
uint16_t
nr_dci_false_detection
(
uint64_t
*
dci
,
int16_t
*
soft_in
,
int
encoded_length
,
int
rnti
,
int8_t
messageType
,
uint16_t
messageLength
,
uint8_t
aggregation_level
)
{
uint32_t
encoder_output
[
NR_MAX_DCI_SIZE_DWORD
];
polar_encoder_fast
(
dci
,
(
void
*
)
encoder_output
,
rnti
,
1
,
messageType
,
messageLength
,
aggregation_level
);
uint8_t
*
enout_p
=
(
uint8_t
*
)
encoder_output
;
uint16_t
x
=
0
;
for
(
int
i
=
0
;
i
<
encoded_length
/
8
;
i
++
)
{
x
+=
(
enout_p
[
i
]
&
1
)
^
((
soft_in
[
i
*
8
]
>>
15
)
&
1
);
x
+=
((
enout_p
[
i
]
>>
1
)
&
1
)
^
((
soft_in
[
i
*
8
+
1
]
>>
15
)
&
1
);
x
+=
((
enout_p
[
i
]
>>
2
)
&
1
)
^
((
soft_in
[
i
*
8
+
2
]
>>
15
)
&
1
);
x
+=
((
enout_p
[
i
]
>>
3
)
&
1
)
^
((
soft_in
[
i
*
8
+
3
]
>>
15
)
&
1
);
x
+=
((
enout_p
[
i
]
>>
4
)
&
1
)
^
((
soft_in
[
i
*
8
+
4
]
>>
15
)
&
1
);
x
+=
((
enout_p
[
i
]
>>
5
)
&
1
)
^
((
soft_in
[
i
*
8
+
5
]
>>
15
)
&
1
);
x
+=
((
enout_p
[
i
]
>>
6
)
&
1
)
^
((
soft_in
[
i
*
8
+
6
]
>>
15
)
&
1
);
x
+=
((
enout_p
[
i
]
>>
7
)
&
1
)
^
((
soft_in
[
i
*
8
+
7
]
>>
15
)
&
1
);
}
return
x
;
}
void
nr_dci_decoding_procedure
(
PHY_VARS_NR_UE
*
ue
,
void
nr_dci_decoding_procedure
(
PHY_VARS_NR_UE
*
ue
,
const
UE_nr_rxtx_proc_t
*
proc
,
const
UE_nr_rxtx_proc_t
*
proc
,
c16_t
*
pdcch_e_rx
,
c16_t
*
pdcch_e_rx
,
...
@@ -758,7 +728,7 @@ void nr_dci_decoding_procedure(PHY_VARS_NR_UE *ue,
...
@@ -758,7 +728,7 @@ void nr_dci_decoding_procedure(PHY_VARS_NR_UE *ue,
rel15
->
coreset
.
pdcch_dmrs_scrambling_id
,
rel15
->
coreset
.
pdcch_dmrs_scrambling_id
,
tmp_e
);
tmp_e
);
uint16
_t
crc
=
polar_decoder_int16
(
tmp_e
,
dci_estimation
,
1
,
NR_POLAR_DCI_MESSAGE_TYPE
,
dci_length
,
L
);
const
uint32
_t
crc
=
polar_decoder_int16
(
tmp_e
,
dci_estimation
,
1
,
NR_POLAR_DCI_MESSAGE_TYPE
,
dci_length
,
L
);
rnti_t
n_rnti
=
rel15
->
rnti
;
rnti_t
n_rnti
=
rel15
->
rnti
;
if
(
crc
==
n_rnti
)
{
if
(
crc
==
n_rnti
)
{
...
@@ -771,35 +741,23 @@ void nr_dci_decoding_procedure(PHY_VARS_NR_UE *ue,
...
@@ -771,35 +741,23 @@ void nr_dci_decoding_procedure(PHY_VARS_NR_UE *ue,
CCEind
,
CCEind
,
dci_length
,
dci_length
,
*
(
unsigned
long
long
*
)
dci_estimation
);
*
(
unsigned
long
long
*
)
dci_estimation
);
uint16_t
mb
=
nr_dci_false_detection
(
dci_estimation
,
tmp_e
,
L
*
108
,
n_rnti
,
NR_POLAR_DCI_MESSAGE_TYPE
,
dci_length
,
L
);
AssertFatal
(
dci_ind
->
number_of_dcis
<
sizeofArray
(
dci_ind
->
dci_list
),
"Fix allocation
\n
"
);
ue
->
dci_thres
=
(
ue
->
dci_thres
+
mb
)
/
2
;
fapi_nr_dci_indication_pdu_t
*
dci
=
dci_ind
->
dci_list
+
dci_ind
->
number_of_dcis
;
if
(
mb
>
(
ue
->
dci_thres
+
30
))
{
*
dci
=
(
fapi_nr_dci_indication_pdu_t
){
LOG_W
(
NR_PHY_DCI
,
.
rnti
=
n_rnti
,
"DCI false positive. Dropping DCI index %d. Mismatched bits: %d/%d. Current DCI threshold: %d
\n
"
,
.
n_CCE
=
CCEind
,
j
,
.
N_CCE
=
L
,
mb
,
.
dci_format
=
rel15
->
dci_format_options
[
k
],
L
*
108
,
.
ss_type
=
rel15
->
ss_type_options
[
k
],
ue
->
dci_thres
);
.
coreset_type
=
rel15
->
coreset
.
CoreSetType
,
continue
;
};
}
else
{
int
n_rb
,
rb_offset
;
AssertFatal
(
dci_ind
->
number_of_dcis
<
sizeofArray
(
dci_ind
->
dci_list
),
"Fix allocation
\n
"
);
get_coreset_rballoc
(
rel15
->
coreset
.
frequency_domain_resource
,
&
n_rb
,
&
rb_offset
);
fapi_nr_dci_indication_pdu_t
*
dci
=
dci_ind
->
dci_list
+
dci_ind
->
number_of_dcis
;
dci
->
cset_start
=
rel15
->
BWPStart
+
rb_offset
;
*
dci
=
(
fapi_nr_dci_indication_pdu_t
){
dci
->
payloadSize
=
dci_length
;
.
rnti
=
n_rnti
,
memcpy
(
dci
->
payloadBits
,
dci_estimation
,
(
dci_length
+
7
)
/
8
);
.
n_CCE
=
CCEind
,
dci_ind
->
number_of_dcis
++
;
.
N_CCE
=
L
,
break
;
// If DCI is found, no need to check for remaining DCI lengths
.
dci_format
=
rel15
->
dci_format_options
[
k
],
.
ss_type
=
rel15
->
ss_type_options
[
k
],
.
coreset_type
=
rel15
->
coreset
.
CoreSetType
,
};
int
n_rb
,
rb_offset
;
get_coreset_rballoc
(
rel15
->
coreset
.
frequency_domain_resource
,
&
n_rb
,
&
rb_offset
);
dci
->
cset_start
=
rel15
->
BWPStart
+
rb_offset
;
dci
->
payloadSize
=
dci_length
;
memcpy
(
dci
->
payloadBits
,
dci_estimation
,
(
dci_length
+
7
)
/
8
);
dci_ind
->
number_of_dcis
++
;
break
;
// If DCI is found, no need to check for remaining DCI lengths
}
}
else
{
}
else
{
LOG_D
(
NR_PHY_DCI
,
LOG_D
(
NR_PHY_DCI
,
"(%i.%i) Decoded crc %x does not match rnti %x for DCI format %d
\n
"
,
"(%i.%i) Decoded crc %x does not match rnti %x for DCI format %d
\n
"
,
...
...
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