Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
dc5f420d
Commit
dc5f420d
authored
Jan 27, 2017
by
Cédric Roux
Browse files
fix compilation of unitary simulators
I'm not sure the fixes are correct.
parent
0c13a375
Changes
5
Hide whitespace changes
Inline
Side-by-side
openair1/SIMULATION/LTE_PHY/dlsim.c
View file @
dc5f420d
...
...
@@ -2536,7 +2536,7 @@ int main(int argc, char **argv)
UE
->
frame_parms
.
ofdm_symbol_size
*
nsymb
/
2
,
1
,
1
);
//pdsch_vars
dump_dlsch2
(
UE
,
eNB_id
,
coded_bits_per_codeword
,
round
);
dump_dlsch2
(
UE
,
eNB_id
,
subframe
,
coded_bits_per_codeword
,
round
);
//dump_dlsch2(UE,eNB_id_i,coded_bits_per_codeword);
write_output
(
"dlsch_e.m"
,
"e"
,
eNB
->
dlsch
[
0
][
0
]
->
harq_processes
[
0
]
->
e
,
coded_bits_per_codeword
,
1
,
4
);
...
...
@@ -2636,7 +2636,7 @@ int main(int argc, char **argv)
}
//pdsch_vars
dump_dlsch2
(
UE
,
eNB_id
,
coded_bits_per_codeword
,
round
);
dump_dlsch2
(
UE
,
eNB_id
,
subframe
,
coded_bits_per_codeword
,
round
);
//write_output("dlsch_e.m","e",eNB->dlsch[0][0]->harq_processes[0]->e,coded_bits_per_codeword,1,4);
//write_output("dlsch_ber_bit.m","ber_bit",uncoded_ber_bit,coded_bits_per_codeword,1,0);
...
...
openair1/SIMULATION/LTE_PHY/dlsim_tm7.c
View file @
dc5f420d
...
...
@@ -3512,7 +3512,7 @@ PMI_FEEDBACK:
UE
->
frame_parms
.
ofdm_symbol_size
*
nsymb
/
2
,
1
,
1
);
//pdsch_vars
dump_dlsch2
(
UE
,
eNB_id
,
coded_bits_per_codeword
,
round
);
dump_dlsch2
(
UE
,
eNB_id
,
subframe
,
coded_bits_per_codeword
,
round
);
//dump_dlsch2(UE,eNB_id_i,coded_bits_per_codeword);
write_output
(
"dlsch_e.m"
,
"e"
,
eNB
->
dlsch
[
0
][
0
]
->
harq_processes
[
0
]
->
e
,
coded_bits_per_codeword
,
1
,
4
);
...
...
@@ -3729,7 +3729,7 @@ PMI_FEEDBACK:
}
//pdsch_vars
dump_dlsch2
(
UE
,
eNB_id
,
coded_bits_per_codeword
,
round
);
dump_dlsch2
(
UE
,
eNB_id
,
subframe
,
coded_bits_per_codeword
,
round
);
/*
write_output("dlsch_e.m","e",eNB->dlsch[0][0]->harq_processes[0]->e,coded_bits_per_codeword,1,4);
write_output("dlsch_ber_bit.m","ber_bit",uncoded_ber_bit,coded_bits_per_codeword,1,0);
...
...
openair1/SIMULATION/LTE_PHY/pbchsim.c
View file @
dc5f420d
...
...
@@ -932,6 +932,7 @@ int main(int argc, char **argv)
lte_ue_measurements
(
UE
,
0
,
1
,
0
,
0
);
/*
if (trial%100 == 0) {
...
...
@@ -963,7 +964,7 @@ int main(int argc, char **argv)
//sprintf(vname,"dl_ch00_%d",l);
//write_output(fname,vname,&(common_vars->dl_ch_estimates[0][frame_parms->ofdm_symbol_size*(l%6)]),frame_parms->ofdm_symbol_size,1,1);
lte_est_freq_offset
(
UE
->
common_vars
.
common_vars_rx_data_per_thread
[
subframe
&
0x1
].
dl_ch_estimates
[
0
],
lte_est_freq_offset
(
UE
->
common_vars
.
common_vars_rx_data_per_thread
[
/*
subframe
*/
0
&
0x1
].
dl_ch_estimates
[
0
],
&
UE
->
frame_parms
,
l
,
&
freq_offset
,
...
...
@@ -1051,13 +1052,13 @@ int main(int argc, char **argv)
if
(
n_frames
==
1
)
{
write_output
(
"H00.m"
,
"h00"
,
&
(
UE
->
common_vars
.
common_vars_rx_data_per_thread
[
subframe
&
0x1
].
dl_ch_estimates
[
0
][
0
][
0
]),((
frame_parms
->
Ncp
==
0
)
?
7
:
6
)
*
(
eNB
->
frame_parms
.
ofdm_symbol_size
),
1
,
1
);
write_output
(
"H00.m"
,
"h00"
,
&
(
UE
->
common_vars
.
common_vars_rx_data_per_thread
[
/*
subframe
*/
0
&
0x1
].
dl_ch_estimates
[
0
][
0
][
0
]),((
frame_parms
->
Ncp
==
0
)
?
7
:
6
)
*
(
eNB
->
frame_parms
.
ofdm_symbol_size
),
1
,
1
);
if
(
n_tx
==
2
)
write_output
(
"H10.m"
,
"h10"
,
&
(
UE
->
common_vars
.
common_vars_rx_data_per_thread
[
subframe
&
0x1
].
dl_ch_estimates
[
0
][
2
][
0
]),((
frame_parms
->
Ncp
==
0
)
?
7
:
6
)
*
(
eNB
->
frame_parms
.
ofdm_symbol_size
),
1
,
1
);
write_output
(
"H10.m"
,
"h10"
,
&
(
UE
->
common_vars
.
common_vars_rx_data_per_thread
[
/*
subframe
*/
0
&
0x1
].
dl_ch_estimates
[
0
][
2
][
0
]),((
frame_parms
->
Ncp
==
0
)
?
7
:
6
)
*
(
eNB
->
frame_parms
.
ofdm_symbol_size
),
1
,
1
);
write_output
(
"rxsig0.m"
,
"rxs0"
,
UE
->
common_vars
.
rxdata
[
0
],
FRAME_LENGTH_COMPLEX_SAMPLES
,
1
,
1
);
write_output
(
"rxsigF0.m"
,
"rxsF0"
,
UE
->
common_vars
.
common_vars_rx_data_per_thread
[
subframe
&
0x1
].
rxdataF
[
0
],
NUMBER_OF_OFDM_CARRIERS
*
2
*
((
frame_parms
->
Ncp
==
0
)
?
14
:
12
),
2
,
1
);
write_output
(
"rxsigF0.m"
,
"rxsF0"
,
UE
->
common_vars
.
common_vars_rx_data_per_thread
[
/*
subframe
*/
0
&
0x1
].
rxdataF
[
0
],
NUMBER_OF_OFDM_CARRIERS
*
2
*
((
frame_parms
->
Ncp
==
0
)
?
14
:
12
),
2
,
1
);
write_output
(
"PBCH_rxF0_ext.m"
,
"pbch0_ext"
,
UE
->
pbch_vars
[
0
]
->
rxdataF_ext
[
0
],
12
*
4
*
6
,
1
,
1
);
write_output
(
"PBCH_rxF0_comp.m"
,
"pbch0_comp"
,
UE
->
pbch_vars
[
0
]
->
rxdataF_comp
[
0
],
12
*
4
*
6
,
1
,
1
);
write_output
(
"PBCH_rxF_llr.m"
,
"pbch_llr"
,
UE
->
pbch_vars
[
0
]
->
llr
,(
frame_parms
->
Ncp
==
0
)
?
1920
:
1728
,
1
,
4
);
...
...
openair1/SIMULATION/LTE_PHY/pucchsim.c
View file @
dc5f420d
...
...
@@ -581,7 +581,7 @@ int main(int argc, char **argv)
//write_output("txsig0.m","txs0", &txdata[0][subframe*frame_parms->samples_per_tti],frame_parms->samples_per_tti,1,1);
write_output
(
"txsig0pucch.m"
,
"txs0"
,
&
txdata
[
0
][
0
],
FRAME_LENGTH_COMPLEX_SAMPLES
,
1
,
1
);
write_output
(
"rxsig0.m"
,
"rxs0"
,
&
eNB
->
common_vars
.
rxdata
[
0
][
0
][
subframe
*
frame_parms
->
samples_per_tti
],
frame_parms
->
samples_per_tti
,
1
,
1
);
write_output
(
"rxsigF0.m"
,
"rxsF0"
,
&
eNB
->
common_vars
.
common_vars_rx_data_per_thread
[
subframe
&
0x1
].
rxdataF
[
0
][
0
][
0
],
512
*
nsymb
*
2
,
2
,
1
);
write_output
(
"rxsigF0.m"
,
"rxsF0"
,
&
eNB
->
common_vars
.
rxdataF
[
0
][
0
][
0
],
512
*
nsymb
*
2
,
2
,
1
);
}
...
...
openair1/SIMULATION/LTE_PHY/syncsim.c
View file @
dc5f420d
...
...
@@ -1739,7 +1739,7 @@ int main(int argc, char **argv)
PHY_vars_UE
[
0
]
->
lte_ue_pdcch_vars
[
0
]
->
num_pdcch_symbols
,
0
);
dump_dlsch2
(
PHY_vars_UE
[
0
],
0
,
coded_bits_per_codeword
);
dump_dlsch2
(
PHY_vars_UE
[
0
],
0
,
0
,
coded_bits_per_codeword
);
}
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment