updated dlsim
This commit is contained in:
@@ -890,7 +890,6 @@ int nr_pdsch_channel_estimation(PHY_VARS_NR_UE *ue,
|
|||||||
dl_ch = (int16_t *)&dl_ch_estimates[aarx][ch_offset];
|
dl_ch = (int16_t *)&dl_ch_estimates[aarx][ch_offset];
|
||||||
uint16_t idxDC = 2*(ue->frame_parms.ofdm_symbol_size - bwp_start_subcarrier);
|
uint16_t idxDC = 2*(ue->frame_parms.ofdm_symbol_size - bwp_start_subcarrier);
|
||||||
uint16_t idxPil = idxDC/2;
|
uint16_t idxPil = idxDC/2;
|
||||||
printf("idxDC %d idxPil %d\n",idxDC,idxPil);
|
|
||||||
re_offset = k;
|
re_offset = k;
|
||||||
pil = (int16_t *)&pilot[rb_offset*((config_type==0) ? 6:4)];
|
pil = (int16_t *)&pilot[rb_offset*((config_type==0) ? 6:4)];
|
||||||
pil += (idxPil-4);
|
pil += (idxPil-4);
|
||||||
|
|||||||
@@ -564,13 +564,13 @@ uint32_t nr_dlsch_decoding(PHY_VARS_NR_UE *phy_vars_ue,
|
|||||||
|
|
||||||
// Fixme: correct type is unsigned, but nrLDPC_decoder and all called behind use signed int
|
// Fixme: correct type is unsigned, but nrLDPC_decoder and all called behind use signed int
|
||||||
if (check_crc((uint8_t*)llrProcBuf,length_dec,harq_process->F,crc_type)) {
|
if (check_crc((uint8_t*)llrProcBuf,length_dec,harq_process->F,crc_type)) {
|
||||||
printf("\x1B[34m" "Segment %d CRC OK\n",r);
|
printf("\x1B[34m" "Segment %d CRC OK\n\033[0m",r);
|
||||||
//Temporary hack
|
//Temporary hack
|
||||||
no_iteration_ldpc = dlsch->max_ldpc_iterations;
|
no_iteration_ldpc = dlsch->max_ldpc_iterations;
|
||||||
ret = no_iteration_ldpc;
|
ret = no_iteration_ldpc;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
printf("\x1B[33m" "CRC NOK\n");
|
printf("\x1B[33m" "CRC NOK\n\033[0m");
|
||||||
ret = 1 + dlsch->max_ldpc_iterations;
|
ret = 1 + dlsch->max_ldpc_iterations;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -879,25 +879,17 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
printf("*****************************************\n");
|
printf("*****************************************\n");
|
||||||
printf("SNR %f, (false positive %f)\n", SNR,
|
printf("SNR %f, (false positive %f)\n", SNR,
|
||||||
(float) n_false_positive / (float) n_trials);
|
(float) n_errors / (float) n_trials);
|
||||||
printf("*****************************************\n");
|
printf("*****************************************\n");
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
if (errors_bit == 0) {
|
|
||||||
printf("PDSCH test OK\n");
|
|
||||||
printf("\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
printf("SNR %f : n_errors (negative CRC) = %d/%d\n", SNR, n_errors, n_trials);
|
printf("SNR %f : n_errors (negative CRC) = %d/%d\n", SNR, n_errors, n_trials);
|
||||||
printf("\n");
|
printf("\n");
|
||||||
|
|
||||||
if ((float)n_errors/(float)n_trials <= target_error_rate) {
|
if ((float)n_errors/(float)n_trials <= target_error_rate) {
|
||||||
printf("PDCCH test OK\n");
|
printf("PDSCH test OK\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (n_trials == 1)
|
|
||||||
break;
|
|
||||||
|
|
||||||
} // NSR
|
} // NSR
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user