Académique Documents
Professionnel Documents
Culture Documents
Fall 2007
Paris
ECE 732
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Outline
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Paris
ECE 732
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
MATLAB Simulation
I
I
probabilities,
Raised cosine pulses,
AWGN channel,
oversampled integrate-and-dump receiver front-end,
digital matched filter.
Paris
ECE 732
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
System to be Simulated
Sampler,
rate fs
N (t )
bn
s (t )
(t nT )
p (t )
R (t )
h (t )
Ts (t )
R [n] to
DSP
Paris
ECE 732
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Possible Remedies:
1. Rely on Sampling Theorem and work with sampled
versions of signals.
2. Consider discrete-time equivalent system.
Paris
ECE 732
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Sampler,
rate fs
N (t )
bn
s (t )
(t nT )
p (t )
R (t )
h (t )
Ts (t )
R [n] to
DSP
Paris
ECE 732
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
bn
R [n ]
fs T
h [n ]
to DSP
Paris
ECE 732
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Sampler,
rate fs
N (t )
bn
s (t )
(t nT )
p (t )
R (t )
h (t )
Ts (t )
R [n] to
DSP
Paris
ECE 732
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Procedure yields:
h [n ] =
1
Ts
Z (n+1)Ts
p (t ) h(t ) dt
nTs
Paris
ECE 732
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
0.2
0.4
0.6
Time/T
0.8
ECE 732
10
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Paris
ECE 732
11
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
To determine Es ,
I Set noise N (t ) to zero,
I
I
Procedure yields:
Es = s2 A2
I
|p (t ) h(t )|2 dt
ECE 732
12
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Paris
ECE 732
13
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Listing : SimpleSetParameters.m
3
13
18
Paris
ECE 732
14
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Paris
ECE 732
15
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
A
N0
NoiseVar
Scale
=
=
=
=
sqrt(Es/T);
Es/EsOverN0;
N0/T*fsT;
A*hh*hh;
%
%
%
%
transmitter gain
noise PSD (complex noise)
corresponding noise variance N0/Ts
gain through signal chain
34
39
Paris
ECE 732
16
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Paris
ECE 732
17
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
h [n]
fs T
Paris
Slicer
ECE 732
b n
18
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Paris
ECE 732
19
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
5
Time (1/T)
10
10
DMF Output
1500
1000
500
0
500
1000
0
Paris
5
Time (1/T)
ECE 732
20
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Imag. Part
200
100
0
100
200
800
600
400
200
0
200
Real Part
400
600
800
DMF Output
Imag. Part
500
500
2000
1500
1000
500
Paris
0
Real Part
500
ECE 732
1000
1500
2000
21
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Slicer
I
ECE 732
22
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
28
33
ECE 732
23
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Entire System
I
Paris
ECE 732
24
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Listing : MCSimple.m
38
43
Scale );
%% Count errors
NumErrors = sum( Decisions ~= Symbols );
Paris
ECE 732
25
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
I
I
Paris
ECE 732
26
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
43
48
end
Paris
ECE 732
27
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Confidence Intervals
I
I
Confidence Intervals:
I
Paris
ECE 732
28
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Confidence Intervals
I
Pe (1 Pe )
,
N
ECE 732
29
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
ECE 732
30
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
A Better Stop-Criterion
I
I
ECE 732
31
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Listing : MCSimpleDriver.m
9
14
19
= true;
24
%% simulation loops
% initialize loop variables
NumErrors = zeros( size( EsOverN0dB ) );
NumSymbols = zeros( size( EsOverN0dB ) );
Paris
ECE 732
32
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Listing : MCSimpleDriver.m
32
37
42
EsOverN0dB(kk) ) );
47
end
Paris
ECE 732
33
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Simulation Results
1
10
10
10
10
10
4
Es/N0 (dB)
Paris
ECE 732
10
34
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Summary
I
I
Paris
ECE 732
35
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
I
I
I
ECE 732
36
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Introduction to Equalization
MATLAB Simulation
More Ways to Create Diversity
Outline
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Paris
ECE 732
37
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Introduction to Equalization
MATLAB Simulation
More Ways to Create Diversity
ECE 732
38
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Introduction to Equalization
MATLAB Simulation
More Ways to Create Diversity
ECE 732
39
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Introduction to Equalization
MATLAB Simulation
More Ways to Create Diversity
ECE 732
40
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Introduction to Equalization
MATLAB Simulation
More Ways to Create Diversity
Equalization
I
I
Paris
ECE 732
41
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Introduction to Equalization
MATLAB Simulation
More Ways to Create Diversity
I
I
Paris
ECE 732
42
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Introduction to Equalization
MATLAB Simulation
More Ways to Create Diversity
Paris
ECE 732
43
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Introduction to Equalization
MATLAB Simulation
More Ways to Create Diversity
The criterion
D2 =
I
I
ECE 732
44
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Introduction to Equalization
MATLAB Simulation
More Ways to Create Diversity
MATLAB Simulation
Paris
ECE 732
45
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Introduction to Equalization
MATLAB Simulation
More Ways to Create Diversity
13
18
23
Parameters.T
= 1/1e6;
Parameters.fsT = 8;
Parameters.Es = 1;
Parameters.EsOverN0 = 6;
Parameters.Alphabet = [1 -1];
Parameters.NSymbols = 500;
%
%
%
%
%
% symbol period
samples per symbol
normalize received symbol energy to 1
Signal-to-noise ratio (Es/N0)
BPSK
number of Symbols per frame
Parameters.TrainLoc
= floor(Parameters.NSymbols/2); % location of t
Parameters.TrainLength = 40;
Parameters.TrainingSeq = RandomSymbols( Parameters.TrainLength, ...
Parameters.Alphabet, [0.5 0.5]
% channel
Parameters.ChannelParams = tux(); % channel model
Parameters.fd
= 3;
% Doppler
Parameters.L
= 6;
% channel order
Paris
ECE 732
46
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Introduction to Equalization
MATLAB Simulation
More Ways to Create Diversity
MATLAB Simulation
I
Listing : MCVA.m
41
46
Paris
ECE 732
47
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Introduction to Equalization
MATLAB Simulation
More Ways to Create Diversity
MATLAB Simulation
51
Paris
ECE 732
48
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Introduction to Equalization
MATLAB Simulation
More Ways to Create Diversity
MATLAB Simulation
I
I
I
MFOut
57
62
% channel estimation
MFOutTraining = MFOut( 2*TrainLoc+1 : 2*(TrainLoc+TrainLength) );
ChannelEst = EstChannel( MFOutTraining, TrainingSeq, L, 2);
% VA over MFOut using ChannelEst
Decisions = va( MFOut, ChannelEst, Alphabet, 2);
% strip training sequence and possible extra symbols
Decisions( TrainLoc+1 : TrainLoc+TrainLength ) = [ ];
Paris
ECE 732
49
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Introduction to Equalization
MATLAB Simulation
More Ways to Create Diversity
Channel Estimation
I
Channel Estimate:
h = (S0 S)1 S0 r,
where
I
14
TrainingSPS
= zeros(1, length(Received) );
TrainingSPS(1:SpS:end) = Training;
ECE 732
50
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Introduction to Equalization
MATLAB Simulation
More Ways to Create Diversity
10
10
10
10
10
Simulated VA
L=1
L=2
L=3
L=4
L=5
AWGN
10
10
10
6
Es/N0 (dB)
10
12
ECE 732
51
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Introduction to Equalization
MATLAB Simulation
More Ways to Create Diversity
Conclusions
I
ECE 732
52
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Introduction to Equalization
MATLAB Simulation
More Ways to Create Diversity
Paris
ECE 732
53
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Introduction to Equalization
MATLAB Simulation
More Ways to Create Diversity
Time Diversity
I
I
I
ECE 732
54
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Introduction to Equalization
MATLAB Simulation
More Ways to Create Diversity
OFDM
I
I
Paris
ECE 732
55
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Introduction to Equalization
MATLAB Simulation
More Ways to Create Diversity
MIMO
I
Multiplexing gain
ECE 732
56
MATLAB Simulation
Frequency Diversity: Wide-Band Signals
Introduction to Equalization
MATLAB Simulation
More Ways to Create Diversity
Summary
I
ECE 732
57