Improve tracing for DLSCH decoding results

- Better trace DLSCH decoding result
- Rename the decode result variable to separate with later ack/nack
  encode of this decoding result from 3GPP (not trivial true=1 coding)
- Cleanup decodeResult usage
- Remove unused defines

Co-authored-by: Francesco Mani <email@francescomani.it>
This commit is contained in:
Laurent THOMAS
2024-09-18 14:40:07 +02:00
committed by Robert Schmidt
co-authored by Francesco Mani
parent ba2d7aad18
commit 7a5da40d0b
9 changed files with 84 additions and 117 deletions
+5 -4
View File
@@ -982,8 +982,8 @@ int main(int argc, char **argv)
NR_gNB_DLSCH_t *gNB_dlsch = &msgDataTx->dlsch[0][0];
nfapi_nr_dl_tti_pdsch_pdu_rel15_t *rel15 = &gNB_dlsch->harq_process.pdsch_pdu.pdsch_pdu_rel15;
UE_harq_process->ack = 0;
UE_harq_process->decodeResult = false;
round = 0;
UE_harq_process->DLround = round;
UE_harq_process->first_rx = 1;
@@ -996,7 +996,7 @@ int main(int argc, char **argv)
memset(Sched_INFO, 0, sizeof(*Sched_INFO));
Sched_INFO->sched_response_id = -1;
while ((round<num_rounds) && (UE_harq_process->ack==0)) {
while (round < num_rounds && !UE_harq_process->decodeResult) {
round_trials[round]++;
clear_nr_nfapi_information(RC.nrmac[0], 0, frame, slot, &Sched_INFO->DL_req, &Sched_INFO->TX_req, &Sched_INFO->UL_dci_req);
@@ -1178,7 +1178,8 @@ int main(int argc, char **argv)
printf("errors_bit = %u (trial %d)\n", errors_bit, trial);
}
roundStats += ((float)round);
if (UE_harq_process->ack==1) effRate += ((float)TBS)/round;
if (UE_harq_process->decodeResult)
effRate += ((float)TBS) / round;
} // noise trials
roundStats /= ((float)n_trials);
@@ -277,7 +277,7 @@ int test_pucch_common_config_single_transport_block(PHY_VARS_NR_UE *ue, int gNB_
v_return = -1;
}
harq_status->ack = DL_NACK;
harq_status->decodeResult = false;
printf("\n => Test : PUCCH format from common config in prach mode: one negative downlink ACKnowledgment \n");
@@ -308,7 +308,7 @@ int test_pucch_common_config_single_transport_block(PHY_VARS_NR_UE *ue, int gNB_
v_return = -1;
}
harq_status->ack = DL_NACK;
harq_status->decodeResult = false;
printf("\n => Test : PUCCH format from common config in dedicated mode: one positive and one negative downlink ACKnowledgments \n");