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
bec34840
Commit
bec34840
authored
Dec 07, 2020
by
ChiehChun
Committed by
Robert Schmidt
Feb 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Find the largest contiguos region
parent
8f988e38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
+18
-7
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
View file @
bec34840
...
...
@@ -695,14 +695,25 @@ bool nr_simple_ulsch_preprocessor(module_id_t module_id,
uint16_t
*
vrb_map_UL
=
&
RC
.
nrmac
[
module_id
]
->
common_channels
[
CC_id
].
vrb_map_UL
[
sched_slot
*
MAX_BWP_SIZE
];
const
uint16_t
bwpSize
=
NRRIV2BW
(
sched_ctrl
->
active_ubwp
->
bwp_Common
->
genericParameters
.
locationAndBandwidth
,
MAX_BWP_SIZE
);
uint8_t
rballoc_mask
[
bwpSize
];
int
n_rb_sched
=
0
;
int
st
=
0
,
e
=
0
,
len
=
0
;
for
(
int
i
=
0
;
i
<
bwpSize
;
i
++
)
{
// calculate mask: init with "NOT" vrb_map_UL:
// if any RB in vrb_map_UL is blocked (1), the current RB will be 0
rballoc_mask
[
i
]
=
!
vrb_map_UL
[
i
];
n_rb_sched
+=
rballoc_mask
[
i
];
while
(
vrb_map_UL
[
i
]
==
1
)
i
++
;
st
=
i
;
while
(
vrb_map_UL
[
i
]
==
0
)
i
++
;
if
(
i
-
st
>
len
)
{
len
=
i
-
st
;
e
=
i
-
1
;
}
}
st
=
e
-
len
+
1
;
uint8_t
rballoc_mask
[
bwpSize
];
/* Calculate mask: if any RB in vrb_map_UL is blocked (1), the current RB will be 0 */
for
(
int
i
=
0
;
i
<
bwpSize
;
i
++
)
rballoc_mask
[
i
]
=
i
>=
st
&&
i
<=
e
;
/* proportional fair scheduling algorithm */
pf_ul
(
module_id
,
...
...
@@ -710,7 +721,7 @@ bool nr_simple_ulsch_preprocessor(module_id_t module_id,
slot
,
num_slots_per_tdd
,
&
UE_info
->
list
,
n_rb_sched
,
len
,
rballoc_mask
,
2
);
return
true
;
...
...
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