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
wangjie
OpenXG-RAN
Commits
c1dc042d
Commit
c1dc042d
authored
Oct 25, 2019
by
Francesco Mani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tbs as uint32_t
parent
748a2397
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
nfapi/open-nFAPI/nfapi/public_inc/nfapi_nr_interface.h
nfapi/open-nFAPI/nfapi/public_inc/nfapi_nr_interface.h
+1
-1
openair1/PHY/CODING/nr_compute_tbs.c
openair1/PHY/CODING/nr_compute_tbs.c
+1
-2
openair1/PHY/NR_TRANSPORT/nr_tbs_tools.c
openair1/PHY/NR_TRANSPORT/nr_tbs_tools.c
+2
-1
No files found.
nfapi/open-nFAPI/nfapi/public_inc/nfapi_nr_interface.h
View file @
c1dc042d
...
@@ -593,7 +593,7 @@ typedef struct {
...
@@ -593,7 +593,7 @@ typedef struct {
uint16_t
coding_rate
;
uint16_t
coding_rate
;
uint8_t
modulation
;
uint8_t
modulation
;
uint8_t
modulation_order
;
uint8_t
modulation_order
;
uint
16
_t
transport_block_size
;
uint
32
_t
transport_block_size
;
uint8_t
nb_re_dmrs
;
uint8_t
nb_re_dmrs
;
uint8_t
time_alloc_list_flag
;
uint8_t
time_alloc_list_flag
;
uint8_t
time_alloc_list
;
uint8_t
time_alloc_list
;
...
...
openair1/PHY/CODING/nr_compute_tbs.c
View file @
c1dc042d
...
@@ -54,8 +54,6 @@ uint32_t nr_compute_tbs(uint16_t Qm,
...
@@ -54,8 +54,6 @@ uint32_t nr_compute_tbs(uint16_t Qm,
// Intermediate number of information bits
// Intermediate number of information bits
Ninfo
=
(
nb_re
*
R
*
Qm
*
Nl
)
>>
scale
;
Ninfo
=
(
nb_re
*
R
*
Qm
*
Nl
)
>>
scale
;
//printf("Ninfo %lf nbp_re %d nb_re %d mcs %d Qm %d, R %d\n", Ninfo, nbp_re, nb_re,mcs, Qm, R);
if
(
Ninfo
<=
3824
)
{
if
(
Ninfo
<=
3824
)
{
n
=
max
(
3
,
floor
(
log2
(
Ninfo
))
-
6
);
n
=
max
(
3
,
floor
(
log2
(
Ninfo
))
-
6
);
Np_info
=
max
(
24
,
(
Ninfo
>>
n
)
<<
n
);
Np_info
=
max
(
24
,
(
Ninfo
>>
n
)
<<
n
);
...
@@ -86,6 +84,7 @@ uint32_t nr_compute_tbs(uint16_t Qm,
...
@@ -86,6 +84,7 @@ uint32_t nr_compute_tbs(uint16_t Qm,
}
}
}
}
//printf("Ninfo %d nbp_re %d nb_re %d Qm %d, R %d, tbs %d\n", Ninfo, nbp_re, nb_re, Qm, R, nr_tbs);
return
nr_tbs
;
return
nr_tbs
;
}
}
...
...
openair1/PHY/NR_TRANSPORT/nr_tbs_tools.c
View file @
c1dc042d
...
@@ -184,7 +184,8 @@ void nr_get_tbs_dl(nfapi_nr_dl_config_dlsch_pdu *dlsch_pdu,
...
@@ -184,7 +184,8 @@ void nr_get_tbs_dl(nfapi_nr_dl_config_dlsch_pdu *dlsch_pdu,
uint16_t
N_RE_prime
=
NR_NB_SC_PER_RB
*
N_sh_symb
-
N_PRB_DMRS
-
N_PRB_oh
;
uint16_t
N_RE_prime
=
NR_NB_SC_PER_RB
*
N_sh_symb
-
N_PRB_DMRS
-
N_PRB_oh
;
LOG_D
(
MAC
,
"N_RE_prime %d for %d symbols %d DMRS per PRB and %d overhead
\n
"
,
N_RE_prime
,
N_sh_symb
,
N_PRB_DMRS
,
N_PRB_oh
);
LOG_D
(
MAC
,
"N_RE_prime %d for %d symbols %d DMRS per PRB and %d overhead
\n
"
,
N_RE_prime
,
N_sh_symb
,
N_PRB_DMRS
,
N_PRB_oh
);
uint16_t
R
,
TBS
=
0
;
uint16_t
R
;
uint32_t
TBS
=
0
;
uint8_t
table_idx
,
Qm
;
uint8_t
table_idx
,
Qm
;
/*uint8_t mcs_table = config.pdsch_config.mcs_table.value;
/*uint8_t mcs_table = config.pdsch_config.mcs_table.value;
...
...
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