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
Michael Black
OpenXG-RAN
Commits
343242f1
Commit
343242f1
authored
Oct 11, 2022
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/pss-signed-int-overflow' into integration_2022_wk41
parents
10411336
c8832617
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
openair1/PHY/NR_UE_TRANSPORT/pss_nr.c
openair1/PHY/NR_UE_TRANSPORT/pss_nr.c
+7
-6
No files found.
openair1/PHY/NR_UE_TRANSPORT/pss_nr.c
View file @
343242f1
...
...
@@ -661,7 +661,6 @@ int pss_search_time_nr(int **rxdata, ///rx data in time domain
{
unsigned
int
n
,
ar
,
peak_position
,
pss_source
;
int64_t
peak_value
;
int64_t
result
;
int64_t
avg
[
NUMBER_PSS_SEQUENCE
]
=
{
0
};
double
ffo_est
=
0
;
...
...
@@ -704,11 +703,13 @@ int pss_search_time_nr(int **rxdata, ///rx data in time domain
for
(
ar
=
0
;
ar
<
frame_parms
->
nb_antennas_rx
;
ar
++
)
{
/* perform correlation of rx data and pss sequence ie it is a dot product */
result
=
dot_product64
((
short
*
)
primary_synchro_time_nr
[
pss_index
],
(
short
*
)
&
(
rxdata
[
ar
][
n
+
is
*
frame_parms
->
samples_per_frame
]),
frame_parms
->
ofdm_symbol_size
,
shift
);
pss_corr_ue
+=
squaredMod
(
*
(
c32_t
*
)
&
result
);
const
int64_t
result
=
dot_product64
((
short
*
)
primary_synchro_time_nr
[
pss_index
],
(
short
*
)
&
(
rxdata
[
ar
][
n
+
is
*
frame_parms
->
samples_per_frame
]),
frame_parms
->
ofdm_symbol_size
,
shift
);
const
c32_t
r32
=
*
(
c32_t
*
)
&
result
;
const
c64_t
r64
=
{.
r
=
r32
.
r
,
.
i
=
r32
.
i
};
pss_corr_ue
+=
squaredMod
(
r64
);
//((short*)pss_corr_ue[pss_index])[2*n] += ((short*) &result)[0]; /* real part */
//((short*)pss_corr_ue[pss_index])[2*n+1] += ((short*) &result)[1]; /* imaginary part */
//((short*)&synchro_out)[0] += ((int*) &result)[0]; /* real part */
...
...
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