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
ZhouShuya
OpenXG-RAN
Commits
0c730d7a
Commit
0c730d7a
authored
Nov 26, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mark PRACH in vrb_map_UL
parent
70c3915d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
+14
-0
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
View file @
0c730d7a
...
...
@@ -335,6 +335,20 @@ void schedule_nr_prach(module_id_t module_idP, frame_t frameP, sub_frame_t slotP
AssertFatal
(
1
==
0
,
"Invalid PRACH format"
);
}
}
const
int
start_rb
=
cfg
->
prach_config
.
num_prach_fd_occasions_list
[
fdm_index
].
k1
.
value
;
const
int
pusch_mu
=
scc
->
uplinkConfigCommon
->
frequencyInfoUL
->
scs_SpecificCarrierList
.
list
.
array
[
0
]
->
subcarrierSpacing
;
const
int
num_rb
=
get_N_RA_RB
(
cfg
->
prach_config
.
prach_sub_c_spacing
.
value
,
pusch_mu
);
uint16_t
*
vrb_map_UL
=
&
RC
.
nrmac
[
module_idP
]
->
common_channels
[
0
].
vrb_map_UL
[
slotP
*
275
];
const
uint16_t
symb_mask
=
((
1
<<
N_dur
)
-
1
)
<<
start_symbol
;
for
(
int
i
=
start_rb
;
i
<
start_rb
+
num_rb
;
++
i
)
{
AssertFatal
((
vrb_map_UL
[
i
]
&
symb_mask
)
==
0
,
"cannot reserve resources for PRACH: at RB %d, vrb_map_UL %x for symbols %x!
\n
"
,
i
,
vrb_map_UL
[
i
],
symb_mask
);
vrb_map_UL
[
i
]
|=
symb_mask
;
}
}
}
}
...
...
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