set correct assertion for DURATION_RX_TO_TX
This commit is contained in:
@@ -806,7 +806,8 @@ int8_t nr_ue_process_dci(module_id_t module_id, int cc_id, uint8_t gNB_index, fr
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(rnti != ra->ra_rnti && rnti != SI_RNTI)
|
if(rnti != ra->ra_rnti && rnti != SI_RNTI)
|
||||||
AssertFatal(1 + dci->pdsch_to_harq_feedback_timing_indicator.val >= DURATION_RX_TO_TX, "PDSCH to HARQ feedback time (%d) cannot be less than DURATION_RX_TO_TX (%d).\n",
|
AssertFatal(1 + dci->pdsch_to_harq_feedback_timing_indicator.val > DURATION_RX_TO_TX,
|
||||||
|
"PDSCH to HARQ feedback time (%d) needs to be higher than DURATION_RX_TO_TX (%d).\n",
|
||||||
1 + dci->pdsch_to_harq_feedback_timing_indicator.val, DURATION_RX_TO_TX);
|
1 + dci->pdsch_to_harq_feedback_timing_indicator.val, DURATION_RX_TO_TX);
|
||||||
|
|
||||||
// set the harq status at MAC for feedback
|
// set the harq status at MAC for feedback
|
||||||
@@ -1132,8 +1133,9 @@ int8_t nr_ue_process_dci(module_id_t module_id, int cc_id, uint8_t gNB_index, fr
|
|||||||
// according to TS 38.213 Table 9.2.3-1
|
// according to TS 38.213 Table 9.2.3-1
|
||||||
uint8_t feedback_ti = pucch_Config->dl_DataToUL_ACK->list.array[dci->pdsch_to_harq_feedback_timing_indicator.val][0];
|
uint8_t feedback_ti = pucch_Config->dl_DataToUL_ACK->list.array[dci->pdsch_to_harq_feedback_timing_indicator.val][0];
|
||||||
|
|
||||||
AssertFatal(feedback_ti>=DURATION_RX_TO_TX,"PDSCH to HARQ feedback time (%d) cannot be less than DURATION_RX_TO_TX (%d). Min feedback time set in config file (min_rxtxtime).\n",
|
AssertFatal(feedback_ti > DURATION_RX_TO_TX,
|
||||||
feedback_ti,DURATION_RX_TO_TX);
|
"PDSCH to HARQ feedback time (%d) needs to be higher than DURATION_RX_TO_TX (%d). Min feedback time set in config file (min_rxtxtime).\n",
|
||||||
|
feedback_ti, DURATION_RX_TO_TX);
|
||||||
|
|
||||||
// set the harq status at MAC for feedback
|
// set the harq status at MAC for feedback
|
||||||
set_harq_status(mac,
|
set_harq_status(mac,
|
||||||
|
|||||||
@@ -854,7 +854,8 @@ void nr_ue_aperiodic_srs_scheduling(NR_UE_MAC_INST_t *mac, long resource_trigger
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
AssertFatal(slot_offset >= DURATION_RX_TO_TX,"Slot offset between DCI and aperiodic SRS (%d) cannot be less than DURATION_RX_TO_TX (%d)\n",
|
AssertFatal(slot_offset > DURATION_RX_TO_TX,
|
||||||
|
"Slot offset between DCI and aperiodic SRS (%d) needs to be higher than DURATION_RX_TO_TX (%d)\n",
|
||||||
slot_offset, DURATION_RX_TO_TX);
|
slot_offset, DURATION_RX_TO_TX);
|
||||||
int n_slots_frame = nr_slots_per_frame[current_UL_BWP->scs];
|
int n_slots_frame = nr_slots_per_frame[current_UL_BWP->scs];
|
||||||
int sched_slot = (slot + slot_offset) % n_slots_frame;
|
int sched_slot = (slot + slot_offset) % n_slots_frame;
|
||||||
@@ -1415,8 +1416,8 @@ int nr_get_sf_retxBSRTimer(uint8_t sf_offset) {
|
|||||||
// Note: Msg3 tx in the uplink symbols of mixed slot
|
// Note: Msg3 tx in the uplink symbols of mixed slot
|
||||||
int nr_ue_pusch_scheduler(NR_UE_MAC_INST_t *mac, uint8_t is_Msg3, frame_t current_frame, int current_slot, frame_t *frame_tx, int *slot_tx, long k2)
|
int nr_ue_pusch_scheduler(NR_UE_MAC_INST_t *mac, uint8_t is_Msg3, frame_t current_frame, int current_slot, frame_t *frame_tx, int *slot_tx, long k2)
|
||||||
{
|
{
|
||||||
AssertFatal(k2 >= DURATION_RX_TO_TX,
|
AssertFatal(k2 > DURATION_RX_TO_TX,
|
||||||
"Slot offset K2 (%ld) cannot be less than DURATION_RX_TO_TX (%d). Please set min_rxtxtime at least to %d in gNB config file or gNBs.[0].min_rxtxtime=%d via command line.\n",
|
"Slot offset K2 (%ld) needs to be higher than DURATION_RX_TO_TX (%d). Please set min_rxtxtime at least to %d in gNB config file or gNBs.[0].min_rxtxtime=%d via command line.\n",
|
||||||
k2,
|
k2,
|
||||||
DURATION_RX_TO_TX,
|
DURATION_RX_TO_TX,
|
||||||
DURATION_RX_TO_TX,
|
DURATION_RX_TO_TX,
|
||||||
@@ -1450,8 +1451,8 @@ int nr_ue_pusch_scheduler(NR_UE_MAC_INST_t *mac, uint8_t is_Msg3, frame_t curren
|
|||||||
AssertFatal(1 == 0, "Invalid numerology %i\n", mu);
|
AssertFatal(1 == 0, "Invalid numerology %i\n", mu);
|
||||||
}
|
}
|
||||||
|
|
||||||
AssertFatal((k2 + delta) >= DURATION_RX_TO_TX,
|
AssertFatal((k2 + delta) > DURATION_RX_TO_TX,
|
||||||
"Slot offset (%ld) for Msg3 cannot be less than DURATION_RX_TO_TX (%d). Please set min_rxtxtime at least to %d in gNB config file or gNBs.[0].min_rxtxtime=%d via command line.\n",
|
"Slot offset (%ld) for Msg3 needs to be higher than DURATION_RX_TO_TX (%d). Please set min_rxtxtime at least to %d in gNB config file or gNBs.[0].min_rxtxtime=%d via command line.\n",
|
||||||
k2,
|
k2,
|
||||||
DURATION_RX_TO_TX,
|
DURATION_RX_TO_TX,
|
||||||
DURATION_RX_TO_TX,
|
DURATION_RX_TO_TX,
|
||||||
|
|||||||
Reference in New Issue
Block a user