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
wangwenhui
OpenXG-RAN
Commits
66555e18
Commit
66555e18
authored
Mar 02, 2020
by
Sakthivel Velumani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setting sf_ahead depending on slots duration
parent
bc1e62dd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
executables/nr-gnb.c
executables/nr-gnb.c
+2
-2
executables/nr-ru.c
executables/nr-ru.c
+3
-2
No files found.
executables/nr-gnb.c
View file @
66555e18
...
...
@@ -103,8 +103,8 @@ extern openair0_config_t openair0_cfg[MAX_CARDS];
extern
int
transmission_mode
;
uint16_t
sf_ahead
=
3
;
uint16_t
sl_ahead
;
extern
uint16_t
sf_ahead
;
extern
uint16_t
sl_ahead
;
//pthread_t main_gNB_thread;
time_stats_t
softmodem_stats_mt
;
// main thread
...
...
executables/nr-ru.c
View file @
66555e18
...
...
@@ -131,8 +131,8 @@ void configure_rru(int idx, void *arg);
int
attach_rru
(
RU_t
*
ru
);
int
connect_rau
(
RU_t
*
ru
);
extern
uint16_t
sf_ahead
;
extern
uint16_t
sl_ahead
;
uint16_t
sf_ahead
;
uint16_t
sl_ahead
;
extern
int
emulate_rf
;
extern
int
numerology
;
...
...
@@ -1454,6 +1454,7 @@ void *ru_thread( void *param ) {
}
}
sf_ahead
=
(
uint16_t
)
ceil
((
float
)
6
/
(
0x01
<<
fp
->
numerology_index
));
LOG_I
(
PHY
,
"Signaling main thread that RU %d is ready
\n
"
,
ru
->
idx
);
pthread_mutex_lock
(
&
RC
.
ru_mutex
);
RC
.
ru_mask
&=
~
(
1
<<
ru
->
idx
);
...
...
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