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
1f6d111f
Commit
1f6d111f
authored
Mar 20, 2023
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Num wait idication as Tpool message field
parent
2bfe9ba2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
executables/nr-ue.c
executables/nr-ue.c
+6
-5
openair1/PHY/defs_nr_UE.h
openair1/PHY/defs_nr_UE.h
+1
-0
No files found.
executables/nr-ue.c
View file @
1f6d111f
...
...
@@ -567,12 +567,11 @@ void processSlotTX(void *arg) {
LOG_D
(
PHY
,
"%d.%d => slot type %d
\n
"
,
proc
->
frame_tx
,
proc
->
nr_slot_tx
,
proc
->
tx_slot_type
);
if
(
proc
->
tx_slot_type
==
NR_UPLINK_SLOT
||
proc
->
tx_slot_type
==
NR_MIXED_SLOT
){
// wait for rx slots to send indication
for
(
int
i
=
0
;
i
<
UE
->
tx_wait_for_dlsch
[
proc
->
nr_slot_tx
]
;
i
++
)
{
// wait for rx slots to send indication
(if any) that DLSCH decoding is finished
for
(
int
i
=
0
;
i
<
rxtxD
->
tx_wait_for_dlsch
;
i
++
)
{
notifiedFIFO_elt_t
*
res
=
pullNotifiedFIFO
(
UE
->
tx_resume_ind_fifo
[
proc
->
nr_slot_tx
]);
delNotifiedFIFO_elt
(
res
);
}
UE
->
tx_wait_for_dlsch
[
proc
->
nr_slot_tx
]
=
0
;
// trigger L2 to run ue_scheduler thru IF module
// [TODO] mapping right after NR initial sync
...
...
@@ -798,6 +797,7 @@ void *UE_thread(void *arg) {
int
num_ind_fifo
=
nb_slot_frame
;
for
(
int
i
=
0
;
i
<
num_ind_fifo
;
i
++
)
{
UE
->
tx_wait_for_dlsch
[
num_ind_fifo
]
=
0
;
UE
->
tx_resume_ind_fifo
[
i
]
=
malloc
(
sizeof
(
*
UE
->
tx_resume_ind_fifo
[
i
]));
initNotifiedFIFO
(
UE
->
tx_resume_ind_fifo
[
i
]);
}
...
...
@@ -965,15 +965,16 @@ void *UE_thread(void *arg) {
curMsgTx
->
writeBlockSize
=
writeBlockSize
;
curMsgTx
->
proc
.
timestamp_tx
=
writeTimestamp
;
curMsgTx
->
UE
=
UE
;
curMsgTx
->
tx_wait_for_dlsch
=
UE
->
tx_wait_for_dlsch
[
curMsgTx
->
proc
.
nr_slot_tx
];
UE
->
tx_wait_for_dlsch
[
curMsgTx
->
proc
.
nr_slot_tx
]
=
0
;
pushTpool
(
&
(
get_nrUE_params
()
->
Tpool
),
newElt
);
// RX slot processing. We launch and forget.
nr_phy_data_t
phy_data
=
UE_dl_preprocessing
(
UE
,
&
curMsg
.
proc
);
newElt
=
newNotifiedFIFO_elt
(
sizeof
(
nr_rxtx_thread_data_t
),
curMsg
.
proc
.
nr_slot_rx
,
NULL
,
UE_dl_processing
);
nr_rxtx_thread_data_t
*
curMsgRx
=
(
nr_rxtx_thread_data_t
*
)
NotifiedFifoData
(
newElt
);
curMsgRx
->
proc
=
curMsg
.
proc
;
curMsgRx
->
UE
=
UE
;
curMsgRx
->
phy_data
=
phy_data
;
curMsgRx
->
phy_data
=
UE_dl_preprocessing
(
UE
,
&
curMsg
.
proc
)
;
pushTpool
(
&
(
get_nrUE_params
()
->
Tpool
),
newElt
);
if
(
curMsg
.
proc
.
decoded_frame_rx
!=
-
1
)
...
...
openair1/PHY/defs_nr_UE.h
View file @
1f6d111f
...
...
@@ -688,6 +688,7 @@ typedef struct nr_rxtx_thread_data_s {
PHY_VARS_NR_UE
*
UE
;
int
writeBlockSize
;
nr_phy_data_t
phy_data
;
int
tx_wait_for_dlsch
;
}
nr_rxtx_thread_data_t
;
typedef
struct
LDPCDecode_ue_s
{
...
...
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