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
Michael Black
OpenXG-RAN
Commits
06e700a0
Commit
06e700a0
authored
5 years ago
by
Francesco Mani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bitmap for scheduling dlsch and ulsch in UE list
parent
84bed899
Branches unavailable
2023.w22
2023.w21
2023.w20
2023.w19
2023.w18
2023.w18b
2023.w16
2023.w15
2023.w14
2023.w13
2023.w12
2023.w11
2023.w11b
2023.w10
2023.w10b
2023.w09
2023.w08
2023.w08b
2023.w07
2023.w06
2023.w05
2023.w03
2023.w02
2022.42
2022.41
2022.w51
2022.w50
2022.w49
2022.w48
2022.w47
2022.w46
2022.w45
2022.w43
2022.w42
2022.w42b
2022.w41
2022.w40
2022.w39
2022.w38
2022.w37
2022.w37b
2022.w36
2022.w35
2022.w33
2022.w32
2022.w31
2022.w31b
2022.w30
2022.w29
2022.w26
2022.w25
2022.w24
2022.w24b
2022.w23
2022.w22
2022.w21
2022.w20
2022.w19
2022.w18
2022.w17
2022.w15
2022.w15b
2022.w14a
2022.w13
2022.w13b
2022.w13a
2022.w12
2022.w10
2022.w09
2022.w09b
2022.w08
2022.w08b
2022.w07
2022.w07b
2022.w06
2022.w06a
2022.w05
2022.w05b
2022.w03_hotfix
2022.w03_b
2022.w02
2022.w01
2021.wk46
2021.wk14_a
2021.wk13_d
2021.wk13_c
2021.w51_c
2021.w51_a
2021.w50_a
2021.w49_b
2021.w49_a
2021.w48
2021.w47
2021.w46
2021.w46-powder
2021.w45
2021.w45_b
2021.w44
2021.w43
2021.w42
2021.w37
2021.w36
2021.w35
2021.w34
2021.w33
2021.w32
2021.w31
2021.w30
2021.w29
2021.w28
2021.w27
2021.w26
2021.w25
2021.w24
2021.w23
2021.w22
2021.w20
2021.w19
2021.w18_b
2021.w18_a
2021.w17_b
2021.w16
2021.w15
2021.w14
2021.w13_a
2021.w12
2021.w11
2021.w10
2021.w09
2021.w08
2021.w06
2021.w05
2021.w04
2021.w02
2020.w51_2
2020.w51
2020.w50
2020.w49
2020.w48_2
2020.w48
2020.w47
2020.w46_2
2020.w46
2020.w45_2
2020.w45
2020.w44
2020.w42_2
2020.w42
2020.w41
2020.w39
2020.w38
2020.w37
2020.w36
2020.w34
2020.w33
2020.w31
2020.w30
2020.w29
2020.w28
2020.w26
2020.w25
2020.w24
2020.w23
2020.w22
2020.w19
setparam
flexran-eol
benetel_phase_rotation
benetel_gnb_rel_2.0
benetel_gnb_rel_1.0
benetel_enb_rel_2.0
benetel_enb_rel_1.0
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
19 deletions
+25
-19
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
+22
-15
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
+3
-4
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
View file @
06e700a0
...
...
@@ -326,6 +326,11 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
protocol_ctxt_t
ctxt
;
int
CC_id
;
int
UE_id
;
uint64_t
*
dlsch_in_slot_bitmap
=
NULL
;
uint64_t
*
ulsch_in_slot_bitmap
=
NULL
;
if
(
phy_test
)
UE_id
=
0
;
NR_COMMON_channels_t
*
cc
=
RC
.
nrmac
[
module_idP
]
->
common_channels
;
...
...
@@ -340,23 +345,25 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
RC
.
nrmac
[
module_idP
]
->
frame
=
frame_rxP
;
RC
.
nrmac
[
module_idP
]
->
slot
=
slot_rxP
;
uint64_t
*
dlsch_in_slot_bitmap
=
&
RC
.
nrmac
[
module_idP
]
->
dlsch_in_slot_bitmap
;
// static bitmap signaling which slot in a tdd period contains dlsch
uint64_t
*
ulsch_in_slot_bitmap
=
&
RC
.
nrmac
[
module_idP
]
->
ulsch_in_slot_bitmap
;
// static bitmap signaling which slot in a tdd period contains ulsch
if
(
phy_test
)
{
dlsch_in_slot_bitmap
=
&
RC
.
nrmac
[
module_idP
]
->
UE_list
.
dlsch_in_slot_bitmap
[
UE_id
];
// static bitmap signaling which slot in a tdd period contains dlsch
ulsch_in_slot_bitmap
=
&
RC
.
nrmac
[
module_idP
]
->
UE_list
.
ulsch_in_slot_bitmap
[
UE_id
];
// static bitmap signaling which slot in a tdd period contains ulsch
// hardcoding dlsch to be in slot 1
if
(
phy_test
&&
!
(
slot_txP
%
cc
->
num_slots_per_tdd
))
{
if
(
slot_txP
==
0
)
*
dlsch_in_slot_bitmap
=
0x02
;
else
*
dlsch_in_slot_bitmap
=
0x00
;
}
// hardcoding dlsch to be in slot 1
if
(
!
(
slot_txP
%
cc
->
num_slots_per_tdd
))
{
if
(
slot_txP
==
0
)
*
dlsch_in_slot_bitmap
=
0x02
;
else
*
dlsch_in_slot_bitmap
=
0x00
;
}
// hardcoding ulsch to be in slot 8
if
(
phy_test
&&
!
(
slot_rxP
%
cc
->
num_slots_per_tdd
))
{
if
(
slot_rxP
==
0
)
*
ulsch_in_slot_bitmap
=
0x100
;
else
*
ulsch_in_slot_bitmap
=
0x00
;
// hardcoding ulsch to be in slot 8
if
(
!
(
slot_rxP
%
cc
->
num_slots_per_tdd
))
{
if
(
slot_rxP
==
0
)
*
ulsch_in_slot_bitmap
=
0x100
;
else
*
ulsch_in_slot_bitmap
=
0x00
;
}
}
// Check if there are downlink symbols in the slot,
...
...
This diff is collapsed.
Click to expand it.
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
View file @
06e700a0
...
...
@@ -122,9 +122,11 @@ typedef struct {
boolean_t
active
[
MAX_MOBILES_PER_GNB
];
rnti_t
rnti
[
MAX_MOBILES_PER_GNB
];
NR_CellGroupConfig_t
*
secondaryCellGroup
[
MAX_MOBILES_PER_GNB
];
uint64_t
dlsch_in_slot_bitmap
[
MAX_MOBILES_PER_GNB
];
// static bitmap signaling which slot in a tdd period contains dlsch
uint64_t
ulsch_in_slot_bitmap
[
MAX_MOBILES_PER_GNB
];
// static bitmap signaling which slot in a tdd period contains ulsch
}
NR_UE_list_t
;
/*! \brief top level
e
NB MAC structure */
/*! \brief top level
g
NB MAC structure */
typedef
struct
gNB_MAC_INST_s
{
/// Ethernet parameters for northbound midhaul interface
eth_params_t
eth_params_n
;
...
...
@@ -155,9 +157,6 @@ typedef struct gNB_MAC_INST_s {
nfapi_nr_tx_data_request_t
TX_req
[
NFAPI_CC_MAX
];
NR_UE_list_t
UE_list
;
uint64_t
dlsch_in_slot_bitmap
;
// static bitmap signaling which slot in a tdd period contains dlsch
uint64_t
ulsch_in_slot_bitmap
;
// static bitmap signaling which slot in a tdd period contains ulsch
/// UL handle
uint32_t
ul_handle
;
...
...
This diff is collapsed.
Click to expand it.
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