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);
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 */
unsignedintn,ar,peak_position,pss_source;
int64_tpeak_value;
int64_tresult;
int64_tavg[NUMBER_PSS_SEQUENCE];
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 */