nr,pdcch_dmrs: take into account offset_rb in DMRS mapping

master
Ismael Gomez 3 years ago committed by Andre Puschmann
parent 4f65c644f0
commit ebeb46b230

@ -70,6 +70,9 @@ static void dmrs_pdcch_put_symbol(const srsran_carrier_nr_t* carrier,
// CORESET Resource Block counter // CORESET Resource Block counter
uint32_t rb_coreset_idx = 0; uint32_t rb_coreset_idx = 0;
// Get CORESET offset
uint32_t offset_k = coreset->offset_rb * SRSRAN_NRE;
// For each frequency resource (6 RB groups) // For each frequency resource (6 RB groups)
for (uint32_t res_idx = 0; res_idx < nof_freq_res; res_idx++) { for (uint32_t res_idx = 0; res_idx < nof_freq_res; res_idx++) {
// Skip frequency resource if outside of the CORESET // Skip frequency resource if outside of the CORESET
@ -104,7 +107,7 @@ static void dmrs_pdcch_put_symbol(const srsran_carrier_nr_t* carrier,
uint32_t k = n * SRSRAN_NRE + 4 * k_prime + 1; uint32_t k = n * SRSRAN_NRE + 4 * k_prime + 1;
// Write DMRS // Write DMRS
sf_symbol[k] = rl[k_prime]; sf_symbol[k + offset_k] = rl[k_prime];
} }
} }
} }

Loading…
Cancel
Save