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
4b6ac06b
Commit
4b6ac06b
authored
Jan 17, 2023
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes
parent
ffdffeee
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
9 deletions
+15
-9
openair1/SIMULATION/NR_PHY/dlsim.c
openair1/SIMULATION/NR_PHY/dlsim.c
+2
-1
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
+3
-2
openair2/LAYER2/NR_MAC_UE/config_ue.c
openair2/LAYER2/NR_MAC_UE/config_ue.c
+7
-4
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
+3
-2
No files found.
openair1/SIMULATION/NR_PHY/dlsim.c
View file @
4b6ac06b
...
...
@@ -253,7 +253,8 @@ void nr_dlsim_preprocessor(module_id_t module_id,
sched_pdsch
->
time_domain_allocation
=
get_dl_tda
(
RC
.
nrmac
[
module_id
],
scc
,
slot
);
AssertFatal
(
sched_pdsch
->
time_domain_allocation
>=
0
,
"Unable to find PDSCH time domain allocation in list
\n
"
);
sched_pdsch
->
tda_info
=
nr_get_pdsch_tda_info
(
current_BWP
,
sched_pdsch
->
time_domain_allocation
);
NR_PDSCH_TimeDomainResourceAllocationList_t
*
tdalist
=
get_dl_tdalist
(
current_BWP
,
sched_ctrl
->
coreset
->
controlResourceSetId
,
sched_ctrl
->
search_space
->
searchSpaceType
->
present
,
NR_RNTI_C
);
sched_pdsch
->
tda_info
=
nr_get_pdsch_tda_info
(
tdalist
,
sched_pdsch
->
time_domain_allocation
);
sched_pdsch
->
dmrs_parms
=
get_dl_dmrs_params
(
scc
,
current_BWP
,
...
...
openair2/LAYER2/NR_MAC_COMMON/nr_mac_common.c
View file @
4b6ac06b
...
...
@@ -3315,6 +3315,7 @@ uint16_t nr_dci_size(const NR_UE_DL_BWP_t *DL_BWP,
dci_pdu
->
bwp_indicator
.
nbits
=
UL_BWP
->
n_ul_bwp
;
else
dci_pdu
->
bwp_indicator
.
nbits
=
2
;
LOG_D
(
NR_MAC
,
"BWP indicator nbits %d, num UL BWPs %d
\n
"
,
dci_pdu
->
bwp_indicator
.
nbits
,
UL_BWP
->
n_ul_bwp
);
size
+=
dci_pdu
->
bwp_indicator
.
nbits
;
// Freq domain assignment
if
(
pusch_Config
)
{
...
...
@@ -3332,7 +3333,7 @@ uint16_t nr_dci_size(const NR_UE_DL_BWP_t *DL_BWP,
}
else
dci_pdu
->
frequency_domain_assignment
.
nbits
=
(
int
)
ceil
(
log2
((
N_RB
*
(
N_RB
+
1
))
>>
1
));
LOG_D
(
NR_MAC
,
"PUSCH Frequency Domain Assignment nbits %d, N_RB %d
\n
"
,
dci_pdu
->
frequency_domain_assignment
.
nbits
,
N_RB
);
LOG_D
(
NR_MAC
,
"PUSCH Frequency Domain Assignment nbits %d, N_RB %d
\n
"
,
dci_pdu
->
frequency_domain_assignment
.
nbits
,
N_RB
);
size
+=
dci_pdu
->
frequency_domain_assignment
.
nbits
;
// Time domain assignment
NR_PUSCH_TimeDomainResourceAllocationList_t
*
tdalistul
=
get_ul_tdalist
(
UL_BWP
,
coreset
->
controlResourceSetId
,
ss_type
,
rnti_type
);
...
...
@@ -3341,7 +3342,7 @@ uint16_t nr_dci_size(const NR_UE_DL_BWP_t *DL_BWP,
else
num_entries
=
16
;
// num of entries in default table
dci_pdu
->
time_domain_assignment
.
nbits
=
(
int
)
ceil
(
log2
(
num_entries
));
LOG_D
(
NR_MAC
,
"PUSCH Time Domain Allocation nbits %d, pusch_Config %p
\n
"
,
dci_pdu
->
time_domain_assignment
.
nbits
,
pusch_Config
);
LOG_D
(
NR_MAC
,
"PUSCH Time Domain Allocation nbits %d, pusch_Config %p
\n
"
,
dci_pdu
->
time_domain_assignment
.
nbits
,
pusch_Config
);
size
+=
dci_pdu
->
time_domain_assignment
.
nbits
;
// Frequency Hopping flag
if
(
pusch_Config
&&
...
...
openair2/LAYER2/NR_MAC_UE/config_ue.c
View file @
4b6ac06b
...
...
@@ -549,8 +549,8 @@ void configure_current_BWP(NR_UE_MAC_INST_t *mac,
NR_BWP_t
ul_genericParameters
=
{
0
};
NR_BWP_DownlinkCommon_t
*
bwp_dlcommon
=
NULL
;
NR_BWP_UplinkCommon_t
*
bwp_ulcommon
=
NULL
;
DL_BWP
->
n_dl_bwp
=
1
;
UL_BWP
->
n_ul_bwp
=
1
;
DL_BWP
->
n_dl_bwp
=
0
;
UL_BWP
->
n_ul_bwp
=
0
;
if
(
scc
)
{
DL_BWP
->
bwp_id
=
0
;
...
...
@@ -616,13 +616,14 @@ void configure_current_BWP(NR_UE_MAC_INST_t *mac,
AssertFatal
(
bwp_downlink
!=
NULL
,
"Couldn't find DLBWP corresponding to BWP ID %ld
\n
"
,
DL_BWP
->
bwp_id
);
dl_genericParameters
=
bwp_downlink
->
bwp_Common
->
genericParameters
;
DL_BWP
->
pdsch_Config
=
bwp_downlink
->
bwp_Dedicated
->
pdsch_Config
->
choice
.
setup
;
DL_BWP
->
tdaList
=
bwp_downlink
->
bwp_Common
->
pdsch_ConfigCommon
->
choice
.
setup
->
pdsch_TimeDomainAllocationList
;
}
else
{
dl_genericParameters
=
bwp_dlcommon
->
genericParameters
;
DL_BWP
->
pdsch_Config
=
spCellConfigDedicated
->
initialDownlinkBWP
->
pdsch_Config
->
choice
.
setup
;
}
DL_BWP
->
tdaList
=
bwp_dlcommon
->
pdsch_ConfigCommon
->
choice
.
setup
->
pdsch_TimeDomainAllocationList
;
UL_BWP
->
tdaList
=
bwp_ulcommon
->
pusch_ConfigCommon
->
choice
.
setup
->
pusch_TimeDomainAllocationList
;
}
UL_BWP
->
msg3_DeltaPreamble
=
bwp_ulcommon
->
pusch_ConfigCommon
->
choice
.
setup
->
msg3_DeltaPreamble
;
NR_BWP_Uplink_t
*
bwp_uplink
=
NULL
;
...
...
@@ -637,6 +638,7 @@ void configure_current_BWP(NR_UE_MAC_INST_t *mac,
}
AssertFatal
(
bwp_uplink
!=
NULL
,
"Couldn't find ULBWP corresponding to BWP ID %ld
\n
"
,
UL_BWP
->
bwp_id
);
ul_genericParameters
=
bwp_uplink
->
bwp_Common
->
genericParameters
;
UL_BWP
->
tdaList
=
bwp_uplink
->
bwp_Common
->
pusch_ConfigCommon
->
choice
.
setup
->
pusch_TimeDomainAllocationList
;
UL_BWP
->
pusch_Config
=
bwp_uplink
->
bwp_Dedicated
->
pusch_Config
->
choice
.
setup
;
UL_BWP
->
pucch_Config
=
bwp_uplink
->
bwp_Dedicated
->
pucch_Config
->
choice
.
setup
;
UL_BWP
->
srs_Config
=
bwp_uplink
->
bwp_Dedicated
->
srs_Config
->
choice
.
setup
;
...
...
@@ -647,6 +649,7 @@ void configure_current_BWP(NR_UE_MAC_INST_t *mac,
UL_BWP
->
rach_ConfigCommon
=
bwp_uplink
->
bwp_Common
->
rach_ConfigCommon
->
choice
.
setup
;
}
else
{
UL_BWP
->
tdaList
=
bwp_ulcommon
->
pusch_ConfigCommon
->
choice
.
setup
->
pusch_TimeDomainAllocationList
;
UL_BWP
->
pusch_Config
=
spCellConfigDedicated
->
uplinkConfig
->
initialUplinkBWP
->
pusch_Config
->
choice
.
setup
;
UL_BWP
->
pucch_Config
=
spCellConfigDedicated
->
uplinkConfig
->
initialUplinkBWP
->
pucch_Config
->
choice
.
setup
;
UL_BWP
->
srs_Config
=
spCellConfigDedicated
->
uplinkConfig
->
initialUplinkBWP
->
srs_Config
->
choice
.
setup
;
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_primitives.c
View file @
4b6ac06b
...
...
@@ -2080,8 +2080,9 @@ void configure_UE_BWP(gNB_MAC_INST *nr_mac,
NR_BWP_Uplink_t
*
ul_bwp
=
NULL
;
NR_BWP_DownlinkDedicated_t
*
bwpd
=
NULL
;
NR_BWP_UplinkDedicated_t
*
ubwpd
=
NULL
;
DL_BWP
->
n_dl_bwp
=
1
;
UL_BWP
->
n_ul_bwp
=
1
;
// number of additional BWPs (excluding initial BWP)
DL_BWP
->
n_dl_bwp
=
0
;
UL_BWP
->
n_ul_bwp
=
0
;
int
old_dl_bwp_id
=
DL_BWP
->
bwp_id
;
int
old_ul_bwp_id
=
UL_BWP
->
bwp_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