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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
Michael Black
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
Hide 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,
...
@@ -43,7 +43,7 @@ uint32_t nr_compute_tbs(uint16_t Qm,
uint16_t
nbp_re
,
nb_re
;
uint16_t
nbp_re
,
nb_re
;
uint32_t
nr_tbs
=
0
;
uint32_t
nr_tbs
=
0
;
uint
16
_t
Ninfo
,
Np_info
,
C
;
uint
32
_t
Ninfo
,
Np_info
,
C
;
uint8_t
n
;
uint8_t
n
;
nbp_re
=
NR_NB_SC_PER_RB
*
nb_symb_sch
-
nb_dmrs_prb
-
nb_rb_oh
;
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,
...
@@ -97,23 +97,23 @@ uint32_t nr_compute_tbslbrm(uint16_t table,
{
{
uint16_t
R
,
nb_re
;
uint16_t
R
,
nb_re
;
uint16_t
n
r
_rb_lbrm
=
0
;
uint16_t
n
b
_rb_lbrm
=
0
;
uint8_t
Qm
;
uint8_t
Qm
;
int
i
;
int
i
;
uint32_t
nr_tbs
=
0
;
uint32_t
nr_tbs
=
0
;
uint
16
_t
Ninfo
,
Np_info
;
uint
32
_t
Ninfo
,
Np_info
;
uint8_t
n
;
uint8_t
n
;
for
(
i
=
0
;
i
<
7
;
i
++
)
{
for
(
i
=
0
;
i
<
7
;
i
++
)
{
if
(
NPRB_LBRM
[
i
]
>=
nb_rb
){
if
(
NPRB_LBRM
[
i
]
>=
nb_rb
){
n
r
_rb_lbrm
=
NPRB_LBRM
[
i
];
n
b
_rb_lbrm
=
NPRB_LBRM
[
i
];
break
;
break
;
}
}
}
}
Qm
=
((
table
==
1
)
?
8
:
6
);
Qm
=
((
table
==
1
)
?
8
:
6
);
R
=
948
;
R
=
948
;
nb_re
=
156
*
n
r
_rb_lbrm
;
nb_re
=
156
*
n
b
_rb_lbrm
;
// Intermediate number of information bits
// Intermediate number of information bits
Ninfo
=
(
nb_re
*
R
*
Qm
*
Nl
)
>>
10
;
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