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
29e2f675
Commit
29e2f675
authored
Jun 07, 2023
by
Melissa Elkadi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverting changes to pbchsim and confusing init_symbol_rotation
parent
95c9cd7b
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
101 additions
and
63 deletions
+101
-63
openair1/PHY/MODULATION/nr_modulation.c
openair1/PHY/MODULATION/nr_modulation.c
+4
-6
openair1/SIMULATION/NR_PHY/pbchsim.c
openair1/SIMULATION/NR_PHY/pbchsim.c
+97
-57
No files found.
openair1/PHY/MODULATION/nr_modulation.c
View file @
29e2f675
...
...
@@ -601,20 +601,18 @@ void init_symbol_rotation(NR_DL_FRAME_PARMS *fp) {
uint64_t
dl_CarrierFreq
=
fp
->
dl_CarrierFreq
;
uint64_t
ul_CarrierFreq
=
fp
->
ul_CarrierFreq
;
uint64_t
sl_CarrierFreq
=
fp
->
sl_CarrierFreq
;
double
f
[
2
]
=
{(
double
)
dl_CarrierFreq
,
(
double
)
u
l_CarrierFreq
};
double
f
[
3
]
=
{(
double
)
dl_CarrierFreq
,
(
double
)
ul_CarrierFreq
,
(
double
)
s
l_CarrierFreq
};
const
int
nsymb
=
fp
->
symbols_per_slot
*
fp
->
slots_per_frame
/
10
;
const
double
Tc
=
(
1
/
480e3
/
4096
);
const
double
Nu
=
2048
*
64
*
(
1
/
(
float
)(
1
<<
fp
->
numerology_index
));
const
double
Ncp0
=
16
*
64
+
(
144
*
64
*
(
1
/
(
float
)(
1
<<
fp
->
numerology_index
)));
const
double
Ncp1
=
(
144
*
64
*
(
1
/
(
float
)(
1
<<
fp
->
numerology_index
)));
const
uint8_t
num_freq
=
sizeof
(
f
)
/
sizeof
(
f
[
0
]);
const
uint8_t
sl_freq
=
!
get_softmodem_params
()
->
sl_mode
?
0
:
1
;
for
(
uint8_t
ll
=
0
;
ll
<
num_freq
+
sl_freq
;
ll
++
){
for
(
uint8_t
ll
=
0
;
ll
<
sizeof
(
f
)
/
sizeof
(
f
[
0
])
;
ll
++
){
double
f0
=
(
ll
<
num_freq
)
?
f
[
ll
]
:
(
double
)
sl_CarrierFreq
;
LOG_
I
(
PHY
,
"Doing symbol rotation calculation for gNB TX/RX, f0 %f Hz, Nsymb %d
\n
"
,
f0
,
nsymb
);
double
f0
=
f
[
ll
]
;
LOG_
D
(
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
.
0
;
...
...
openair1/SIMULATION/NR_PHY/pbchsim.c
View file @
29e2f675
This diff is collapsed.
Click to expand it.
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