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
zzha zzha
OpenXG-RAN
Commits
5c9b76f1
Commit
5c9b76f1
authored
Nov 08, 2018
by
Wang Tsu-Han
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix for parameter passing
parent
8273680d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
targets/RT/USER/nr-gnb.c
targets/RT/USER/nr-gnb.c
+4
-5
targets/RT/USER/nr-ru.c
targets/RT/USER/nr-ru.c
+1
-0
No files found.
targets/RT/USER/nr-gnb.c
View file @
5c9b76f1
...
@@ -545,10 +545,9 @@ int wakeup_tx(PHY_VARS_gNB *gNB) {
...
@@ -545,10 +545,9 @@ int wakeup_tx(PHY_VARS_gNB *gNB) {
int
wakeup_rxtx
(
PHY_VARS_gNB
*
gNB
,
RU_t
*
ru
)
{
int
wakeup_rxtx
(
PHY_VARS_gNB
*
gNB
,
RU_t
*
ru
)
{
gNB_L1_proc_t
*
proc
=&
gNB
->
proc
;
gNB_L1_proc_t
*
proc
=&
gNB
->
proc
;
gNB_L1_rxtx_proc_t
*
L1_proc
=&
proc
->
L1_proc
;
gNB_L1_rxtx_proc_t
*
L1_proc
=&
proc
->
L1_proc
;
NR_DL_FRAME_PARMS
*
fp
=
&
gNB
->
frame_parms
;
NR_DL_FRAME_PARMS
*
fp
=
&
gNB
->
frame_parms
;
RU_proc_t
*
ru_proc
=&
ru
->
proc
;
int
i
;
int
i
;
struct
timespec
wait
;
struct
timespec
wait
;
...
@@ -602,9 +601,9 @@ int wakeup_rxtx(PHY_VARS_gNB *gNB,RU_t *ru) {
...
@@ -602,9 +601,9 @@ int wakeup_rxtx(PHY_VARS_gNB *gNB,RU_t *ru) {
// The last (TS_rx mod samples_per_frame) was n*samples_per_tti,
// The last (TS_rx mod samples_per_frame) was n*samples_per_tti,
// we want to generate subframe (n+sf_ahead), so TS_tx = TX_rx+sf_ahead*samples_per_tti,
// we want to generate subframe (n+sf_ahead), so TS_tx = TX_rx+sf_ahead*samples_per_tti,
// and proc->subframe_tx = proc->subframe_rx+sf_ahead
// and proc->subframe_tx = proc->subframe_rx+sf_ahead
L1_proc
->
timestamp_tx
=
proc
->
timestamp_rx
+
(
sf_ahead
*
fp
->
samples_per_subframe
);
L1_proc
->
timestamp_tx
=
ru_
proc
->
timestamp_rx
+
(
sf_ahead
*
fp
->
samples_per_subframe
);
L1_proc
->
frame_rx
=
proc
->
frame_rx
;
L1_proc
->
frame_rx
=
ru_
proc
->
frame_rx
;
L1_proc
->
subframe_rx
=
proc
->
subframe_rx
;
L1_proc
->
subframe_rx
=
ru_
proc
->
subframe_rx
;
L1_proc
->
frame_tx
=
(
L1_proc
->
subframe_rx
>
(
9
-
sf_ahead
))
?
(
L1_proc
->
frame_rx
+
1
)
&
1023
:
L1_proc
->
frame_rx
;
L1_proc
->
frame_tx
=
(
L1_proc
->
subframe_rx
>
(
9
-
sf_ahead
))
?
(
L1_proc
->
frame_rx
+
1
)
&
1023
:
L1_proc
->
frame_rx
;
L1_proc
->
subframe_tx
=
(
L1_proc
->
subframe_rx
+
sf_ahead
)
%
10
;
L1_proc
->
subframe_tx
=
(
L1_proc
->
subframe_rx
+
sf_ahead
)
%
10
;
...
...
targets/RT/USER/nr-ru.c
View file @
5c9b76f1
...
@@ -1620,6 +1620,7 @@ static void* ru_thread( void* param ) {
...
@@ -1620,6 +1620,7 @@ static void* ru_thread( void* param ) {
}*/
}*/
// adjust for timing offset between RU
// adjust for timing offset between RU
printf
(
"~~~~~~~~~~~~~~~~~~~~~~~~~~%d.%d in ru_thread is in process
\n
"
,
proc
->
frame_rx
,
proc
->
subframe_rx
);
if
(
ru
->
idx
!=
0
)
proc
->
frame_tx
=
(
proc
->
frame_tx
+
proc
->
frame_offset
)
&
1023
;
if
(
ru
->
idx
!=
0
)
proc
->
frame_tx
=
(
proc
->
frame_tx
+
proc
->
frame_offset
)
&
1023
;
...
...
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