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
795ed9a8
Commit
795ed9a8
authored
Feb 10, 2020
by
Francesco Mani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix in pucch configuration
parent
3e5682d8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
34 deletions
+38
-34
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
+4
-2
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
+34
-32
No files found.
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_phytest.c
View file @
795ed9a8
...
...
@@ -260,7 +260,9 @@ int configure_fapi_dl_Tx(int Mod_idP,
gNB_MAC_INST
*
nr_mac
=
RC
.
nrmac
[
Mod_idP
];
NR_COMMON_channels_t
*
cc
=
nr_mac
->
common_channels
;
NR_ServingCellConfigCommon_t
*
scc
=
cc
->
ServingCellConfigCommon
;
int
pucch_fb_timing
=
pucch_sched
->
ul_slot
-
slotP
;
nfapi_nr_dl_tti_request_pdu_t
*
dl_tti_pdcch_pdu
;
nfapi_nr_dl_tti_request_pdu_t
*
dl_tti_pdsch_pdu
;
int
TBS
;
...
...
@@ -355,7 +357,7 @@ int configure_fapi_dl_Tx(int Mod_idP,
dci_pdu_rel15
[
0
].
dai
=
(
pucch_sched
->
dai_c
-
1
)
&
3
;
dci_pdu_rel15
[
0
].
tpc
=
2
;
dci_pdu_rel15
[
0
].
pucch_resource_indicator
=
0
;
//FIXME this is fixed to 0 in phy test with only one user
dci_pdu_rel15
[
0
].
pdsch_to_harq_feedback_timing_indicator
=
pucch_
sched
->
ul_slot
-
slotP
;
//FIXME check on validity of indicator depending on type of DCI
dci_pdu_rel15
[
0
].
pdsch_to_harq_feedback_timing_indicator
=
pucch_
fb_timing
-
1
;
//FIXME valid only for format 1_0
LOG_D
(
MAC
,
"[gNB scheduler phytest] DCI type 1 payload: freq_alloc %d (%d,%d,%d), time_alloc %d, vrb to prb %d, mcs %d tb_scaling %d ndi %d rv %d
\n
"
,
dci_pdu_rel15
[
0
].
frequency_domain_assignment
,
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
795ed9a8
...
...
@@ -561,8 +561,7 @@ void nr_configure_pucch(nfapi_nr_pucch_pdu_t* pucch_pdu,
NR_PUCCH_ResourceSet_t
*
pucchresset
;
NR_PUCCH_FormatConfig_t
*
pucchfmt
;
NR_PUCCH_ResourceId_t
*
resource_id
=
NULL
;
NR_PUSCH_Config_t
*
pusch_Config
=
bwp
->
bwp_Dedicated
->
pusch_Config
->
choice
.
setup
;
long
*
pusch_id
=
pusch_Config
->
dataScramblingIdentityPUSCH
;
long
*
id0
=
NULL
;
int
n_list
,
n_set
;
uint16_t
N2
,
N3
;
...
...
@@ -570,38 +569,41 @@ void nr_configure_pucch(nfapi_nr_pucch_pdu_t* pucch_pdu,
pucch_pdu
->
bit_len_harq
=
O_ack
;
if
(
pusch_Config
->
dmrs_UplinkForPUSCH_MappingTypeA
!=
NULL
)
id0
=
pusch_Config
->
dmrs_UplinkForPUSCH_MappingTypeA
->
choice
.
setup
->
transformPrecodingDisabled
->
scramblingID0
;
if
(
pusch_Config
->
dmrs_UplinkForPUSCH_MappingTypeB
!=
NULL
)
id0
=
pusch_Config
->
dmrs_UplinkForPUSCH_MappingTypeB
->
choice
.
setup
->
transformPrecodingDisabled
->
scramblingID0
;
// hop flags and hopping id are valid for any BWP
switch
(
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
pucch_ConfigCommon
->
choice
.
setup
->
pucch_GroupHopping
){
case
0
:
// if neither, both disabled
pucch_pdu
->
group_hop_flag
=
0
;
pucch_pdu
->
sequence_hop_flag
=
0
;
break
;
case
1
:
// if enable, group enabled
pucch_pdu
->
group_hop_flag
=
1
;
pucch_pdu
->
sequence_hop_flag
=
0
;
break
;
case
2
:
// if disable, sequence disabled
pucch_pdu
->
group_hop_flag
=
0
;
pucch_pdu
->
sequence_hop_flag
=
1
;
break
;
default:
AssertFatal
(
1
==
0
,
"msg1 FDM identifier %ld undefined (0,1,2,3)
\n
"
,
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
rach_ConfigCommon
->
choice
.
setup
->
rach_ConfigGeneric
.
msg1_FDM
);
}
if
(
bwp
)
{
// This is not the InitialBWP
if
(
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
pucch_ConfigCommon
->
choice
.
setup
->
hoppingId
!=
NULL
)
pucch_pdu
->
hopping_id
=
*
scc
->
uplinkConfigCommon
->
initialUplinkBWP
->
pucch_ConfigCommon
->
choice
.
setup
->
hoppingId
;
else
pucch_pdu
->
hopping_id
=
*
scc
->
physCellId
;
NR_PUSCH_Config_t
*
pusch_Config
=
bwp
->
bwp_Dedicated
->
pusch_Config
->
choice
.
setup
;
long
*
pusch_id
=
pusch_Config
->
dataScramblingIdentityPUSCH
;
if
(
bwp
)
{
// This is not the InitialBWP
if
(
pusch_Config
->
dmrs_UplinkForPUSCH_MappingTypeA
!=
NULL
)
id0
=
pusch_Config
->
dmrs_UplinkForPUSCH_MappingTypeA
->
choice
.
setup
->
transformPrecodingDisabled
->
scramblingID0
;
if
(
pusch_Config
->
dmrs_UplinkForPUSCH_MappingTypeB
!=
NULL
)
id0
=
pusch_Config
->
dmrs_UplinkForPUSCH_MappingTypeB
->
choice
.
setup
->
transformPrecodingDisabled
->
scramblingID0
;
// hop flags and hopping id are valid for any BWP
switch
(
bwp
->
bwp_Common
->
pucch_ConfigCommon
->
choice
.
setup
->
pucch_GroupHopping
){
case
0
:
// if neither, both disabled
pucch_pdu
->
group_hop_flag
=
0
;
pucch_pdu
->
sequence_hop_flag
=
0
;
break
;
case
1
:
// if enable, group enabled
pucch_pdu
->
group_hop_flag
=
1
;
pucch_pdu
->
sequence_hop_flag
=
0
;
break
;
case
2
:
// if disable, sequence disabled
pucch_pdu
->
group_hop_flag
=
0
;
pucch_pdu
->
sequence_hop_flag
=
1
;
break
;
default:
AssertFatal
(
1
==
0
,
"Group hopping flag %ld undefined (0,1,2)
\n
"
,
bwp
->
bwp_Common
->
pucch_ConfigCommon
->
choice
.
setup
->
pucch_GroupHopping
);
}
if
(
bwp
->
bwp_Common
->
pucch_ConfigCommon
->
choice
.
setup
->
hoppingId
!=
NULL
)
pucch_pdu
->
hopping_id
=
*
bwp
->
bwp_Common
->
pucch_ConfigCommon
->
choice
.
setup
->
hoppingId
;
else
pucch_pdu
->
hopping_id
=
*
scc
->
physCellId
;
pucch_pdu
->
bwp_size
=
NRRIV2BW
(
bwp
->
bwp_Common
->
genericParameters
.
locationAndBandwidth
,
275
);
pucch_pdu
->
bwp_start
=
NRRIV2PRBOFFSET
(
bwp
->
bwp_Common
->
genericParameters
.
locationAndBandwidth
,
275
);
...
...
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