Skip to content
Snippets Groups Projects
Commit 69b58589 authored by Francesco Mani's avatar Francesco Mani
Browse files

bugfix in compute tbs

parent 4e1b874a
No related branches found
No related tags found
10 merge requests!1757Draft: Use pMAX value in configuration file, instead of hardcoded '23' in asn1_msg.c,!1493fix DL arq errors in UE,!1093Issue in generating NR PRACH for High Speed case,!1074PBCH test case support for non-zero bchpyload,!918Develop nfapi,!847Nr vcd,!782Oai ubuntu docker,!730Nr rlc,!703Integration develop nr 2019w44,!698WIP: Nr tbs, pdsch, pdcch offset fixes
......@@ -43,7 +43,7 @@ uint32_t nr_compute_tbs(uint16_t Qm,
uint16_t nbp_re, nb_re;
uint32_t nr_tbs=0;
uint16_t Ninfo, Np_info, C;
uint32_t Ninfo, Np_info, C;
uint8_t n;
nbp_re = NR_NB_SC_PER_RB * nb_symb_sch - nb_dmrs_prb - nb_rb_oh;
......@@ -97,23 +97,23 @@ uint32_t nr_compute_tbslbrm(uint16_t table,
{
uint16_t R, nb_re;
uint16_t nr_rb_lbrm=0;
uint16_t nb_rb_lbrm=0;
uint8_t Qm;
int i;
uint32_t nr_tbs=0;
uint16_t Ninfo, Np_info;
uint32_t Ninfo, Np_info;
uint8_t n;
for (i=0; i<7; i++) {
if (NPRB_LBRM[i] >= nb_rb){
nr_rb_lbrm = NPRB_LBRM[i];
nb_rb_lbrm = NPRB_LBRM[i];
break;
}
}
Qm = ((table == 1)? 8 : 6);
R = 948;
nb_re = 156 * nr_rb_lbrm;
nb_re = 156 * nb_rb_lbrm;
// Intermediate number of information bits
Ninfo = (nb_re * R * Qm * Nl)>>10;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment