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
66b3fffb
Commit
66b3fffb
authored
Apr 06, 2022
by
rmagueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor improvements
parent
8e58e83b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
+13
-11
No files found.
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
View file @
66b3fffb
...
...
@@ -468,13 +468,15 @@ int nr_csi_rs_pmi_estimation(PHY_VARS_NR_UE *ue,
uint8_t
*
i2
)
{
NR_DL_FRAME_PARMS
*
frame_parms
=
&
ue
->
frame_parms
;
i1
[
0
]
=
1
;
i1
[
1
]
=
1
;
i1
[
2
]
=
1
;
*
i2
=
0
;
// TS 38.214: For 2 antenna ports {3000, 3001} and the UE configured with higher layer parameter codebookType set to
// 'typeISinglePanel' each PMI value corresponds to a codebook index given in Table 5.2.2.2.1-1.
memset
(
i1
,
0
,
3
*
sizeof
(
uint8_t
));
i2
[
0
]
=
0
;
// i1 is a three-element vector in the form of [i11 i12 i13], when CodebookType is specified as 'Type1SinglePanel'.
// Note that i13 is not applicable when the number of transmission layers is one of {1, 5, 6, 7, 8}.
// i2, for 'Type1SinglePanel' codebook type, it is a scalar when PMIMode is specified as 'wideband', and when PMIMode
// is specified as 'subband' or when PRGSize, the length of the i2 vector equals to the number of subbands or PRGs.
// Note that when the number of CSI-RS ports is 2, the applicable codebook type is 'Type1SinglePanel'. In this case,
// the precoding matrix is obtained by a single index (i2 field here) based on TS 38.214 Table 5.2.2.2.1-1.
// The first column is applicable if the UE is reporting a Rank = 1, whereas the second column is applicable if the
// UE is reporting a Rank = 2.
...
...
@@ -517,8 +519,8 @@ int nr_csi_rs_pmi_estimation(PHY_VARS_NR_UE *ue,
}
for
(
int
tested_i2
=
0
;
tested_i2
<
4
;
tested_i2
++
)
{
if
(
metric
[
tested_i2
]
>
metric
[
*
i2
])
{
*
i2
=
tested_i2
;
if
(
metric
[
tested_i2
]
>
metric
[
i2
[
0
]
])
{
i2
[
0
]
=
tested_i2
;
}
}
...
...
@@ -597,10 +599,10 @@ int nr_ue_csi_rs_procedures(PHY_VARS_NR_UE *ue, UE_nr_rxtx_proc_t *proc, uint8_t
ue
->
nr_csi_rs_info
->
i1
,
ue
->
nr_csi_rs_info
->
i2
);
LOG_I
(
NR_PHY
,
"RI = %i, i1 =
[%i %i %i]
, i2 = %i
\n
"
,
LOG_I
(
NR_PHY
,
"RI = %i, i1 =
%i.%i.%i
, i2 = %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
);
ue
->
nr_csi_rs_info
->
i2
[
0
]
);
return
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