Merge branch 'nr-coreset-bug-fix' of https://gitlab.eurecom.fr/oai/openairinterface5g into nr-coreset-bug-fix
This commit is contained in:
@@ -175,7 +175,7 @@ for (int l=0; l<rel15->nb_layers; l++)
|
|||||||
//to be moved to init phase potentially, for now tx_layers 1-8 are mapped on antenna ports 1000-1007
|
//to be moved to init phase potentially, for now tx_layers 1-8 are mapped on antenna ports 1000-1007
|
||||||
|
|
||||||
/// DMRS QPSK modulation
|
/// DMRS QPSK modulation
|
||||||
uint16_t n_dmrs = (rel15->n_prb*rel15->nb_re_dmrs)<<1;
|
uint16_t n_dmrs = ((rel15->n_prb+rel15->start_prb)*rel15->nb_re_dmrs)<<1;
|
||||||
int16_t mod_dmrs[n_dmrs<<1];
|
int16_t mod_dmrs[n_dmrs<<1];
|
||||||
uint8_t dmrs_type = config->pdsch_config.dmrs_type.value;
|
uint8_t dmrs_type = config->pdsch_config.dmrs_type.value;
|
||||||
uint8_t mapping_type = config->pdsch_config.mapping_type.value;
|
uint8_t mapping_type = config->pdsch_config.mapping_type.value;
|
||||||
@@ -220,6 +220,10 @@ ap, Wt[0], Wt[1], Wf[0], Wf[1], delta, l_prime[0], l0, dmrs_symbol);
|
|||||||
#endif
|
#endif
|
||||||
uint8_t k_prime=0;
|
uint8_t k_prime=0;
|
||||||
uint16_t m=0, n=0, dmrs_idx=0, k=0;
|
uint16_t m=0, n=0, dmrs_idx=0, k=0;
|
||||||
|
if (dmrs_type == NFAPI_NR_DMRS_TYPE1) // another if condition to be included to check pdsch config type (reference of k)
|
||||||
|
dmrs_idx = rel15->start_prb*6;
|
||||||
|
else
|
||||||
|
dmrs_idx = rel15->start_prb*4;
|
||||||
|
|
||||||
for (int l=rel15->start_symbol; l<rel15->start_symbol+rel15->nb_symbols; l++) {
|
for (int l=rel15->start_symbol; l<rel15->start_symbol+rel15->nb_symbols; l++) {
|
||||||
k = start_sc;
|
k = start_sc;
|
||||||
|
|||||||
@@ -140,11 +140,8 @@ void nr_pdcch_demapping_deinterleaving(uint32_t *llr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
f_reg = (f_bundle_j*reg_bundle_size_L)+(reg%reg_bundle_size_L);
|
f_reg = (f_bundle_j*reg_bundle_size_L)+(reg%reg_bundle_size_L);
|
||||||
f_reg++; // to prevent compiler warning
|
|
||||||
index_z = 9*reg;
|
index_z = 9*reg;
|
||||||
index_llr = 9*(uint16_t)floor(reg/coreset_time_dur) + (9*coreset_nbr_rb)*(reg%coreset_time_dur); // might not work for noninterleaved mapping
|
index_llr = 9*((uint16_t)floor(f_reg/coreset_time_dur)+((f_reg%coreset_time_dur)*(coreset_nbr_rb)));
|
||||||
//index_llr = 9*(((uint16_t)floor(f_reg/reg_bundle_size_L)+(f_reg)%coreset_time_dur))*(coreset_nbr_rb);
|
|
||||||
//index_llr = 9*((uint16_t)floor(f_reg/coreset_time_dur)+((f_reg%coreset_time_dur)*(coreset_nbr_rb)));
|
|
||||||
|
|
||||||
for (int i=0; i<9; i++) {
|
for (int i=0; i<9; i++) {
|
||||||
z[index_z + i] = llr[index_llr + i];
|
z[index_z + i] = llr[index_llr + i];
|
||||||
|
|||||||
Reference in New Issue
Block a user