LOG_D(PHY,"[DCI][EMUL]SI tbs is %d and dci index %d harq pid is %d \n",eNB_transport_info[phy_vars_eNB->Mod_id][phy_vars_eNB->CC_id].tbs[n_dci_dl],n_dci_dl,
LOG_D(PHY,"[DCI][EMUL] RA tbs is %d and dci index %d harq pid is %d \n",eNB_transport_info[phy_vars_eNB->Mod_id][phy_vars_eNB->CC_id].tbs[n_dci_dl],n_dci_dl,
LOG_D(PHY,"[DCI][EMUL] TB1 tbs is %d and dci index %d harq pid is %d \n",eNB_transport_info[phy_vars_eNB->Mod_id][phy_vars_eNB->CC_id].tbs[n_dci_dl],n_dci_dl,
printf("i %d in 0x%08x out 0x%08x ilv %d (in>>i)&1) 0x%08x\n",i,nr_ue_pbch_vars->pbch_a_interleaved,out,pbch_deinterleaving_pattern[i],(in>>i)&1);
printf("i %d in 0x%08x out 0x%08x ilv %d (in>>i)&1) 0x%08x\n",i,nr_ue_pbch_vars->pbch_a_interleaved,out,pbch_deinterleaving_pattern[i],(nr_ue_pbch_vars->pbch_a_interleaved>>i)&1);
#endif
#endif
}
}
for(inti=0;i<NR_POLAR_PBCH_PAYLOAD_BITS>>3;i++)
for(inti=0;i<NR_POLAR_PBCH_PAYLOAD_BITS>>3;i++)
pbch_a[i]=(uint8_t)((out>>(i<<3))&0xff);
decoded_output[i]=(uint8_t)((out>>(i<<3))&0xff);
// Fix byte endian
// Fix byte endian
for(i=0;i<(NR_POLAR_PBCH_PAYLOAD_BITS>>3);i++)
// for (i=0; i<(NR_POLAR_PBCH_PAYLOAD_BITS>>3); i++)
unsignedintlength=(NR_NUMBER_OF_SUBFRAMES_PER_FRAME*frame_parms->ttis_per_subframe*frame_parms->samples_per_tti);/* 1 frame for now, it should be 2 TODO_NR */
for(inti=0;i<NUMBER_PSS_SEQUENCE;i++){
tmp[i]=0;
if(pss_corr_ue[i]==NULL){
msg("[SYNC TIME] pss_corr_ue[%d] not yet allocated! Exiting.\n",i);
return(-1);
}
}
unsignedintlength=(NR_NUMBER_OF_SUBFRAMES_PER_FRAME*frame_parms->samples_per_subframe);/* 1 frame for now, it should be 2 TODO_NR */