Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
oai
openairinterface5G
Commits
cb4e60ee
Commit
cb4e60ee
authored
2 years ago
by
Robert Schmidt
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/init_symbol_rotation_optimization' into integration_2022_wk31b
parents
0352f984
48019c33
No related branches found
No related tags found
2 merge requests
!1757
Draft: Use pMAX value in configuration file, instead of hardcoded '23' in asn1_msg.c
,
!1649
integration_2022_wk31b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openair1/PHY/MODULATION/nr_modulation.c
+8
-17
8 additions, 17 deletions
openair1/PHY/MODULATION/nr_modulation.c
with
8 additions
and
17 deletions
openair1/PHY/MODULATION/nr_modulation.c
+
8
−
17
View file @
cb4e60ee
...
...
@@ -618,32 +618,23 @@ void init_symbol_rotation(NR_DL_FRAME_PARMS *fp) {
for
(
uint8_t
ll
=
0
;
ll
<
2
;
ll
++
){
double
f0
=
f
[
ll
];
double
Ncpm1
=
Ncp0
;
LOG_I
(
PHY
,
"Doing symbol rotation calculation for gNB TX/RX, f0 %f Hz, Nsymb %d
\n
"
,
f0
,
nsymb
)
;
c16_t
*
symbol_rotation
=
fp
->
symbol_rotation
[
ll
];
double
tl
=
0
;
double
poff
=
2
*
M_PI
*
((
Ncp0
*
Tc
))
*
f0
;
double
exp_re
=
cos
(
poff
);
double
exp_im
=
sin
(
-
poff
);
symbol_rotation
[
0
].
r
=
(
int16_t
)
floor
(
exp_re
*
32767
);
symbol_rotation
[
0
].
i
=
(
int16_t
)
floor
(
exp_im
*
32767
);
LOG_I
(
PHY
,
"Doing symbol rotation calculation for gNB TX/RX, f0 %f Hz, Nsymb %d
\n
"
,
f0
,
nsymb
);
LOG_I
(
PHY
,
"Symbol rotation %d/%d => (%d,%d)
\n
"
,
0
,
nsymb
,
symbol_rotation
[
0
].
r
,
symbol_rotation
[
0
].
i
);
double
tl
=
0
.
0
;
double
poff
=
0
.
0
;
double
exp_re
=
0
.
0
;
double
exp_im
=
0
.
0
;
for
(
int
l
=
1
;
l
<
nsymb
;
l
++
)
{
for
(
int
l
=
0
;
l
<
nsymb
;
l
++
)
{
double
Ncp
;
if
(
l
==
(
7
*
(
1
<<
fp
->
numerology_index
)))
{
if
(
l
==
0
||
l
==
(
7
*
(
1
<<
fp
->
numerology_index
)))
{
Ncp
=
Ncp0
;
}
else
{
Ncp
=
Ncp1
;
}
tl
+=
(
Nu
+
Ncpm1
)
*
Tc
;
poff
=
2
*
M_PI
*
(
tl
+
(
Ncp
*
Tc
))
*
f0
;
exp_re
=
cos
(
poff
);
exp_im
=
sin
(
-
poff
);
...
...
@@ -658,7 +649,7 @@ void init_symbol_rotation(NR_DL_FRAME_PARMS *fp) {
symbol_rotation
[
l
].
i
,
(
poff
/
2
/
M_PI
)
-
floor
(
poff
/
2
/
M_PI
));
Ncpm1
=
Ncp
;
tl
+=
(
Nu
+
Ncp
)
*
Tc
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment