Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
f12c6ea6
Commit
f12c6ea6
authored
2 years ago
by
Roberto Louro Magueta
Browse files
Options
Downloads
Patches
Plain Diff
Add log2_maxh for nr_conjch0_mult_ch1 in nr_csi_rs_ri_estimation
parent
03f7bd34
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!1757
Draft: Use pMAX value in configuration file, instead of hardcoded '23' in asn1_msg.c
,
!1630
integration_2022_wk30b
,
!1528
CSI Feedback
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
+4
-1
4 additions, 1 deletion
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
openair1/PHY/defs_nr_common.h
+1
-0
1 addition, 0 deletions
openair1/PHY/defs_nr_common.h
with
5 additions
and
1 deletion
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
+
4
−
1
View file @
f12c6ea6
...
...
@@ -205,6 +205,7 @@ int nr_csi_rs_channel_estimation(PHY_VARS_NR_UE *ue,
NR_DL_FRAME_PARMS
*
frame_parms
=
&
ue
->
frame_parms
;
int
dataF_offset
=
proc
->
nr_slot_rx
*
ue
->
frame_parms
.
samples_per_slot_wCP
;
*
noise_power
=
0
;
int
maxh
=
0
;
for
(
int
ant_rx
=
0
;
ant_rx
<
frame_parms
->
nb_antennas_rx
;
ant_rx
++
)
{
...
...
@@ -318,6 +319,7 @@ int nr_csi_rs_channel_estimation(PHY_VARS_NR_UE *ue,
int16_t
*
csi_rs_estimated_channel16
=
(
int16_t
*
)
&
csi_rs_estimated_channel_freq
[
ant_rx
][
port_tx
][
k
];
noise_real
[
ant_rx
][
port_tx
][
rb
-
csirs_config_pdu
->
start_rb
]
=
abs
(
csi_rs_ls_estimated_channel
[
0
]
-
csi_rs_estimated_channel16
[
0
]);
noise_imag
[
ant_rx
][
port_tx
][
rb
-
csirs_config_pdu
->
start_rb
]
=
abs
(
csi_rs_ls_estimated_channel
[
1
]
-
csi_rs_estimated_channel16
[
1
]);
maxh
=
cmax3
(
maxh
,
abs
(
csi_rs_estimated_channel16
[
0
]),
abs
(
csi_rs_estimated_channel16
[
1
]));
}
}
for
(
uint16_t
port_tx
=
0
;
port_tx
<
nr_csi_rs_info
->
N_ports
;
port_tx
++
)
{
...
...
@@ -347,6 +349,7 @@ int nr_csi_rs_channel_estimation(PHY_VARS_NR_UE *ue,
}
*
noise_power
/=
(
frame_parms
->
nb_antennas_rx
*
nr_csi_rs_info
->
N_ports
);
nr_csi_rs_info
->
log2_maxh
=
log2_approx
(
maxh
-
1
);
#ifdef NR_CSIRS_DEBUG
LOG_I
(
NR_PHY
,
"Noise power estimation based on CSI-RS: %i
\n
"
,
*
noise_power
);
...
...
@@ -403,7 +406,7 @@ int nr_csi_rs_ri_estimation(PHY_VARS_NR_UE *ue,
&
csi_rs_estimated_channel_freq
[
ant_rx_ch
][
port_tx_ch
][
k
],
&
nr_csi_rs_info
->
csi_rs_estimated_conjch_ch
[
ant_rx_conjch
][
port_tx_conjch
][
ant_rx_ch
][
port_tx_ch
][
k
],
1
,
0
);
nr_csi_rs_info
->
log2_maxh
);
// construct Hh x H elements
if
(
ant_rx_conjch
==
ant_rx_ch
)
{
...
...
This diff is collapsed.
Click to expand it.
openair1/PHY/defs_nr_common.h
+
1
−
0
View file @
f12c6ea6
...
...
@@ -261,6 +261,7 @@ typedef struct {
int32_t
**
csi_rs_received_signal
;
int32_t
***
csi_rs_ls_estimated_channel
;
int32_t
***
csi_rs_estimated_channel_freq
;
int16_t
log2_maxh
;
int32_t
csi_rs_estimated_conjch_ch
[
4
][
4
][
4
][
4
][
NR_MAX_OFDM_SYMBOL_SIZE
]
__attribute__
((
aligned
(
32
)));
int32_t
csi_rs_estimated_A_MF
[
2
][
2
][
NR_MAX_OFDM_SYMBOL_SIZE
]
__attribute__
((
aligned
(
32
)));
int32_t
csi_rs_estimated_A_MF_sq
[
2
][
2
][
NR_MAX_OFDM_SYMBOL_SIZE
]
__attribute__
((
aligned
(
32
)));
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment