Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
oai
openairinterface5G
Commits
8160f8a2
Commit
8160f8a2
authored
May 19, 2017
by
Tomohiro Sakai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fujitsu No.39 Correct pdcch symbol calculation
parent
430a8c4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
openair1/PHY/LTE_TRANSPORT/dci.c
openair1/PHY/LTE_TRANSPORT/dci.c
+14
-3
No files found.
openair1/PHY/LTE_TRANSPORT/dci.c
100644 → 100755
View file @
8160f8a2
...
...
@@ -1979,6 +1979,9 @@ uint8_t get_num_pdcch_symbols(uint8_t num_dci,
uint16_t
numCCE
=
0
;
uint8_t
i
;
uint8_t
nCCEmin
=
0
;
uint16_t
CCE_max_used_index
=
0
;
uint16_t
firstCCE_max
=
dci_alloc
[
0
].
firstCCE
;
uint8_t
L
=
dci_alloc
[
0
].
L
;
// check pdcch duration imposed by PHICH duration (Section 6.9 of 36-211)
if
(
frame_parms
->
Ncp
==
1
)
{
// extended prefix
...
...
@@ -1995,16 +1998,24 @@ uint8_t get_num_pdcch_symbols(uint8_t num_dci,
for
(
i
=
0
;
i
<
num_dci
;
i
++
)
{
// printf("dci %d => %d\n",i,dci_alloc[i].L);
numCCE
+=
(
1
<<
(
dci_alloc
[
i
].
L
));
if
(
firstCCE_max
<
dci_alloc
[
i
].
firstCCE
)
{
firstCCE_max
=
dci_alloc
[
i
].
firstCCE
;
L
=
dci_alloc
[
i
].
L
;
}
if
(
i
==
(
num_dci
-
1
))
{
CCE_max_used_index
=
firstCCE_max
+
(
1
<<
L
)
-
1
;
}
}
//if ((9*numCCE) <= (frame_parms->N_RB_DL*2))
if
(
num
CCE
<=
get_nCCE
(
1
,
frame_parms
,
get_mi
(
frame_parms
,
subframe
)))
if
(
CCE
_max_used_index
<=
get_nCCE
(
1
,
frame_parms
,
get_mi
(
frame_parms
,
subframe
)))
return
(
cmax
(
1
,
nCCEmin
));
//else if ((9*numCCE) <= (frame_parms->N_RB_DL*((frame_parms->nb_antenna_ports_eNB==4) ? 4 : 5)))
else
if
(
num
CCE
<=
get_nCCE
(
2
,
frame_parms
,
get_mi
(
frame_parms
,
subframe
)))
else
if
(
CCE
_max_used_index
<=
get_nCCE
(
2
,
frame_parms
,
get_mi
(
frame_parms
,
subframe
)))
return
(
cmax
(
2
,
nCCEmin
));
//else if ((9*numCCE) <= (frame_parms->N_RB_DL*((frame_parms->nb_antenna_ports_eNB==4) ? 7 : 8)))
else
if
(
num
CCE
<=
get_nCCE
(
3
,
frame_parms
,
get_mi
(
frame_parms
,
subframe
)))
else
if
(
CCE
_max_used_index
<=
get_nCCE
(
3
,
frame_parms
,
get_mi
(
frame_parms
,
subframe
)))
return
(
cmax
(
3
,
nCCEmin
));
else
if
(
frame_parms
->
N_RB_DL
<=
10
)
{
if
(
frame_parms
->
Ncp
==
0
)
{
// normal CP
...
...
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