Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG UE
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
Michael Black
OpenXG UE
Commits
ffe30ef5
Commit
ffe30ef5
authored
Sep 03, 2016
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updates in ulsim for new multipath_channel declaration. Small optimization in dlsch_modulation.c
parent
c7b139e5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
31 deletions
+29
-31
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
+28
-1
openair1/SIMULATION/LTE_PHY/ulsim.c
openair1/SIMULATION/LTE_PHY/ulsim.c
+1
-30
No files found.
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
View file @
ffe30ef5
...
...
@@ -328,7 +328,7 @@ int allocate_REs_in_RB_no_pilots_64QAM_siso(LTE_DL_FRAME_PARMS *frame_parms,
for
(
x0p
=&
x0
[
*
jj
],
tti_offset
=
symbol_offset
+
re_offset
,
re
=
0
;
re
<
12
;
re
+
+
,
x0p
+=
6
,
tti_offset
++
)
{
re
+
=
4
,
x0p
+=
24
,
tti_offset
+=
4
)
{
qam64_table_offset_re
=
FOUR
[
x0p
[
0
]];
qam64_table_offset_im
=
FOUR
[
x0p
[
1
]];
...
...
@@ -338,6 +338,33 @@ int allocate_REs_in_RB_no_pilots_64QAM_siso(LTE_DL_FRAME_PARMS *frame_parms,
qam64_table_offset_im
+=
x0p
[
5
];
((
int16_t
*
)
&
txdataF
[
0
][
tti_offset
])[
0
]
=
qam_table_s0
[
qam64_table_offset_re
];
((
int16_t
*
)
&
txdataF
[
0
][
tti_offset
])[
1
]
=
qam_table_s0
[
qam64_table_offset_im
];
qam64_table_offset_re
=
FOUR
[
x0p
[
6
]];
qam64_table_offset_im
=
FOUR
[
x0p
[
7
]];
qam64_table_offset_re
+=
TWO
[
x0p
[
8
]];
qam64_table_offset_im
+=
TWO
[
x0p
[
9
]];
qam64_table_offset_re
+=
x0p
[
10
];
qam64_table_offset_im
+=
x0p
[
11
];
((
int16_t
*
)
&
txdataF
[
0
][
tti_offset
])[
2
]
=
qam_table_s0
[
qam64_table_offset_re
];
((
int16_t
*
)
&
txdataF
[
0
][
tti_offset
])[
3
]
=
qam_table_s0
[
qam64_table_offset_im
];
qam64_table_offset_re
=
FOUR
[
x0p
[
12
]];
qam64_table_offset_im
=
FOUR
[
x0p
[
13
]];
qam64_table_offset_re
+=
TWO
[
x0p
[
14
]];
qam64_table_offset_im
+=
TWO
[
x0p
[
15
]];
qam64_table_offset_re
+=
x0p
[
16
];
qam64_table_offset_im
+=
x0p
[
17
];
((
int16_t
*
)
&
txdataF
[
0
][
tti_offset
])[
4
]
=
qam_table_s0
[
qam64_table_offset_re
];
((
int16_t
*
)
&
txdataF
[
0
][
tti_offset
])[
5
]
=
qam_table_s0
[
qam64_table_offset_im
];
qam64_table_offset_re
=
FOUR
[
x0p
[
18
]];
qam64_table_offset_im
=
FOUR
[
x0p
[
19
]];
qam64_table_offset_re
+=
TWO
[
x0p
[
20
]];
qam64_table_offset_im
+=
TWO
[
x0p
[
21
]];
qam64_table_offset_re
+=
x0p
[
22
];
qam64_table_offset_im
+=
x0p
[
23
];
((
int16_t
*
)
&
txdataF
[
0
][
tti_offset
])[
6
]
=
qam_table_s0
[
qam64_table_offset_re
];
((
int16_t
*
)
&
txdataF
[
0
][
tti_offset
])[
7
]
=
qam_table_s0
[
qam64_table_offset_im
];
}
}
else
{
...
...
openair1/SIMULATION/LTE_PHY/ulsim.c
View file @
ffe30ef5
...
...
@@ -188,7 +188,7 @@ int main(int argc, char **argv)
int
**
txdata
;
LTE_DL_FRAME_PARMS
*
frame_parms
;
double
**
s_re
,
**
s_im
,
**
r_re
,
**
r_im
;
double
s_re
[
2
][
30720
],
s_im
[
2
][
30720
],
r_re
[
2
][
30720
],
r_im
[
2
][
30720
]
;
double
forgetting_factor
=
0
.
0
;
//in [0,1] 0 means a new channel every time, 1 means keep the same channel
double
iqim
=
0
.
0
;
uint8_t
extended_prefix_flag
=
0
;
...
...
@@ -583,12 +583,6 @@ int main(int argc, char **argv)
txdata
=
UE
->
common_vars
.
txdata
;
s_re
=
malloc
(
2
*
sizeof
(
double
*
));
s_im
=
malloc
(
2
*
sizeof
(
double
*
));
r_re
=
malloc
(
2
*
sizeof
(
double
*
));
r_im
=
malloc
(
2
*
sizeof
(
double
*
));
// r_re0 = malloc(2*sizeof(double*));
// r_im0 = malloc(2*sizeof(double*));
nsymb
=
(
eNB
->
frame_parms
.
Ncp
==
NORMAL
)
?
14
:
12
;
...
...
@@ -630,13 +624,6 @@ int main(int argc, char **argv)
fprintf
(
csv_fdUL
,
"data_all%d=["
,
mcs
);
}
for
(
i
=
0
;
i
<
2
;
i
++
)
{
s_re
[
i
]
=
malloc
(
FRAME_LENGTH_COMPLEX_SAMPLES
*
sizeof
(
double
));
s_im
[
i
]
=
malloc
(
FRAME_LENGTH_COMPLEX_SAMPLES
*
sizeof
(
double
));
r_re
[
i
]
=
malloc
(
FRAME_LENGTH_COMPLEX_SAMPLES
*
sizeof
(
double
));
r_im
[
i
]
=
malloc
(
FRAME_LENGTH_COMPLEX_SAMPLES
*
sizeof
(
double
));
}
if
(
xforms
==
1
)
{
fl_initialize
(
&
argc
,
argv
,
NULL
,
0
,
0
);
...
...
@@ -1716,22 +1703,6 @@ int main(int argc, char **argv)
if
(
test_perf
!=
0
)
fclose
(
time_meas_fd
);
printf
(
"Freeing channel I/O
\n
"
);
for
(
i
=
0
;
i
<
2
;
i
++
)
{
free
(
s_re
[
i
]);
free
(
s_im
[
i
]);
free
(
r_re
[
i
]);
free
(
r_im
[
i
]);
}
free
(
s_re
);
free
(
s_im
);
free
(
r_re
);
free
(
r_im
);
// lte_sync_time_free();
return
(
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