if[$MR_TRIG-eq 1 ];then echo" <strong>${NB_FILES_IN_ERROR} modified files MAY NOT HAVE CIRCULAR DEPENDENCY PROTECTION</strong>">> ./build_results.html;fi
if[$PU_TRIG-eq 1 ];then echo" <strong>${NB_FILES_IN_ERROR} files in repository MAY NOT HAVE CIRCULAR DEPENDENCY PROTECTION in the whole repository</strong>">> ./build_results.html;fi
awk'{if($0 ~/error in/){print " <tr><td>error in declaration</td><td>"$4"</td><td>"$5"</td></tr>"};if($0 ~/files with same/){print " <tr><td>files with same #define</td><td>"$5"</td><td>"$6"</td></tr>"}}' ./header-files-w-incorrect-define.txt >> ./build_results.html
* - m0: provided by higher layer parameter PUCCH-F0-F1-initial-cyclic-shift of PUCCH-F0-resource-config
* - mcs: mcs=0 except for PUCCH format 0 when it depends on information to be transmitted according to TS 38.213 subclause 9.2
* - lnormal: lnormal is the OFDM symbol number in the PUCCH transmission where l=0 corresponds to the first OFDM symbol of the PUCCH transmission
* - lprime: lprime is the index of the OFDM symbol in the slot that corresponds to the first OFDM symbol of the PUCCH transmission in the slot given by [5, TS 38.213]
*/
// alpha_init initialized to 2*PI/12=0.5235987756
doublealpha=0.5235987756;
uint32_tc_init=n_id;// we initialize c_init again to calculate n_cs
// lprime is the index of the OFDM symbol in the slot that corresponds to the first OFDM symbol of the PUCCH transmission in the slot given by [5, TS 38.213]
//uint8_t lprime;
// mcs is provided by TC 38.213 subclauses 9.2.3, 9.2.4, 9.2.5 FIXME!
x2=(((1<<17)*((14*slot)+(pucch_pdu->start_symbol_index)+1)*((2*pucch_pdu->dmrs_scrambling_id)+1))+(2*pucch_pdu->dmrs_scrambling_id))%(1U<<31);// c_init calculation according to TS38.211 subclause
* - m0: provided by higher layer parameter PUCCH-F0-F1-initial-cyclic-shift of PUCCH-F0-resource-config
* - mcs: mcs=0 except for PUCCH format 0 when it depends on information to be transmitted according to TS 38.213 subclause 9.2
* - lnormal: lnormal is the OFDM symbol number in the PUCCH transmission where l=0 corresponds to the first OFDM symbol of the PUCCH transmission
* - lprime: lprime is the index of the OFDM symbol in the slot that corresponds to the first OFDM symbol of the PUCCH transmission in the slot given by [5, TS 38.213]
*/
// alpha_init initialized to 2*PI/12=0.5235987756
doublealpha=0.5235987756;
uint32_tc_init=n_id;// we initialize c_init again to calculate n_cs
#ifdef DEBUG_NR_PUCCH_TX
// initialization to be remo.ved
c_init=10;
printf("\t\t [nr_cyclic_shift_hopping] initialization c_init=%u -> variable initialization TO BE REMOVED\n",c_init);
x2=(((1<<17)*((14*nr_tti_tx)+(l+startingSymbolIndex)+1)*((2*n_id)+1))+(2*n_id))%(1U<<31);// c_init calculation according to TS38.211 subclause
x2=(((1<<17)*((14*nr_tti_tx)+(l+startingSymbolIndex)+1)*((2*dmrs_scrambling_id)+1))+(2*dmrs_scrambling_id))%(1U<<31);// c_init calculation according to TS38.211 subclause
s=lte_gold_generic(&x1,&x2,1);
m=0;
for(intrb=0;rb<nrofPRB;rb++){
//startingPRB = startingPRB + rb;
if(((rb+startingPRB)<(frame_parms->N_RB_DL>>1))&&((frame_parms->N_RB_DL&1)==0)){// if number RBs in bandwidth is even and current PRB is lower band
@@ -87,22 +87,24 @@ int main(int argc, char **argv)
uint8_tnacktoack_flag=0;
int16_tamp=0x7FFF;
intnr_tti_tx=0;
uint64_tactual_payload=0,payload_received;//payload bits b7b6...b2b1b0 where b7..b3=0 b2b1=HARQ b0 is SR. payload maximum value is 7 for pucch format 0
uint8_tnrofSymbols=1;//number of OFDM symbols can be 1-2 for format 1
uint8_tstartingSymbolIndex=0;// resource allocated see 9.2.1, 38.213 for more info.should be actually present in the resource set provided
uint16_tstartingPRB=0,startingPRB_intraSlotHopping=0;//PRB number not sure see 9.2.1, 38.213 for more info. Should be actually present in the resource set provided
uint16_tnrofPRB=2;
uint8_ttimeDomainOCC=0;
SCM_tchannel_model=AWGN;//Rayleigh1_anticorr;
intN_RB_DL=273,mu=1;
floattarget_error_rate=0.01;
floattarget_error_rate=0.001;
intframe_length_complex_samples;
//int frame_length_complex_samples_no_prefix;
NR_DL_FRAME_PARMS*frame_parms;
//unsigned char frame_type = 0;
intloglvl=OAILOG_WARNING;
intsr_flag=0;
cpuf=get_cpu_freq_GHz();
...
...
@@ -112,9 +114,8 @@ int main(int argc, char **argv)