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
c56b4bf5
Commit
c56b4bf5
authored
Jul 14, 2023
by
francescomani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix computation of absolute slot
parent
02e1b643
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
10 deletions
+9
-10
executables/nr-gnb.c
executables/nr-gnb.c
+6
-7
executables/nr-ru.c
executables/nr-ru.c
+3
-3
No files found.
executables/nr-gnb.c
View file @
c56b4bf5
...
...
@@ -117,10 +117,10 @@ void tx_func(void *param)
int
frame_tx
=
info
->
frame
;
int
slot_tx
=
info
->
slot
;
int
cumul_samples
=
gNB
->
frame_parms
.
get_samples_per_slot
(
0
,
&
gNB
->
frame_parms
);
int
i
=
0
;
for
(
i
=
1
;
i
<
gNB
->
frame_parms
.
slots_per_subframe
/
2
;
i
++
)
int
i
=
1
;
for
(;
i
<
gNB
->
frame_parms
.
slots_per_subframe
/
2
;
i
++
)
cumul_samples
+=
gNB
->
frame_parms
.
get_samples_per_slot
(
i
,
&
gNB
->
frame_parms
);
int
samples
=
cumul_samples
/
(
i
+
1
)
;
int
samples
=
cumul_samples
/
i
;
int
absslot_tx
=
info
->
timestamp_tx
/
samples
;
int
absslot_rx
=
absslot_tx
-
gNB
->
RU_list
[
0
]
->
sl_ahead
;
int
rt_prof_idx
=
absslot_rx
%
RT_PROF_DEPTH
;
...
...
@@ -182,12 +182,11 @@ void rx_func(void *param)
int
frame_tx
=
info
->
frame_tx
;
int
slot_tx
=
info
->
slot_tx
;
nfapi_nr_config_request_scf_t
*
cfg
=
&
gNB
->
gNB_config
;
int
cumul_samples
=
gNB
->
frame_parms
.
get_samples_per_slot
(
0
,
&
gNB
->
frame_parms
);
int
i
=
0
;
for
(
i
=
1
;
i
<
gNB
->
frame_parms
.
slots_per_subframe
/
2
;
i
++
)
int
i
=
1
;
for
(;
i
<
gNB
->
frame_parms
.
slots_per_subframe
/
2
;
i
++
)
cumul_samples
+=
gNB
->
frame_parms
.
get_samples_per_slot
(
i
,
&
gNB
->
frame_parms
);
int
samples
=
cumul_samples
/
(
i
+
1
)
;
int
samples
=
cumul_samples
/
i
;
int
absslot_tx
=
info
->
timestamp_tx
/
samples
;
int
absslot_rx
=
absslot_tx
-
gNB
->
RU_list
[
0
]
->
sl_ahead
;
int
rt_prof_idx
=
absslot_rx
%
RT_PROF_DEPTH
;
...
...
executables/nr-ru.c
View file @
c56b4bf5
...
...
@@ -1016,10 +1016,10 @@ void ru_tx_func(void *param) {
char
filename
[
40
];
int
cumul_samples
=
fp
->
get_samples_per_slot
(
0
,
fp
);
int
i
=
0
;
for
(
i
=
1
;
i
<
fp
->
slots_per_subframe
/
2
;
i
++
)
int
i
=
1
;
for
(;
i
<
fp
->
slots_per_subframe
/
2
;
i
++
)
cumul_samples
+=
fp
->
get_samples_per_slot
(
i
,
fp
);
int
samples
=
cumul_samples
/
(
i
+
1
)
;
int
samples
=
cumul_samples
/
i
;
int
absslot_tx
=
info
->
timestamp_tx
/
samples
;
int
absslot_rx
=
absslot_tx
-
ru
->
sl_ahead
;
int
rt_prof_idx
=
absslot_rx
%
RT_PROF_DEPTH
;
...
...
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