Commit 23db2b52 authored by Florian Kaltenberger's avatar Florian Kaltenberger

removed fix_rounds variable from dlsim.c as it was causing unwanted behaviour


git-svn-id: http://svn.eurecom.fr/openair4G/trunk@6145 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent c033c386
...@@ -492,13 +492,11 @@ int main(int argc, char **argv) { ...@@ -492,13 +492,11 @@ int main(int argc, char **argv) {
break; break;
case 'e': case 'e':
num_rounds=1; num_rounds=1;
fix_rounds=1;
common_flag = 1; common_flag = 1;
TPC = atoi(optarg); TPC = atoi(optarg);
break; break;
case 'R': case 'R':
num_rounds=atoi(optarg); num_rounds=atoi(optarg);
fix_rounds=1;
break; break;
case 'S': case 'S':
subframe=atoi(optarg); subframe=atoi(optarg);
...@@ -1617,7 +1615,8 @@ int main(int argc, char **argv) { ...@@ -1617,7 +1615,8 @@ int main(int argc, char **argv) {
//if (trials%100==0) //if (trials%100==0)
eNB2UE[0]->first_run = 1; eNB2UE[0]->first_run = 1;
while (round < num_rounds) { ret = PHY_vars_UE->dlsch_ue[0][0]->max_turbo_iterations+1;
while ((round < num_rounds) && (ret > PHY_vars_UE->dlsch_ue[0][0]->max_turbo_iterations)) {
// printf("Trial %d, round %d\n",trials,round); // printf("Trial %d, round %d\n",trials,round);
round_trials[round]++; round_trials[round]++;
...@@ -2260,8 +2259,10 @@ int main(int argc, char **argv) { ...@@ -2260,8 +2259,10 @@ int main(int argc, char **argv) {
dci_errors++; dci_errors++;
round=5; round=5;
errs[0]++; errs[0]++;
round_trials[0]++; //round_trials[0]++;
// printf("DCI error trial %d errs[0] %d\n",trials,errs[0]);
if (n_frames==1)
printf("DCI error trial %d errs[0] %d\n",trials,errs[0]);
} }
// for (i=1;i<=round;i++) // for (i=1;i<=round;i++)
// round_trials[i]--; // round_trials[i]--;
...@@ -2303,12 +2304,12 @@ PHY_vars_UE->lte_ue_pdcch_vars[0]->num_pdcch_symbols, ...@@ -2303,12 +2304,12 @@ PHY_vars_UE->lte_ue_pdcch_vars[0]->num_pdcch_symbols,
if (round==0) { if (round==0) {
dci_errors++; dci_errors++;
errs[0]++; errs[0]++;
round_trials[0]++; //round_trials[0]++;
round=5;
if (n_frames==1) { if (n_frames==1)
printf("DCI misdetection trial %d\n",trials); printf("DCI misdetection trial %d\n",trials);
round=5;
}
} }
// for (i=1;i<=round;i++) // for (i=1;i<=round;i++)
// round_trials[i]--; // round_trials[i]--;
...@@ -2567,13 +2568,9 @@ PHY_vars_UE->lte_ue_pdcch_vars[0]->num_pdcch_symbols, ...@@ -2567,13 +2568,9 @@ PHY_vars_UE->lte_ue_pdcch_vars[0]->num_pdcch_symbols,
iter_trials++; iter_trials++;
if (n_frames==1) if (n_frames==1)
printf("No DLSCH errors found,uncoded ber %f\n",uncoded_ber); printf("No DLSCH errors found,uncoded ber %f\n",uncoded_ber);
// exit(-1);
if (fix_rounds==0)
round=5;
else
round++;
PHY_vars_UE->total_TBS[eNB_id] = PHY_vars_UE->total_TBS[eNB_id] + PHY_vars_UE->dlsch_ue[eNB_id][0]->harq_processes[PHY_vars_UE->dlsch_ue[eNB_id][0]->current_harq_pid]->TBS; PHY_vars_UE->total_TBS[eNB_id] = PHY_vars_UE->total_TBS[eNB_id] + PHY_vars_UE->dlsch_ue[eNB_id][0]->harq_processes[PHY_vars_UE->dlsch_ue[eNB_id][0]->current_harq_pid]->TBS;
} }
else { else {
errs[round]++; errs[round]++;
...@@ -2633,9 +2630,6 @@ PHY_vars_UE->lte_ue_pdcch_vars[0]->num_pdcch_symbols, ...@@ -2633,9 +2630,6 @@ PHY_vars_UE->lte_ue_pdcch_vars[0]->num_pdcch_symbols,
round++; round++;
if (n_frames==1)
printf("DLSCH in error in round %d\n",round);
} }
#ifdef XFORMS #ifdef XFORMS
phy_scope_UE(form_ue, phy_scope_UE(form_ue,
...@@ -2644,6 +2638,7 @@ PHY_vars_UE->lte_ue_pdcch_vars[0]->num_pdcch_symbols, ...@@ -2644,6 +2638,7 @@ PHY_vars_UE->lte_ue_pdcch_vars[0]->num_pdcch_symbols,
0,// UE_id 0,// UE_id
subframe); subframe);
#endif #endif
} //round } //round
// printf("\n"); // printf("\n");
......
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