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
littleBu
OpenXG-RAN
Commits
8934c7db
Commit
8934c7db
authored
1 year ago
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix the selection of DCI candidates at UE
parent
0be397b2
Branches unavailable
2025.w08
2025.w07
2025.w06
2025.w05
2025.w04
2025.w03
2025.w02
2024.w51
2024.w50
2024.w49
2024.w48
2024.w47
2024.w46
2024.w45
2024.w44
2024.w43
2024.w42
2024.w41
2024.w40
2024.w39
2024.w38
2024.w36
2024.w35
2024.w34
2024.w33
2024.w32
2024.w31
2024.w30
2024.w29
2024.w28
2024.w27
2024.w26
2024.w25
2024.w24
2024.w23
2024.w22
2024.w21
2024.w18
2024.w17
2024.w16
2024.w15
2024.w14
2024.w13
2024.w12
2024.w11
2024.w10
2024.w09
2024.w08
2024.w06
2024.w05
2024.w04
2024.w03
2024.w02
2024.w01
2023.w51
2023.w50
2023.w49
2023.w48
2023.w47
2023.w45
2023.w43
2023.w42
2023.w41
2023.w40
v2.2.0
v2.1.0
ARC_1.3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
16 deletions
+26
-16
openair2/LAYER2/NR_MAC_UE/nr_ue_dci_configuration.c
openair2/LAYER2/NR_MAC_UE/nr_ue_dci_configuration.c
+26
-16
No files found.
openair2/LAYER2/NR_MAC_UE/nr_ue_dci_configuration.c
View file @
8934c7db
...
...
@@ -46,34 +46,44 @@ void fill_dci_search_candidates(const NR_SearchSpace_t *ss,
{
LOG_D
(
NR_MAC
,
"Filling search candidates for DCI
\n
"
);
rel15
->
number_of_candidates
=
0
;
int
i
=
0
;
for
(
int
maxL
=
16
;
maxL
>
0
;
maxL
>>=
1
)
{
uint8_t
aggregation
,
number_of_candidates
;
uint8_t
aggregation
,
max_
number_of_candidates
;
find_aggregation_candidates
(
&
aggregation
,
&
number_of_candidates
,
&
max_
number_of_candidates
,
ss
,
maxL
);
if
(
number_of_candidates
>
0
)
{
LOG_D
(
NR_MAC
,
"L %d, number of candidates %d, aggregation %d
\n
"
,
maxL
,
number_of_candidates
,
aggregation
);
int
N_cce_sym
=
0
;
// nb of rbs of coreset per symbol
for
(
int
f
=
0
;
f
<
6
;
f
++
)
{
for
(
int
t
=
0
;
t
<
8
;
t
++
)
{
N_cce_sym
+=
((
rel15
->
coreset
.
frequency_domain_resource
[
f
]
>>
t
)
&
1
);
if
(
max_number_of_candidates
==
0
)
continue
;
LOG_D
(
NR_MAC
,
"L %d, max number of candidates %d, aggregation %d
\n
"
,
maxL
,
max_number_of_candidates
,
aggregation
);
int
N_cce_sym
=
0
;
// nb of rbs of coreset per symbol
for
(
int
f
=
0
;
f
<
6
;
f
++
)
{
for
(
int
t
=
0
;
t
<
8
;
t
++
)
{
N_cce_sym
+=
((
rel15
->
coreset
.
frequency_domain_resource
[
f
]
>>
t
)
&
1
);
}
}
int
N_cces
=
N_cce_sym
*
rel15
->
coreset
.
duration
;
if
(
N_cces
<
aggregation
)
continue
;
for
(
int
j
=
0
;
j
<
max_number_of_candidates
;
j
++
)
{
int
first_cce
=
aggregation
*
((
Y
+
((
j
*
N_cces
)
/
(
aggregation
*
max_number_of_candidates
))
+
0
)
%
(
N_cces
/
aggregation
));
LOG_D
(
NR_MAC
,
"Candidate %d of %d first_cce %d (L %d N_cces %d Y %d)
\n
"
,
j
,
max_number_of_candidates
,
first_cce
,
aggregation
,
N_cces
,
Y
);
// to avoid storing more than one candidate with the same aggregation and starting CCE (duplicated candidate)
bool
duplicated
=
false
;
for
(
int
k
=
0
;
k
<
i
;
k
++
)
{
if
(
rel15
->
CCE
[
k
]
==
first_cce
&&
rel15
->
L
[
k
]
==
aggregation
)
{
duplicated
=
true
;
LOG_D
(
NR_MAC
,
"Candidate %d of %d is duplicated
\n
"
,
j
,
max_number_of_candidates
);
}
}
int
N_cces
=
N_cce_sym
*
rel15
->
coreset
.
duration
;
// limit the number of candidates to the ones fitting current configuration
int
max_candidates
=
min
(
N_cces
/
aggregation
,
number_of_candidates
);
rel15
->
number_of_candidates
+=
max_candidates
;
for
(
int
j
=
0
;
j
<
max_candidates
;
i
++
,
j
++
)
{
int
first_cce
=
aggregation
*
((
Y
+
((
j
*
N_cces
)
/
(
aggregation
*
number_of_candidates
))
+
0
)
%
(
N_cces
/
aggregation
));
LOG_D
(
NR_MAC
,
"Candidate %d of %d first_cce %d (L %d N_cces %d Y %d)
\n
"
,
j
,
max_candidates
,
first_cce
,
aggregation
,
N_cces
,
Y
);
if
(
!
duplicated
)
{
rel15
->
CCE
[
i
]
=
first_cce
;
rel15
->
L
[
i
]
=
aggregation
;
i
++
;
}
}
}
rel15
->
number_of_candidates
=
i
;
}
NR_ControlResourceSet_t
*
ue_get_coreset
(
const
NR_UE_MAC_INST_t
*
mac
,
const
int
coreset_id
)
...
...
This diff is collapsed.
Click to expand it.
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