Commit cf85aebd authored by Nick Ho's avatar Nick Ho

dci length fixed

parent cf7079a6
...@@ -294,7 +294,7 @@ int generate_eNB_dlsch_params_from_dci_NB_IoT(PHY_VARS_eNB *eNB, ...@@ -294,7 +294,7 @@ int generate_eNB_dlsch_params_from_dci_NB_IoT(PHY_VARS_eNB *eNB,
// ndlcch->ncce_index = NCCE_index; // ndlcch->ncce_index = NCCE_index;
// ndlcch->aggregation_level = aggregation; // ndlcch->aggregation_level = aggregation;
ndlcch->A[ncce_index] = sizeof(DCIN1_RAR_t); // number of bits in DCI ndlcch->A[ncce_index] = sizeof_DCIN1_RAR_t; // number of bits in DCI
//ndlcch->subframe_tx[subframe] = 1; // check if it's OK //ndlcch->subframe_tx[subframe] = 1; // check if it's OK
ndlcch->rnti[ncce_index] = rnti; //we store the RNTI (e.g. for RNTI will be used later) ndlcch->rnti[ncce_index] = rnti; //we store the RNTI (e.g. for RNTI will be used later)
...@@ -306,7 +306,7 @@ int generate_eNB_dlsch_params_from_dci_NB_IoT(PHY_VARS_eNB *eNB, ...@@ -306,7 +306,7 @@ int generate_eNB_dlsch_params_from_dci_NB_IoT(PHY_VARS_eNB *eNB,
ndlcch->repetition_number[ncce_index] = Irep_to_Nrep[RepNum]; // repetition number for NPDSCH ndlcch->repetition_number[ncce_index] = Irep_to_Nrep[RepNum]; // repetition number for NPDSCH
ndlcch->dci_repetitions[ncce_index] = DCIrep_to_real_rep(DCIRep,4); ////??????? should be repalce by the value in spec table 16.6-3, check also Rmax ndlcch->dci_repetitions[ncce_index] = DCIrep_to_real_rep(DCIRep,4); ////??????? should be repalce by the value in spec table 16.6-3, check also Rmax
printf("dci_repetitions: %d\n",ndlcch->dci_repetitions[ncce_index]); printf("dci_repetitions: %d, A = %d\n",ndlcch->dci_repetitions[ncce_index],ndlcch->A[ncce_index]);
ndlcch->modulation[ncce_index] = 2; //QPSK ndlcch->modulation[ncce_index] = 2; //QPSK
//// ////////////////////////////////////////////////if(ndlcch->round == 0) //this should be set from initialization (init-lte) //// ////////////////////////////////////////////////if(ndlcch->round == 0) //this should be set from initialization (init-lte)
......
...@@ -29,7 +29,7 @@ void enable_preamble_simulation(UL_IND_NB_IoT_t *UL_INFO,int i) ...@@ -29,7 +29,7 @@ void enable_preamble_simulation(UL_IND_NB_IoT_t *UL_INFO,int i)
tmp++; tmp++;
} }
*/ */
if(UL_INFO->frame==525 && UL_INFO->subframe==8) if(UL_INFO->frame==528 && UL_INFO->subframe==8)
{ {
simulate_preamble(UL_INFO,2,26); simulate_preamble(UL_INFO,2,26);
//tmp++; //tmp++;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment