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
wangwenhui
OpenXG-RAN
Commits
b5a55ba9
Commit
b5a55ba9
authored
Jul 10, 2018
by
WEI-TAI CHEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In NR_UL_indication function call gNB_dlsch_ulsch_scheduler
parent
b7de9abb
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
447 additions
and
17 deletions
+447
-17
cmake_targets/CMakeLists.txt
cmake_targets/CMakeLists.txt
+2
-0
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
+428
-12
openair2/LAYER2/NR_MAC_gNB/mac.h
openair2/LAYER2/NR_MAC_gNB/mac.h
+13
-2
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
+4
-3
No files found.
cmake_targets/CMakeLists.txt
View file @
b5a55ba9
...
@@ -1342,6 +1342,7 @@ set(MAC_DIR ${OPENAIR2_DIR}/LAYER2/MAC)
...
@@ -1342,6 +1342,7 @@ set(MAC_DIR ${OPENAIR2_DIR}/LAYER2/MAC)
set
(
NR_MAC_DIR
${
OPENAIR2_DIR
}
/LAYER2/NR_MAC_gNB
)
set
(
NR_MAC_DIR
${
OPENAIR2_DIR
}
/LAYER2/NR_MAC_gNB
)
set
(
NR_UE_MAC_DIR
${
OPENAIR2_DIR
}
/LAYER2/NR_MAC_UE
)
set
(
NR_UE_MAC_DIR
${
OPENAIR2_DIR
}
/LAYER2/NR_MAC_UE
)
set
(
PHY_INTERFACE_DIR
${
OPENAIR2_DIR
}
/PHY_INTERFACE
)
set
(
PHY_INTERFACE_DIR
${
OPENAIR2_DIR
}
/PHY_INTERFACE
)
set
(
NR_PHY_INTERFACE_DIR
${
OPENAIR2_DIR
}
/NR_PHY_INTERFACE
)
set
(
NR_UE_PHY_INTERFACE_DIR
${
OPENAIR2_DIR
}
/NR_UE_PHY_INTERFACE
)
set
(
NR_UE_PHY_INTERFACE_DIR
${
OPENAIR2_DIR
}
/NR_UE_PHY_INTERFACE
)
set
(
RLC_DIR
${
OPENAIR2_DIR
}
/LAYER2/RLC
)
set
(
RLC_DIR
${
OPENAIR2_DIR
}
/LAYER2/RLC
)
set
(
RLC_UM_DIR
${
OPENAIR2_DIR
}
/LAYER2/RLC/UM_v9.3.0
)
set
(
RLC_UM_DIR
${
OPENAIR2_DIR
}
/LAYER2/RLC/UM_v9.3.0
)
...
@@ -1467,6 +1468,7 @@ set (MAC_SRC
...
@@ -1467,6 +1468,7 @@ set (MAC_SRC
${
NR_PHY_INTERFACE_DIR
}
/NR_IF_Module.c
${
NR_PHY_INTERFACE_DIR
}
/NR_IF_Module.c
${
NR_MAC_DIR
}
/main.c
${
NR_MAC_DIR
}
/main.c
${
NR_MAC_DIR
}
/config.c
${
NR_MAC_DIR
}
/config.c
${
NR_MAC_DIR
}
/gNB_scheduler.c
${
NR_MAC_DIR
}
/gNB_scheduler_bch.c
${
NR_MAC_DIR
}
/gNB_scheduler_bch.c
)
)
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler.c
View file @
b5a55ba9
This diff is collapsed.
Click to expand it.
openair2/LAYER2/NR_MAC_gNB/mac.h
View file @
b5a55ba9
...
@@ -122,13 +122,24 @@ typedef struct gNB_MAC_INST_s {
...
@@ -122,13 +122,24 @@ typedef struct gNB_MAC_INST_s {
nfapi_dl_config_request_pdu_t
dl_config_pdu_list
[
NFAPI_CC_MAX
][
MAX_NUM_DL_PDU
];
nfapi_dl_config_request_pdu_t
dl_config_pdu_list
[
NFAPI_CC_MAX
][
MAX_NUM_DL_PDU
];
/// Preallocated UL pdu list
/// Preallocated UL pdu list
nfapi_ul_config_request_pdu_t
ul_config_pdu_list
[
NFAPI_CC_MAX
][
MAX_NUM_UL_PDU
];
nfapi_ul_config_request_pdu_t
ul_config_pdu_list
[
NFAPI_CC_MAX
][
MAX_NUM_UL_PDU
];
/// Preallocated UL pdu list for ULSCH (n+k delay)
nfapi_ul_config_request_pdu_t
ul_config_pdu_list_tmp
[
NFAPI_CC_MAX
][
10
][
MAX_NUM_UL_PDU
];
/// NFAPI "Temporary" UL Config Request Structure, holds future UL_config requests
nfapi_ul_config_request_t
UL_req_tmp
[
NFAPI_CC_MAX
][
10
];
/// Preallocated HI_DCI0 pdu list
nfapi_hi_dci0_request_pdu_t
hi_dci0_pdu_list
[
NFAPI_CC_MAX
][
MAX_NUM_HI_DCI0_PDU
];
/// NFAPI HI/DCI0 Config Request Structure
/// NFAPI HI/DCI0 Config Request Structure
nfapi_hi_dci0_request_t
HI_DCI0_req
[
NFAPI_CC_MAX
];
nfapi_hi_dci0_request_t
HI_DCI0_req
[
NFAPI_CC_MAX
];
/// Prealocated TX pdu list
nfapi_tx_request_pdu_t
tx_request_pdu
[
NFAPI_CC_MAX
][
MAX_NUM_TX_REQUEST_PDU
];
/// NFAPI DL PDU structure
/// NFAPI DL PDU structure
nfapi_tx_request_t
TX_req
[
NFAPI_CC_MAX
];
nfapi_tx_request_t
TX_req
[
NFAPI_CC_MAX
];
UE_list_t
UE_list
;
UE_list_t
UE_list
;
/// UL handle
uint32_t
ul_handle
;
// MAC function execution peformance profiler
// MAC function execution peformance profiler
/// processing time of eNB scheduler
/// processing time of eNB scheduler
time_stats_t
eNB_scheduler
;
time_stats_t
eNB_scheduler
;
...
...
openair2/NR_PHY_INTERFACE/NR_IF_Module.c
View file @
b5a55ba9
...
@@ -281,15 +281,16 @@ void NR_UL_indication(NR_UL_IND_t *UL_info)
...
@@ -281,15 +281,16 @@ void NR_UL_indication(NR_UL_IND_t *UL_info)
if
(
nfapi_mode
!=
1
)
if
(
nfapi_mode
!=
1
)
{
{
if
(
ifi
->
CC_mask
==
((
1
<<
MAX_NUM_CCs
)
-
1
))
{
if
(
ifi
->
CC_mask
==
((
1
<<
MAX_NUM_CCs
)
-
1
))
{
/*
eNB_dlsch_ulsch_scheduler(module_id,
eNB_dlsch_ulsch_scheduler(module_id,
(UL_info->frame+((UL_info->subframe>(9-sf_ahead))?1:0)) % 1024,
(UL_info->frame+((UL_info->subframe>(9-sf_ahead))?1:0)) % 1024,
(UL_info->subframe+sf_ahead)%10);
(UL_info->subframe+sf_ahead)%10);
/*
*/
gNB_dlsch_ulsch_scheduler
(
module_id
,
gNB_dlsch_ulsch_scheduler
(
module_id
,
(
UL_info
->
frame
+
((
UL_info
->
subframe
>
(
9
-
sf_ahead
))
?
1
:
0
))
%
1024
,
(
UL_info
->
frame
+
((
UL_info
->
subframe
>
(
9
-
sf_ahead
))
?
1
:
0
))
%
1024
,
(
UL_info
->
subframe
+
sf_ahead
)
%
10
);
(
UL_info
->
subframe
+
sf_ahead
)
%
10
);
*/
ifi
->
CC_mask
=
0
;
ifi
->
CC_mask
=
0
;
sched_info
->
module_id
=
module_id
;
sched_info
->
module_id
=
module_id
;
...
...
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