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
lizhongxiao
OpenXG-RAN
Commits
dc5f420d
Commit
dc5f420d
authored
8 years ago
by
Cedric Roux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix compilation of unitary simulators
I'm not sure the fixes are correct.
parent
0c13a375
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
10 deletions
+11
-10
openair1/SIMULATION/LTE_PHY/dlsim.c
openair1/SIMULATION/LTE_PHY/dlsim.c
+2
-2
openair1/SIMULATION/LTE_PHY/dlsim_tm7.c
openair1/SIMULATION/LTE_PHY/dlsim_tm7.c
+2
-2
openair1/SIMULATION/LTE_PHY/pbchsim.c
openair1/SIMULATION/LTE_PHY/pbchsim.c
+5
-4
openair1/SIMULATION/LTE_PHY/pucchsim.c
openair1/SIMULATION/LTE_PHY/pucchsim.c
+1
-1
openair1/SIMULATION/LTE_PHY/syncsim.c
openair1/SIMULATION/LTE_PHY/syncsim.c
+1
-1
No files found.
openair1/SIMULATION/LTE_PHY/dlsim.c
View file @
dc5f420d
...
@@ -2536,7 +2536,7 @@ int main(int argc, char **argv)
...
@@ -2536,7 +2536,7 @@ int main(int argc, char **argv)
UE
->
frame_parms
.
ofdm_symbol_size
*
nsymb
/
2
,
1
,
1
);
UE
->
frame_parms
.
ofdm_symbol_size
*
nsymb
/
2
,
1
,
1
);
//pdsch_vars
//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);
//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
);
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)
...
@@ -2636,7 +2636,7 @@ int main(int argc, char **argv)
}
}
//pdsch_vars
//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_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);
//write_output("dlsch_ber_bit.m","ber_bit",uncoded_ber_bit,coded_bits_per_codeword,1,0);
...
...
This diff is collapsed.
Click to expand it.
openair1/SIMULATION/LTE_PHY/dlsim_tm7.c
View file @
dc5f420d
...
@@ -3512,7 +3512,7 @@ PMI_FEEDBACK:
...
@@ -3512,7 +3512,7 @@ PMI_FEEDBACK:
UE
->
frame_parms
.
ofdm_symbol_size
*
nsymb
/
2
,
1
,
1
);
UE
->
frame_parms
.
ofdm_symbol_size
*
nsymb
/
2
,
1
,
1
);
//pdsch_vars
//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);
//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
);
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:
...
@@ -3729,7 +3729,7 @@ PMI_FEEDBACK:
}
}
//pdsch_vars
//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_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);
write_output("dlsch_ber_bit.m","ber_bit",uncoded_ber_bit,coded_bits_per_codeword,1,0);
...
...
This diff is collapsed.
Click to expand it.
openair1/SIMULATION/LTE_PHY/pbchsim.c
View file @
dc5f420d
...
@@ -932,6 +932,7 @@ int main(int argc, char **argv)
...
@@ -932,6 +932,7 @@ int main(int argc, char **argv)
lte_ue_measurements
(
UE
,
lte_ue_measurements
(
UE
,
0
,
0
,
1
,
1
,
0
,
0
);
0
);
/*
/*
if (trial%100 == 0) {
if (trial%100 == 0) {
...
@@ -963,7 +964,7 @@ int main(int argc, char **argv)
...
@@ -963,7 +964,7 @@ int main(int argc, char **argv)
//sprintf(vname,"dl_ch00_%d",l);
//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);
//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
,
&
UE
->
frame_parms
,
l
,
l
,
&
freq_offset
,
&
freq_offset
,
...
@@ -1051,13 +1052,13 @@ int main(int argc, char **argv)
...
@@ -1051,13 +1052,13 @@ int main(int argc, char **argv)
if
(
n_frames
==
1
)
{
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
)
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
(
"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_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_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
);
write_output
(
"PBCH_rxF_llr.m"
,
"pbch_llr"
,
UE
->
pbch_vars
[
0
]
->
llr
,(
frame_parms
->
Ncp
==
0
)
?
1920
:
1728
,
1
,
4
);
...
...
This diff is collapsed.
Click to expand it.
openair1/SIMULATION/LTE_PHY/pucchsim.c
View file @
dc5f420d
...
@@ -581,7 +581,7 @@ int main(int argc, char **argv)
...
@@ -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("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
(
"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
(
"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
);
}
}
...
...
This diff is collapsed.
Click to expand it.
openair1/SIMULATION/LTE_PHY/syncsim.c
View file @
dc5f420d
...
@@ -1739,7 +1739,7 @@ int main(int argc, char **argv)
...
@@ -1739,7 +1739,7 @@ int main(int argc, char **argv)
PHY_vars_UE
[
0
]
->
lte_ue_pdcch_vars
[
0
]
->
num_pdcch_symbols
,
PHY_vars_UE
[
0
]
->
lte_ue_pdcch_vars
[
0
]
->
num_pdcch_symbols
,
0
);
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
{
}
else
{
...
...
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