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
lizhongxiao
OpenXG-RAN
Commits
c808a7f3
Commit
c808a7f3
authored
Dec 29, 2023
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvements for slot fep at UE when receiving CSI and PDSCH
parent
2b717d49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
36 deletions
+34
-36
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
+34
-36
No files found.
openair1/SCHED_NR_UE/phy_procedures_nr_ue.c
View file @
c808a7f3
...
@@ -1027,8 +1027,37 @@ void pdsch_processing(PHY_VARS_NR_UE *ue, const UE_nr_rxtx_proc_t *proc, nr_phy_
...
@@ -1027,8 +1027,37 @@ void pdsch_processing(PHY_VARS_NR_UE *ue, const UE_nr_rxtx_proc_t *proc, nr_phy_
// do procedures for C-RNTI
// do procedures for C-RNTI
int
ret_pdsch
=
0
;
int
ret_pdsch
=
0
;
int
slot_fep_bitmap
[
14
]
=
{
0
};
const
uint32_t
rxdataF_sz
=
ue
->
frame_parms
.
samples_per_slot_wCP
;
const
uint32_t
rxdataF_sz
=
ue
->
frame_parms
.
samples_per_slot_wCP
;
__attribute__
((
aligned
(
32
)))
c16_t
rxdataF
[
ue
->
frame_parms
.
nb_antennas_rx
][
rxdataF_sz
];
__attribute__
((
aligned
(
32
)))
c16_t
rxdataF
[
ue
->
frame_parms
.
nb_antennas_rx
][
rxdataF_sz
];
// do procedures for CSI-IM
if
((
ue
->
csiim_vars
[
gNB_id
])
&&
(
ue
->
csiim_vars
[
gNB_id
]
->
active
==
1
))
{
for
(
int
symb_idx
=
0
;
symb_idx
<
4
;
symb_idx
++
)
{
int
symb
=
ue
->
csiim_vars
[
gNB_id
]
->
csiim_config_pdu
.
l_csiim
[
symb_idx
];
if
(
slot_fep_bitmap
[
symb
]
==
0
)
{
nr_slot_fep
(
ue
,
proc
,
symb
,
rxdataF
);
slot_fep_bitmap
[
symb
]
=
1
;
}
}
nr_ue_csi_im_procedures
(
ue
,
proc
,
rxdataF
);
ue
->
csiim_vars
[
gNB_id
]
->
active
=
0
;
}
// do procedures for CSI-RS
if
((
ue
->
csirs_vars
[
gNB_id
])
&&
(
ue
->
csirs_vars
[
gNB_id
]
->
active
==
1
))
{
for
(
int
symb
=
0
;
symb
<
NR_SYMBOLS_PER_SLOT
;
symb
++
)
{
if
(
is_csi_rs_in_symbol
(
ue
->
csirs_vars
[
gNB_id
]
->
csirs_config_pdu
,
symb
))
{
if
(
slot_fep_bitmap
[
symb
]
==
0
)
{
nr_slot_fep
(
ue
,
proc
,
symb
,
rxdataF
);
slot_fep_bitmap
[
symb
]
=
1
;
}
}
}
nr_ue_csi_rs_procedures
(
ue
,
proc
,
rxdataF
);
ue
->
csirs_vars
[
gNB_id
]
->
active
=
0
;
}
if
(
dlsch
[
0
].
active
)
{
if
(
dlsch
[
0
].
active
)
{
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_UE_SLOT_FEP_PDSCH
,
VCD_FUNCTION_IN
);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_UE_SLOT_FEP_PDSCH
,
VCD_FUNCTION_IN
);
fapi_nr_dl_config_dlsch_pdu_rel15_t
*
dlsch_config
=
&
dlsch
[
0
].
dlsch_config
;
fapi_nr_dl_config_dlsch_pdu_rel15_t
*
dlsch_config
=
&
dlsch
[
0
].
dlsch_config
;
...
@@ -1036,13 +1065,12 @@ void pdsch_processing(PHY_VARS_NR_UE *ue, const UE_nr_rxtx_proc_t *proc, nr_phy_
...
@@ -1036,13 +1065,12 @@ void pdsch_processing(PHY_VARS_NR_UE *ue, const UE_nr_rxtx_proc_t *proc, nr_phy_
uint16_t
start_symb_sch
=
dlsch_config
->
start_symbol
;
uint16_t
start_symb_sch
=
dlsch_config
->
start_symbol
;
LOG_D
(
PHY
,
" ------ --> PDSCH ChannelComp/LLR Frame.slot %d.%d ------
\n
"
,
frame_rx
%
1024
,
nr_slot_rx
);
LOG_D
(
PHY
,
" ------ --> PDSCH ChannelComp/LLR Frame.slot %d.%d ------
\n
"
,
frame_rx
%
1024
,
nr_slot_rx
);
//to update from pdsch config
for
(
uint16_t
m
=
start_symb_sch
;
m
<
(
nb_symb_sch
+
start_symb_sch
)
;
m
++
)
{
for
(
int
m
=
start_symb_sch
;
m
<
(
nb_symb_sch
+
start_symb_sch
)
;
m
++
)
{
nr_slot_fep
(
ue
,
if
(
slot_fep_bitmap
[
m
]
==
0
)
{
proc
,
nr_slot_fep
(
ue
,
proc
,
m
,
rxdataF
);
m
,
//to be updated from higher layer
slot_fep_bitmap
[
m
]
=
2
;
rxdataF
);
}
}
}
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_UE_SLOT_FEP_PDSCH
,
VCD_FUNCTION_OUT
);
VCD_SIGNAL_DUMPER_DUMP_FUNCTION_BY_NAME
(
VCD_SIGNAL_DUMPER_FUNCTIONS_UE_SLOT_FEP_PDSCH
,
VCD_FUNCTION_OUT
);
...
@@ -1121,36 +1149,6 @@ void pdsch_processing(PHY_VARS_NR_UE *ue, const UE_nr_rxtx_proc_t *proc, nr_phy_
...
@@ -1121,36 +1149,6 @@ void pdsch_processing(PHY_VARS_NR_UE *ue, const UE_nr_rxtx_proc_t *proc, nr_phy_
free
(
llr
[
i
]);
free
(
llr
[
i
]);
}
}
// do procedures for CSI-IM
if
((
ue
->
csiim_vars
[
gNB_id
])
&&
(
ue
->
csiim_vars
[
gNB_id
]
->
active
==
1
))
{
int
l_csiim
[
4
]
=
{
-
1
,
-
1
,
-
1
,
-
1
};
for
(
int
symb_idx
=
0
;
symb_idx
<
4
;
symb_idx
++
)
{
bool
nr_slot_fep_done
=
false
;
for
(
int
symb_idx2
=
0
;
symb_idx2
<
symb_idx
;
symb_idx2
++
)
{
if
(
l_csiim
[
symb_idx2
]
==
ue
->
csiim_vars
[
gNB_id
]
->
csiim_config_pdu
.
l_csiim
[
symb_idx
])
{
nr_slot_fep_done
=
true
;
}
}
l_csiim
[
symb_idx
]
=
ue
->
csiim_vars
[
gNB_id
]
->
csiim_config_pdu
.
l_csiim
[
symb_idx
];
if
(
nr_slot_fep_done
==
false
)
{
nr_slot_fep
(
ue
,
proc
,
ue
->
csiim_vars
[
gNB_id
]
->
csiim_config_pdu
.
l_csiim
[
symb_idx
],
rxdataF
);
}
}
nr_ue_csi_im_procedures
(
ue
,
proc
,
rxdataF
);
ue
->
csiim_vars
[
gNB_id
]
->
active
=
0
;
}
// do procedures for CSI-RS
if
((
ue
->
csirs_vars
[
gNB_id
])
&&
(
ue
->
csirs_vars
[
gNB_id
]
->
active
==
1
))
{
for
(
int
symb
=
0
;
symb
<
NR_SYMBOLS_PER_SLOT
;
symb
++
)
{
if
(
is_csi_rs_in_symbol
(
ue
->
csirs_vars
[
gNB_id
]
->
csirs_config_pdu
,
symb
))
{
nr_slot_fep
(
ue
,
proc
,
symb
,
rxdataF
);
}
}
nr_ue_csi_rs_procedures
(
ue
,
proc
,
rxdataF
);
ue
->
csirs_vars
[
gNB_id
]
->
active
=
0
;
}
start_meas
(
&
meas
);
start_meas
(
&
meas
);
if
(
nr_slot_rx
==
9
)
{
if
(
nr_slot_rx
==
9
)
{
...
...
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