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
fe671a88
Commit
fe671a88
authored
Jul 29, 2024
by
francescomani
Committed by
Robert Schmidt
Nov 17, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
take into account the option to have initial pucch when scheduling UCI on PUSCH
parent
5bb38187
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
39 deletions
+54
-39
openair1/PHY/impl_defs_nr.h
openair1/PHY/impl_defs_nr.h
+0
-10
openair2/LAYER2/NR_MAC_UE/mac_defs.h
openair2/LAYER2/NR_MAC_UE/mac_defs.h
+9
-0
openair2/LAYER2/NR_MAC_UE/mac_proto.h
openair2/LAYER2/NR_MAC_UE/mac_proto.h
+1
-1
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
+7
-3
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
+37
-25
No files found.
openair1/PHY/impl_defs_nr.h
View file @
fe671a88
...
...
@@ -487,16 +487,6 @@ typedef enum {
reserved
=
7
}
PUCCH_MaxCodeRate_t
;
typedef
struct
{
pucch_format_nr_t
format
;
uint8_t
startingSymbolIndex
;
uint8_t
nrofSymbols
;
uint16_t
PRB_offset
;
uint8_t
nb_CS_indexes
;
uint8_t
initial_CS_indexes
[
MAX_NB_CYCLIC_SHIFT
];
}
initial_pucch_resource_t
;
/***********************************************************************
*
* FUNCTIONALITY : Scheduling Request Configuration (SR)
...
...
openair2/LAYER2/NR_MAC_UE/mac_defs.h
View file @
fe671a88
...
...
@@ -184,6 +184,15 @@ typedef enum {
#undef UE_STATE
}
NR_UE_L2_STATE_t
;
typedef
struct
{
pucch_format_nr_t
format
;
uint8_t
startingSymbolIndex
;
uint8_t
nrofSymbols
;
uint16_t
PRB_offset
;
uint8_t
nb_CS_indexes
;
uint8_t
initial_CS_indexes
[
MAX_NB_CYCLIC_SHIFT
];
}
initial_pucch_resource_t
;
typedef
enum
{
GO_TO_IDLE
,
DETACH
,
...
...
openair2/LAYER2/NR_MAC_UE/mac_proto.h
View file @
fe671a88
...
...
@@ -210,7 +210,7 @@ void set_harq_status(NR_UE_MAC_INST_t *mac,
int
slot
);
bool
get_downlink_ack
(
NR_UE_MAC_INST_t
*
mac
,
frame_t
frame
,
int
slot
,
PUCCH_sched_t
*
pucch
);
initial_pucch_resource_t
get_initial_pucch_resource
(
const
int
idx
);
void
multiplex_pucch_resource
(
NR_UE_MAC_INST_t
*
mac
,
PUCCH_sched_t
*
pucch
,
int
num_res
);
int16_t
get_pucch_tx_power_ue
(
NR_UE_MAC_INST_t
*
mac
,
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_procedures.c
View file @
fe671a88
...
...
@@ -1514,6 +1514,11 @@ void set_harq_status(NR_UE_MAC_INST_t *mac,
current_harq
->
dai_cumul
);
}
initial_pucch_resource_t
get_initial_pucch_resource
(
const
int
idx
)
{
return
initial_pucch_resource
[
idx
];
}
int
nr_ue_configure_pucch
(
NR_UE_MAC_INST_t
*
mac
,
int
slot
,
frame_t
frame
,
...
...
@@ -1534,10 +1539,9 @@ int nr_ue_configure_pucch(NR_UE_MAC_INST_t *mac,
LOG_D
(
NR_MAC
,
"initial_pucch_id %d, pucch_resource %p
\n
"
,
pucch
->
initial_pucch_id
,
pucch
->
pucch_resource
);
// configure pucch from Table 9.2.1-1
// only for ack/nack
if
(
pucch
->
initial_pucch_id
>
-
1
&&
pucch
->
pucch_resource
==
NULL
)
{
if
(
pucch
->
initial_pucch_id
>
-
1
&&
pucch
->
pucch_resource
==
NULL
)
{
const
int
idx
=
*
current_UL_BWP
->
pucch_ConfigCommon
->
pucch_ResourceCommon
;
const
initial_pucch_resource_t
pucch_resourcecommon
=
initial_pucch_resource
[
idx
]
;
const
initial_pucch_resource_t
pucch_resourcecommon
=
get_initial_pucch_resource
(
idx
)
;
pucch_pdu
->
format_type
=
pucch_resourcecommon
.
format
;
pucch_pdu
->
start_symbol_index
=
pucch_resourcecommon
.
startingSymbolIndex
;
pucch_pdu
->
nr_of_symbols
=
pucch_resourcecommon
.
nrofSymbols
;
...
...
openair2/LAYER2/NR_MAC_UE/nr_ue_scheduler.c
View file @
fe671a88
...
...
@@ -2322,7 +2322,11 @@ void build_ssb_to_ro_map(NR_UE_MAC_INST_t *mac)
LOG_D
(
NR_MAC
,
"Map SSB to RO done
\n
"
);
}
static
bool
schedule_uci_on_pusch
(
NR_UE_MAC_INST_t
*
mac
,
frame_t
frame_tx
,
int
slot_tx
,
const
PUCCH_sched_t
*
pucch
)
static
bool
schedule_uci_on_pusch
(
NR_UE_MAC_INST_t
*
mac
,
frame_t
frame_tx
,
int
slot_tx
,
const
PUCCH_sched_t
*
pucch
,
NR_UE_UL_BWP_t
*
current_UL_BWP
)
{
fapi_nr_ul_config_request_pdu_t
*
ulcfg_pdu
=
lockGet_ul_iterator
(
mac
,
frame_tx
,
slot_tx
);
if
(
!
ulcfg_pdu
)
...
...
@@ -2337,6 +2341,13 @@ static bool schedule_uci_on_pusch(NR_UE_MAC_INST_t *mac, frame_t frame_tx, int s
NR_PUCCH_Resource_t
*
pucchres
=
pucch
->
pucch_resource
;
int
nr_of_symbols
=
0
;
int
start_symbol_index
=
0
;
if
(
pucch
->
initial_pucch_id
>
-
1
&&
pucch
->
pucch_resource
==
NULL
)
{
const
int
idx
=
*
current_UL_BWP
->
pucch_ConfigCommon
->
pucch_ResourceCommon
;
const
initial_pucch_resource_t
pucch_resourcecommon
=
get_initial_pucch_resource
(
idx
);
start_symbol_index
=
pucch_resourcecommon
.
startingSymbolIndex
;
nr_of_symbols
=
pucch_resourcecommon
.
nrofSymbols
;
}
else
{
switch
(
pucchres
->
format
.
present
)
{
case
NR_PUCCH_Resource__format_PR_format0
:
nr_of_symbols
=
pucchres
->
format
.
choice
.
format0
->
nrofSymbols
;
...
...
@@ -2361,6 +2372,7 @@ static bool schedule_uci_on_pusch(NR_UE_MAC_INST_t *mac, frame_t frame_tx, int s
default
:
AssertFatal
(
false
,
"Undefined PUCCH format
\n
"
);
}
}
int
final_symbol
=
nr_of_symbols
+
start_symbol_index
;
// PUCCH overlapping in time with PUSCH
if
(
start_symbol_index
<
end_pusch
&&
final_symbol
>
start_pusch
)
{
...
...
@@ -2468,7 +2480,7 @@ void nr_ue_pucch_scheduler(NR_UE_MAC_INST_t *mac, frame_t frameP, int slotP)
mac
->
nr_ue_emul_l1
.
num_csi_reports
=
pucch
[
j
].
n_csi
;
// checking if we need to schedule pucch[j] on PUSCH
if
(
schedule_uci_on_pusch
(
mac
,
frameP
,
slotP
,
&
pucch
[
j
]))
if
(
schedule_uci_on_pusch
(
mac
,
frameP
,
slotP
,
&
pucch
[
j
]
,
mac
->
current_UL_BWP
))
continue
;
fapi_nr_ul_config_request_pdu_t
*
pdu
=
lockGet_ul_config
(
mac
,
frameP
,
slotP
,
FAPI_NR_UL_CONFIG_TYPE_PUCCH
);
...
...
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