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
9126c882
Commit
9126c882
authored
Aug 06, 2018
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HACK: let the basic simulator work again
A better solution has to be found.
parent
19a01f6c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
10 deletions
+25
-10
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
+6
-0
openair1/PHY/LTE_UE_TRANSPORT/dlsch_demodulation.c
openair1/PHY/LTE_UE_TRANSPORT/dlsch_demodulation.c
+19
-10
No files found.
openair1/PHY/LTE_TRANSPORT/dlsch_modulation.c
View file @
9126c882
...
@@ -2428,6 +2428,12 @@ int dlsch_modulation(PHY_VARS_eNB* phy_vars_eNB,
...
@@ -2428,6 +2428,12 @@ int dlsch_modulation(PHY_VARS_eNB* phy_vars_eNB,
}
}
/* TODO: hack, to be removed. The power is too different from
* previous version. Some more work/validation is needed before
* we switch to the new version.
*/
allocate_REs
=
allocate_REs_in_RB
;
switch
(
mod_order1
)
{
switch
(
mod_order1
)
{
case
2
:
case
2
:
qam_table_s1
=
NULL
;
qam_table_s1
=
NULL
;
...
...
openair1/PHY/LTE_UE_TRANSPORT/dlsch_demodulation.c
View file @
9126c882
...
@@ -1314,13 +1314,17 @@ void dlsch_channel_compensation(int **rxdataF_ext,
...
@@ -1314,13 +1314,17 @@ void dlsch_channel_compensation(int **rxdataF_ext,
}
}
for
(
aarx
=
0
;
aarx
<
frame_parms
->
nb_antennas_rx
;
aarx
++
)
{
for
(
aarx
=
0
;
aarx
<
frame_parms
->
nb_antennas_rx
;
aarx
++
)
{
/* TODO: hack to be removed. There is crash for 1 antenna case, so
dl_ch128
=
(
__m128i
*
)
&
dl_ch_estimates_ext
[
aatx
*
frame_parms
->
nb_antennas_rx
+
aarx
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
* for 1 antenna case, I put back the value 2 as it was before
* Elena's commit.
*/
int
x
=
frame_parms
->
nb_antennas_rx
>
1
?
frame_parms
->
nb_antennas_rx
:
2
;
dl_ch128
=
(
__m128i
*
)
&
dl_ch_estimates_ext
[
aatx
*
x
+
aarx
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
//print_shorts("dl_ch128[0]=",&dl_ch128[0]);*/
//print_shorts("dl_ch128[0]=",&dl_ch128[0]);*/
dl_ch_mag128
=
(
__m128i
*
)
&
dl_ch_mag
[
aatx
*
frame_parms
->
nb_antennas_r
x
+
aarx
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
dl_ch_mag128
=
(
__m128i
*
)
&
dl_ch_mag
[
aatx
*
x
+
aarx
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
dl_ch_mag128b
=
(
__m128i
*
)
&
dl_ch_magb
[
aatx
*
frame_parms
->
nb_antennas_r
x
+
aarx
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
dl_ch_mag128b
=
(
__m128i
*
)
&
dl_ch_magb
[
aatx
*
x
+
aarx
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
rxdataF128
=
(
__m128i
*
)
&
rxdataF_ext
[
aarx
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
rxdataF128
=
(
__m128i
*
)
&
rxdataF_ext
[
aarx
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
rxdataF_comp128
=
(
__m128i
*
)
&
rxdataF_comp
[
aatx
*
frame_parms
->
nb_antennas_r
x
+
aarx
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
rxdataF_comp128
=
(
__m128i
*
)
&
rxdataF_comp
[
aatx
*
x
+
aarx
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
for
(
rb
=
0
;
rb
<
nb_rb
;
rb
++
)
{
for
(
rb
=
0
;
rb
<
nb_rb
;
rb
++
)
{
if
(
mod_order
>
2
)
{
if
(
mod_order
>
2
)
{
...
@@ -1770,12 +1774,17 @@ void dlsch_channel_compensation_core(int **rxdataF_ext,
...
@@ -1770,12 +1774,17 @@ void dlsch_channel_compensation_core(int **rxdataF_ext,
}
}
for
(
aarx
=
0
;
aarx
<
n_rx
;
aarx
++
)
{
for
(
aarx
=
0
;
aarx
<
n_rx
;
aarx
++
)
{
/* TODO: hack to be removed. There is crash for 1 antenna case, so
dl_ch128
=
(
__m128i
*
)
&
dl_ch_estimates_ext
[
aatx
*
n_rx
+
aarx
][
start_point
];
* for 1 antenna case, I put back the value 2 as it was before
dl_ch_mag128
=
(
__m128i
*
)
&
dl_ch_mag
[
aatx
*
n_rx
+
aarx
][
start_point
];
* Elena's commit.
dl_ch_mag128b
=
(
__m128i
*
)
&
dl_ch_magb
[
aatx
*
n_rx
+
aarx
][
start_point
];
*/
int
x
=
n_rx
>
1
?
n_rx
:
2
;
dl_ch128
=
(
__m128i
*
)
&
dl_ch_estimates_ext
[
aatx
*
x
+
aarx
][
start_point
];
dl_ch_mag128
=
(
__m128i
*
)
&
dl_ch_mag
[
aatx
*
x
+
aarx
][
start_point
];
dl_ch_mag128b
=
(
__m128i
*
)
&
dl_ch_magb
[
aatx
*
x
+
aarx
][
start_point
];
rxdataF128
=
(
__m128i
*
)
&
rxdataF_ext
[
aarx
][
start_point
];
rxdataF128
=
(
__m128i
*
)
&
rxdataF_ext
[
aarx
][
start_point
];
rxdataF_comp128
=
(
__m128i
*
)
&
rxdataF_comp
[
aatx
*
n_r
x
+
aarx
][
start_point
];
rxdataF_comp128
=
(
__m128i
*
)
&
rxdataF_comp
[
aatx
*
x
+
aarx
][
start_point
];
length_mod8
=
length
&
7
;
length_mod8
=
length
&
7
;
if
(
length_mod8
==
0
){
if
(
length_mod8
==
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