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
ZhouShuya
OpenXG-RAN
Commits
1025fd85
Commit
1025fd85
authored
Sep 02, 2020
by
Francesco Mani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trying to fix some cppcheck errors
parent
5a9ed930
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
18 deletions
+16
-18
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
+14
-16
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+2
-2
No files found.
openair1/PHY/NR_TRANSPORT/nr_ulsch_demodulation.c
View file @
1025fd85
...
@@ -1082,25 +1082,23 @@ void nr_ulsch_detection_mrc(NR_DL_FRAME_PARMS *frame_parms,
...
@@ -1082,25 +1082,23 @@ void nr_ulsch_detection_mrc(NR_DL_FRAME_PARMS *frame_parms,
ul_ch_mag128b
[
0
][
i
]
=
_mm_adds_epi16
(
_mm_srai_epi16
(
ul_ch_mag128b
[
aa
][
i
],
1
),
_mm_srai_epi16
(
ul_ch_mag128b
[
aa
][
i
],
1
));
ul_ch_mag128b
[
0
][
i
]
=
_mm_adds_epi16
(
_mm_srai_epi16
(
ul_ch_mag128b
[
aa
][
i
],
1
),
_mm_srai_epi16
(
ul_ch_mag128b
[
aa
][
i
],
1
));
// rxdataF_comp128[0][i] = _mm_add_epi16(rxdataF_comp128_0[i],(*(__m128i *)&jitterc[0]));
// rxdataF_comp128[0][i] = _mm_add_epi16(rxdataF_comp128_0[i],(*(__m128i *)&jitterc[0]));
}
}
}
#elif defined(__arm__)
#elif defined(__arm__)
rxdataF_comp128_0
=
(
int16x8_t
*
)
&
rxdataF_comp
[
0
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
rxdataF_comp128_0
=
(
int16x8_t
*
)
&
rxdataF_comp
[
0
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
rxdataF_comp128_1
=
(
int16x8_t
*
)
&
rxdataF_comp
[
1
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
rxdataF_comp128_1
=
(
int16x8_t
*
)
&
rxdataF_comp
[
1
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
ul_ch_mag128_0
=
(
int16x8_t
*
)
&
ul_ch_mag
[
0
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
ul_ch_mag128_0
=
(
int16x8_t
*
)
&
ul_ch_mag
[
0
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
ul_ch_mag128_1
=
(
int16x8_t
*
)
&
ul_ch_mag
[
1
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
ul_ch_mag128_1
=
(
int16x8_t
*
)
&
ul_ch_mag
[
1
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
ul_ch_mag128_0b
=
(
int16x8_t
*
)
&
ul_ch_magb
[
0
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
ul_ch_mag128_0b
=
(
int16x8_t
*
)
&
ul_ch_magb
[
0
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
ul_ch_mag128_1b
=
(
int16x8_t
*
)
&
ul_ch_magb
[
1
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
ul_ch_mag128_1b
=
(
int16x8_t
*
)
&
ul_ch_magb
[
1
][
symbol
*
frame_parms
->
N_RB_DL
*
12
];
// MRC on each re of rb, both on MF output and magnitude (for 16QAM/64QAM llr computation)
for
(
i
=
0
;
i
<
nb_rb
*
3
;
i
++
)
{
rxdataF_comp128_0
[
i
]
=
vhaddq_s16
(
rxdataF_comp128_0
[
i
],
rxdataF_comp128_1
[
i
]);
ul_ch_mag128_0
[
i
]
=
vhaddq_s16
(
ul_ch_mag128_0
[
i
],
ul_ch_mag128_1
[
i
]);
ul_ch_mag128_0b
[
i
]
=
vhaddq_s16
(
ul_ch_mag128_0b
[
i
],
ul_ch_mag128_1b
[
i
]);
rxdataF_comp128_0
[
i
]
=
vqaddq_s16
(
rxdataF_comp128_0
[
i
],(
*
(
int16x8_t
*
)
&
jitterc
[
0
]));
}
#endif
// MRC on each re of rb, both on MF output and magnitude (for 16QAM/64QAM llr computation)
for
(
i
=
0
;
i
<
nb_rb
*
3
;
i
++
)
{
rxdataF_comp128_0
[
i
]
=
vhaddq_s16
(
rxdataF_comp128_0
[
i
],
rxdataF_comp128_1
[
i
]);
ul_ch_mag128_0
[
i
]
=
vhaddq_s16
(
ul_ch_mag128_0
[
i
],
ul_ch_mag128_1
[
i
]);
ul_ch_mag128_0b
[
i
]
=
vhaddq_s16
(
ul_ch_mag128_0b
[
i
],
ul_ch_mag128_1b
[
i
]);
rxdataF_comp128_0
[
i
]
=
vqaddq_s16
(
rxdataF_comp128_0
[
i
],(
*
(
int16x8_t
*
)
&
jitterc
[
0
]));
}
}
#endif
}
}
#if defined(__x86_64__) || defined(__i386__)
#if defined(__x86_64__) || defined(__i386__)
...
...
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
1025fd85
...
@@ -460,12 +460,13 @@ int main(int argc, char **argv)
...
@@ -460,12 +460,13 @@ int main(int argc, char **argv)
DS_TDL
,
DS_TDL
,
0
,
0
,
0
);
0
,
0
,
0
);
UE2gNB
->
max_Doppler
=
maxDoppler
;
if
(
UE2gNB
==
NULL
)
{
if
(
UE2gNB
==
NULL
)
{
printf
(
"Problem generating channel model. Exiting.
\n
"
);
printf
(
"Problem generating channel model. Exiting.
\n
"
);
exit
(
-
1
);
exit
(
-
1
);
}
}
UE2gNB
->
max_Doppler
=
maxDoppler
;
RC
.
gNB
=
(
PHY_VARS_gNB
**
)
malloc
(
sizeof
(
PHY_VARS_gNB
*
));
RC
.
gNB
=
(
PHY_VARS_gNB
**
)
malloc
(
sizeof
(
PHY_VARS_gNB
*
));
RC
.
gNB
[
0
]
=
malloc
(
sizeof
(
PHY_VARS_gNB
));
RC
.
gNB
[
0
]
=
malloc
(
sizeof
(
PHY_VARS_gNB
));
gNB
=
RC
.
gNB
[
0
];
gNB
=
RC
.
gNB
[
0
];
...
@@ -690,7 +691,6 @@ int main(int argc, char **argv)
...
@@ -690,7 +691,6 @@ int main(int argc, char **argv)
slot_offset
,
slot_offset
,
((
int16_t
*
)
&
gNB
->
common_vars
.
rxdata
[
0
][
slot_offset
])[
i
],
((
int16_t
*
)
&
gNB
->
common_vars
.
rxdata
[
0
][
slot_offset
])[
i
],
((
int16_t
*
)
&
gNB
->
common_vars
.
rxdata
[
0
][
slot_offset
])[
1
+
i
]);
((
int16_t
*
)
&
gNB
->
common_vars
.
rxdata
[
0
][
slot_offset
])[
1
+
i
]);
fclose
(
input_fd
);
}
}
for
(
SNR
=
snr0
;
SNR
<
snr1
;
SNR
+=
snr_step
)
{
for
(
SNR
=
snr0
;
SNR
<
snr1
;
SNR
+=
snr_step
)
{
...
...
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