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
9d3eed3b
Commit
9d3eed3b
authored
Mar 21, 2017
by
Calisson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing ulsim
parent
7685cf18
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
cmake_targets/lte-simulators/CMakeLists.txt
cmake_targets/lte-simulators/CMakeLists.txt
+0
-1
openair1/SIMULATION/LTE_PHY/ulsim.c
openair1/SIMULATION/LTE_PHY/ulsim.c
+13
-6
No files found.
cmake_targets/lte-simulators/CMakeLists.txt
View file @
9d3eed3b
...
...
@@ -3,7 +3,6 @@ set(PACKAGE_NAME "unitary_tests_simulators")
set
(
PHYSIM True
)
set
(
RF_BOARD None
)
set
(
XFORMS True
)
set
(
ENABLE_ITTI False
)
set
(
DEBUG_PHY False
)
set
(
MU_RECIEVER False
)
...
...
openair1/SIMULATION/LTE_PHY/ulsim.c
View file @
9d3eed3b
...
...
@@ -42,6 +42,7 @@
#include "SCHED/vars.h"
#include "LAYER2/MAC/vars.h"
#include "OCG_vars.h"
#include "intertask_interface_init.h"
#include "unitary_defs.h"
...
...
@@ -285,11 +286,15 @@ int main(int argc, char **argv)
printf
(
"Detected cpu_freq %f GHz
\n
"
,
cpu_freq_GHz
);
logInit
();
/*
// enable these lines if you need debug info
// however itti will catch all signals, so ctrl-c won't work anymore
// alternatively you can disable ITTI completely in CMakeLists.txt
itti_init(TASK_MAX, THREAD_MAX, MESSAGES_ID_MAX, tasks_info, messages_info, messages_definition_xml, NULL);
set_comp_log(PHY,LOG_DEBUG,LOG_MED,1);
set_glog
(
LOG_
INFO
,
LOG_MED
);
set_glog(LOG_
DEBUG
,LOG_MED);
*/
while
((
c
=
getopt
(
argc
,
argv
,
"hapZEbm:n:Y:X:x:s:w:e:q:d:D:O:c:r:i:f:y:c:oA:C:R:g:N:l:S:T:QB:PI:LF"
))
!=
-
1
)
{
switch
(
c
)
{
...
...
@@ -571,6 +576,11 @@ int main(int argc, char **argv)
osf
,
0
);
// for a call to phy_reset_ue later we need PHY_vars_UE_g allocated and pointing to UE
PHY_vars_UE_g
=
(
PHY_VARS_UE
***
)
malloc
(
sizeof
(
PHY_VARS_UE
**
));
PHY_vars_UE_g
[
0
]
=
(
PHY_VARS_UE
**
)
malloc
(
sizeof
(
PHY_VARS_UE
*
));
PHY_vars_UE_g
[
0
][
0
]
=
UE
;
if
(
nb_rb_set
==
0
)
nb_rb
=
eNB
->
frame_parms
.
N_RB_UL
;
...
...
@@ -585,8 +595,6 @@ int main(int argc, char **argv)
txdata
=
UE
->
common_vars
.
txdata
;
nsymb
=
(
eNB
->
frame_parms
.
Ncp
==
NORMAL
)
?
14
:
12
;
...
...
@@ -934,7 +942,6 @@ int main(int argc, char **argv)
ndi
=
0
;
PHY_vars_UE_g
=
UE
;
phy_reset_ue
(
0
,
0
,
0
);
UE
->
UE_mode
[
eNB_id
]
=
PUSCH
;
...
...
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