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
lizhongxiao
OpenXG-RAN
Commits
c9f2f54d
Commit
c9f2f54d
authored
Nov 08, 2021
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
using minRXTXTIMEpdsch in acknack scheduling (for common case)
parent
38089372
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
25 additions
and
16 deletions
+25
-16
openair1/SIMULATION/NR_PHY/dlsim.c
openair1/SIMULATION/NR_PHY/dlsim.c
+2
-2
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+2
-2
openair2/GNB_APP/gnb_config.c
openair2/GNB_APP/gnb_config.c
+3
-6
openair2/LAYER2/NR_MAC_gNB/config.c
openair2/LAYER2/NR_MAC_gNB/config.c
+2
-0
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
+0
-2
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
+6
-2
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
+3
-2
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
+1
-0
openair2/RRC/NR/rrc_gNB.c
openair2/RRC/NR/rrc_gNB.c
+4
-0
openair2/RRC/NR/rrc_gNB_nsa.c
openair2/RRC/NR/rrc_gNB_nsa.c
+2
-0
No files found.
openair1/SIMULATION/NR_PHY/dlsim.c
View file @
c9f2f54d
...
...
@@ -787,9 +787,9 @@ int main(int argc, char **argv)
AssertFatal
((
gNB
->
if_inst
=
NR_IF_Module_init
(
0
))
!=
NULL
,
"Cannot register interface"
);
gNB
->
if_inst
->
NR_PHY_config_req
=
nr_phy_config_request
;
// common configuration
rrc_mac_config_req_gNB
(
0
,
0
,
n_tx
,
n_tx
,
0
,
scc
,
NULL
,
0
,
0
,
NULL
);
rrc_mac_config_req_gNB
(
0
,
0
,
n_tx
,
n_tx
,
0
,
6
,
scc
,
NULL
,
0
,
0
,
NULL
);
// UE dedicated configuration
rrc_mac_config_req_gNB
(
0
,
0
,
n_tx
,
n_tx
,
0
,
scc
,
NULL
,
1
,
secondaryCellGroup
->
spCellConfig
->
reconfigurationWithSync
->
newUE_Identity
,
secondaryCellGroup
);
rrc_mac_config_req_gNB
(
0
,
0
,
n_tx
,
n_tx
,
0
,
6
,
scc
,
NULL
,
1
,
secondaryCellGroup
->
spCellConfig
->
reconfigurationWithSync
->
newUE_Identity
,
secondaryCellGroup
);
// reset preprocessor to the one of DLSIM after it has been set during
// rrc_mac_config_req_gNB
gNB_mac
->
pre_processor_dl
=
nr_dlsim_preprocessor
;
...
...
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
c9f2f54d
...
...
@@ -724,9 +724,9 @@ int main(int argc, char **argv)
gNB
->
if_inst
->
NR_PHY_config_req
=
nr_phy_config_request
;
// common configuration
rrc_mac_config_req_gNB
(
0
,
0
,
n_tx
,
n_rx
,
0
,
scc
,
&
rrc
.
carrier
.
mib
,
0
,
0
,
NULL
);
rrc_mac_config_req_gNB
(
0
,
0
,
n_tx
,
n_rx
,
0
,
6
,
scc
,
&
rrc
.
carrier
.
mib
,
0
,
0
,
NULL
);
// UE dedicated configuration
rrc_mac_config_req_gNB
(
0
,
0
,
n_tx
,
n_rx
,
0
,
scc
,
&
rrc
.
carrier
.
mib
,
1
,
secondaryCellGroup
->
spCellConfig
->
reconfigurationWithSync
->
newUE_Identity
,
secondaryCellGroup
);
rrc_mac_config_req_gNB
(
0
,
0
,
n_tx
,
n_rx
,
0
,
6
,
scc
,
&
rrc
.
carrier
.
mib
,
1
,
secondaryCellGroup
->
spCellConfig
->
reconfigurationWithSync
->
newUE_Identity
,
secondaryCellGroup
);
frame_parms
->
nb_antennas_tx
=
n_tx
;
frame_parms
->
nb_antennas_rx
=
n_rx
;
nfapi_nr_config_request_scf_t
*
cfg
=
&
gNB
->
gNB_config
;
...
...
openair2/GNB_APP/gnb_config.c
View file @
c9f2f54d
...
...
@@ -31,6 +31,7 @@
#include <inttypes.h>
#include "common/utils/LOG/log.h"
#include "common/utils/nr/nr_common.h"
#include "common/utils/LOG/log_extern.h"
#include "assertions.h"
#include "gnb_config.h"
...
...
@@ -47,7 +48,6 @@
// #include "SystemInformationBlockType2.h"
// #include "LAYER2/MAC/extern.h"
// #include "LAYER2/MAC/proto.h"
#include "PHY/phy_extern.h"
#include "PHY/INIT/phy_init.h"
#include "targets/ARCH/ETHERNET/USERSPACE/LIB/ethernet_lib.h"
#include "nfapi_vnf.h"
...
...
@@ -947,8 +947,6 @@ void RCconfig_NRRRC(MessageDef *msg_p, uint32_t i, gNB_RRC_INST *rrc) {
if
(
num_gnbs
>
0
)
{
// Output a list of all gNBs. ////////// Identification parameters
config_getlist
(
&
GNBParamList
,
GNBParams
,
sizeof
(
GNBParams
)
/
sizeof
(
paramdef_t
),
NULL
);
...
...
@@ -1112,14 +1110,12 @@ void RCconfig_NRRRC(MessageDef *msg_p, uint32_t i, gNB_RRC_INST *rrc) {
NRRRC_CONFIGURATION_REQ
(
msg_p
).
pusch_AntennaPorts
=
*
GNBParamList
.
paramarray
[
i
][
GNB_PUSCH_ANTENNAPORTS_IDX
].
iptr
;
printf
(
"minTXRXTIMEpdsch %d
\n
"
,
*
GNBParamList
.
paramarray
[
i
][
GNB_MINRXTXTIMEPDSCH_IDX
].
iptr
);
NRRRC_CONFIGURATION_REQ
(
msg_p
).
minRXTXTIMEpdsch
=
*
GNBParamList
.
paramarray
[
i
][
GNB_MINRXTXTIMEPDSCH_IDX
].
iptr
;
printf
(
"SIB1 TDA %d
\n
"
,
*
GNBParamList
.
paramarray
[
i
][
GNB_SIB1_TDA_IDX
].
iptr
);
NRRRC_CONFIGURATION_REQ
(
msg_p
).
sib1_tda
=
*
GNBParamList
.
paramarray
[
i
][
GNB_SIB1_TDA_IDX
].
iptr
;
printf
(
"minTXRXTIMEpdsch %d
\n
"
,
*
GNBParamList
.
paramarray
[
i
][
GNB_MINRXTXTIMEPDSCH_IDX
].
iptr
);
NRRRC_CONFIGURATION_REQ
(
msg_p
).
minRXTXTIMEpdsch
=
*
GNBParamList
.
paramarray
[
i
][
GNB_MINRXTXTIMEPDSCH_IDX
].
iptr
;
printf
(
"Do CSI-RS %d
\n
"
,
*
GNBParamList
.
paramarray
[
i
][
GNB_DO_CSIRS_IDX
].
iptr
);
NRRRC_CONFIGURATION_REQ
(
msg_p
).
do_CSIRS
=
*
GNBParamList
.
paramarray
[
i
][
GNB_DO_CSIRS_IDX
].
iptr
;
NRRRC_CONFIGURATION_REQ
(
msg_p
).
scc
=
scc
;
NRRRC_CONFIGURATION_REQ
(
msg_p
).
scd
=
scd
;
}
//
}
//End for (k=0; k <num_gnbs ; k++)
...
...
@@ -1995,6 +1991,7 @@ void configure_gnb_du_mac(int inst) {
rrc
->
configuration
.
pdsch_AntennaPorts
,
rrc
->
configuration
.
pusch_AntennaPorts
,
rrc
->
configuration
.
sib1_tda
,
rrc
->
configuration
.
minRXTXTIMEpdsch
,
rrc
->
configuration
.
scc
,
NULL
,
0
,
...
...
openair2/LAYER2/NR_MAC_gNB/config.c
View file @
c9f2f54d
...
...
@@ -429,6 +429,7 @@ int rrc_mac_config_req_gNB(module_id_t Mod_idP,
int
pdsch_AntennaPorts
,
int
pusch_AntennaPorts
,
int
sib1_tda
,
int
minRXTXTIMEpdsch
,
NR_ServingCellConfigCommon_t
*
scc
,
NR_BCCH_BCH_Message_t
*
mib
,
int
add_ue
,
...
...
@@ -479,6 +480,7 @@ int rrc_mac_config_req_gNB(module_id_t Mod_idP,
}
}
RC
.
nrmac
[
Mod_idP
]
->
ssb_SubcarrierOffset
=
ssb_SubcarrierOffset
;
RC
.
nrmac
[
Mod_idP
]
->
minRXTXTIMEpdsch
=
minRXTXTIMEpdsch
;
NR_PHY_Config_t
phycfg
;
phycfg
.
Mod_id
=
Mod_idP
;
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_RA.c
View file @
c9f2f54d
...
...
@@ -968,8 +968,6 @@ void fill_msg3_pusch_pdu(nfapi_nr_pusch_pdu_t *pusch_pdu,
int
start_symbol_index
,
nr_of_symbols
;
uint8_t
nb_dmrs_re_per_rb
=
0
;
uint16_t
number_dmrs_symbols
=
0
;
SLIV2SL
(
startSymbolAndLength
,
&
start_symbol_index
,
&
nr_of_symbols
);
...
...
openair2/LAYER2/NR_MAC_gNB/gNB_scheduler_uci.c
View file @
c9f2f54d
...
...
@@ -1180,6 +1180,8 @@ int nr_acknack_scheduling(int mod_id,
const
int
first_ul_slot_tdd
=
tdd
?
tdd
->
nrofDownlinkSlots
+
nr_slots_period
*
(
slot
/
nr_slots_period
)
:
0
;
const
int
first_ul_slot_period
=
tdd
?
tdd
->
nrofDownlinkSlots
:
0
;
const
int
CC_id
=
0
;
const
int
minfbtime
=
RC
.
nrmac
[
mod_id
]
->
minRXTXTIMEpdsch
;
NR_sched_pucch_t
*
csi_pucch
;
if
(
tdd
)
{
...
...
@@ -1270,7 +1272,8 @@ int nr_acknack_scheduling(int mod_id,
int
diff
=
pucch
->
ul_slot
-
slot
;
if
(
diff
<
0
)
diff
+=
n_slots_frame
;
if
(
pdsch_to_harq_feedback
[
i
]
==
diff
)
if
(
pdsch_to_harq_feedback
[
i
]
==
diff
&&
pdsch_to_harq_feedback
[
i
]
>=
minfbtime
)
break
;
++
i
;
}
...
...
@@ -1322,7 +1325,8 @@ int nr_acknack_scheduling(int mod_id,
int
diff
=
pucch
->
ul_slot
-
slot
;
if
(
diff
<
0
)
diff
+=
n_slots_frame
;
if
(
pdsch_to_harq_feedback
[
i
]
==
diff
)
{
if
(
pdsch_to_harq_feedback
[
i
]
==
diff
&&
pdsch_to_harq_feedback
[
i
]
>=
minfbtime
)
{
ind_found
=
i
;
break
;
}
...
...
openair2/LAYER2/NR_MAC_gNB/mac_proto.h
View file @
c9f2f54d
...
...
@@ -50,10 +50,11 @@ int rrc_mac_config_req_gNB(module_id_t Mod_idP,
int
pdsch_AntennaPorts
,
int
pusch_AntennaPorts
,
int
sib1_tda
,
int
minRXTXTIMEpdsch
,
NR_ServingCellConfigCommon_t
*
scc
,
NR_BCCH_BCH_Message_t
*
mib
,
int
add_ue
,
uint32_t
rnti
,
int
add_ue
,
uint32_t
rnti
,
NR_CellGroupConfig_t
*
CellGroup
);
void
clear_nr_nfapi_information
(
gNB_MAC_INST
*
gNB
,
...
...
openair2/LAYER2/NR_MAC_gNB/nr_mac_gNB.h
View file @
c9f2f54d
...
...
@@ -678,6 +678,7 @@ typedef struct gNB_MAC_INST_s {
int
ssb_SubcarrierOffset
;
/// SIB1 Time domain allocation
int
sib1_tda
;
int
minRXTXTIMEpdsch
;
/// Common cell resources
NR_COMMON_channels_t
common_channels
[
NFAPI_CC_MAX
];
/// current PDU index (BCH,DLSCH)
...
...
openair2/RRC/NR/rrc_gNB.c
View file @
c9f2f54d
...
...
@@ -239,6 +239,7 @@ static void init_NR_SI(gNB_RRC_INST *rrc, gNB_RrcConfigurationReq *configuration
rrc
->
carrier
.
pdsch_AntennaPorts
,
rrc
->
carrier
.
pusch_AntennaPorts
,
rrc
->
carrier
.
sib1_tda
,
rrc
->
carrier
.
minRXTXTIMEpdsch
,
(
NR_ServingCellConfigCommon_t
*
)
rrc
->
carrier
.
servingcellconfigcommon
,
&
rrc
->
carrier
.
mib
,
0
,
...
...
@@ -392,6 +393,7 @@ void apply_macrlc_config(gNB_RRC_INST *rrc,
rrc
->
carrier
.
pdsch_AntennaPorts
,
rrc
->
carrier
.
pusch_AntennaPorts
,
rrc
->
carrier
.
sib1_tda
,
rrc
->
carrier
.
minRXTXTIMEpdsch
,
NULL
,
NULL
,
0
,
...
...
@@ -585,6 +587,7 @@ rrc_gNB_generate_RRCSetup_for_RRCReestablishmentRequest(
rrc_instance_p
->
carrier
.
pdsch_AntennaPorts
,
rrc_instance_p
->
carrier
.
pusch_AntennaPorts
,
rrc_instance_p
->
carrier
.
sib1_tda
,
rrc_instance_p
->
carrier
.
minRXTXTIMEpdsch
,
(
NR_ServingCellConfigCommon_t
*
)
rrc_instance_p
->
carrier
.
servingcellconfigcommon
,
&
rrc_instance_p
->
carrier
.
mib
,
0
,
...
...
@@ -1379,6 +1382,7 @@ rrc_gNB_process_RRCReconfigurationComplete(
rrc
->
carrier
.
pdsch_AntennaPorts
,
rrc
->
carrier
.
pusch_AntennaPorts
,
rrc
->
carrier
.
sib1_tda
,
rrc
->
carrier
.
minRXTXTIMEpdsch
,
NULL
,
NULL
,
0
,
...
...
openair2/RRC/NR/rrc_gNB_nsa.c
View file @
c9f2f54d
...
...
@@ -367,6 +367,7 @@ void rrc_add_nsa_user(gNB_RRC_INST *rrc,struct rrc_gNB_ue_context_s *ue_context_
rrc
->
carrier
.
pdsch_AntennaPorts
,
rrc
->
carrier
.
pusch_AntennaPorts
,
rrc
->
carrier
.
sib1_tda
,
rrc
->
carrier
.
minRXTXTIMEpdsch
,
rrc
->
carrier
.
servingcellconfigcommon
,
&
rrc
->
carrier
.
mib
,
1
,
// add_ue flag
...
...
@@ -378,6 +379,7 @@ void rrc_add_nsa_user(gNB_RRC_INST *rrc,struct rrc_gNB_ue_context_s *ue_context_
rrc
->
carrier
.
pdsch_AntennaPorts
,
rrc
->
carrier
.
pusch_AntennaPorts
,
rrc
->
carrier
.
sib1_tda
,
rrc
->
carrier
.
minRXTXTIMEpdsch
,
NULL
,
NULL
,
1
,
// add_ue flag
...
...
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