Commit aec56c9a authored by francescomani's avatar francescomani

additional review comments

parent 5eb9e1f4
...@@ -408,7 +408,7 @@ void nr_preprocessor_phytest(module_id_t module_id, ...@@ -408,7 +408,7 @@ void nr_preprocessor_phytest(module_id_t module_id,
/* mark the corresponding RBs as used */ /* mark the corresponding RBs as used */
for (int rb = 0; rb < sched_pdsch->rbSize; rb++) for (int rb = 0; rb < sched_pdsch->rbSize; rb++)
vrb_map[rb + sched_pdsch->rbStart + BWPStart] = ((1<<ps->nrOfSymbols)-1)<<ps->startSymbolIndex; vrb_map[rb + sched_pdsch->rbStart + BWPStart] = SL_to_bitmap(ps->startSymbolIndex, ps->nrOfSymbols);
if ((frame&127) == 0) LOG_D(MAC,"phytest: %d.%d DL mcs %d, DL rbStart %d, DL rbSize %d\n", frame, slot, sched_pdsch->mcs, rbStart,rbSize); if ((frame&127) == 0) LOG_D(MAC,"phytest: %d.%d DL mcs %d, DL rbStart %d, DL rbSize %d\n", frame, slot, sched_pdsch->mcs, rbStart,rbSize);
} }
......
...@@ -376,14 +376,7 @@ void fill_pdcch_vrb_map(gNB_MAC_INST *mac, ...@@ -376,14 +376,7 @@ void fill_pdcch_vrb_map(gNB_MAC_INST *mac,
for (int j=first_cce; j<first_cce+aggregation; j++) { // loop over CCEs for (int j=first_cce; j<first_cce+aggregation; j++) { // loop over CCEs
for (int k=6*j/L; k<(6*j/L+6/L); k++) { // loop over REG bundles for (int k=6*j/L; k<(6*j/L+6/L); k++) { // loop over REG bundles
int f; // interleaving function int f = cce_to_reg_interleaving(R, k, n_shift, C, L, N_regs);
if(R==0)
f = k;
else {
int c = k/R;
int r = k%R;
f = (r*C + c + n_shift)%(N_regs/L);
}
for(int rb=0; rb<B_rb; rb++) // loop over the RBs of the bundle for(int rb=0; rb<B_rb; rb++) // loop over the RBs of the bundle
vrb_map[pdcch->BWPStart + f*B_rb + rb] |= SL_to_bitmap(pdcch->StartSymbolIndex, N_symb); vrb_map[pdcch->BWPStart + f*B_rb + rb] |= SL_to_bitmap(pdcch->StartSymbolIndex, N_symb);
} }
......
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