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
2360925e
Commit
2360925e
authored
Sep 26, 2023
by
luis_pereira87
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverse bits in UCI message when using polar encoder/decoder
parent
58f6cb2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
openair1/PHY/NR_TRANSPORT/pucch_rx.c
openair1/PHY/NR_TRANSPORT/pucch_rx.c
+6
-2
openair1/PHY/NR_UE_TRANSPORT/pucch_nr.c
openair1/PHY/NR_UE_TRANSPORT/pucch_nr.c
+3
-1
No files found.
openair1/PHY/NR_TRANSPORT/pucch_rx.c
View file @
2360925e
...
...
@@ -1693,12 +1693,16 @@ void nr_decode_pucch2(PHY_VARS_gNB *gNB,
// run polar decoder on llrs
decoderState
=
polar_decoder_int16
((
int16_t
*
)
llrs
,
decodedPayload
,
0
,
NR_POLAR_UCI_PUCCH_MESSAGE_TYPE
,
nb_bit
,
pucch_pdu
->
prb_size
);
LOG_D
(
PHY
,
"UCI decoderState %d, payload[0] %llu
\n
"
,
decoderState
,(
unsigned
long
long
)
decodedPayload
[
0
]);
// Decoder reversal
decodedPayload
[
0
]
=
reverse_bits
(
decodedPayload
[
0
],
nb_bit
);
if
(
decoderState
>
0
)
decoderState
=
1
;
corr_dB
=
dB_fixed64
(
corr
);
LOG_D
(
PHY
,
"metric %d dB
\n
"
,
corr_dB
);
}
LOG_D
(
PHY
,
"UCI decoderState %d, payload[0] %llu
\n
"
,
decoderState
,
(
unsigned
long
long
)
decodedPayload
[
0
]);
// estimate CQI for MAC (from antenna port 0 only)
// TODO this computation is wrong -> to be ignored at MAC for now
int
SNRtimes10
=
dB_fixed_times10
(
signal_energy_nodc
((
int32_t
*
)
&
rxdataF
[
0
][
soffset
+
(
l2
*
frame_parms
->
ofdm_symbol_size
)
+
re_offset
[
0
]],
...
...
@@ -1761,7 +1765,7 @@ void nr_decode_pucch2(PHY_VARS_gNB *gNB,
}
bit_left
=
pucch_pdu
->
bit_len_csi_part1
-
((
csi_part1_bytes
-
1
)
<<
3
);
uci_pdu
->
csi_part1
.
csi_part1_payload
[
i
]
=
decodedPayload
[
0
]
&
((
1
<<
bit_left
)
-
1
);
decodedPayload
[
0
]
=
pucch_pdu
->
bit_len_csi_part1
<
64
?
decodedPayload
[
0
]
>>
pucch_pdu
->
bit_len_csi_part1
:
0
;
decodedPayload
[
0
]
=
pucch_pdu
->
bit_len_csi_part1
<
64
?
decodedPayload
[
0
]
>>
bit_left
:
0
;
}
if
(
pucch_pdu
->
bit_len_csi_part2
>
0
)
{
...
...
openair1/PHY/NR_UE_TRANSPORT/pucch_nr.c
View file @
2360925e
...
...
@@ -644,7 +644,9 @@ static void nr_uci_encoding(uint64_t payload,
b
[
7
]
=
b
[
0
];
AssertFatal
(
nrofPRB
<=
16
,
"Number of PRB >16
\n
"
);
}
else
if
(
A
>=
12
)
{
AssertFatal
(
A
<
65
,
"Polar encoding not supported yet for UCI with more than 64 bits
\n
"
);
// Encoder reversal
payload
=
reverse_bits
(
payload
,
A
);
polar_encoder_fast
(
&
payload
,
b
,
0
,
0
,
NR_POLAR_UCI_PUCCH_MESSAGE_TYPE
,
A
,
...
...
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