tbs computation on the fly in pf_dl
This commit is contained in:
@@ -602,7 +602,16 @@ void pf_dl(module_id_t module_id,
|
|||||||
|
|
||||||
/* Calculate coeff */
|
/* Calculate coeff */
|
||||||
set_dl_mcs(sched_pdsch,sched_ctrl,ps->mcsTableIdx);
|
set_dl_mcs(sched_pdsch,sched_ctrl,ps->mcsTableIdx);
|
||||||
uint32_t tbs = pf_tbs[ps->mcsTableIdx][sched_pdsch->mcs];
|
const uint8_t Qm = nr_get_Qm_dl(sched_pdsch->mcs, ps->mcsTableIdx);
|
||||||
|
const uint16_t R = nr_get_code_rate_dl(sched_pdsch->mcs, ps->mcsTableIdx);
|
||||||
|
uint32_t tbs = nr_compute_tbs(Qm,
|
||||||
|
R,
|
||||||
|
1, /* rbSize */
|
||||||
|
10, /* hypothetical number of slots */
|
||||||
|
0, /* N_PRB_DMRS * N_DMRS_SLOT */
|
||||||
|
0 /* N_PRB_oh, 0 for initialBWP */,
|
||||||
|
0 /* tb_scaling */,
|
||||||
|
1 /* nrOfLayers */) >> 3;
|
||||||
coeff_ue[UE_id] = (float) tbs / thr_ue[UE_id];
|
coeff_ue[UE_id] = (float) tbs / thr_ue[UE_id];
|
||||||
LOG_D(NR_MAC,"b %d, thr_ue[%d] %f, tbs %d, coeff_ue[%d] %f\n",
|
LOG_D(NR_MAC,"b %d, thr_ue[%d] %f, tbs %d, coeff_ue[%d] %f\n",
|
||||||
b, UE_id, thr_ue[UE_id], tbs, UE_id, coeff_ue[UE_id]);
|
b, UE_id, thr_ue[UE_id], tbs, UE_id, coeff_ue[UE_id]);
|
||||||
|
|||||||
Reference in New Issue
Block a user