Equalization 2
Equalization 2
([email protected])
(www.eecg.toronto.edu/~johns)
slide 1 of
University of 70
Toronto © D.A. Johns, 1997
slide 2 of
University of 70
Toronto © D.A. Johns, 1997
Adaptive Filter Introduction
• A typical adaptive system consists of the
following two-input, two output system
(n)
+
y(n) -
u(n) H(z) e(n)
y(n)
adaptive
algorithm
signals
slide 7 of
University of 70
Toronto © D.A. Johns, 1997
Steepest-Descent Algorithm
slide 8 of
University of 70
Toronto © D.A. Johns, 1997
Steepest Descent Algorithm
• In the one-dimensional case
Ee 2 (n)
Ee2(n)
0
pi
pi
*
pi pi(2) pi(1) pi(0)
slide 9 of
University of 70
Toronto © D.A. Johns, 1997
Steepest-Descent Algorithm
• In the two-dimensional case
p2
*
p
2
p1
Ee 2 (n) *
(out of p1
page)
• Steepest-descent path follows
perpendicular to tangents of the contour
lines.
slide 10 of
University of 70
Toronto © D.A. Johns, 1997
LMS Algorithm
• Replace expected error squared with
instantaneous error squared. Let adaptation
time smooth out result.
2
pi(n + 1) = pi(n) – e (n)
-------------
- pi
i(n) = --- y ( n )
(n) h
pi--- -- ---ny- = h um
(n)
• H(z) is a LTIu(n)
system where the signal-flow-
graph arm corresponding to coefficient pi is
shown explicitly.
• hum(n) is the impulse response of from u to m
• The gradient signal with respect to element pi
is the convolution of u(n) with hum(n) convolved
slide 13 of
University of
withToronto
hny(n). 70
© D.A. Johns, 1997
Gradient Example
G1
vlp(t)
u(t)
-1 G2 1
vbp(t)
y(t)
G1 G3
1
vlp(t)
-1 G2 1
G3 ---
G1
y---
y ( t ) lp y ( t ) bp
-- --- -- -- =
-G --- --- -- -- - =
G
2 3
(--
–v (t) –v (t)
t--)-
slide 14 of
University of 70
Toronto © D.A. Johns, 1997
Adaptive Linear Combiner
p1(n)
x1(n)
(n)
p2(n)
x2(n)
N +
- e(n)
state
u(n) generator y(n)
pN(n)
xN(n)
y(n) = p (n)x (n)
i i
y ( n i)
---
p --- -- --- -
i
= x (n)
often, a tapped delay Y
H(z) = U(z)
- ---
line
( z )
-- --- -
slide 15 of
University of 70
Toronto © D.A. Johns, 1997
p
* p1
Ee 2 (n) *
(out of p1
page)
slide 17 of
University of 70
Toronto © D.A. Johns, 1997
Adaptation Rate
• Quantify performance surface — state-
correlation matrix
shift” again.
IIR filters
pN(n)
–1
z xN(n)
y(n) = p (n)x (n)
i i
y ( n i)
--- --- -- --- -
p i
= x (n)
slide 22 of
University of 70
Toronto © D.A. Johns, 1997
FIR Adaptive Filters
slide 23 of
University of 70
Toronto © D.A. Johns, 1997
slide 24 of
University of 70
Toronto © D.A. Johns, 1997
Equalization — Training Sequence
u(n) y(n) output data
Htc(z) H(z) 1
1
known FFE
input data
e(n)
regenerated
delayed FFE = Feed Forward
input data (n)
Equalizer
FFE Example
• Suppose channel, Htc(z), has impulse
response 0.3, 1.0, -0.2, 0.1, 0.0, 0.0
tim
e
slide 26 of
University of 70
Toronto © D.A. Johns, 1997
FFE Example
y(1) = 0 = 1.0p1 + 0.3p2 + 0.0p3
tim
e
slide 27 of
University of 70
Toronto © D.A. Johns, 1997
FFE Example
• Although ISI reduced around peak,
introduction of slight ISI at other points
(better overall)
• Above is a “zero-forcing” equalizer — usually
boosts noise too much
• An LMS adaptive equalizer minimizes the
mean
squared error signal (i.e. find low ISI and low
noise)
• In other words, do not boost noise at
expense of leaving some residual
ISI
slide 28 of
University of 70
Toronto © D.A. Johns, 1997
Equalization — Decision-Directed
e(n)
slide 29 of
University of 70
Toronto © D.A. Johns, 1997
Equalization — Decision-Feedback
y(n) output data
1 Htc(z) 1
input data (n)
yDFE(n) H2(z)
e(n) DFE
tim
e
• If DFE is a 2-tap FIR filter with
yDFE(n) = 0.2(n – 1) + –0.1(n – 2) (4)
e(n) DFE
slide 32 of
University of 70
Toronto © D.A. Johns, 1997
FFE and DFE Combined
Model as:
nnoise(n)
FFE
x(n) y(n) output data
Htc(z) H1(z) 1
input
1 data (n)
H2(z) yDFE(n)
DFE
Y
- -- =
(5)
N
H1
Y
-X -- = H t c H 1 +
(6)
H2
• When Htc small, make H2 = 1 (rather
than H1 )
slide 33 of
University of 70
Toronto © D.A. Johns, 1997
tim
e
Fractionally-Spaced FFE
• Feed forward filter is often a FFE sampled at
2 or 3 times symbol-rate — fractionally-
spaced
(i.e. sampled at T 2 or at T 3 )
• Advantages:
— Allows the matched filter to be realized
digitally and also adapt for channel
variations (not possible in symbol-rate
sampling)
— Also allows for simpler timing
recovery
schemes (FFE can take care of phase
recovery)
• Disadvantage
slide 36 of
University of
Costly to
Toronto implement — full and higher 70
© D.A. Johns, 1997
slide 37 of
University of 70
Toronto © D.A. Johns, 1997
0 1 0 0 0 0 ...
0 1 0 0 0 0 ...
DFE
0 0 0.5 0.25 0.125 0.06 ...
1 1 1
- -z–1 + - -z–2 + - -z–3 +
2
4
slide 38 of
University of
Toronto 8 70
© D.A. Johns, 1997
Baseline Wander Correction #1
DFE Based
z – 1 1 1 1
- - ---- ---- ---- = 1 – - -z–1 – - -z–2 – - - STEP INPUT
z–3 –
z – 0.5 2 4 8
0 1 0.5 0.25 0.125 0.06 ... 0 1 1 1 1 1 ...
0 1 1 1 1 1 ...
0 1 1 1 1 1 ...
DFE
0 0 0.5 0.75 0.875 0.938 ...
1 1 1
- -z–1 + - -z–2 + - -z–3 +
2
4
8 slide 39 of
University of 70
Toronto © D.A. Johns, 1997
0 1 1 1 1 1 ...
0 1 1 1 1 1 ...
0 1 1 1 1 1 ...
slide 40 of
University of 70
Toronto © D.A. Johns, 1997
Baseline Wander Correction #3
Error Feedback
Analog Equalization
slide 42 of
University of 70
Toronto © D.A. Johns, 1997
Analog Filters
Switched-capacitor filters
+ Accurate transfer-functions
+ High linearity, good noise performance
- Limited in speed
- Requires anti-aliasing filters
Continuous-time filters
-Moderate transfer-function accuracy
(requires tuning circuitry)
- Moderate linearity
+ High-speed
+ Good noise performance
slide 43 of
University of 70
Toronto © D.A. Johns, 1997
(t)
p2(t)
x2(t)
N +
- e(t)
state
u(t) generator y(t)
pN(t)
xN(t)
y(t) = p (t)x (t)
i i
y ( t i)
--- --- -- -- -
p i
= x (t)
Y
H(s) = U(s)
- ---
( s )
-- --- -
slide 44 of
University of 70
Toronto © D.A. Johns, 1997
Adaptive Linear Combiner
• The gradient signals are simply the state
signals
• If coeff are updated in discrete-time
(7)
pi(n + 1) = pi(n) + 2e(n)xi(n)
pi(t) = 2e(t)xi(t)dt
• Only the zeros of the filter are being adjusted.
0
slide 48 of
University of 70
Toronto © D.A. Johns, 1997
Orthonormal Ladder Structure
x2(t) –
x4(t)
2
1 3
2
x 1(t) –1 x3(t) –3
in
u(t)
slide 49 of
University of 70
Toronto © D.A. Johns, 1997
pi pi
better worse
(hysteresis (potential large coeff
effect)
jitter)
m xi wi(k)
e(k)
mi
me
• In most signals,
D/A its
up/ mean equals its median
down
counter
-50 - - -3 -
1 15 14 -2
1
-6
0 0 0 10 0
Step
10 Size
slide 54 of
University of 70
Toronto © D.A. Johns, 1997
Coax Cable Equalizer
• Analog adaptive filter used to equalize up to
300m
• Cascade of two 3’rd order filters with a single
tuning control
w1 s s + p1
i w2 s s + p2 ou
n
t
w3 s s + p3
highpass filters
• Variable is tuned to account for cable
length
slide 55 of
University of 70
Toronto © D.A. Johns, 1997
freq
slide 56 of
University of 70
Toronto © D.A. Johns, 1997
Analog Adaptive Equalization Simulation
noise
{1,0}
1-D
1 0 channel
r(t) equalizer y(t) PR4
detector
a(k)
1 aˆ (k) 2 3
e(k)
yi(t) _
PR4 S1 +
generator
4 S2
S1 - for training
S2 - for tracking
slide 57 of
University of 70
Toronto © D.A. Johns, 1997
1.5
1
1
0.5
-1 1 0
[v]
y
-0.5
-1
-1.5
-1 -2
0 20 40 60 80 100 140 160
120 Time [ns]
slide 58 of
University of 70
Toronto © D.A. Johns, 1997
Equalizer Simulation — Decision Directed
• Switch S2 closed (S1 open), all poles fixed
and 5 zeros adapted using
• e(k) = 1 – y(t) if y(t) 0.5
• e(k) = 0 – y(t) if –0.5 y(t) 0.5
• e(k) = – 1 – y(t) if y(t) –0.5
slide 59 of
University of 70
Toronto © D.A. Johns, 1997
1 1
0.5 0.5
Amplitude
0 0
[V]
y
[V]
-0.5 -0.5
-1 -1
-1.5
-1.5 0 100 150 200
0 20 40 60 80 100 120 140 160
Time [ns] Discrete Time
50
ideal PR4 and equalized pulse
[k]
initial
2
mistuned 20 outputs
18
1.5
PR4
16
1 overall
14
0.5
12
0 10
[v]
[V/V]
Gain
y
-0.5 8
6
-1 channel
4
-1.5
2
equalizer
-2 0
0 20 40 60 80 100 120 160 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7
140 N o rma l i z e d R a di a n Fre qu e nc y [rad]
Time [ns]
after adaptation (2e6 after adaptation (2e6
iterations) iterations)
slide 60 of
University of 70
Toronto © D.A. Johns, 1997
Equalizer Simulation — Decision Directed
• Channel changed to 7MHz Bessel
• Keep same fixed poles (i.e. non-optimum
pole placement) and adapt 5 zeros.
1.5 20
18 PR4
1
16
14
0.5
12
0 10
[V/V]
[V]
Gain
y
8
-0.5
6
channel
4
-1
2 equalizer overall
-1.5 0
0 20 40 60 80 100 120 140 0 0.1 0.2 0.3 0.4 0.5 0.6
160 0.7
Time [ns] N o rma l i z e d R a di a n Fre qu e nc y [rad]
18
PR4
1.5
16
overall
1
14
0.5 12
[V]
10
[V/V]
Gain
y
0
8
-0.5 6 channel
4
-1 equalizer
2
-1.5 0
0 20 40 60 80 100 120 140 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7
160 N o rma l i z e d R a di a n Fre qu e nc y
Time [ns] [rad]
BiCMOS Transconductor
M1 M2
M3 M4
v v
--- I+i I–i
d2 –---
2
-
M6
I+i
d
- Two styles implemented:
v vo I – i “2-quadrant” tuning (F-
--- M5 M7 M8
o2 –--2-- Cell), “4-quadrant”
-
tuning by cross-coupling
Q1 top
Q3
VC2 input stage (Q-Cell)
VC1 Q2 Q4
+ +
V BIAS Gm_
_
slide 64 of
University of 70
Toronto © D.A. Johns, 1997
Biquad Filter
2C 2C
+ + + + + + + +
U Gm2_1 X2 Gm2 2 G m 1_ X1
_ _ _ _ _
Gm 2
_i 2C 2C
+ +
Gm
_ _
b
slide 65 of
University of 70
Toronto © D.A. Johns, 1997
slide 66 of
University of 70
Toronto © D.A. Johns, 1997
Adaptive Pulse Shaping Algorithm
30
Ideal input pulse
(not to scale)
20
lowpas
s
10
output
Voltage
[mV]
bandpas
-10 s output
-20
=
-30 2.5ns
20 25 30 35 40
• Fo control: sample output pulse shape at nominal zero-
4
slide 67 of
University of 70
Toronto © D.A. Johns, 1997
Experimental Setup
pulse-shaping filter chip
LP
U
CLK
Gm-C +
Data Biquad - logic u/d
counter
DAC
U
Generator Filter
+ logic
u/d
counter DAC
fo Q - off-chip tuning algorithm
BP
Vref CLK
0 0
-20 -20
0 5 10 15 20 25 0 5 10 15 20 25
20 20
0 0
-20 -20
0 5 10 15 20 2 0 5 10 15 20 2
0 0
-20 -20
0 5 10 15 20 25 0 5 10 15 20 25
20 20
0 0
-20 -20
5 10 15 20 0 5 10 15 20 2
0 2
Initial — low-freq. high-Q Initial — low-freq. low-Q
slide 69 of
University of 70
Toronto © D.A. Johns, 1997
Summary
• Adaptive filters are relatively common
• LMS is the most widely used algorithm
• Adaptive linear combiners are almost always
used.
• Use combiners that do not have poor
performance surfaces.
• Most common digital combiner is tapped FIR
Digital Adaptive:
• more robust and well suited for programmable filtering
Analog Adaptive:
• best suited for high-speed, low dynamic range.
• less power
• very good at realizing arbitrary coeff with frequency only
change.
• Be aware of DC offset effects
slide 70 of
University of 70
Toronto © D.A. Johns, 1997