((int16_t*)&gNB->common_vars.rxdata[ap][slot_offset])[(2*i)+(delay*2)]=(int16_t)((double)(((int16_t*)&UE->common_vars.txdata[ap][slot_offset])[(i<<1)])/sqrt(scale)+(sqrt(sigma/2)*gaussdouble(0.0,1.0)));// convert to fixed point
((int16_t*)&gNB->common_vars.rxdata[ap][slot_offset])[(2*i)+(delay*2)]=(int16_t)((tx_gain*r_re[ap][i])+(sqrt(sigma/2)*gaussdouble(0.0,1.0)));// convert to fixed point