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
f12c6ea6
Commit
f12c6ea6
authored
Apr 04, 2022
by
rmagueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add log2_maxh for nr_conjch0_mult_ch1 in nr_csi_rs_ri_estimation
parent
03f7bd34
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
+4
-1
openair1/PHY/defs_nr_common.h
openair1/PHY/defs_nr_common.h
+1
-0
No files found.
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
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
)
{
...
...
openair1/PHY/defs_nr_common.h
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
)));
...
...
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