LOG_D(PHY,"In %s: received 1 DL %s PDU of %d total DL PDUs:\n",__FUNCTION__,dl_pdu_type[dl_config->dl_config_list[i].pdu_type-1],dl_config->number_pdus);
LOG_D(PHY,"In %s: frame %d slot %d received 1 DL %s PDU of %d total DL PDUs:\n",
LOG_D(MAC,"MSG3 start_sym:%d NR Symb:%d mappingtype:%d , ul_dmrs_symb_pos:%x\n",start_symbol_index,nr_of_symbols,mappingtype,pusch_pdu->ul_dmrs_symb_pos);
pusch_pdu->dmrs_config_type=0;
pusch_pdu->ul_dmrs_scrambling_id=*scc->physCellId;//If provided and the PUSCH is not a msg3 PUSCH, otherwise, L2 should set this to physical cell id.
pusch_pdu->scid=0;//DMRS sequence initialization [TS38.211, sec 6.4.1.1.1]. Should match what is sent in DCI 0_1, otherwise set to 0.
pusch_pdu->dmrs_ports=1;// 6.2.2 in 38.214 only port 0 to be used
pusch_pdu->num_dmrs_cdm_grps_no_data=2;// no data in dmrs symbols as in 6.2.2 in 38.214
pusch_pdu->resource_alloc=1;//type 1
pusch_pdu->rb_start=msg3_first_rb;
if(msg3_nb_rb>pusch_pdu->bwp_size)
AssertFatal(1==0,"MSG3 allocated number of RBs exceed the BWP size\n");
else
pusch_pdu->rb_size=msg3_nb_rb;
pusch_pdu->vrb_to_prb_mapping=0;
pusch_pdu->frequency_hopping=fh;
//pusch_pdu->tx_direct_current_location;//The uplink Tx Direct Current location for the carrier. Only values in the value range of this field between 0 and 3299, which indicate the subcarrier index within the carrier corresponding 1o the numerology of the corresponding uplink BWP and value 3300, which indicates "Outside the carrier" and value 3301, which indicates "Undetermined position within the carrier" are used. [TS38.331, UplinkTxDirectCurrentBWP IE]
pusch_pdu->uplink_frequency_shift_7p5khz=0;
//Resource Allocation in time domain
pusch_pdu->start_symbol_index=start_symbol_index;
pusch_pdu->nr_of_symbols=nr_of_symbols;
//Optional Data only included if indicated in pduBitmap
LOG_D(NR_MAC,"[gNB %d][RAPROC] Frame %d, Subframe %d : CC_id %d RA is active, Msg3 in (%d,%d)\n",module_idP,frameP,slotP,CC_id,ra->Msg3_frame,ra->Msg3_slot);
LOG_D(NR_MAC,"[gNB %d][RAPROC] Frame %d, Slot %d : CC_id %d RA is active, Msg3 in (%d,%d)\n",module_idP,frameP,slotP,CC_id,ra->Msg3_frame,ra->Msg3_slot);
LOG_D(MAC,"MSG3 start_sym:%d NR Symb:%d mappingtype:%d , ul_dmrs_symb_pos:%x\n",start_symbol_index,nr_of_symbols,mappingtype,pusch_pdu->ul_dmrs_symb_pos);
pusch_pdu->dmrs_config_type=0;
pusch_pdu->ul_dmrs_scrambling_id=*scc->physCellId;//If provided and the PUSCH is not a msg3 PUSCH, otherwise, L2 should set this to physical cell id.
pusch_pdu->scid=0;//DMRS sequence initialization [TS38.211, sec 6.4.1.1.1]. Should match what is sent in DCI 0_1, otherwise set to 0.
pusch_pdu->dmrs_ports=1;// 6.2.2 in 38.214 only port 0 to be used
pusch_pdu->num_dmrs_cdm_grps_no_data=2;// no data in dmrs symbols as in 6.2.2 in 38.214
pusch_pdu->resource_alloc=1;//type 1
//pusch_pdu->rb_start = ra->msg3_first_rb + ibwp_start - abwp_start; // as for 6.3.1.7 in 38.211
pusch_pdu->rb_start=ra->msg3_first_rb;
if(ra->msg3_nb_rb>pusch_pdu->bwp_size)
AssertFatal(1==0,"MSG3 allocated number of RBs exceed the BWP size\n");
bwp_start=abwp_start;
else
pusch_pdu->rb_size=ra->msg3_nb_rb;
pusch_pdu->vrb_to_prb_mapping=0;
pusch_pdu->frequency_hopping=fh;
//pusch_pdu->tx_direct_current_location;//The uplink Tx Direct Current location for the carrier. Only values in the value range of this field between 0 and 3299, which indicate the subcarrier index within the carrier corresponding 1o the numerology of the corresponding uplink BWP and value 3300, which indicates "Outside the carrier" and value 3301, which indicates "Undetermined position within the carrier" are used. [TS38.331, UplinkTxDirectCurrentBWP IE]
pusch_pdu->uplink_frequency_shift_7p5khz=0;
//Resource Allocation in time domain
pusch_pdu->start_symbol_index=start_symbol_index;
pusch_pdu->nr_of_symbols=nr_of_symbols;
//Optional Data only included if indicated in pduBitmap
pusch_pdu->pusch_data.rv_index=0;// 8.3 in 38.213
pusch_pdu->pusch_data.harq_process_id=0;
pusch_pdu->pusch_data.new_data_indicator=1;// new data