Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-RAN
Commits
69b58589
Commit
69b58589
authored
Oct 21, 2019
by
Francesco Mani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix in compute tbs
parent
4e1b874a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
openair1/PHY/CODING/nr_compute_tbs.c
openair1/PHY/CODING/nr_compute_tbs.c
+5
-5
No files found.
openair1/PHY/CODING/nr_compute_tbs.c
View file @
69b58589
...
...
@@ -43,7 +43,7 @@ uint32_t nr_compute_tbs(uint16_t Qm,
uint16_t
nbp_re
,
nb_re
;
uint32_t
nr_tbs
=
0
;
uint
16
_t
Ninfo
,
Np_info
,
C
;
uint
32
_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
n
r
_rb_lbrm
=
0
;
uint16_t
n
b
_rb_lbrm
=
0
;
uint8_t
Qm
;
int
i
;
uint32_t
nr_tbs
=
0
;
uint
16
_t
Ninfo
,
Np_info
;
uint
32
_t
Ninfo
,
Np_info
;
uint8_t
n
;
for
(
i
=
0
;
i
<
7
;
i
++
)
{
if
(
NPRB_LBRM
[
i
]
>=
nb_rb
){
n
r
_rb_lbrm
=
NPRB_LBRM
[
i
];
n
b
_rb_lbrm
=
NPRB_LBRM
[
i
];
break
;
}
}
Qm
=
((
table
==
1
)
?
8
:
6
);
R
=
948
;
nb_re
=
156
*
n
r
_rb_lbrm
;
nb_re
=
156
*
n
b
_rb_lbrm
;
// Intermediate number of information bits
Ninfo
=
(
nb_re
*
R
*
Qm
*
Nl
)
>>
10
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment