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
36a9139a
Commit
36a9139a
authored
Jul 07, 2022
by
Roberto Louro Magueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove N_cdm_groups, CDM_group_size, kprime and lprime from nr_csi_rs_info_t
parent
e39be391
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
101 additions
and
62 deletions
+101
-62
openair1/PHY/NR_TRANSPORT/nr_csi_rs.c
openair1/PHY/NR_TRANSPORT/nr_csi_rs.c
+22
-15
openair1/PHY/NR_TRANSPORT/nr_transport_proto.h
openair1/PHY/NR_TRANSPORT/nr_transport_proto.h
+8
-3
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
+70
-38
openair1/PHY/defs_nr_common.h
openair1/PHY/defs_nr_common.h
+0
-5
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 @
36a9139a
...
...
@@ -45,10 +45,15 @@ void nr_init_csi_rs(const NR_DL_FRAME_PARMS *fp, uint32_t ***csi_rs, uint32_t Ni
void
nr_generate_csi_rs
(
const
NR_DL_FRAME_PARMS
*
frame_parms
,
int32_t
**
dataF
,
int16_t
amp
,
const
int16_t
amp
,
nr_csi_rs_info_t
*
nr_csi_rs_info
,
nfapi_nr_dl_tti_csi_rs_pdu_rel15_t
*
csi_params
,
int
slot
){
const
nfapi_nr_dl_tti_csi_rs_pdu_rel15_t
*
csi_params
,
const
int
slot
,
uint8_t
*
N_cdm_groups
,
uint8_t
*
CDM_group_size
,
uint8_t
*
k_prime
,
uint8_t
*
l_prime
,
uint8_t
*
N_ports
)
{
#ifdef NR_CSIRS_DEBUG
LOG_I
(
NR_PHY
,
"csi_params->subcarrier_spacing = %i
\n
"
,
csi_params
->
subcarrier_spacing
);
...
...
@@ -638,23 +643,25 @@ void nr_generate_csi_rs(const NR_DL_FRAME_PARMS *frame_parms,
}
}
}
nr_csi_rs_info
->
N_cdm_groups
=
size
;
nr_csi_rs_info
->
CDM_group_size
=
gs
;
nr_csi_rs_info
->
k
prime
=
kprime
;
nr_csi_rs_info
->
l
prime
=
lprime
;
nr_csi_rs_info
->
N_ports
=
ports
;
if
(
N_cdm_groups
)
*
N_cdm_groups
=
size
;
if
(
CDM_group_size
)
*
CDM_group_size
=
gs
;
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
->
koverline
,
koverline
,
16
*
sizeof
(
uint8_t
));
memcpy
(
nr_csi_rs_info
->
loverline
,
loverline
,
16
*
sizeof
(
uint8_t
));
#ifdef NR_CSIRS_DEBUG
LOG_I
(
NR_PHY
,
"nr_csi_rs_info->N_ports = %d
\n
"
,
nr_csi_rs_info
->
N_ports
);
LOG_I
(
NR_PHY
,
"nr_csi_rs_info->N_cdm_groups = %d
\n
"
,
nr_csi_rs_info
->
N_cdm_groups
);
LOG_I
(
NR_PHY
,
"nr_csi_rs_info->CDM_group_size = %d
\n
"
,
nr_csi_rs_info
->
CDM_group_size
);
LOG_I
(
NR_PHY
,
"nr_csi_rs_info->kprime = %d
\n
"
,
nr_csi_rs_info
->
kprime
);
LOG_I
(
NR_PHY
,
"nr_csi_rs_info->lprime = %d
\n
"
,
nr_csi_rs_info
->
lprime
);
for
(
int
ji
=
0
;
ji
<
nr_csi_rs_info
->
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
]);
if
(
N_ports
)
LOG_I
(
NR_PHY
,
"nr_csi_rs_info->N_ports = %d
\n
"
,
*
N_ports
);
if
(
N_cdm_groups
)
LOG_I
(
NR_PHY
,
"nr_csi_rs_info->N_cdm_groups = %d
\n
"
,
*
N_cdm_groups
);
if
(
CDM_group_size
)
LOG_I
(
NR_PHY
,
"nr_csi_rs_info->CDM_group_size = %d
\n
"
,
*
CDM_group_size
);
if
(
k_prime
)
LOG_I
(
NR_PHY
,
"nr_csi_rs_info->kprime = %d
\n
"
,
*
k_prime
);
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
]);
}
}
#endif
}
openair1/PHY/NR_TRANSPORT/nr_transport_proto.h
View file @
36a9139a
...
...
@@ -339,10 +339,15 @@ uint8_t get_nr_prach_duration(uint8_t prach_format);
void
nr_generate_csi_rs
(
const
NR_DL_FRAME_PARMS
*
frame_parms
,
int32_t
**
dataF
,
int16_t
amp
,
const
int16_t
amp
,
nr_csi_rs_info_t
*
nr_csi_rs_info
,
nfapi_nr_dl_tti_csi_rs_pdu_rel15_t
*
csi_params
,
int
slot
);
const
nfapi_nr_dl_tti_csi_rs_pdu_rel15_t
*
csi_params
,
const
int
slot
,
uint8_t
*
N_cdm_groups
,
uint8_t
*
CDM_group_size
,
uint8_t
*
k_prime
,
uint8_t
*
l_prime
,
uint8_t
*
N_ports
);
void
free_nr_prach_entry
(
PHY_VARS_gNB
*
gNB
,
int
prach_id
);
...
...
openair1/PHY/NR_UE_TRANSPORT/csi_rx.c
View file @
36a9139a
This diff is collapsed.
Click to expand it.
openair1/PHY/defs_nr_common.h
View file @
36a9139a
...
...
@@ -254,11 +254,6 @@ typedef struct {
}
nr_srs_info_t
;
typedef
struct
{
uint8_t
N_cdm_groups
;
uint8_t
CDM_group_size
;
uint8_t
kprime
;
uint8_t
lprime
;
uint8_t
N_ports
;
uint8_t
j
[
16
];
uint8_t
koverline
[
16
];
uint8_t
loverline
[
16
];
...
...
openair1/SCHED_NR/phy_procedures_nr_gNB.c
View file @
36a9139a
...
...
@@ -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
);
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
);
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