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
canghaiwuhen
OpenXG-RAN
Commits
2aae8723
Commit
2aae8723
authored
Oct 31, 2018
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ulsim is functional
parent
007b003d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
openair1/PHY/LTE_TRANSPORT/dci_tools.c
openair1/PHY/LTE_TRANSPORT/dci_tools.c
+11
-1
openair1/SIMULATION/LTE_PHY/ulsim.c
openair1/SIMULATION/LTE_PHY/ulsim.c
+3
-3
No files found.
openair1/PHY/LTE_TRANSPORT/dci_tools.c
View file @
2aae8723
...
@@ -50,6 +50,8 @@
...
@@ -50,6 +50,8 @@
#include "dci_tools_common_extern.h"
#include "dci_tools_common_extern.h"
#include "transport_proto.h"
#include "transport_proto.h"
//#undef LOG_D
//#define LOG_D(A,B...) printf(B)
int16_t
find_dlsch
(
uint16_t
rnti
,
PHY_VARS_eNB
*
eNB
,
find_type_t
type
)
int16_t
find_dlsch
(
uint16_t
rnti
,
PHY_VARS_eNB
*
eNB
,
find_type_t
type
)
{
{
...
@@ -2012,7 +2014,7 @@ void fill_ulsch(PHY_VARS_eNB *eNB,int UE_id,nfapi_ul_config_ulsch_pdu *ulsch_pdu
...
@@ -2012,7 +2014,7 @@ void fill_ulsch(PHY_VARS_eNB *eNB,int UE_id,nfapi_ul_config_ulsch_pdu *ulsch_pdu
#if (RRC_VERSION >= MAKE_VERSION(14, 0, 0))
#if (RRC_VERSION >= MAKE_VERSION(14, 0, 0))
ulsch
->
ue_type
=
ulsch_pdu
->
ulsch_pdu_rel13
.
ue_type
;
ulsch
->
ue_type
=
ulsch_pdu
->
ulsch_pdu_rel13
.
ue_type
;
AssertFatal
(
harq_pid
==
0
,
"Harq PID is not zero for BL/CE UE
\n
"
);
AssertFatal
(
harq_pid
==
0
||
ulsch
->
ue_type
==
NOCE
,
"Harq PID is not zero for BL/CE UE
\n
"
);
#else
#else
...
@@ -2024,6 +2026,14 @@ void fill_ulsch(PHY_VARS_eNB *eNB,int UE_id,nfapi_ul_config_ulsch_pdu *ulsch_pdu
...
@@ -2024,6 +2026,14 @@ void fill_ulsch(PHY_VARS_eNB *eNB,int UE_id,nfapi_ul_config_ulsch_pdu *ulsch_pdu
LOG_E
(
PHY
,
"fill_ulsch UE_id %d nb_rb = 0
\n
"
,
UE_id
);
LOG_E
(
PHY
,
"fill_ulsch UE_id %d nb_rb = 0
\n
"
,
UE_id
);
}
}
ulsch
->
harq_processes
[
harq_pid
]
->
frame
=
frame
;
ulsch
->
harq_processes
[
harq_pid
]
->
subframe
=
subframe
;
ulsch
->
harq_processes
[
harq_pid
]
->
handled
=
0
;
ulsch
->
harq_processes
[
harq_pid
]
->
first_rb
=
ulsch_pdu
->
ulsch_pdu_rel8
.
resource_block_start
;
ulsch
->
harq_processes
[
harq_pid
]
->
nb_rb
=
ulsch_pdu
->
ulsch_pdu_rel8
.
number_of_resource_blocks
;
ulsch
->
harq_processes
[
harq_pid
]
->
dci_alloc
=
1
;
ulsch
->
harq_processes
[
harq_pid
]
->
dci_alloc
=
1
;
ulsch
->
harq_processes
[
harq_pid
]
->
rar_alloc
=
0
;
ulsch
->
harq_processes
[
harq_pid
]
->
rar_alloc
=
0
;
ulsch
->
harq_processes
[
harq_pid
]
->
n_DMRS
=
ulsch_pdu
->
ulsch_pdu_rel8
.
cyclic_shift_2_for_drms
;
ulsch
->
harq_processes
[
harq_pid
]
->
n_DMRS
=
ulsch_pdu
->
ulsch_pdu_rel8
.
cyclic_shift_2_for_drms
;
...
...
openair1/SIMULATION/LTE_PHY/ulsim.c
View file @
2aae8723
...
@@ -500,9 +500,9 @@ int main(int argc, char **argv) {
...
@@ -500,9 +500,9 @@ int main(int argc, char **argv) {
// enable these lines if you need debug info
// enable these lines if you need debug info
// however itti will catch all signals, so ctrl-c won't work anymore
// however itti will catch all signals, so ctrl-c won't work anymore
// alternatively you can disable ITTI completely in CMakeLists.txt
// 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);
//
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_comp_log(PHY,LOG_DEBUG,LOG_HIGH
,1);
//
set_glog(LOG_DEBUG,LOG_MED
);
//
set_glog(LOG_DEBUG,LOG_HIGH
);
//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
//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
static
paramdef_t
options
[]
=
{
static
paramdef_t
options
[]
=
{
{
"awgn"
,
"Additive white gaussian noise"
,
PARAMFLAG_BOOL
,
strptr
:
NULL
,
defintval
:
0
,
TYPE_INT
,
0
,
NULL
,
NULL
},
{
"awgn"
,
"Additive white gaussian noise"
,
PARAMFLAG_BOOL
,
strptr
:
NULL
,
defintval
:
0
,
TYPE_INT
,
0
,
NULL
,
NULL
},
...
...
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