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
853776ef
Commit
853776ef
authored
3 years ago
by
rmagueta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implementation of FAPI procedures for CSI at UE
parent
05a9c0e2
Branches unavailable
2023.w22
2023.w21
2023.w20
2023.w19
2023.w18
2023.w18b
2023.w16
2023.w15
2023.w14
2023.w13
2023.w12
2023.w11
2023.w11b
2023.w10
2023.w10b
2023.w09
2023.w08
2023.w08b
2023.w07
2023.w06
2023.w05
2023.w03
2023.w02
2022.42
2022.41
2022.w51
2022.w50
2022.w49
2022.w48
2022.w47
2022.w46
2022.w45
2022.w43
2022.w42
2022.w42b
2022.w41
2022.w40
2022.w39
2022.w38
2022.w37
2022.w37b
2022.w36
2022.w35
2022.w33
2022.w32
2022.w31
2022.w31b
2022.w30
2022.w29
2022.w26
2022.w25
2022.w24
2022.w24b
2022.w23
flexran-eol
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
openair1/PHY/INIT/nr_init_ue.c
openair1/PHY/INIT/nr_init_ue.c
+7
-0
openair1/PHY/defs_nr_UE.h
openair1/PHY/defs_nr_UE.h
+12
-0
openair1/SCHED_NR_UE/fapi_nr_ue_l1.c
openair1/SCHED_NR_UE/fapi_nr_ue_l1.c
+10
-0
No files found.
openair1/PHY/INIT/nr_init_ue.c
View file @
853776ef
...
@@ -128,6 +128,8 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue,
...
@@ -128,6 +128,8 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue,
NR_UE_COMMON
*
const
common_vars
=
&
ue
->
common_vars
;
NR_UE_COMMON
*
const
common_vars
=
&
ue
->
common_vars
;
NR_UE_PBCH
**
const
pbch_vars
=
ue
->
pbch_vars
;
NR_UE_PBCH
**
const
pbch_vars
=
ue
->
pbch_vars
;
NR_UE_PRACH
**
const
prach_vars
=
ue
->
prach_vars
;
NR_UE_PRACH
**
const
prach_vars
=
ue
->
prach_vars
;
NR_UE_CSI_IM
**
const
csiim_vars
=
ue
->
csiim_vars
;
NR_UE_CSI_RS
**
const
csirs_vars
=
ue
->
csirs_vars
;
NR_UE_SRS
**
const
srs_vars
=
ue
->
srs_vars
;
NR_UE_SRS
**
const
srs_vars
=
ue
->
srs_vars
;
int
i
,
j
,
k
,
l
,
slot
,
symb
,
q
;
int
i
,
j
,
k
,
l
,
slot
,
symb
,
q
;
...
@@ -311,9 +313,14 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue,
...
@@ -311,9 +313,14 @@ int init_nr_ue_signal(PHY_VARS_NR_UE *ue,
prach_vars
[
gNB_id
]
=
(
NR_UE_PRACH
*
)
malloc16_clear
(
sizeof
(
NR_UE_PRACH
));
prach_vars
[
gNB_id
]
=
(
NR_UE_PRACH
*
)
malloc16_clear
(
sizeof
(
NR_UE_PRACH
));
pbch_vars
[
gNB_id
]
=
(
NR_UE_PBCH
*
)
malloc16_clear
(
sizeof
(
NR_UE_PBCH
));
pbch_vars
[
gNB_id
]
=
(
NR_UE_PBCH
*
)
malloc16_clear
(
sizeof
(
NR_UE_PBCH
));
csiim_vars
[
gNB_id
]
=
(
NR_UE_CSI_IM
*
)
malloc16_clear
(
sizeof
(
NR_UE_CSI_IM
));
csirs_vars
[
gNB_id
]
=
(
NR_UE_CSI_RS
*
)
malloc16_clear
(
sizeof
(
NR_UE_CSI_RS
));
srs_vars
[
gNB_id
]
=
(
NR_UE_SRS
*
)
malloc16_clear
(
sizeof
(
NR_UE_SRS
));
srs_vars
[
gNB_id
]
=
(
NR_UE_SRS
*
)
malloc16_clear
(
sizeof
(
NR_UE_SRS
));
csiim_vars
[
gNB_id
]
->
active
=
false
;
csirs_vars
[
gNB_id
]
->
active
=
false
;
srs_vars
[
gNB_id
]
->
active
=
false
;
srs_vars
[
gNB_id
]
->
active
=
false
;
ue
->
nr_srs_info
=
(
nr_srs_info_t
*
)
malloc16_clear
(
sizeof
(
nr_srs_info_t
));
ue
->
nr_srs_info
=
(
nr_srs_info_t
*
)
malloc16_clear
(
sizeof
(
nr_srs_info_t
));
ue
->
nr_srs_info
->
srs_generated_signal
=
(
int32_t
*
)
malloc16_clear
(
(
2
*
(
fp
->
samples_per_frame
)
+
2048
)
*
sizeof
(
int32_t
)
);
ue
->
nr_srs_info
->
srs_generated_signal
=
(
int32_t
*
)
malloc16_clear
(
(
2
*
(
fp
->
samples_per_frame
)
+
2048
)
*
sizeof
(
int32_t
)
);
ue
->
nr_srs_info
->
noise_power
=
(
uint32_t
*
)
malloc16_clear
(
sizeof
(
uint32_t
));
ue
->
nr_srs_info
->
noise_power
=
(
uint32_t
*
)
malloc16_clear
(
sizeof
(
uint32_t
));
...
...
This diff is collapsed.
Click to expand it.
openair1/PHY/defs_nr_UE.h
View file @
853776ef
...
@@ -705,6 +705,16 @@ typedef struct {
...
@@ -705,6 +705,16 @@ typedef struct {
fapi_nr_ul_config_prach_pdu
prach_pdu
;
fapi_nr_ul_config_prach_pdu
prach_pdu
;
}
NR_UE_PRACH
;
}
NR_UE_PRACH
;
typedef
struct
{
bool
active
;
fapi_nr_dl_config_csiim_pdu_rel15_t
csiim_config_pdu
;
}
NR_UE_CSI_IM
;
typedef
struct
{
bool
active
;
fapi_nr_dl_config_csirs_pdu_rel15_t
csirs_config_pdu
;
}
NR_UE_CSI_RS
;
typedef
struct
{
typedef
struct
{
bool
active
;
bool
active
;
fapi_nr_ul_config_srs_pdu
srs_config_pdu
;
fapi_nr_ul_config_srs_pdu
srs_config_pdu
;
...
@@ -819,6 +829,8 @@ typedef struct {
...
@@ -819,6 +829,8 @@ typedef struct {
NR_UE_PBCH
*
pbch_vars
[
NUMBER_OF_CONNECTED_gNB_MAX
];
NR_UE_PBCH
*
pbch_vars
[
NUMBER_OF_CONNECTED_gNB_MAX
];
NR_UE_PDCCH
*
pdcch_vars
[
RX_NB_TH_MAX
][
NUMBER_OF_CONNECTED_gNB_MAX
];
NR_UE_PDCCH
*
pdcch_vars
[
RX_NB_TH_MAX
][
NUMBER_OF_CONNECTED_gNB_MAX
];
NR_UE_PRACH
*
prach_vars
[
NUMBER_OF_CONNECTED_gNB_MAX
];
NR_UE_PRACH
*
prach_vars
[
NUMBER_OF_CONNECTED_gNB_MAX
];
NR_UE_CSI_IM
*
csiim_vars
[
NUMBER_OF_CONNECTED_gNB_MAX
];
NR_UE_CSI_RS
*
csirs_vars
[
NUMBER_OF_CONNECTED_gNB_MAX
];
NR_UE_SRS
*
srs_vars
[
NUMBER_OF_CONNECTED_gNB_MAX
];
NR_UE_SRS
*
srs_vars
[
NUMBER_OF_CONNECTED_gNB_MAX
];
NR_UE_PUSCH
*
pusch_vars
[
RX_NB_TH_MAX
][
NUMBER_OF_CONNECTED_gNB_MAX
];
NR_UE_PUSCH
*
pusch_vars
[
RX_NB_TH_MAX
][
NUMBER_OF_CONNECTED_gNB_MAX
];
NR_UE_PUCCH
*
pucch_vars
[
RX_NB_TH_MAX
][
NUMBER_OF_CONNECTED_gNB_MAX
];
NR_UE_PUCCH
*
pucch_vars
[
RX_NB_TH_MAX
][
NUMBER_OF_CONNECTED_gNB_MAX
];
...
...
This diff is collapsed.
Click to expand it.
openair1/SCHED_NR_UE/fapi_nr_ue_l1.c
View file @
853776ef
...
@@ -278,11 +278,15 @@ int8_t nr_ue_scheduled_response(nr_scheduled_response_t *scheduled_response){
...
@@ -278,11 +278,15 @@ int8_t nr_ue_scheduled_response(nr_scheduled_response_t *scheduled_response){
NR_UE_PDCCH
*
pdcch_vars
=
PHY_vars_UE_g
[
module_id
][
cc_id
]
->
pdcch_vars
[
thread_id
][
0
];
NR_UE_PDCCH
*
pdcch_vars
=
PHY_vars_UE_g
[
module_id
][
cc_id
]
->
pdcch_vars
[
thread_id
][
0
];
NR_UE_ULSCH_t
*
ulsch0
=
PHY_vars_UE_g
[
module_id
][
cc_id
]
->
ulsch
[
thread_id
][
0
][
0
];
NR_UE_ULSCH_t
*
ulsch0
=
PHY_vars_UE_g
[
module_id
][
cc_id
]
->
ulsch
[
thread_id
][
0
][
0
];
NR_UE_PUCCH
*
pucch_vars
=
PHY_vars_UE_g
[
module_id
][
cc_id
]
->
pucch_vars
[
thread_id
][
0
];
NR_UE_PUCCH
*
pucch_vars
=
PHY_vars_UE_g
[
module_id
][
cc_id
]
->
pucch_vars
[
thread_id
][
0
];
NR_UE_CSI_IM
*
csiim_vars
=
PHY_vars_UE_g
[
module_id
][
cc_id
]
->
csiim_vars
[
0
];
NR_UE_CSI_RS
*
csirs_vars
=
PHY_vars_UE_g
[
module_id
][
cc_id
]
->
csirs_vars
[
0
];
if
(
scheduled_response
->
dl_config
!=
NULL
){
if
(
scheduled_response
->
dl_config
!=
NULL
){
fapi_nr_dl_config_request_t
*
dl_config
=
scheduled_response
->
dl_config
;
fapi_nr_dl_config_request_t
*
dl_config
=
scheduled_response
->
dl_config
;
fapi_nr_dl_config_dlsch_pdu_rel15_t
*
dlsch_config_pdu
;
fapi_nr_dl_config_dlsch_pdu_rel15_t
*
dlsch_config_pdu
;
fapi_nr_dl_config_dci_dl_pdu_rel15_t
*
pdcch_config
;
fapi_nr_dl_config_dci_dl_pdu_rel15_t
*
pdcch_config
;
fapi_nr_dl_config_csiim_pdu_rel15_t
*
csiim_config_pdu
;
fapi_nr_dl_config_csirs_pdu_rel15_t
*
csirs_config_pdu
;
pdcch_vars
->
nb_search_space
=
0
;
pdcch_vars
->
nb_search_space
=
0
;
for
(
int
i
=
0
;
i
<
dl_config
->
number_pdus
;
++
i
){
for
(
int
i
=
0
;
i
<
dl_config
->
number_pdus
;
++
i
){
...
@@ -302,9 +306,15 @@ int8_t nr_ue_scheduled_response(nr_scheduled_response_t *scheduled_response){
...
@@ -302,9 +306,15 @@ int8_t nr_ue_scheduled_response(nr_scheduled_response_t *scheduled_response){
break
;
break
;
case
FAPI_NR_DL_CONFIG_TYPE_CSI_IM
:
case
FAPI_NR_DL_CONFIG_TYPE_CSI_IM
:
LOG_I
(
PHY
,
"Received CSI-IM PDU at FAPI
\n
"
);
LOG_I
(
PHY
,
"Received CSI-IM PDU at FAPI
\n
"
);
csiim_config_pdu
=
&
dl_config
->
dl_config_list
[
i
].
csiim_config_pdu
.
csiim_config_rel15
;
memcpy
((
void
*
)
&
(
csiim_vars
->
csiim_config_pdu
),
(
void
*
)
csiim_config_pdu
,
sizeof
(
fapi_nr_dl_config_csiim_pdu_rel15_t
));
csirs_vars
->
active
=
true
;
break
;
break
;
case
FAPI_NR_DL_CONFIG_TYPE_CSI_RS
:
case
FAPI_NR_DL_CONFIG_TYPE_CSI_RS
:
LOG_I
(
PHY
,
"Received CSI-RS PDU at FAPI
\n
"
);
LOG_I
(
PHY
,
"Received CSI-RS PDU at FAPI
\n
"
);
csirs_config_pdu
=
&
dl_config
->
dl_config_list
[
i
].
csirs_config_pdu
.
csirs_config_rel15
;
memcpy
((
void
*
)
&
(
csirs_vars
->
csirs_config_pdu
),
(
void
*
)
csirs_config_pdu
,
sizeof
(
fapi_nr_dl_config_csirs_pdu_rel15_t
));
csirs_vars
->
active
=
true
;
break
;
break
;
case
FAPI_NR_DL_CONFIG_TYPE_RA_DLSCH
:
case
FAPI_NR_DL_CONFIG_TYPE_RA_DLSCH
:
dlsch_config_pdu
=
&
dl_config
->
dl_config_list
[
i
].
dlsch_config_pdu
.
dlsch_config_rel15
;
dlsch_config_pdu
=
&
dl_config
->
dl_config_list
[
i
].
dlsch_config_pdu
.
dlsch_config_rel15
;
...
...
This diff is collapsed.
Click to expand it.
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