Commit 2ab2f98f authored by lukashov's avatar lukashov

feature-59-tm4: fixing dci_tools.c tmpi0 all channels all mod orders works

parent e0f66773
...@@ -4765,6 +4765,13 @@ int generate_ue_dlsch_params_from_dci(int frame, ...@@ -4765,6 +4765,13 @@ int generate_ue_dlsch_params_from_dci(int frame,
dlsch0_harq->rvidx = rv1; dlsch0_harq->rvidx = rv1;
dlsch1_harq->rvidx = rv2; dlsch1_harq->rvidx = rv2;
// assume both TBs are active
dlsch0_harq->Nl = 1;
dlsch1_harq->Nl = 1;
dlsch0->active = 1;
dlsch1->active = 1;
// check if either TB is disabled (see 36-213 V8.6 p. 26) // check if either TB is disabled (see 36-213 V8.6 p. 26)
if ((dlsch0_harq->rvidx == 1) && (dlsch0_harq->mcs == 0)) { if ((dlsch0_harq->rvidx == 1) && (dlsch0_harq->mcs == 0)) {
......
...@@ -410,7 +410,7 @@ int main(int argc, char **argv) ...@@ -410,7 +410,7 @@ int main(int argc, char **argv)
case 'M': case 'M':
mcs2 = atoi(optarg); mcs2 = atoi(optarg);
i_mod = get_Qm(mcs2); /// think here again!!! //i_mod = get_Qm(mcs2); /// think here again!!!
break; break;
case 't': case 't':
...@@ -2747,9 +2747,9 @@ n(tikz_fname,"w"); ...@@ -2747,9 +2747,9 @@ n(tikz_fname,"w");
k,cw,rate,rate*get_Qm(PHY_vars_eNB->dlsch_eNB[k][cw]->harq_processes[0]->mcs), k,cw,rate,rate*get_Qm(PHY_vars_eNB->dlsch_eNB[k][cw]->harq_processes[0]->mcs),
coded_bits_per_codeword, coded_bits_per_codeword,
tbs, tbs,
get_Qm(PHY_vars_eNB->dlsch_eNB[k][cw]->harq_processes[0]->mcs), //changed dlsch_eNB[k][0] get_Qm(PHY_vars_eNB->dlsch_eNB[k][cw]->harq_processes[0]->mcs),
num_pdcch_symbols, num_pdcch_symbols,
PHY_vars_eNB->dlsch_eNB[k][cw]->harq_processes[0]->round);//changed dlsch_eNB[k][0] PHY_vars_eNB->dlsch_eNB[k][cw]->harq_processes[0]->round);
// use the PMI from previous trial // use the PMI from previous trial
if (DLSCH_alloc_pdu2_1E[0].tpmi == 5) { if (DLSCH_alloc_pdu2_1E[0].tpmi == 5) {
...@@ -3521,7 +3521,7 @@ n(tikz_fname,"w"); ...@@ -3521,7 +3521,7 @@ n(tikz_fname,"w");
num_pdcch_symbols, num_pdcch_symbols,
0,subframe); 0,subframe);
PHY_vars_UE->dlsch_ue[0][cw]->harq_processes[PHY_vars_UE->dlsch_ue[0][cw]->current_harq_pid]->G = coded_bits_per_codeword; PHY_vars_UE->dlsch_ue[0][cw]->harq_processes[PHY_vars_UE->dlsch_ue[0][cw]->current_harq_pid]->G = coded_bits_per_codeword;
PHY_vars_UE->dlsch_ue[0][cw]->harq_processes[PHY_vars_UE->dlsch_ue[0][cw]->current_harq_pid]->Qm = get_Qm(PHY_vars_eNB->dlsch_eNB[0][cw]->harq_processes[0]->mcs);
if (n_frames==1) { if (n_frames==1) {
printf("Kmimo=%d, cw=%d, G=%d, TBS=%d\n",Kmimo,cw,coded_bits_per_codeword, printf("Kmimo=%d, cw=%d, G=%d, TBS=%d\n",Kmimo,cw,coded_bits_per_codeword,
PHY_vars_UE->dlsch_ue[0][cw]->harq_processes[PHY_vars_UE->dlsch_ue[0][cw]->current_harq_pid]->TBS); PHY_vars_UE->dlsch_ue[0][cw]->harq_processes[PHY_vars_UE->dlsch_ue[0][cw]->current_harq_pid]->TBS);
......
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