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
zzha zzha
OpenXG-RAN
Commits
8ffecf4b
Commit
8ffecf4b
authored
Apr 07, 2022
by
rmagueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CQI computation
parent
d6a155a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletion
+28
-1
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
+28
-1
No files found.
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
View file @
8ffecf4b
...
...
@@ -569,6 +569,33 @@ int nr_csi_rs_cqi_estimation(uint32_t precoded_sinr,
*
cqi
=
0
;
// Default SINR table for an AWGN channel for SISO scenario, considering 0.1 BLER condition and TS 38.214 Table 5.2.2.1-2
if
(
precoded_sinr
>
0
&&
precoded_sinr
<=
2
)
{
*
cqi
=
4
;
}
else
if
(
precoded_sinr
==
3
)
{
*
cqi
=
5
;
}
else
if
(
precoded_sinr
>
3
&&
precoded_sinr
<=
5
)
{
*
cqi
=
6
;
}
else
if
(
precoded_sinr
>
5
&&
precoded_sinr
<=
7
)
{
*
cqi
=
7
;
}
else
if
(
precoded_sinr
>
7
&&
precoded_sinr
<=
9
)
{
*
cqi
=
8
;
}
else
if
(
precoded_sinr
==
10
)
{
*
cqi
=
9
;
}
else
if
(
precoded_sinr
>
10
&&
precoded_sinr
<=
12
)
{
*
cqi
=
10
;
}
else
if
(
precoded_sinr
>
12
&&
precoded_sinr
<=
15
)
{
*
cqi
=
11
;
}
else
if
(
precoded_sinr
==
16
)
{
*
cqi
=
12
;
}
else
if
(
precoded_sinr
>
16
&&
precoded_sinr
<=
18
)
{
*
cqi
=
13
;
}
else
if
(
precoded_sinr
==
19
)
{
*
cqi
=
14
;
}
else
if
(
precoded_sinr
>
19
)
{
*
cqi
=
15
;
}
return
0
;
}
...
...
@@ -643,7 +670,7 @@ int nr_ue_csi_rs_procedures(PHY_VARS_NR_UE *ue, UE_nr_rxtx_proc_t *proc, uint8_t
nr_csi_rs_cqi_estimation
(
*
ue
->
nr_csi_rs_info
->
precoded_sinr_dB
,
ue
->
nr_csi_rs_info
->
cqi
);
LOG_I
(
NR_PHY
,
"RI = %i, i1 = %i.%i.%i, i2 = %i
.
SINR = %i dB, CQI = %i
\n
"
,
LOG_I
(
NR_PHY
,
"RI = %i, i1 = %i.%i.%i, i2 = %i
,
SINR = %i dB, CQI = %i
\n
"
,
*
ue
->
nr_csi_rs_info
->
rank_indicator
+
1
,
ue
->
nr_csi_rs_info
->
i1
[
0
],
ue
->
nr_csi_rs_info
->
i1
[
1
],
ue
->
nr_csi_rs_info
->
i1
[
2
],
ue
->
nr_csi_rs_info
->
i2
[
0
],
...
...
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