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
ce465e50
Commit
ce465e50
authored
Feb 08, 2017
by
Florian Kaltenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
applying last dlsim fix to dlsim_tm4
parent
d3b42510
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
openair1/SIMULATION/LTE_PHY/dlsim_tm4.c
openair1/SIMULATION/LTE_PHY/dlsim_tm4.c
+3
-2
No files found.
openair1/SIMULATION/LTE_PHY/dlsim_tm4.c
View file @
ce465e50
...
...
@@ -3316,8 +3316,9 @@ int main(int argc, char **argv)
}
//AWGN
// This is the SNR on the PDSCH for OFDM symbols without pilots -> rho_A
sigma2_dB
=
10
*
log10
((
double
)
tx_lev
)
+
10
*
log10
((
double
)
eNB
->
frame_parms
.
ofdm_symbol_size
/
(
double
)(
NB_RB
*
12
))
-
SNR
-
get_pa_dB
(
eNB
->
pdsch_config_dedicated
);
// tx_lev is the average energy over the whole subframe
// but SNR should be better defined wrt the energy in the reference symbols
sigma2_dB
=
10
*
log10
((
double
)
tx_lev
)
+
10
*
log10
((
double
)
eNB
->
frame_parms
.
ofdm_symbol_size
/
(
double
)(
eNB
->
frame_parms
.
N_RB_DL
*
12
))
-
SNR
;
sigma2
=
pow
(
10
,
sigma2_dB
/
10
);
if
(
n_frames
==
1
)
printf
(
"Sigma2 %f (sigma2_dB %f,%f,%f )
\n
"
,
sigma2
,
sigma2_dB
,
10
*
log10
((
double
)
eNB
->
frame_parms
.
ofdm_symbol_size
/
(
double
)(
NB_RB
*
12
)),
get_pa_dB
(
eNB
->
pdsch_config_dedicated
));
...
...
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