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
85843b3e
Commit
85843b3e
authored
Nov 20, 2020
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Isolate DMRS additional_pos, l_prime_mask in ULSCH
parent
0d243546
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
15 deletions
+10
-15
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
+10
-15
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_ulsch.c
View file @
85843b3e
...
...
@@ -596,6 +596,16 @@ void nr_schedule_ulsch(module_id_t module_id,
?
pusch_Config
->
dmrs_UplinkForPUSCH_MappingTypeA
->
choice
.
setup
:
pusch_Config
->
dmrs_UplinkForPUSCH_MappingTypeB
->
choice
.
setup
;
const
uint8_t
dmrs_config_type
=
NR_DMRS_UplinkConfig
->
dmrs_Type
==
NULL
?
0
:
1
;
const
pusch_dmrs_AdditionalPosition_t
additional_pos
=
NR_DMRS_UplinkConfig
->
dmrs_AdditionalPosition
==
NULL
?
2
:
(
*
NR_DMRS_UplinkConfig
->
dmrs_AdditionalPosition
==
NR_DMRS_UplinkConfig__dmrs_AdditionalPosition_pos3
?
3
:
*
NR_DMRS_UplinkConfig
->
dmrs_AdditionalPosition
);
const
pusch_maxLength_t
pusch_maxLength
=
NR_DMRS_UplinkConfig
->
maxLength
==
NULL
?
1
:
2
;
uint16_t
l_prime_mask
=
get_l_prime
(
NrOfSymbols
,
mapping_type
,
additional_pos
,
pusch_maxLength
);
uint8_t
mcs_table
=
0
;
if
(
transform_precoding
)
...
...
@@ -700,21 +710,6 @@ void nr_schedule_ulsch(module_id_t module_id,
else
pusch_pdu
->
pusch_identity
=
*
scc
->
physCellId
;
}
pusch_dmrs_AdditionalPosition_t
additional_pos
;
if
(
NR_DMRS_UplinkConfig
->
dmrs_AdditionalPosition
==
NULL
)
additional_pos
=
2
;
else
{
if
(
*
NR_DMRS_UplinkConfig
->
dmrs_AdditionalPosition
==
NR_DMRS_UplinkConfig__dmrs_AdditionalPosition_pos3
)
additional_pos
=
3
;
else
additional_pos
=
*
NR_DMRS_UplinkConfig
->
dmrs_AdditionalPosition
;
}
pusch_maxLength_t
pusch_maxLength
;
if
(
NR_DMRS_UplinkConfig
->
maxLength
==
NULL
)
pusch_maxLength
=
1
;
else
pusch_maxLength
=
2
;
uint16_t
l_prime_mask
=
get_l_prime
(
pusch_pdu
->
nr_of_symbols
,
mapping_type
,
additional_pos
,
pusch_maxLength
);
pusch_pdu
->
ul_dmrs_symb_pos
=
l_prime_mask
<<
pusch_pdu
->
start_symbol_index
;
pusch_pdu
->
num_dmrs_cdm_grps_no_data
=
1
;
...
...
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