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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
OpenXG
OpenXG-RAN
Commits
7da57e76
Commit
7da57e76
authored
Mar 09, 2021
by
rohan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update ulsim.c, whitespace error corrected.
parent
bae3bebd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
openair1/SIMULATION/NR_PHY/ulsim.c
openair1/SIMULATION/NR_PHY/ulsim.c
+15
-14
No files found.
openair1/SIMULATION/NR_PHY/ulsim.c
View file @
7da57e76
...
@@ -1074,27 +1074,28 @@ int main(int argc, char **argv)
...
@@ -1074,27 +1074,28 @@ int main(int argc, char **argv)
}
}
///////////
///////////
////////////////////////////////////////////////////
////////////////////////////////////////////////////
tx_offset
=
frame_parms
->
get_samples_slot_timestamp
(
slot
,
frame_parms
,
0
);
tx_offset
=
frame_parms
->
get_samples_slot_timestamp
(
slot
,
frame_parms
,
0
);
txlev
=
signal_energy
(
&
UE
->
common_vars
.
txdata
[
0
][
tx_offset
+
5
*
frame_parms
->
ofdm_symbol_size
+
4
*
frame_parms
->
nb_prefix_samples
+
frame_parms
->
nb_prefix_samples0
],
txlev
=
signal_energy
(
&
UE
->
common_vars
.
txdata
[
0
][
tx_offset
+
5
*
frame_parms
->
ofdm_symbol_size
+
4
*
frame_parms
->
nb_prefix_samples
+
frame_parms
->
nb_prefix_samples0
],
frame_parms
->
ofdm_symbol_size
+
frame_parms
->
nb_prefix_samples
);
frame_parms
->
ofdm_symbol_size
+
frame_parms
->
nb_prefix_samples
);
}
}
else
n_trials
=
1
;
else
n_trials
=
1
;
if
(
input_fd
==
NULL
)
{
if
(
input_fd
==
NULL
)
{
sigma_dB
=
10
*
log10
((
double
)
txlev
*
((
double
)
frame_parms
->
ofdm_symbol_size
/
(
12
*
nb_rb
)))
-
SNR
;;
sigma_dB
=
10
*
log10
((
double
)
txlev
*
((
double
)
frame_parms
->
ofdm_symbol_size
/
(
12
*
nb_rb
)))
-
SNR
;;
sigma
=
pow
(
10
,
sigma_dB
/
10
);
sigma
=
pow
(
10
,
sigma_dB
/
10
);
if
(
n_trials
==
1
)
printf
(
"sigma %f (%f dB), txlev %f (factor %f)
\n
"
,
sigma
,
sigma_dB
,
10
*
log10
((
double
)
txlev
),(
double
)(
double
)
frame_parms
->
ofdm_symbol_size
/
(
12
*
nb_rb
));
if
(
n_trials
==
1
)
printf
(
"sigma %f (%f dB), txlev %f (factor %f)
\n
"
,
sigma
,
sigma_dB
,
10
*
log10
((
double
)
txlev
),(
double
)(
double
)
frame_parms
->
ofdm_symbol_size
/
(
12
*
nb_rb
));
for
(
i
=
0
;
i
<
slot_length
;
i
++
)
{
for
(
i
=
0
;
i
<
slot_length
;
i
++
)
{
for
(
int
aa
=
0
;
aa
<
frame_parms
->
nb_antennas_rx
;
aa
++
)
{
for
(
int
aa
=
0
;
aa
<
frame_parms
->
nb_antennas_rx
;
aa
++
)
{
s_re
[
aa
][
i
]
=
((
double
)(((
short
*
)
&
UE
->
common_vars
.
txdata
[
aa
][
slot_offset
]))[(
i
<<
1
)]);
s_re
[
aa
][
i
]
=
((
double
)(((
short
*
)
&
UE
->
common_vars
.
txdata
[
aa
][
slot_offset
]))[(
i
<<
1
)]);
s_im
[
aa
][
i
]
=
((
double
)(((
short
*
)
&
UE
->
common_vars
.
txdata
[
aa
][
slot_offset
]))[(
i
<<
1
)
+
1
]);
s_im
[
aa
][
i
]
=
((
double
)(((
short
*
)
&
UE
->
common_vars
.
txdata
[
aa
][
slot_offset
]))[(
i
<<
1
)
+
1
]);
}
}
}
}
if
(
UE2gNB
->
max_Doppler
==
0
)
{
if
(
UE2gNB
->
max_Doppler
==
0
)
{
...
@@ -1113,8 +1114,8 @@ int main(int argc, char **argv)
...
@@ -1113,8 +1114,8 @@ int main(int argc, char **argv)
phase_noise
(
ts
,
&
((
int16_t
*
)
&
gNB
->
common_vars
.
rxdata
[
ap
][
slot_offset
])[(
2
*
i
)],
phase_noise
(
ts
,
&
((
int16_t
*
)
&
gNB
->
common_vars
.
rxdata
[
ap
][
slot_offset
])[(
2
*
i
)],
&
((
int16_t
*
)
&
gNB
->
common_vars
.
rxdata
[
ap
][
slot_offset
])[(
2
*
i
)
+
1
]);
&
((
int16_t
*
)
&
gNB
->
common_vars
.
rxdata
[
ap
][
slot_offset
])[(
2
*
i
)
+
1
]);
}
}
}
}
}
}
}
/*End input_fd */
}
/*End input_fd */
...
...
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