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
Michael Black
OpenXG-RAN
Commits
3025627c
Commit
3025627c
authored
Jul 07, 2022
by
Roberto Louro Magueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove j, koverline and loverline from nr_csi_rs_info_t
parent
36a9139a
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
17 deletions
+38
-17
openair1/PHY/NR_TRANSPORT/nr_csi_rs.c
openair1/PHY/NR_TRANSPORT/nr_csi_rs.c
+8
-5
openair1/PHY/NR_TRANSPORT/nr_transport_proto.h
openair1/PHY/NR_TRANSPORT/nr_transport_proto.h
+4
-1
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
+25
-7
openair1/PHY/defs_nr_common.h
openair1/PHY/defs_nr_common.h
+0
-3
openair1/SCHED_NR/phy_procedures_nr_gNB.c
openair1/SCHED_NR/phy_procedures_nr_gNB.c
+1
-1
No files found.
openair1/PHY/NR_TRANSPORT/nr_csi_rs.c
View file @
3025627c
...
...
@@ -53,7 +53,10 @@ void nr_generate_csi_rs(const NR_DL_FRAME_PARMS *frame_parms,
uint8_t
*
CDM_group_size
,
uint8_t
*
k_prime
,
uint8_t
*
l_prime
,
uint8_t
*
N_ports
)
{
uint8_t
*
N_ports
,
uint8_t
*
j_cdm
,
uint8_t
*
k_overline
,
uint8_t
*
l_overline
)
{
#ifdef NR_CSIRS_DEBUG
LOG_I
(
NR_PHY
,
"csi_params->subcarrier_spacing = %i
\n
"
,
csi_params
->
subcarrier_spacing
);
...
...
@@ -648,9 +651,9 @@ void nr_generate_csi_rs(const NR_DL_FRAME_PARMS *frame_parms,
if
(
k_prime
)
*
k_prime
=
kprime
;
if
(
l_prime
)
*
l_prime
=
lprime
;
if
(
N_ports
)
*
N_ports
=
ports
;
memcpy
(
nr_csi_rs_info
->
j
,
j
,
16
*
sizeof
(
uint8_t
));
memcpy
(
nr_csi_rs_info
->
k
overline
,
koverline
,
16
*
sizeof
(
uint8_t
));
memcpy
(
nr_csi_rs_info
->
l
overline
,
loverline
,
16
*
sizeof
(
uint8_t
));
if
(
j_cdm
)
memcpy
(
j_cdm
,
j
,
16
*
sizeof
(
uint8_t
));
if
(
k_overline
)
memcpy
(
k_
overline
,
koverline
,
16
*
sizeof
(
uint8_t
));
if
(
l_overline
)
memcpy
(
l_
overline
,
loverline
,
16
*
sizeof
(
uint8_t
));
#ifdef NR_CSIRS_DEBUG
if
(
N_ports
)
LOG_I
(
NR_PHY
,
"nr_csi_rs_info->N_ports = %d
\n
"
,
*
N_ports
);
...
...
@@ -660,7 +663,7 @@ void nr_generate_csi_rs(const NR_DL_FRAME_PARMS *frame_parms,
if
(
l_prime
)
LOG_I
(
NR_PHY
,
"nr_csi_rs_info->lprime = %d
\n
"
,
*
l_prime
);
if
(
N_cdm_groups
)
{
for
(
int
ji
=
0
;
ji
<*
N_cdm_groups
;
ji
++
)
{
LOG_I
(
NR_PHY
,
"(CDM group %d) j = %d, koverline = %d, loverline = %d
\n
"
,
ji
,
nr_csi_rs_info
->
j
[
ji
],
nr_csi_rs_info
->
koverline
[
ji
],
nr_csi_rs_info
->
loverline
[
ji
]);
LOG_I
(
NR_PHY
,
"(CDM group %d) j = %d, koverline = %d, loverline = %d
\n
"
,
ji
,
j
[
ji
],
koverline
[
ji
],
loverline
[
ji
]);
}
}
#endif
...
...
openair1/PHY/NR_TRANSPORT/nr_transport_proto.h
View file @
3025627c
...
...
@@ -347,7 +347,10 @@ void nr_generate_csi_rs(const NR_DL_FRAME_PARMS *frame_parms,
uint8_t
*
CDM_group_size
,
uint8_t
*
k_prime
,
uint8_t
*
l_prime
,
uint8_t
*
N_ports
);
uint8_t
*
N_ports
,
uint8_t
*
j_cdm
,
uint8_t
*
k_overline
,
uint8_t
*
l_overline
);
void
free_nr_prach_entry
(
PHY_VARS_gNB
*
gNB
,
int
prach_id
);
...
...
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
View file @
3025627c
...
...
@@ -182,6 +182,9 @@ int nr_get_csi_rs_signal(const PHY_VARS_NR_UE *ue,
const
uint8_t
CDM_group_size
,
const
uint8_t
k_prime
,
const
uint8_t
l_prime
,
const
uint8_t
*
j_cdm
,
const
uint8_t
*
k_overline
,
const
uint8_t
*
l_overline
,
int32_t
csi_rs_received_signal
[][
ue
->
frame_parms
.
samples_per_slot_wCP
])
{
int32_t
**
rxdataF
=
ue
->
common_vars
.
common_vars_rx_data_per_thread
[
proc
->
thread_id
].
rxdataF
;
...
...
@@ -202,11 +205,11 @@ int nr_get_csi_rs_signal(const PHY_VARS_NR_UE *ue,
// loop over frequency resource elements within a group
for
(
int
kp
=
0
;
kp
<=
k_prime
;
kp
++
)
{
uint16_t
k
=
(
frame_parms
->
first_carrier_offset
+
(
rb
*
NR_NB_SC_PER_RB
)
+
nr_csi_rs_info
->
k
overline
[
cdm_id
]
+
kp
)
%
frame_parms
->
ofdm_symbol_size
;
uint16_t
k
=
(
frame_parms
->
first_carrier_offset
+
(
rb
*
NR_NB_SC_PER_RB
)
+
k_
overline
[
cdm_id
]
+
kp
)
%
frame_parms
->
ofdm_symbol_size
;
// loop over time resource elements within a group
for
(
int
lp
=
0
;
lp
<=
l_prime
;
lp
++
)
{
uint16_t
symb
=
lp
+
nr_csi_rs_info
->
l
overline
[
cdm_id
];
uint16_t
symb
=
lp
+
l_
overline
[
cdm_id
];
uint64_t
symbol_offset
=
symb
*
frame_parms
->
ofdm_symbol_size
;
c16_t
*
rx_signal
=
(
c16_t
*
)
&
rxdataF
[
ant_rx
][
symbol_offset
];
c16_t
*
rx_csi_rs_signal
=
(
c16_t
*
)
&
csi_rs_received_signal
[
ant_rx
][
symbol_offset
];
...
...
@@ -215,7 +218,7 @@ int nr_get_csi_rs_signal(const PHY_VARS_NR_UE *ue,
#ifdef NR_CSIRS_DEBUG
int
dataF_offset
=
proc
->
nr_slot_rx
*
ue
->
frame_parms
.
samples_per_slot_wCP
;
uint16_t
port_tx
=
s
+
nr_csi_rs_info
->
j
[
cdm_id
]
*
CDM_group_size
;
uint16_t
port_tx
=
s
+
j_cdm
[
cdm_id
]
*
CDM_group_size
;
c16_t
*
tx_csi_rs_signal
=
(
c16_t
*
)
&
nr_csi_rs_info
->
csi_rs_generated_signal
[
port_tx
][
symbol_offset
+
dataF_offset
];
LOG_I
(
NR_PHY
,
"l,k (%2d,%4d) |
\t
port_tx %d (%4d,%4d)
\t
ant_rx %d (%4d,%4d)
\n
"
,
symb
,
...
...
@@ -263,6 +266,9 @@ int nr_csi_rs_channel_estimation(const PHY_VARS_NR_UE *ue,
const
uint8_t
k_prime
,
const
uint8_t
l_prime
,
const
uint8_t
N_ports
,
const
uint8_t
*
j_cdm
,
const
uint8_t
*
k_overline
,
const
uint8_t
*
l_overline
,
int32_t
csi_rs_ls_estimated_channel
[][
N_ports
][
ue
->
frame_parms
.
ofdm_symbol_size
],
int32_t
csi_rs_estimated_channel_freq
[][
N_ports
][
ue
->
frame_parms
.
ofdm_symbol_size
],
int16_t
*
log2_re
,
...
...
@@ -293,17 +299,17 @@ int nr_csi_rs_channel_estimation(const PHY_VARS_NR_UE *ue,
for
(
int
cdm_id
=
0
;
cdm_id
<
N_cdm_groups
;
cdm_id
++
)
{
for
(
int
s
=
0
;
s
<
CDM_group_size
;
s
++
)
{
uint16_t
port_tx
=
s
+
nr_csi_rs_info
->
j
[
cdm_id
]
*
CDM_group_size
;
uint16_t
port_tx
=
s
+
j_cdm
[
cdm_id
]
*
CDM_group_size
;
// loop over frequency resource elements within a group
for
(
int
kp
=
0
;
kp
<=
k_prime
;
kp
++
)
{
uint16_t
kinit
=
(
frame_parms
->
first_carrier_offset
+
rb
*
NR_NB_SC_PER_RB
)
%
frame_parms
->
ofdm_symbol_size
;
uint16_t
k
=
kinit
+
nr_csi_rs_info
->
k
overline
[
cdm_id
]
+
kp
;
uint16_t
k
=
kinit
+
k_
overline
[
cdm_id
]
+
kp
;
// loop over time resource elements within a group
for
(
int
lp
=
0
;
lp
<=
l_prime
;
lp
++
)
{
uint16_t
symb
=
lp
+
nr_csi_rs_info
->
l
overline
[
cdm_id
];
uint16_t
symb
=
lp
+
l_
overline
[
cdm_id
];
uint64_t
symbol_offset
=
symb
*
frame_parms
->
ofdm_symbol_size
;
c16_t
*
tx_csi_rs_signal
=
(
c16_t
*
)
&
csi_rs_generated_signal
[
port_tx
][
symbol_offset
+
dataF_offset
];
c16_t
*
rx_csi_rs_signal
=
(
c16_t
*
)
&
csi_rs_received_signal
[
ant_rx
][
symbol_offset
];
...
...
@@ -828,6 +834,9 @@ int nr_ue_csi_rs_procedures(PHY_VARS_NR_UE *ue, UE_nr_rxtx_proc_t *proc, uint8_t
uint8_t
k_prime
=
0
;
uint8_t
l_prime
=
0
;
uint8_t
N_ports
=
0
;
uint8_t
j_cdm
[
16
];
uint8_t
k_overline
[
16
];
uint8_t
l_overline
[
16
];
int16_t
log2_re
=
0
;
int16_t
log2_maxh
=
0
;
uint32_t
noise_power
=
0
;
...
...
@@ -847,7 +856,10 @@ int nr_ue_csi_rs_procedures(PHY_VARS_NR_UE *ue, UE_nr_rxtx_proc_t *proc, uint8_t
&
CDM_group_size
,
&
k_prime
,
&
l_prime
,
&
N_ports
);
&
N_ports
,
j_cdm
,
k_overline
,
l_overline
);
int32_t
csi_rs_ls_estimated_channel
[
frame_parms
->
nb_antennas_rx
][
N_ports
][
frame_parms
->
ofdm_symbol_size
];
int32_t
csi_rs_estimated_channel_freq
[
frame_parms
->
nb_antennas_rx
][
N_ports
][
frame_parms
->
ofdm_symbol_size
];
...
...
@@ -860,6 +872,9 @@ int nr_ue_csi_rs_procedures(PHY_VARS_NR_UE *ue, UE_nr_rxtx_proc_t *proc, uint8_t
CDM_group_size
,
k_prime
,
l_prime
,
j_cdm
,
k_overline
,
l_overline
,
csi_rs_received_signal
);
nr_csi_rs_channel_estimation
(
ue
,
...
...
@@ -873,6 +888,9 @@ int nr_ue_csi_rs_procedures(PHY_VARS_NR_UE *ue, UE_nr_rxtx_proc_t *proc, uint8_t
k_prime
,
l_prime
,
N_ports
,
j_cdm
,
k_overline
,
l_overline
,
csi_rs_ls_estimated_channel
,
csi_rs_estimated_channel_freq
,
&
log2_re
,
...
...
openair1/PHY/defs_nr_common.h
View file @
3025627c
...
...
@@ -254,9 +254,6 @@ typedef struct {
}
nr_srs_info_t
;
typedef
struct
{
uint8_t
j
[
16
];
uint8_t
koverline
[
16
];
uint8_t
loverline
[
16
];
uint16_t
csi_gold_init
;
uint32_t
***
nr_gold_csi_rs
;
uint8_t
csi_rs_generated_signal_bits
;
...
...
openair1/SCHED_NR/phy_procedures_nr_gNB.c
View file @
3025627c
...
...
@@ -168,7 +168,7 @@ void phy_procedures_gNB_TX(processingData_L1tx_t *msgTx,
if
(
csirs
->
active
==
1
)
{
LOG_D
(
PHY
,
"CSI-RS generation started in frame %d.%d
\n
"
,
frame
,
slot
);
nfapi_nr_dl_tti_csi_rs_pdu_rel15_t
*
csi_params
=
&
csirs
->
csirs_pdu
.
csi_rs_pdu_rel15
;
nr_generate_csi_rs
(
&
gNB
->
frame_parms
,
gNB
->
common_vars
.
txdataF
,
AMP
,
gNB
->
nr_csi_rs_info
,
csi_params
,
slot
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
nr_generate_csi_rs
(
&
gNB
->
frame_parms
,
gNB
->
common_vars
.
txdataF
,
AMP
,
gNB
->
nr_csi_rs_info
,
csi_params
,
slot
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
,
NULL
);
csirs
->
active
=
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