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
b04fa5f7
Commit
b04fa5f7
authored
Jun 05, 2026
by
Francesco Mani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix for actual coded ACK bits in case of A < 2
Signed-off-by:
Francesco Mani
<
email@francescomani.it
>
parent
8542b813
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
openair1/PHY/NR_UE_TRANSPORT/nr_transport_ue.h
openair1/PHY/NR_UE_TRANSPORT/nr_transport_ue.h
+2
-1
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_ue.c
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_ue.c
+12
-5
No files found.
openair1/PHY/NR_UE_TRANSPORT/nr_transport_ue.h
View file @
b04fa5f7
...
@@ -117,7 +117,8 @@ typedef struct {
...
@@ -117,7 +117,8 @@ typedef struct {
typedef
struct
{
typedef
struct
{
uint16_t
Q_dash_ACK
;
// number of coded HARQ-ACK symbols
uint16_t
Q_dash_ACK
;
// number of coded HARQ-ACK symbols
uint16_t
E_uci_ACK
;
// number of coded HARQ-ACK bits
uint16_t
E_uci_ACK
;
// number of coded HARQ-ACK bits (including reserved ones)
uint16_t
E_uci_ACK_actual
;
// actual number of coded HARQ-ACK bits
uint16_t
Q_dash_CSI1
;
// number of coded CSI part 1 symbols
uint16_t
Q_dash_CSI1
;
// number of coded CSI part 1 symbols
uint16_t
E_uci_CSI1
;
// number of coded CSI part 1 bits
uint16_t
E_uci_CSI1
;
// number of coded CSI part 1 bits
uint16_t
Q_dash_CSI2
;
// number of coded CSI part 2 symbols
uint16_t
Q_dash_CSI2
;
// number of coded CSI part 2 symbols
...
...
openair1/PHY/NR_UE_TRANSPORT/nr_ulsch_ue.c
View file @
b04fa5f7
...
@@ -638,9 +638,14 @@ static rate_match_info_uci_t calc_rate_match_info_uci(const NR_UE_ULSCH_t *ulsch
...
@@ -638,9 +638,14 @@ static rate_match_info_uci_t calc_rate_match_info_uci(const NR_UE_ULSCH_t *ulsch
rminfo
.
O_ack
=
(
pusch_pdu
->
pusch_uci
.
harq_ack_bit_length
<=
2
)
?
2
:
pusch_pdu
->
pusch_uci
.
harq_ack_bit_length
;
rminfo
.
O_ack
=
(
pusch_pdu
->
pusch_uci
.
harq_ack_bit_length
<=
2
)
?
2
:
pusch_pdu
->
pusch_uci
.
harq_ack_bit_length
;
const
int
nlqm
=
pusch_pdu
->
nrOfLayers
*
pusch_pdu
->
qam_mod_order
;
// product of number of layers and modulation order
const
int
nlqm
=
pusch_pdu
->
nrOfLayers
*
pusch_pdu
->
qam_mod_order
;
// product of number of layers and modulation order
// get the number of coded HARQ-ACK symbols and bits, TS 38.212 section 6.3.2.4.1.1
// get the number of coded HARQ-ACK symbols and bits, TS 38.212 section 6.3.2.4.1.1
(considering reservetion)
rminfo
.
Q_dash_ACK
=
get_Qd
(
rminfo
.
O_ack
,
beta
,
alpha
,
sumKr
,
s1
,
s2
,
0
);
rminfo
.
Q_dash_ACK
=
get_Qd
(
rminfo
.
O_ack
,
beta
,
alpha
,
sumKr
,
s1
,
s2
,
0
);
rminfo
.
E_uci_ACK
=
rminfo
.
Q_dash_ACK
*
nlqm
;
rminfo
.
E_uci_ACK
=
rminfo
.
Q_dash_ACK
*
nlqm
;
// actual number of coded HARQ-ACK bits to place
if
(
pusch_pdu
->
pusch_uci
.
harq_ack_bit_length
<=
2
)
{
uint16_t
Q_dash_ACK_actual
=
get_Qd
(
pusch_pdu
->
pusch_uci
.
harq_ack_bit_length
,
beta
,
alpha
,
sumKr
,
s1
,
s2
,
0
);
rminfo
.
E_uci_ACK_actual
=
Q_dash_ACK_actual
*
nlqm
;
}
// get beta offset for csi
// get beta offset for csi
const
double
beta_csi1
=
get_beta_offset_csi
(
pusch_pdu
->
pusch_uci
.
beta_offset_csi1
);
const
double
beta_csi1
=
get_beta_offset_csi
(
pusch_pdu
->
pusch_uci
.
beta_offset_csi1
);
...
@@ -849,7 +854,7 @@ static void map_overlapped_ack(uci_on_pusch_bit_type_t *template,
...
@@ -849,7 +854,7 @@ static void map_overlapped_ack(uci_on_pusch_bit_type_t *template,
const
int
placeholder_start
=
(
pusch_pdu
->
pusch_uci
.
harq_ack_bit_length
==
1
)
?
1
:
2
;
const
int
placeholder_start
=
(
pusch_pdu
->
pusch_uci
.
harq_ack_bit_length
==
1
)
?
1
:
2
;
const
int
Qm
=
pusch_pdu
->
qam_mod_order
;
const
int
Qm
=
pusch_pdu
->
qam_mod_order
;
uint32_t
ack_bits_marked
=
0
;
uint32_t
ack_bits_marked
=
0
;
for
(
uint8_t
sym_iter
=
l1_c
;
sym_iter
<
pusch_pdu
->
nr_of_symbols
&&
ack_bits_marked
<
G_ack
;
sym_iter
++
)
{
for
(
uint8_t
sym_iter
=
l1_c
;
sym_iter
<
pusch_pdu
->
nr_of_symbols
;
sym_iter
++
)
{
const
uint32_t
num_reserved_bits_on_sym
=
count_by_sym
[
sym_iter
];
const
uint32_t
num_reserved_bits_on_sym
=
count_by_sym
[
sym_iter
];
if
(
num_reserved_bits_on_sym
==
0
)
if
(
num_reserved_bits_on_sym
==
0
)
continue
;
continue
;
...
@@ -861,7 +866,9 @@ static void map_overlapped_ack(uci_on_pusch_bit_type_t *template,
...
@@ -861,7 +866,9 @@ static void map_overlapped_ack(uci_on_pusch_bit_type_t *template,
template
[
pos
]
=
BIT_TYPE_ULSCH
;
template
[
pos
]
=
BIT_TYPE_ULSCH
;
}
}
// pass 2: mark selected positions as ACK_RESERVED or PLACEHOLDER
// pass 2: mark selected positions as ACK_RESERVED or PLACEHOLDER
const
uint32_t
num_ack_remaining
=
G_ack
-
ack_bits_marked
;
const
int32_t
num_ack_remaining
=
G_ack
-
ack_bits_marked
;
if
(
num_ack_remaining
<=
0
)
continue
;
const
uint32_t
d_factor_re
=
get_d_factor_re
(
num_ack_remaining
,
num_reserved_bits_on_sym
);
const
uint32_t
d_factor_re
=
get_d_factor_re
(
num_ack_remaining
,
num_reserved_bits_on_sym
);
for
(
uint32_t
i
=
0
;
i
<
num_reserved_bits_on_sym
&&
ack_bits_marked
<
G_ack
;
i
+=
d_factor_re
)
{
for
(
uint32_t
i
=
0
;
i
<
num_reserved_bits_on_sym
&&
ack_bits_marked
<
G_ack
;
i
+=
d_factor_re
)
{
uint32_t
pos
=
reserved_indices_on_this_sym
[
i
];
uint32_t
pos
=
reserved_indices_on_this_sym
[
i
];
...
@@ -1003,8 +1010,8 @@ static uci_on_pusch_bit_type_t *nr_data_control_mapping(const NR_UE_ULSCH_t *uls
...
@@ -1003,8 +1010,8 @@ static uci_on_pusch_bit_type_t *nr_data_control_mapping(const NR_UE_ULSCH_t *uls
map_arg
.
G_uci
=
rm_info
->
E_uci_CSI2
;
map_arg
.
G_uci
=
rm_info
->
E_uci_CSI2
;
map_uci_common
(
map_arg
);
map_uci_common
(
map_arg
);
if
(
G_ack
>
0
&&
rm_info
->
O_ack
==
2
)
{
if
(
rm_info
->
O_ack
==
2
)
{
map_overlapped_ack
(
template
,
G_ack
,
l1_c
,
pusch_pdu
,
positions_by_sym
,
count_by_sym
);
map_overlapped_ack
(
template
,
rm_info
->
E_uci_ACK_actual
,
l1_c
,
pusch_pdu
,
positions_by_sym
,
count_by_sym
);
}
}
apply_template_to_codeword
(
codeword
,
template
,
rm_info
,
codeword_len
,
ulsch_bits
,
cack
,
csi1
,
csi2
,
G_ulsch
);
apply_template_to_codeword
(
codeword
,
template
,
rm_info
,
codeword_len
,
ulsch_bits
,
cack
,
csi1
,
csi2
,
G_ulsch
);
...
...
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