Single definition and declaration of nr_slots_per_frame
This commit is contained in:
@@ -37,6 +37,8 @@
|
|||||||
|
|
||||||
/*#include "PHY/defs_common.h"*/
|
/*#include "PHY/defs_common.h"*/
|
||||||
|
|
||||||
|
extern const uint8_t nr_slots_per_frame[5];
|
||||||
|
|
||||||
/* extern const uint32_t BSR_TABLE[BSR_TABLE_SIZE];
|
/* extern const uint32_t BSR_TABLE[BSR_TABLE_SIZE];
|
||||||
extern const uint32_t Extended_BSR_TABLE[BSR_TABLE_SIZE];
|
extern const uint32_t Extended_BSR_TABLE[BSR_TABLE_SIZE];
|
||||||
extern const uint8_t cqi2fmt0_agg[MAX_SUPPORTED_BW][CQI_VALUE_RANGE];
|
extern const uint8_t cqi2fmt0_agg[MAX_SUPPORTED_BW][CQI_VALUE_RANGE];
|
||||||
|
|||||||
@@ -63,7 +63,6 @@
|
|||||||
#include "LAYER2/NR_MAC_UE/mac_proto.h"
|
#include "LAYER2/NR_MAC_UE/mac_proto.h"
|
||||||
|
|
||||||
extern int64_t table_6_3_3_2_3_prachConfig_Index [256][9];
|
extern int64_t table_6_3_3_2_3_prachConfig_Index [256][9];
|
||||||
extern const uint8_t nr_slots_per_frame[5];
|
|
||||||
|
|
||||||
//extern uint8_t nfapi_mode;
|
//extern uint8_t nfapi_mode;
|
||||||
|
|
||||||
|
|||||||
@@ -142,7 +142,6 @@ static ssb_list_info_t ssb_list;
|
|||||||
|
|
||||||
extern int bwp_id;
|
extern int bwp_id;
|
||||||
extern dci_pdu_rel15_t *def_dci_pdu_rel15;
|
extern dci_pdu_rel15_t *def_dci_pdu_rel15;
|
||||||
extern const uint8_t nr_slots_per_frame[5];
|
|
||||||
|
|
||||||
extern void mac_rlc_data_ind (
|
extern void mac_rlc_data_ind (
|
||||||
const module_id_t module_idP,
|
const module_id_t module_idP,
|
||||||
|
|||||||
@@ -53,7 +53,6 @@
|
|||||||
|
|
||||||
#include "executables/softmodem-common.h"
|
#include "executables/softmodem-common.h"
|
||||||
|
|
||||||
const uint8_t slots_per_frame[5] = {10, 20, 40, 80, 160};
|
|
||||||
uint16_t nr_pdcch_order_table[6] = { 31, 31, 511, 2047, 2047, 8191 };
|
uint16_t nr_pdcch_order_table[6] = { 31, 31, 511, 2047, 2047, 8191 };
|
||||||
|
|
||||||
void clear_mac_stats(gNB_MAC_INST *gNB) {
|
void clear_mac_stats(gNB_MAC_INST *gNB) {
|
||||||
@@ -391,7 +390,7 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
|
|||||||
AssertFatal(1==0,"Undefined tdd period %ld\n", scc->tdd_UL_DL_ConfigurationCommon->pattern1.dl_UL_TransmissionPeriodicity);
|
AssertFatal(1==0,"Undefined tdd period %ld\n", scc->tdd_UL_DL_ConfigurationCommon->pattern1.dl_UL_TransmissionPeriodicity);
|
||||||
}
|
}
|
||||||
|
|
||||||
int num_slots_per_tdd = (slots_per_frame[*scc->ssbSubcarrierSpacing])/nb_periods_per_frame;
|
int num_slots_per_tdd = (nr_slots_per_frame[*scc->ssbSubcarrierSpacing])/nb_periods_per_frame;
|
||||||
|
|
||||||
const int nr_ulmix_slots = tdd_pattern->nrofUplinkSlots + (tdd_pattern->nrofUplinkSymbols!=0);
|
const int nr_ulmix_slots = tdd_pattern->nrofUplinkSlots + (tdd_pattern->nrofUplinkSymbols!=0);
|
||||||
|
|
||||||
@@ -428,7 +427,7 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
|
|||||||
|
|
||||||
|
|
||||||
// This schedules MIB
|
// This schedules MIB
|
||||||
schedule_nr_mib(module_idP, frame, slot, slots_per_frame[*scc->ssbSubcarrierSpacing]);
|
schedule_nr_mib(module_idP, frame, slot, nr_slots_per_frame[*scc->ssbSubcarrierSpacing]);
|
||||||
|
|
||||||
// This schedule PRACH if we are not in phy_test mode
|
// This schedule PRACH if we are not in phy_test mode
|
||||||
if (get_softmodem_params()->phy_test == 0)
|
if (get_softmodem_params()->phy_test == 0)
|
||||||
@@ -439,7 +438,7 @@ void gNB_dlsch_ulsch_scheduler(module_id_t module_idP,
|
|||||||
|
|
||||||
// This schedule CSI measurement reporting
|
// This schedule CSI measurement reporting
|
||||||
if (UE_info->active[UE_id])
|
if (UE_info->active[UE_id])
|
||||||
nr_csi_meas_reporting(module_idP, UE_id, frame, slot, num_slots_per_tdd, nr_ulmix_slots, slots_per_frame[*scc->ssbSubcarrierSpacing]);
|
nr_csi_meas_reporting(module_idP, UE_id, frame, slot, num_slots_per_tdd, nr_ulmix_slots, nr_slots_per_frame[*scc->ssbSubcarrierSpacing]);
|
||||||
|
|
||||||
// This schedule RA procedure if not in phy_test mode
|
// This schedule RA procedure if not in phy_test mode
|
||||||
// Otherwise already consider 5G already connected
|
// Otherwise already consider 5G already connected
|
||||||
|
|||||||
@@ -42,7 +42,6 @@
|
|||||||
#include "SIMULATION/TOOLS/sim.h" // for taus
|
#include "SIMULATION/TOOLS/sim.h" // for taus
|
||||||
|
|
||||||
extern RAN_CONTEXT_t RC;
|
extern RAN_CONTEXT_t RC;
|
||||||
extern const uint8_t nr_slots_per_frame[5];
|
|
||||||
|
|
||||||
uint8_t DELTA[4]= {2,3,4,6};
|
uint8_t DELTA[4]= {2,3,4,6};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user