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
spbro
OpenXG-RAN
Commits
e39be391
Commit
e39be391
authored
Jul 07, 2022
by
Roberto Louro Magueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove csi_rs_ls_estimated_channel and csi_rs_estimated_channel_freq from nr_csi_rs_info_t
parent
acd4e395
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
30 deletions
+12
-30
openair1/PHY/INIT/nr_init_ue.c
openair1/PHY/INIT/nr_init_ue.c
+1
-19
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
+11
-9
openair1/PHY/defs_nr_common.h
openair1/PHY/defs_nr_common.h
+0
-2
No files found.
openair1/PHY/INIT/nr_init_ue.c
View file @
e39be391
...
...
@@ -159,7 +159,7 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue, int nb_connected_gNB)
NR_UE_CSI_RS
**
const
csirs_vars
=
ue
->
csirs_vars
;
NR_UE_SRS
**
const
srs_vars
=
ue
->
srs_vars
;
int
i
,
j
,
slot
,
symb
,
gNB_id
,
th_id
;
int
i
,
slot
,
symb
,
gNB_id
,
th_id
;
LOG_I
(
PHY
,
"Initializing UE vars for gNB TXant %u, UE RXant %u
\n
"
,
fp
->
nb_antennas_tx
,
fp
->
nb_antennas_rx
);
...
...
@@ -362,16 +362,6 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue, int nb_connected_gNB)
for
(
i
=
0
;
i
<
NR_MAX_NB_PORTS
;
i
++
)
{
ue
->
nr_csi_rs_info
->
csi_rs_generated_signal
[
i
]
=
(
int32_t
*
)
malloc16_clear
(
fp
->
samples_per_frame_wCP
*
sizeof
(
int32_t
));
}
ue
->
nr_csi_rs_info
->
csi_rs_ls_estimated_channel
=
(
int32_t
***
)
malloc16
(
fp
->
nb_antennas_rx
*
sizeof
(
int32_t
**
)
);
ue
->
nr_csi_rs_info
->
csi_rs_estimated_channel_freq
=
(
int32_t
***
)
malloc16
(
fp
->
nb_antennas_rx
*
sizeof
(
int32_t
**
)
);
for
(
i
=
0
;
i
<
fp
->
nb_antennas_rx
;
i
++
)
{
ue
->
nr_csi_rs_info
->
csi_rs_ls_estimated_channel
[
i
]
=
(
int32_t
**
)
malloc16_clear
(
NR_MAX_NB_PORTS
*
sizeof
(
int32_t
*
));
ue
->
nr_csi_rs_info
->
csi_rs_estimated_channel_freq
[
i
]
=
(
int32_t
**
)
malloc16_clear
(
NR_MAX_NB_PORTS
*
sizeof
(
int32_t
*
));
for
(
j
=
0
;
j
<
NR_MAX_NB_PORTS
;
j
++
)
{
ue
->
nr_csi_rs_info
->
csi_rs_ls_estimated_channel
[
i
][
j
]
=
(
int32_t
*
)
malloc16_clear
(
fp
->
ofdm_symbol_size
*
sizeof
(
int32_t
));
ue
->
nr_csi_rs_info
->
csi_rs_estimated_channel_freq
[
i
][
j
]
=
(
int32_t
*
)
malloc16_clear
(
fp
->
ofdm_symbol_size
*
sizeof
(
int32_t
));
}
}
ue
->
nr_csi_im_info
=
(
nr_csi_im_info_t
*
)
malloc16_clear
(
sizeof
(
nr_csi_im_info_t
));
...
...
@@ -495,14 +485,6 @@ void term_nr_ue_signal(PHY_VARS_NR_UE *ue, int nb_connected_gNB)
for
(
int
i
=
0
;
i
<
NR_MAX_NB_PORTS
;
i
++
)
{
free_and_zero
(
ue
->
nr_csi_rs_info
->
csi_rs_generated_signal
[
i
]);
}
for
(
int
i
=
0
;
i
<
fp
->
nb_antennas_rx
;
i
++
)
{
for
(
int
j
=
0
;
j
<
NR_MAX_NB_PORTS
;
j
++
)
{
free_and_zero
(
ue
->
nr_csi_rs_info
->
csi_rs_ls_estimated_channel
[
i
][
j
]);
free_and_zero
(
ue
->
nr_csi_rs_info
->
csi_rs_estimated_channel_freq
[
i
][
j
]);
}
free_and_zero
(
ue
->
nr_csi_rs_info
->
csi_rs_ls_estimated_channel
[
i
]);
free_and_zero
(
ue
->
nr_csi_rs_info
->
csi_rs_estimated_channel_freq
[
i
]);
}
for
(
int
slot
=
0
;
slot
<
fp
->
slots_per_frame
;
slot
++
)
{
for
(
int
symb
=
0
;
symb
<
fp
->
symbols_per_slot
;
symb
++
)
{
free_and_zero
(
ue
->
nr_csi_rs_info
->
nr_gold_csi_rs
[
slot
][
symb
]);
...
...
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
View file @
e39be391
...
...
@@ -254,8 +254,8 @@ int nr_csi_rs_channel_estimation(const PHY_VARS_NR_UE *ue,
const
nr_csi_rs_info_t
*
nr_csi_rs_info
,
const
int32_t
**
csi_rs_generated_signal
,
const
int32_t
csi_rs_received_signal
[][
ue
->
frame_parms
.
samples_per_slot_wCP
],
int32_t
***
csi_rs_ls_estimated_channel
,
int32_t
***
csi_rs_estimated_channel_freq
,
int32_t
csi_rs_ls_estimated_channel
[][
ue
->
nr_csi_rs_info
->
N_ports
][
ue
->
frame_parms
.
ofdm_symbol_size
]
,
int32_t
csi_rs_estimated_channel_freq
[][
ue
->
nr_csi_rs_info
->
N_ports
][
ue
->
frame_parms
.
ofdm_symbol_size
]
,
int16_t
*
log2_re
,
int16_t
*
log2_maxh
,
uint32_t
*
noise_power
)
{
...
...
@@ -422,7 +422,7 @@ int nr_csi_rs_channel_estimation(const PHY_VARS_NR_UE *ue,
int
nr_csi_rs_ri_estimation
(
const
PHY_VARS_NR_UE
*
ue
,
const
fapi_nr_dl_config_csirs_pdu_rel15_t
*
csirs_config_pdu
,
const
nr_csi_rs_info_t
*
nr_csi_rs_info
,
int32_t
***
csi_rs_estimated_channel_freq
,
int32_t
csi_rs_estimated_channel_freq
[][
ue
->
nr_csi_rs_info
->
N_ports
][
ue
->
frame_parms
.
ofdm_symbol_size
]
,
const
int16_t
log2_maxh
,
uint8_t
*
rank_indicator
)
{
...
...
@@ -553,7 +553,7 @@ int nr_csi_rs_ri_estimation(const PHY_VARS_NR_UE *ue,
int
nr_csi_rs_pmi_estimation
(
const
PHY_VARS_NR_UE
*
ue
,
const
fapi_nr_dl_config_csirs_pdu_rel15_t
*
csirs_config_pdu
,
const
nr_csi_rs_info_t
*
nr_csi_rs_info
,
const
int32_t
***
csi_rs_estimated_channel_freq
,
const
int32_t
csi_rs_estimated_channel_freq
[][
ue
->
nr_csi_rs_info
->
N_ports
][
ue
->
frame_parms
.
ofdm_symbol_size
]
,
const
uint32_t
interference_plus_noise_power
,
const
uint8_t
rank_indicator
,
const
int16_t
log2_re
,
...
...
@@ -812,7 +812,6 @@ int nr_ue_csi_rs_procedures(PHY_VARS_NR_UE *ue, UE_nr_rxtx_proc_t *proc, uint8_t
const
NR_DL_FRAME_PARMS
*
frame_parms
=
&
ue
->
frame_parms
;
int32_t
csi_rs_received_signal
[
frame_parms
->
nb_antennas_rx
][
frame_parms
->
samples_per_slot_wCP
];
int16_t
log2_re
=
0
;
int16_t
log2_maxh
=
0
;
uint32_t
noise_power
=
0
;
...
...
@@ -829,6 +828,9 @@ int nr_ue_csi_rs_procedures(PHY_VARS_NR_UE *ue, UE_nr_rxtx_proc_t *proc, uint8_t
(
nfapi_nr_dl_tti_csi_rs_pdu_rel15_t
*
)
csirs_config_pdu
,
proc
->
nr_slot_rx
);
int32_t
csi_rs_ls_estimated_channel
[
frame_parms
->
nb_antennas_rx
][
ue
->
nr_csi_rs_info
->
N_ports
][
frame_parms
->
ofdm_symbol_size
];
int32_t
csi_rs_estimated_channel_freq
[
frame_parms
->
nb_antennas_rx
][
ue
->
nr_csi_rs_info
->
N_ports
][
frame_parms
->
ofdm_symbol_size
];
nr_get_csi_rs_signal
(
ue
,
proc
,
csirs_config_pdu
,
...
...
@@ -841,8 +843,8 @@ int nr_ue_csi_rs_procedures(PHY_VARS_NR_UE *ue, UE_nr_rxtx_proc_t *proc, uint8_t
ue
->
nr_csi_rs_info
,
(
const
int32_t
**
)
ue
->
nr_csi_rs_info
->
csi_rs_generated_signal
,
csi_rs_received_signal
,
ue
->
nr_csi_rs_info
->
csi_rs_ls_estimated_channel
,
ue
->
nr_csi_rs_info
->
csi_rs_estimated_channel_freq
,
csi_rs_ls_estimated_channel
,
csi_rs_estimated_channel_freq
,
&
log2_re
,
&
log2_maxh
,
&
noise_power
);
...
...
@@ -850,14 +852,14 @@ int nr_ue_csi_rs_procedures(PHY_VARS_NR_UE *ue, UE_nr_rxtx_proc_t *proc, uint8_t
nr_csi_rs_ri_estimation
(
ue
,
csirs_config_pdu
,
ue
->
nr_csi_rs_info
,
ue
->
nr_csi_rs_info
->
csi_rs_estimated_channel_freq
,
csi_rs_estimated_channel_freq
,
log2_maxh
,
&
rank_indicator
);
nr_csi_rs_pmi_estimation
(
ue
,
csirs_config_pdu
,
ue
->
nr_csi_rs_info
,
(
const
int32_t
***
)
ue
->
nr_csi_rs_info
->
csi_rs_estimated_channel_freq
,
csi_rs_estimated_channel_freq
,
ue
->
nr_csi_im_info
->
meas_computed
?
ue
->
nr_csi_im_info
->
interference_plus_noise_power
:
noise_power
,
rank_indicator
,
log2_re
,
...
...
openair1/PHY/defs_nr_common.h
View file @
e39be391
...
...
@@ -266,8 +266,6 @@ typedef struct {
uint32_t
***
nr_gold_csi_rs
;
uint8_t
csi_rs_generated_signal_bits
;
int32_t
**
csi_rs_generated_signal
;
int32_t
***
csi_rs_ls_estimated_channel
;
int32_t
***
csi_rs_estimated_channel_freq
;
}
nr_csi_rs_info_t
;
typedef
struct
{
...
...
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