Matched Filtering and Digital Pulse Amplitude Modulation (PAM)
Matched Filtering and Digital Pulse Amplitude Modulation (PAM)
Lecture 13
Outline
• Transmitting one bit at a time
• Matched filtering
• PAM system
• Intersymbol interference
• Communication performance
Bit error probability for binary signals
Symbol error probability for M-ary (multilevel) signals
• Eye diagram
13 - 2
Transmitting One Bit
• Transmission on communication channels is analog
• One way to transmit digital information is called
2-level digital pulse amplitude modulation (PAM)
x0 (t ) y0 (t ) receive
‘0’ bit ‘0’ bit
b input output b
Additive Noise
t Channel
x(t) y(t)
-A -A
x1 (t ) y1 (t ) receive
How does the ‘1’ bit
A A
receiver decide
b t
which bit was sent? b t
‘1’ bit 13 - 3
Transmitting One Bit
• Two-level digital pulse amplitude modulation over
channel that has memory but does not add noise
x0 (t ) y0 (t ) receive
‘0’ bit ‘0’ bit
b input output h h+b
Communication t
t Channel
x(t) y(t) -A Th
-A
x1 (t ) h(t ) y1 (t ) receive
Model channel as ‘1’ bit
A LTI system with 1 A Th
impulse response
t
b t h(t) h t h h+b
‘1’ bit Assume that Th < Tb
13 - 4
Transmitting Two Bits (Interference)
• Transmitting two bits (pulses) back-to-back
will cause overlap (interference) at the receiver
x(t ) h(t )
y (t )
A
* 1 =
b h+b
b t h t b t
-A Th
‘1’ bit ‘0’ bit Assume that Th < Tb ‘1’ bit ‘0’ bit
b t h t h b t
-A Th
‘1’ bit ‘0’ bit Assume that Th < Tb ‘1’ bit ‘0’ bit
Disadvantages?
• Option #2: use channel equalizer in receiver
FIR filter designed via training sequences sent by transmitter
Design goal: cascade of channel memory and channel
equalizer should give all-pass frequency response
13 - 6
Digital 2-level PAM System
ak{-A,A} s(t) x(t) y(t) y(ti)
bi Decision
1
PAM g(t) h(t) c(t) Sample at Maker
bits
t=iTb 0
pulse AWGN matched
Clock Tb Threshold
shaper w(t) filter Clock T
b
N0 p
opt ln 0
4 ATb p1
Transmitter Channel Receiver
Pulse t=T
signal Matched
w(t) filter 13 - 9
Power Spectra
• Deterministic signal x(t) • Autocorrelation of x(t)
w/ Fourier transform X(f) Rx ( ) x( ) * x* ( )
Power spectrum is square of Maximum value at Rx(0)
absolute value of magnitude
response (phase is ignored) Rx() is even symmetric, i.e.
2
P ( f ) X ( f ) X ( f ) X *( f ) Rx() = Rx(-)
x
x(t)
Multiplication in Fourier 1
domain is convolution in
time domain 0 Ts t
Conjugation in Fourier domain Rx()
is reversal and conjugation Ts
in time domain
X ( f ) X * ( f ) F x( ) * x* ( ) -Ts Ts
13 - 10
Power Spectra
• Power spectrum for signal x(t) is Px ( f ) F Rx ( )
Autocorrelation of random signal n(t)
Rn ( ) E n(t ) n (t ) n(t ) n* (t ) dt
*
For zero-mean Gaussian random process n(t) with variance 2
Rn ( ) E n(t ) n* (t ) 2 ( ) Pn ( f ) 2
• Estimate noise power
spectrum in Matlab
N = 16384; % number of samples
approximate
gaussianNoise = randn(N,1); noise floor
plot( abs(fft(gaussianNoise)) .^ 2 ); 13 - 11
Matched Filter Derivation
Noise power
g(t) x(t) h(t) y(t) y(T) spectrum SW(f)
N0
Pulse t=T 2
signal w(t) Matched filter f
N0
• Noise n(t ) w(t ) * h(t ) S N ( f ) SW ( f ) S H ( f ) | H ( f ) |2
2
AWGN Matched
N0 filter
E{ n 2 (t ) } S N ( f ) df | H ( f ) | 2
df
2
• Signal g 0 (t ) g (t ) * h(t ) G0 ( f ) H ( f )G ( f )
j 2
g 0 (t ) H ( f ) G ( f ) e f t
df
j 2
| g 0 (T ) |2 | H ( f ) G ( f ) e fT
df |2 13 - 12
Matched Filter Derivation
• Find h(t) that maximizes pulse peak SNR
H ( f ) G( f ) e
j 2 f T
| df |2 a
N0
2
| H ( f ) | df
2
b
• Schwartz’s inequality
T
a b
For vectors: | a b | || a || || b || cos
T *
|| a || || b ||
2
( x) ( x) ( x)
2 2
For functions: 1
*
2 ( x) dx 1 dx 2 dx
- - -
N0
N0 | G ( f ) |2 df
2
| H ( f ) |2 df
2
max
2
| G ( f ) | df , which occurs when
N 0
H opt ( f ) k G * ( f ) e j 2 f T k by Schwartz ' s inequality
Hence, hopt (t ) k g * (T t )
13 - 14
Matched Filter
• Given transmitter pulse shape g(t) of duration T,
matched filter is given by hopt(t) = k g*(T-t) for all k
Duration and shape of impulse response of the optimal filter is
determined by pulse shape g(t)
hopt(t) is scaled, time-reversed, and shifted version of g(t)
• Optimal filter maximizes peak pulse SNR
2 2 2 Eb
max | G ( f ) | df | g (t ) | dt SNR
2 2
N 0 N 0 N0
Does not depend on pulse shape g(t)
Proportional to signal energy (energy per bit) Eb
Inversely proportional to power spectral density of noise13 - 15
Matched Filter for Rectangular Pulse
• Matched filter for causal rectangular pulse has an
impulse response that is a causal rectangular pulse
• Convolve input with rectangular pulse of duration
T sec and sample result at T sec is same as to
First, integrate for T sec
Second, sample at symbol period T sec Sample and dump
T
t=kT
h(t) = ___ 13 - 16
Digital 2-level PAM System
ak{-A,A} s(t) x(t) y(t) y(ti)
bi Decision
1
PAM g(t) h(t) c(t) Sample at Maker
bits
t=iTb 0
pulse AWGN matched
Clock Tb Threshold
shaper w(t) filter Clock T
b
N0 p
opt ln 0
4 ATb p1
Transmitter Channel Receiver
Sample at r (t ) s (t ) v(t )
Matched t = nTb
v(t) filter r(t) = h(t) * r(t)
| vR (nTsym ) | d
two-sided power spectral
density of AWGN where 2 N 0 / 2
PSignal 2( M 2 1) d 2 Probablity of error is
SNR
PNoise 3 N0 d
P (| vR (nTsym ) | d ) 2 Q
• Assume ideal channel, • Consider two outer
i.e. one without ISI levels in constellation
x (nTsym ) an v R ( nTsym ) d
P(vR (nTsym ) d ) Q
channel noise after matched
13 - 27
filtering and sampling
Optional
E v (nT ) E g r ( ) w(nT )d
2
2
Noise power
E{ gT ( 1 ) w(nT 1 ) gT ( 2 ) w(nT 2 )d 1d 2 }
g
T ( 1 ) gT ( 2 ) E{w(nT 1 ) w(nT 2 )}d 1d 2
2 (1–2)
sym / 2
2 1 2
g r ( )d
2 2
G r ( )d
2
2 sym / 2
T 13 - 28
PAM Symbol Error Probability
• Assuming that each symbol is equally likely,
symbol error probability for M-level PAM
M 2 d 2 d 2( M 1) d
Pe 2 Q
Q Q
M M M
13 - 29
Visualizing ISI
• Eye diagram is empirical measure of signal quality
g (nTsym kTsym )
x(n) ak g (n Tsym k Tsym ) g (0) an ak
k k g ( 0 )
k n
• Intersymbol interference (ISI):
g (nTsym kTsym ) g (kTsym )
D ( M 1) d
k , k n g (0)
( M 1) d
k , k n g (0)
M=2
Margin over noise
Distortion over
Slope indicates zero crossing
sensitivity to
timing error
Interval over which it can be sampled
t - Tsym t t + Tsym
• The more open the eye, the better the reception
13 - 31
Eye Diagram for 4-PAM
Due to
3d startup
transients.
d Fix is to
discard first
few symbols
-d equal to
number of
symbol
-3d periods in
pulse shape.
13 - 32