Commit e7a3cb29 authored by Francesco Mani's avatar Francesco Mani

uint in corr for pucch rx

parent 74f8337f
...@@ -337,8 +337,9 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB, ...@@ -337,8 +337,9 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB,
#endif #endif
} }
} }
int32_t corr_re,corr_im,temp,no_corr=0; int32_t corr_re,corr_im;
int32_t av_corr=0; uint32_t temp,no_corr=0;
uint32_t av_corr=0;
int seq_index; int seq_index;
for(i=0;i<nr_sequences;i++){ for(i=0;i<nr_sequences;i++){
...@@ -1395,7 +1396,7 @@ void nr_decode_pucch2(PHY_VARS_gNB *gNB, ...@@ -1395,7 +1396,7 @@ void nr_decode_pucch2(PHY_VARS_gNB *gNB,
rp2_im[aa] = (__m256i*)r_im_ext2[aa]; rp2_im[aa] = (__m256i*)r_im_ext2[aa];
} }
__m256i prod_re[Prx2],prod_im[Prx2]; __m256i prod_re[Prx2],prod_im[Prx2];
int64_t corr=0; uint64_t corr=0;
int cw_ML=0; int cw_ML=0;
...@@ -1409,7 +1410,7 @@ void nr_decode_pucch2(PHY_VARS_gNB *gNB, ...@@ -1409,7 +1410,7 @@ void nr_decode_pucch2(PHY_VARS_gNB *gNB,
} }
printf("\n"); printf("\n");
#endif #endif
int64_t corr_tmp = 0; uint64_t corr_tmp = 0;
for (int group=0;group<ngroup;group++) { for (int group=0;group<ngroup;group++) {
// do complex correlation // do complex correlation
...@@ -1463,7 +1464,7 @@ void nr_decode_pucch2(PHY_VARS_gNB *gNB, ...@@ -1463,7 +1464,7 @@ void nr_decode_pucch2(PHY_VARS_gNB *gNB,
cw_ML=cw; cw_ML=cw;
} }
} // cw loop } // cw loop
corr_dB = dB_fixed64((uint64_t)corr); corr_dB = dB_fixed64(corr);
LOG_D(PHY,"cw_ML %d, metric %d dB\n",cw_ML,corr_dB); LOG_D(PHY,"cw_ML %d, metric %d dB\n",cw_ML,corr_dB);
decodedPayload[0]=(uint64_t)cw_ML; decodedPayload[0]=(uint64_t)cw_ML;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment