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
zzha zzha
OpenXG-RAN
Commits
bc1f00e9
Commit
bc1f00e9
authored
Oct 26, 2015
by
Florian Kaltenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
small fix for perfect_ce for dlsim
adding perfect_ce to mbmssim
parent
5c30151d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
8 deletions
+19
-8
openair1/SIMULATION/LTE_PHY/dlsim.c
openair1/SIMULATION/LTE_PHY/dlsim.c
+1
-1
openair1/SIMULATION/LTE_PHY/mbmssim.c
openair1/SIMULATION/LTE_PHY/mbmssim.c
+18
-7
No files found.
openair1/SIMULATION/LTE_PHY/dlsim.c
View file @
bc1f00e9
...
...
@@ -2769,7 +2769,7 @@ PMI_FEEDBACK:
// Multipath channel
if
(
awgn_flag
==
0
)
{
multipath_channel
(
eNB2UE
[
0
],
s_re
,
s_im
,
r_re
,
r_im
,
multipath_channel
(
eNB2UE
[
round
],
s_re
,
s_im
,
r_re
,
r_im
,
2
*
frame_parms
->
samples_per_tti
,
hold_channel
);
// printf("amc: ****************** eNB2UE[%d]->n_rx = %d,dd %d\n",round,eNB2UE[round]->nb_rx,eNB2UE[round]->channel_offset);
...
...
openair1/SIMULATION/LTE_PHY/mbmssim.c
View file @
bc1f00e9
...
...
@@ -129,7 +129,7 @@ int main(int argc, char **argv)
char
c
;
int
i
,
l
,
aa
,
aarx
;
int
i
,
l
,
aa
,
aarx
,
k
;
double
sigma2
,
sigma2_dB
=
0
,
SNR
,
snr0
=-
2
.
0
,
snr1
=
0
.
0
;
uint8_t
snr1set
=
0
;
double
snr_step
=
1
,
input_snr_step
=
1
;
...
...
@@ -521,15 +521,26 @@ int main(int argc, char **argv)
subframe
%
10
,
0
,
0
);
}
for
(
l
=
2
;
l
<
12
;
l
++
)
{
rx_pmch
(
PHY_vars_UE
,
if
(
PHY_vars_UE
->
perfect_ce
==
1
)
{
// fill in perfect channel estimates
freq_channel
(
eNB2UE
,
PHY_vars_UE
->
lte_frame_parms
.
N_RB_DL
,
12
*
PHY_vars_UE
->
lte_frame_parms
.
N_RB_DL
+
1
);
for
(
k
=
0
;
k
<
NUMBER_OF_eNB_MAX
;
k
++
)
{
for
(
aa
=
0
;
aa
<
frame_parms
->
nb_antennas_tx
;
aa
++
)
{
for
(
aarx
=
0
;
aarx
<
frame_parms
->
nb_antennas_rx
;
aarx
++
)
{
for
(
i
=
0
;
i
<
frame_parms
->
N_RB_DL
*
12
;
i
++
)
{
((
int16_t
*
)
PHY_vars_UE
->
lte_ue_common_vars
.
dl_ch_estimates
[
k
][(
aa
<<
1
)
+
aarx
])[
2
*
i
+
(
l
*
frame_parms
->
ofdm_symbol_size
+
LTE_CE_FILTER_LENGTH
)
*
2
]
=
(
int16_t
)(
eNB2UE
->
chF
[
aarx
+
(
aa
*
frame_parms
->
nb_antennas_rx
)][
i
].
x
*
AMP
);
((
int16_t
*
)
PHY_vars_UE
->
lte_ue_common_vars
.
dl_ch_estimates
[
k
][(
aa
<<
1
)
+
aarx
])[
2
*
i
+
1
+
(
l
*
frame_parms
->
ofdm_symbol_size
+
LTE_CE_FILTER_LENGTH
)
*
2
]
=
(
int16_t
)(
eNB2UE
->
chF
[
aarx
+
(
aa
*
frame_parms
->
nb_antennas_rx
)][
i
].
y
*
AMP
);
}
}
}
}
}
rx_pmch
(
PHY_vars_UE
,
0
,
subframe
%
10
,
l
);
}
PHY_vars_UE
->
dlsch_ue_MCH
[
0
]
->
harq_processes
[
0
]
->
G
=
get_G
(
&
PHY_vars_UE
->
lte_frame_parms
,
...
...
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