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
promise
OpenXG-RAN
Commits
45cbc8ab
Commit
45cbc8ab
authored
Jun 12, 2016
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed unitary simulators
parent
a2e7ddee
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
175 additions
and
182 deletions
+175
-182
openair1/SIMULATION/LTE_PHY/pbchsim.c
openair1/SIMULATION/LTE_PHY/pbchsim.c
+167
-175
openair1/SIMULATION/LTE_PHY/pdcchsim.c
openair1/SIMULATION/LTE_PHY/pdcchsim.c
+8
-7
No files found.
openair1/SIMULATION/LTE_PHY/pbchsim.c
View file @
45cbc8ab
This diff is collapsed.
Click to expand it.
openair1/SIMULATION/LTE_PHY/pdcchsim.c
View file @
45cbc8ab
...
@@ -759,13 +759,14 @@ int main(int argc, char **argv)
...
@@ -759,13 +759,14 @@ int main(int argc, char **argv)
eNB_rxtx_proc_t
*
proc_rxtx
=
&
eNB
->
proc
.
proc_rxtx
[
subframe
&
1
];
eNB
->
ulsch
[
0
]
=
new_eNB_ulsch
(
MAX_TURBO_ITERATIONS
,
N_RB_DL
,
0
);
eNB
->
ulsch
[
0
]
=
new_eNB_ulsch
(
MAX_TURBO_ITERATIONS
,
N_RB_DL
,
0
);
UE
->
ulsch
[
0
]
=
new_ue_ulsch
(
N_RB_DL
,
0
);
UE
->
ulsch
[
0
]
=
new_ue_ulsch
(
N_RB_DL
,
0
);
eNB
->
proc
.
frame_tx
=
0
;
proc_rxtx
->
frame_tx
=
0
;
eNB
->
proc
.
subframe_tx
=
subframe
;
proc_rxtx
->
subframe_tx
=
subframe
;
if
(
input_fd
==
NULL
)
{
if
(
input_fd
==
NULL
)
{
msg
(
"No input file, so starting TX
\n
"
);
msg
(
"No input file, so starting TX
\n
"
);
...
@@ -932,7 +933,7 @@ int main(int argc, char **argv)
...
@@ -932,7 +933,7 @@ int main(int argc, char **argv)
if
(
n_frames
==
1
)
if
(
n_frames
==
1
)
printf
(
"generating PHICH
\n
"
);
printf
(
"generating PHICH
\n
"
);
harq_pid
=
phich_subframe_to_harq_pid
(
&
eNB
->
frame_parms
,
eNB
->
proc
.
frame_tx
,
subframe
);
harq_pid
=
phich_subframe_to_harq_pid
(
&
eNB
->
frame_parms
,
proc_rxtx
->
frame_tx
,
subframe
);
phich_ACK
=
taus
()
&
1
;
phich_ACK
=
taus
()
&
1
;
eNB
->
ulsch
[
0
]
->
harq_processes
[
harq_pid
]
->
phich_active
=
1
;
eNB
->
ulsch
[
0
]
->
harq_processes
[
harq_pid
]
->
phich_active
=
1
;
...
@@ -944,23 +945,23 @@ int main(int argc, char **argv)
...
@@ -944,23 +945,23 @@ int main(int argc, char **argv)
UE
->
ulsch
[
0
]
->
harq_processes
[
harq_pid
]
->
first_rb
=
0
;
UE
->
ulsch
[
0
]
->
harq_processes
[
harq_pid
]
->
first_rb
=
0
;
UE
->
ulsch
[
0
]
->
harq_processes
[
harq_pid
]
->
n_DMRS
=
0
;
UE
->
ulsch
[
0
]
->
harq_processes
[
harq_pid
]
->
n_DMRS
=
0
;
generate_phich_top
(
eNB
,
AMP
,
0
,
0
);
generate_phich_top
(
eNB
,
proc_rxtx
,
AMP
,
0
,
0
);
// generate 3 interfering PHICH
// generate 3 interfering PHICH
if
(
num_phich_interf
>
0
)
{
if
(
num_phich_interf
>
0
)
{
eNB
->
ulsch
[
0
]
->
harq_processes
[
harq_pid
]
->
first_rb
=
4
;
eNB
->
ulsch
[
0
]
->
harq_processes
[
harq_pid
]
->
first_rb
=
4
;
generate_phich_top
(
eNB
,
1024
,
0
,
0
);
generate_phich_top
(
eNB
,
proc_rxtx
,
1024
,
0
,
0
);
}
}
if
(
num_phich_interf
>
1
)
{
if
(
num_phich_interf
>
1
)
{
eNB
->
ulsch
[
0
]
->
harq_processes
[
harq_pid
]
->
first_rb
=
8
;
eNB
->
ulsch
[
0
]
->
harq_processes
[
harq_pid
]
->
first_rb
=
8
;
eNB
->
ulsch
[
0
]
->
harq_processes
[
harq_pid
]
->
n_DMRS
=
1
;
eNB
->
ulsch
[
0
]
->
harq_processes
[
harq_pid
]
->
n_DMRS
=
1
;
generate_phich_top
(
eNB
,
1024
,
0
,
0
);
generate_phich_top
(
eNB
,
proc_rxtx
,
1024
,
0
,
0
);
}
}
if
(
num_phich_interf
>
2
)
{
if
(
num_phich_interf
>
2
)
{
eNB
->
ulsch
[
0
]
->
harq_processes
[
harq_pid
]
->
first_rb
=
12
;
eNB
->
ulsch
[
0
]
->
harq_processes
[
harq_pid
]
->
first_rb
=
12
;
eNB
->
ulsch
[
0
]
->
harq_processes
[
harq_pid
]
->
n_DMRS
=
1
;
eNB
->
ulsch
[
0
]
->
harq_processes
[
harq_pid
]
->
n_DMRS
=
1
;
generate_phich_top
(
eNB
,
1024
,
0
,
0
);
generate_phich_top
(
eNB
,
proc_rxtx
,
1024
,
0
,
0
);
}
}
...
...
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