fixes for polartest and ulschsim
This commit is contained in:
@@ -175,7 +175,7 @@ if (logFlag){
|
|||||||
double channelOutput[coderLength]; //add noise
|
double channelOutput[coderLength]; //add noise
|
||||||
int16_t channelOutput_int16[coderLength];
|
int16_t channelOutput_int16[coderLength];
|
||||||
|
|
||||||
t_nrPolar_params *currentPtr = nr_polar_params(polarMessageType, testLength, 1, aggregation_level,NULL);
|
t_nrPolar_params *currentPtr = nr_polar_params(polarMessageType, testLength, aggregation_level, 1, NULL);
|
||||||
|
|
||||||
#ifdef DEBUG_DCI_POLAR_PARAMS
|
#ifdef DEBUG_DCI_POLAR_PARAMS
|
||||||
uint32_t dci_pdu[4];
|
uint32_t dci_pdu[4];
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
void free_gNB_ulsch(NR_gNB_ULSCH_t **ulsch,uint8_t N_RB_UL);
|
void free_gNB_ulsch(NR_gNB_ULSCH_t **ulsch,uint8_t N_RB_UL);
|
||||||
|
|
||||||
NR_gNB_ULSCH_t *new_gNB_ulsch(uint8_t max_ldpc_iterations,uint8_t N_RB_UL, uint8_t abstraction_flag);
|
NR_gNB_ULSCH_t *new_gNB_ulsch(uint8_t max_ldpc_iterations,uint16_t N_RB_UL, uint8_t abstraction_flag);
|
||||||
|
|
||||||
|
|
||||||
/*! \brief Perform PUSCH decoding. TS 38.212 V15.4.0 subclause 6.2
|
/*! \brief Perform PUSCH decoding. TS 38.212 V15.4.0 subclause 6.2
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ void free_gNB_ulsch(NR_gNB_ULSCH_t **ulschptr,uint8_t N_RB_UL)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
NR_gNB_ULSCH_t *new_gNB_ulsch(uint8_t max_ldpc_iterations,uint8_t N_RB_UL, uint8_t abstraction_flag)
|
NR_gNB_ULSCH_t *new_gNB_ulsch(uint8_t max_ldpc_iterations,uint16_t N_RB_UL, uint8_t abstraction_flag)
|
||||||
{
|
{
|
||||||
|
|
||||||
NR_gNB_ULSCH_t *ulsch;
|
NR_gNB_ULSCH_t *ulsch;
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ void free_nr_ue_dlsch(NR_UE_DLSCH_t **dlschptr,uint8_t N_RB_DL)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
NR_UE_DLSCH_t *new_nr_ue_dlsch(uint8_t Kmimo,uint8_t Mdlharq,uint32_t Nsoft,uint8_t max_ldpc_iterations,uint8_t N_RB_DL, uint8_t abstraction_flag)
|
NR_UE_DLSCH_t *new_nr_ue_dlsch(uint8_t Kmimo,uint8_t Mdlharq,uint32_t Nsoft,uint8_t max_ldpc_iterations,uint16_t N_RB_DL, uint8_t abstraction_flag)
|
||||||
{
|
{
|
||||||
|
|
||||||
NR_UE_DLSCH_t *dlsch;
|
NR_UE_DLSCH_t *dlsch;
|
||||||
|
|||||||
@@ -59,12 +59,12 @@ void free_nr_ue_dlsch(NR_UE_DLSCH_t **dlsch,uint8_t N_RB_DL);
|
|||||||
@params N_RB_DL total number of resource blocks (determine the operating BW)
|
@params N_RB_DL total number of resource blocks (determine the operating BW)
|
||||||
@param abstraction_flag Flag to indicate abstracted interface
|
@param abstraction_flag Flag to indicate abstracted interface
|
||||||
*/
|
*/
|
||||||
NR_UE_DLSCH_t *new_nr_ue_dlsch(uint8_t Kmimo,uint8_t Mdlharq,uint32_t Nsoft,uint8_t max_turbo_iterations,uint8_t N_RB_DL, uint8_t abstraction_flag);
|
NR_UE_DLSCH_t *new_nr_ue_dlsch(uint8_t Kmimo,uint8_t Mdlharq,uint32_t Nsoft,uint8_t max_turbo_iterations,uint16_t N_RB_DL, uint8_t abstraction_flag);
|
||||||
|
|
||||||
|
|
||||||
void free_nr_ue_ulsch(NR_UE_ULSCH_t **ulsch,unsigned char N_RB_UL);
|
void free_nr_ue_ulsch(NR_UE_ULSCH_t **ulsch,unsigned char N_RB_UL);
|
||||||
|
|
||||||
NR_UE_ULSCH_t *new_nr_ue_ulsch(unsigned char N_RB_UL, int number_of_harq_pids, uint8_t abstraction_flag);
|
NR_UE_ULSCH_t *new_nr_ue_ulsch(uint16_t N_RB_UL, int number_of_harq_pids, uint8_t abstraction_flag);
|
||||||
|
|
||||||
void fill_UE_dlsch_MCH(PHY_VARS_NR_UE *ue,int mcs,int ndi,int rvidx,int eNB_id);
|
void fill_UE_dlsch_MCH(PHY_VARS_NR_UE *ue,int mcs,int ndi,int rvidx,int eNB_id);
|
||||||
|
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ void free_nr_ue_ulsch(NR_UE_ULSCH_t **ulschptr,unsigned char N_RB_UL)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
NR_UE_ULSCH_t *new_nr_ue_ulsch(unsigned char N_RB_UL,
|
NR_UE_ULSCH_t *new_nr_ue_ulsch(uint16_t N_RB_UL,
|
||||||
int number_of_harq_pids,
|
int number_of_harq_pids,
|
||||||
uint8_t abstraction_flag)
|
uint8_t abstraction_flag)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -232,9 +232,9 @@ int main(int argc, char **argv)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'R':
|
case 'R':
|
||||||
N_RB_DL = atoi(optarg);
|
N_RB_UL = atoi(optarg);
|
||||||
#ifdef DEBUG_NR_ULSCHSIM
|
#ifdef DEBUG_NR_ULSCHSIM
|
||||||
printf("N_RB_DL (-R) = %d\n", N_RB_DL);
|
printf("N_RB_UL (-R) = %d\n", N_RB_UL);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -292,7 +292,7 @@ int main(int argc, char **argv)
|
|||||||
//printf("-j Relative strength of second intefering eNB (in dB) - cell_id mod 3 = 2\n");
|
//printf("-j Relative strength of second intefering eNB (in dB) - cell_id mod 3 = 2\n");
|
||||||
printf("-M Multiple SSB positions in burst\n");
|
printf("-M Multiple SSB positions in burst\n");
|
||||||
printf("-N Nid_cell\n");
|
printf("-N Nid_cell\n");
|
||||||
printf("-R N_RB_DL\n");
|
printf("-R N_RB_UL\n");
|
||||||
printf("-F Input filename (.txt format) for RX conformance testing\n");
|
printf("-F Input filename (.txt format) for RX conformance testing\n");
|
||||||
printf("-m\n");
|
printf("-m\n");
|
||||||
printf("-l\n");
|
printf("-l\n");
|
||||||
@@ -339,10 +339,11 @@ int main(int argc, char **argv)
|
|||||||
frame_parms->N_RB_DL = N_RB_DL;
|
frame_parms->N_RB_DL = N_RB_DL;
|
||||||
frame_parms->N_RB_UL = N_RB_UL;
|
frame_parms->N_RB_UL = N_RB_UL;
|
||||||
frame_parms->Ncp = extended_prefix_flag ? EXTENDED : NORMAL;
|
frame_parms->Ncp = extended_prefix_flag ? EXTENDED : NORMAL;
|
||||||
|
|
||||||
crcTableInit();
|
crcTableInit();
|
||||||
|
|
||||||
nr_phy_config_request_sim(gNB, N_RB_DL, N_RB_DL, mu, Nid_cell, SSB_positions);
|
memcpy(&gNB->frame_parms, frame_parms, sizeof(NR_DL_FRAME_PARMS));
|
||||||
|
|
||||||
|
nr_phy_config_request_sim(gNB, N_RB_UL, N_RB_UL, mu, Nid_cell, SSB_positions);
|
||||||
|
|
||||||
phy_init_nr_gNB(gNB, 0, 0);
|
phy_init_nr_gNB(gNB, 0, 0);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user