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
lizhongxiao
OpenXG-RAN
Commits
b31a0b42
Commit
b31a0b42
authored
Aug 16, 2018
by
yilmazt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debug changes4
parent
df8929e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
openair1/PHY/NR_TRANSPORT/nr_dci.c
openair1/PHY/NR_TRANSPORT/nr_dci.c
+5
-2
openair1/PHY/NR_TRANSPORT/nr_dci_tools.c
openair1/PHY/NR_TRANSPORT/nr_dci_tools.c
+5
-5
No files found.
openair1/PHY/NR_TRANSPORT/nr_dci.c
View file @
b31a0b42
...
...
@@ -204,16 +204,19 @@ uint8_t nr_generate_dci_top(NR_gNB_PDCCH pdcch_vars,
/// DCI payload processing
//channel coding
#ifdef DEBUG_POLAR_PARAMS
dci_alloc
.
dci_pdu
[
1
]
=
10
;
uint8_t
*
encoderInput
=
malloc
(
sizeof
(
uint8_t
)
*
dci_alloc
.
size
);
printf
(
"
\n
[TY]DCI PDU: [0]->0x%08x
\t
[1]->0x%08x
\t
[2]->0x%08x
\t
[3]->0x%08x
\n
"
,
dci_alloc
.
dci_pdu
[
0
],
dci_alloc
.
dci_pdu
[
1
],
dci_alloc
.
dci_pdu
[
2
],
dci_alloc
.
dci_pdu
[
3
]);
printf
(
"
\n
dci_alloc.dci_pdu
\n
[0]=%d [1]=%d [2]=%d [3]=%d
\n
"
,
dci_alloc
.
dci_pdu
[
0
],
dci_alloc
.
dci_pdu
[
1
],
dci_alloc
.
dci_pdu
[
2
],
dci_alloc
.
dci_pdu
[
3
]);
nr_bit2byte
(
dci_alloc
.
dci_pdu
,
dci_alloc
.
size
,
encoderInput
);
printf
(
"
\n
dci_alloc.dci_pdu
\n
[0]=%d [1]=%d [2]=%d [3]=%d
\n
"
,
dci_alloc
.
dci_pdu
[
0
],
dci_alloc
.
dci_pdu
[
1
],
dci_alloc
.
dci_pdu
[
2
],
dci_alloc
.
dci_pdu
[
3
]);
for
(
int
i
=
0
;
i
<
dci_alloc
.
size
;
i
++
)
printf
(
"encoderInput[%d]=%d
\n
"
,
i
,
encoderInput
[
i
]);
nr_byte2bit
(
encoderInput
,
dci_alloc
.
size
,
dci_alloc
.
dci_pdu
);
printf
(
"
\n
[TY]DCI PDU: [0]->0x%08x
\t
[1]->0x%08x
\t
[2]->0x%08x
\t
[3]->0x%08x
\n
"
,
dci_alloc
.
dci_pdu
[
0
],
dci_alloc
.
dci_pdu
[
1
],
dci_alloc
.
dci_pdu
[
2
],
dci_alloc
.
dci_pdu
[
3
]);
return
(
0
);
nr_polar_init
(
&
nrPolar_params
,
NR_POLAR_DCI_MESSAGE_TYPE
,
dci_alloc
.
size
,
pdcch_params
.
aggregation_level
);
t_nrPolar_paramsPtr
currentPtr
=
nr_polar_params
(
nrPolar_params
,
NR_POLAR_DCI_MESSAGE_TYPE
,
...
...
openair1/PHY/NR_TRANSPORT/nr_dci_tools.c
View file @
b31a0b42
...
...
@@ -130,11 +130,11 @@ void nr_fill_dci_and_dlsch(PHY_VARS_gNB *gNB,
switch
(
params_rel15
->
rnti_type
)
{
case
NFAPI_NR_RNTI_RA
:
#ifdef DEBUG_NFAPI_NR_RNTI_RA
printf
(
"frequency_domain_assignment = %05d = %#0
8
x
\n
"
"
time_domain_assignment = %05d = %#08
x
\n
"
"
vrb_to_prb_mapping = %05d = %#08
x
\n
"
"
MCS = %05d = %#08
x
\n
"
"
tb_scaling = %05d = %#08
x
\n
"
,
printf
(
"frequency_domain_assignment = %05d = %#0
10
x
\n
"
"
time_domain_assignment = %05d = %#010
x
\n
"
"
vrb_to_prb_mapping = %05d = %#010
x
\n
"
"
MCS = %05d = %#010
x
\n
"
"
tb_scaling = %05d = %#010
x
\n
"
,
pdu_rel15
->
frequency_domain_assignment
,
pdu_rel15
->
frequency_domain_assignment
,
pdu_rel15
->
time_domain_assignment
,
pdu_rel15
->
time_domain_assignment
,
pdu_rel15
->
vrb_to_prb_mapping
,
pdu_rel15
->
vrb_to_prb_mapping
,
...
...
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