@@ -7157,8 +7157,8 @@ int nr_generate_ue_ul_dlsch_params_from_dci(PHY_VARS_NR_UE *ue,
NR_UE_ULSCH_t*ulsch0=NULL,*ulsch1=NULL;
//NR_DCI_INFO_EXTRACTED_t nr_dci_info_extracted;
uint8_tstatus=0;//left_shift=0;
uint64_tpdu_bitmap=0xFFFFFFFFFFFFFFFF;
pdu_bitmap=(pdu_bitmap<<(64-dci_length))>>(64-dci_length);// this variable will help to remove the bits of other fields when left-switching
//uint64_t pdu_bitmap = 0xFFFFFFFFFFFFFFFF;
//pdu_bitmap = (pdu_bitmap << (64 - dci_length)) >> (64 - dci_length); // this variable will help to remove the bits of other fields when left-switching
* This code contains all the functions needed to process all dci fields.
* These functions are going to be called by function nr_ue_process_dci
*/
// table_7_3_1_1_2_2_3_4_5 contains values for number of layers and precoding information for tables 7.3.1.1.2-2/3/4/5 from TS 38.212 subclause 7.3.1.1.2
// the first 6 columns contain table 7.3.1.1.2-2: Precoding information and number of layers, for 4 antenna ports, if transformPrecoder=disabled and maxRank = 2 or 3 or 4
// next six columns contain table 7.3.1.1.2-3: Precoding information and number of layers for 4 antenna ports, if transformPrecoder= enabled, or if transformPrecoder=disabled and maxRank = 1
// next four columns contain table 7.3.1.1.2-4: Precoding information and number of layers, for 2 antenna ports, if transformPrecoder=disabled and maxRank = 2
// next four columns contain table 7.3.1.1.2-5: Precoding information and number of layers, for 2 antenna ports, if transformPrecoder= enabled, or if transformPrecoder= disabled and maxRank = 1
/* PUCCH_RESOURCE_IND (only if CRC scrambled by C-RNTI or CS-RNTI or new-RNTI)*/
if(dci->pucch_resource_ind==0)dlsch_config_pdu_1_0->pucch_resource_id=0;//pucch-ResourceId obtained from the 1st value of resourceList FIXME!!!
if(dci->pucch_resource_ind==1)dlsch_config_pdu_1_0->pucch_resource_id=0;//pucch-ResourceId obtained from the 2nd value of resourceList FIXME!!
if(dci->pucch_resource_ind==2)dlsch_config_pdu_1_0->pucch_resource_id=0;//pucch-ResourceId obtained from the 3rd value of resourceList FIXME!!
if(dci->pucch_resource_ind==3)dlsch_config_pdu_1_0->pucch_resource_id=0;//pucch-ResourceId obtained from the 4th value of resourceList FIXME!!
if(dci->pucch_resource_ind==4)dlsch_config_pdu_1_0->pucch_resource_id=0;//pucch-ResourceId obtained from the 5th value of resourceList FIXME!!
if(dci->pucch_resource_ind==5)dlsch_config_pdu_1_0->pucch_resource_id=0;//pucch-ResourceId obtained from the 6th value of resourceList FIXME!!
if(dci->pucch_resource_ind==6)dlsch_config_pdu_1_0->pucch_resource_id=0;//pucch-ResourceId obtained from the 7th value of resourceList FIXME!!
if(dci->pucch_resource_ind==7)dlsch_config_pdu_1_0->pucch_resource_id=0;//pucch-ResourceId obtained from the 8th value of resourceList FIXME!!
//if (dci->pucch_resource_ind == 0) dlsch_config_pdu_1_0->pucch_resource_id = 1; //pucch-ResourceId obtained from the 1st value of resourceList FIXME!!!
//if (dci->pucch_resource_ind == 1) dlsch_config_pdu_1_0->pucch_resource_id = 2; //pucch-ResourceId obtained from the 2nd value of resourceList FIXME!!
//if (dci->pucch_resource_ind == 2) dlsch_config_pdu_1_0->pucch_resource_id = 3; //pucch-ResourceId obtained from the 3rd value of resourceList FIXME!!
//if (dci->pucch_resource_ind == 3) dlsch_config_pdu_1_0->pucch_resource_id = 4; //pucch-ResourceId obtained from the 4th value of resourceList FIXME!!
//if (dci->pucch_resource_ind == 4) dlsch_config_pdu_1_0->pucch_resource_id = 5; //pucch-ResourceId obtained from the 5th value of resourceList FIXME!!
//if (dci->pucch_resource_ind == 5) dlsch_config_pdu_1_0->pucch_resource_id = 6; //pucch-ResourceId obtained from the 6th value of resourceList FIXME!!
//if (dci->pucch_resource_ind == 6) dlsch_config_pdu_1_0->pucch_resource_id = 7; //pucch-ResourceId obtained from the 7th value of resourceList FIXME!!
//if (dci->pucch_resource_ind == 7) dlsch_config_pdu_1_0->pucch_resource_id = 8; //pucch-ResourceId obtained from the 8th value of resourceList FIXME!!