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
lizhongxiao
OpenXG-RAN
Commits
0a0b6533
Commit
0a0b6533
authored
Jul 01, 2023
by
David Kim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Type conversion for the unconverted variables.
parent
7858c772
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
openair1/PHY/NR_UE_TRANSPORT/pss_nr_sl.c
openair1/PHY/NR_UE_TRANSPORT/pss_nr_sl.c
+2
-3
openair1/PHY/NR_UE_TRANSPORT/sss_nr_sl.c
openair1/PHY/NR_UE_TRANSPORT/sss_nr_sl.c
+5
-5
No files found.
openair1/PHY/NR_UE_TRANSPORT/pss_nr_sl.c
View file @
0a0b6533
...
...
@@ -54,7 +54,7 @@ int nr_sl_generate_pss(c16_t *txdataF,
LOG_I
(
NR_PHY
,
"Nid_SL %d, Nid2 %d
\n
"
,
frame_parms
->
Nid_SL
,
Nid2
);
int16_t
d_pss
[
LENGTH_PSS_NR
];
c16_t
*
primary_synchro
=
primary_synchro_nr
[
Nid2
];
c
16_t
*
primary_synchro2
=
primary_synchro_nr2
[
Nid2
];
int
16_t
*
primary_synchro2
=
primary_synchro_nr2
[
Nid2
];
// PSS occupies a predefined position (subcarriers 2-128, symbol 0) within the SSB block starting from
int
k
=
frame_parms
->
first_carrier_offset
+
frame_parms
->
ssb_start_subcarrier
+
PSS_SSS_SUB_CARRIER_START_SL
;
...
...
@@ -68,8 +68,7 @@ int nr_sl_generate_pss(c16_t *txdataF,
txdataF
[(
l
*
frame_parms
->
ofdm_symbol_size
+
k
)].
i
=
0
;
primary_synchro
[
i
].
r
=
(
d_pss
[
i
]
*
SHRT_MAX
)
>>
SCALING_PSS_NR
;
primary_synchro
[
i
].
i
=
0
;
primary_synchro2
[
i
].
r
=
d_pss
[
i
];
primary_synchro2
[
i
].
i
=
d_pss
[
i
];
primary_synchro2
[
i
]
=
d_pss
[
i
];
k
++
;
if
(
k
>=
frame_parms
->
ofdm_symbol_size
)
...
...
openair1/PHY/NR_UE_TRANSPORT/sss_nr_sl.c
View file @
0a0b6533
...
...
@@ -191,7 +191,7 @@ int pss_sl_ch_est_nr(PHY_VARS_NR_UE *ue,
c16_t
sss1_ext
[
NB_ANTENNAS_RX
][
LENGTH_SSS_NR
])
{
int
id
=
get_softmodem_params
()
->
sl_mode
==
0
?
ue
->
common_vars
.
eNb_id
:
ue
->
common_vars
.
N2_id
;
c
16_t
*
pss
=
primary_synchro_nr2
[
id
];
int
16_t
*
pss
=
primary_synchro_nr2
[
id
];
c16_t
tmp
,
tmp2
;
c16_t
*
sss0_ext3
=
&
sss0_ext
[
0
][
0
];
for
(
uint8_t
aarx
=
0
;
aarx
<
ue
->
frame_parms
.
nb_antennas_rx
;
aarx
++
)
{
...
...
@@ -199,8 +199,8 @@ int pss_sl_ch_est_nr(PHY_VARS_NR_UE *ue,
c16_t
*
pss0_ext2
=
&
pss0_ext
[
aarx
][
0
];
for
(
uint8_t
i
=
0
;
i
<
LENGTH_PSS_NR
;
i
++
)
{
// This is H*(PSS) = R* \cdot PSS
tmp
.
r
=
(
int16_t
)((((
int32_t
)
pss0_ext2
[
i
].
r
)
*
pss
[
i
]
.
r
)
>>
15
);
tmp
.
i
=
0
;
//-pss0_ext2[i].i * pss[i]
.i
;
tmp
.
r
=
(
int16_t
)((((
int32_t
)
pss0_ext2
[
i
].
r
)
*
pss
[
i
])
>>
15
);
tmp
.
i
=
0
;
//-pss0_ext2[i].i * pss[i];
int32_t
amp
=
(((
int32_t
)
tmp
.
r
)
*
tmp
.
r
)
+
((
int32_t
)
tmp
.
i
)
*
tmp
.
i
;
int
shift
=
log2_approx
(
amp
)
/
2
;
...
...
@@ -224,8 +224,8 @@ int pss_sl_ch_est_nr(PHY_VARS_NR_UE *ue,
c16_t
*
pss1_ext2
=
&
pss1_ext
[
aarx
][
0
];
for
(
uint8_t
i
=
0
;
i
<
LENGTH_PSS_NR
;
i
++
)
{
// This is H*(PSS) = R* \cdot PSS
tmp
.
r
=
pss1_ext2
[
i
].
r
*
pss
[
i
]
.
r
;
tmp
.
i
=
-
pss1_ext2
[
i
].
i
*
pss
[
i
]
.
i
;
tmp
.
r
=
pss1_ext2
[
i
].
r
*
pss
[
i
];
tmp
.
i
=
-
pss1_ext2
[
i
].
i
*
pss
[
i
];
int32_t
amp
=
(((
int32_t
)
tmp
.
r
)
*
tmp
.
r
)
+
((
int32_t
)
tmp
.
i
)
*
tmp
.
i
;
int
shift
=
log2_approx
(
amp
)
/
2
;
// This is R(SSS) \cdot H*(PSS)
...
...
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