Refactor PUSCH RE mapping
RE mapping time is reduced by 10x. Functions are made generic to be later reused for PDSCH RE mapping at gNB.
This commit is contained in:
committed by
francescomani
parent
add341e2f1
commit
393363e253
@@ -85,6 +85,13 @@ void set_ptrs_symb_idx(uint16_t *ptrs_symbols,
|
||||
}
|
||||
}
|
||||
|
||||
unsigned int get_first_ptrs_re(const rnti_t rnti, const uint8_t K_ptrs, const uint16_t nRB, const uint8_t k_RE_ref)
|
||||
{
|
||||
const uint16_t nRB_Kptrs = nRB % K_ptrs;
|
||||
const uint16_t k_RB_ref = nRB_Kptrs ? (rnti % nRB_Kptrs) : (rnti % K_ptrs);
|
||||
return (k_RE_ref + k_RB_ref * NR_NB_SC_PER_RB);
|
||||
}
|
||||
|
||||
/*******************************************************************
|
||||
*
|
||||
* NAME : is_ptrs_subcarrier
|
||||
|
||||
@@ -53,6 +53,8 @@ void set_ptrs_symb_idx(uint16_t *ptrs_symbols,
|
||||
uint8_t L_ptrs,
|
||||
uint16_t dmrs_symb_pos);
|
||||
|
||||
unsigned int get_first_ptrs_re(const rnti_t rnti, const uint8_t K_ptrs, const uint16_t nRB, const uint8_t k_RE_ref);
|
||||
|
||||
uint8_t is_ptrs_subcarrier(uint16_t k,
|
||||
uint16_t n_rnti,
|
||||
uint8_t K_ptrs,
|
||||
|
||||
Reference in New Issue
Block a user