LOG_D(PHY,"Estimated SNR for PUSCH is = %f dB (ulsch_power %f, noise %f)\n",SNRtimes10/10.0,dB_fixed_x10(gNB->pusch_vars[ULSCH_id]->ulsch_power_tot)/10.0,dB_fixed_x10(gNB->pusch_vars[ULSCH_id]->ulsch_noise_power_tot)/10.0);
LOG_I(PHY,"Estimated SNR for PUSCH is = %f dB (ulsch_power %f, noise %f)\n",SNRtimes10/10.0,dB_fixed_x10(gNB->pusch_vars[ULSCH_id]->ulsch_power_tot)/10.0,dB_fixed_x10(gNB->pusch_vars[ULSCH_id]->ulsch_noise_power_tot)/10.0);
if(SNRtimes10<-640)cqi=0;
if(SNRtimes10<-640)cqi=0;
elseif(SNRtimes10>635)cqi=255;
elseif(SNRtimes10>635)cqi=255;
elsecqi=(640+SNRtimes10)/5;
elsecqi=(640+SNRtimes10)/5;
if(0/*pusch_pdu->mcs_index == 9*/){
if(pusch_pdu->mcs_index==9){
#ifdef __AVX2__
#ifdef __AVX2__
intoff=((pusch_pdu->rb_size&1)==1)?4:0;
intoff=((pusch_pdu->rb_size&1)==1)?4:0;
#else
#else
...
@@ -656,7 +656,7 @@ int phy_procedures_gNB_uespec_RX(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx) {
...
@@ -656,7 +656,7 @@ int phy_procedures_gNB_uespec_RX(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx) {
LOG_D(PHY,"frame %d, slot %d: PUCCH signal energy %d\n",frame_rx,slot_rx,power_rxF);
LOG_D(PHY,"frame %d, slot %d: PUCCH signal energy %d\n",frame_rx,slot_rx,power_rxF);