Fix nr_dlschsim unitary simulator
This commit is contained in:
@@ -427,7 +427,7 @@ int main(int argc, char **argv)
|
|||||||
UE->dlsch_ra[0] = new_nr_ue_dlsch(1, 1, Nsoft, 5, N_RB_DL, 0);
|
UE->dlsch_ra[0] = new_nr_ue_dlsch(1, 1, Nsoft, 5, N_RB_DL, 0);
|
||||||
unsigned char harq_pid = 0; //dlsch->harq_ids[subframe];
|
unsigned char harq_pid = 0; //dlsch->harq_ids[subframe];
|
||||||
NR_gNB_DLSCH_t *dlsch = gNB->dlsch[0][0];
|
NR_gNB_DLSCH_t *dlsch = gNB->dlsch[0][0];
|
||||||
nfapi_nr_dl_tti_pdsch_pdu_rel15_t *rel15 = &dlsch->harq_processes[harq_pid]->pdsch_pdu.pdsch_pdu_rel15;
|
nfapi_nr_dl_tti_pdsch_pdu_rel15_t *rel15 = &dlsch->harq_process.pdsch_pdu.pdsch_pdu_rel15;
|
||||||
//time_stats_t *rm_stats, *te_stats, *i_stats;
|
//time_stats_t *rm_stats, *te_stats, *i_stats;
|
||||||
uint8_t is_crnti = 0, llr8_flag = 0;
|
uint8_t is_crnti = 0, llr8_flag = 0;
|
||||||
unsigned int TBS = 8424;
|
unsigned int TBS = 8424;
|
||||||
@@ -519,7 +519,7 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
//if (i<16)
|
//if (i<16)
|
||||||
// printf("encoder output f[%d] = %d\n",i,dlsch->harq_processes[0]->f[i]);
|
// printf("encoder output f[%d] = %d\n",i,dlsch->harq_processes[0]->f[i]);
|
||||||
if (dlsch->harq_processes[0]->f[i] == 0)
|
if (dlsch->harq_process.f[i] == 0)
|
||||||
modulated_input[i] = 1.0; ///sqrt(2); //QPSK
|
modulated_input[i] = 1.0; ///sqrt(2); //QPSK
|
||||||
else
|
else
|
||||||
modulated_input[i] = -1.0; ///sqrt(2);
|
modulated_input[i] = -1.0; ///sqrt(2);
|
||||||
@@ -547,7 +547,7 @@ int main(int argc, char **argv)
|
|||||||
else
|
else
|
||||||
channel_output_uncoded[i] = 0;
|
channel_output_uncoded[i] = 0;
|
||||||
|
|
||||||
if (channel_output_uncoded[i] != dlsch->harq_processes[harq_pid]->f[i])
|
if (channel_output_uncoded[i] != dlsch->harq_process.f[i])
|
||||||
errors_bit_uncoded = errors_bit_uncoded + 1;
|
errors_bit_uncoded = errors_bit_uncoded + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user