Motivation For CDR: Deserializer
Motivation For CDR: Deserializer
1:2
Input data DMUX
1:2
DMUX
channel 1:2
DMUX
Input clock
÷2 ÷2
• Alignment between data & clock signals can vary due to different channel
characteristics for the different frequency components. Hence retiming
would still be necessary.
Clock
Data
retimed data
input data Clock
Recovery
circuit
recovered clock
PLLs naturally provide synchronization between external and internal timing sources.
A CDR is often implemented as a PLL loop with a special type of PD...
()
Sx f
NRZ €
()
Sx f 1 2 3 f
Tb
Tb Tb Tb
RZ
€
€ € €
2 f
1 0 1 1 0 1 0 Tb
EECS 270C
€ Prof. M. Green / Univ. of California, Irvine 3
€
Phase Detection of RZ Signals
Vdata Vd
VRCK
Vdata
VRCK
Vd
Vdata Vd
VRCK
Vdata
VRCK
Vd
Since data rate is half the clock rate, multiplying phase detection is ineffective.
• • •
Tb 1 3 5
2Tb 2Tb 2Tb
€€€
*
€ € €
X • • •
1 3 5
2Tb 2Tb 2Tb
€€€
€ € €
= =
• • •
1 2
Tb Tb
€€€
fundamental generated
EECS 270C Prof. M. Green / Univ. of California, €
Irvine € 6
Operation of D Flip-Flips (DFFs)
DFF:
CMOS transmission gate:
CK CK
D QI Q
CK CK CK CK
latch:
CK CK CK
Master Slave
D QI
Ideal waveforms:
CK CK Symbol:
D D0 D1 D2
D Q
CK CK
Q D0 D1 D2
D
tsetup thold
CK
When a data transition occurs within the setup & hold region, metastability occurs.
CK CK
D QI Q
CK CK CK CK
CK Slave CK
Master
D D0 D1 D2
Q D0 D1 D2
tck-q
EECS 270C Prof. M. Green / Univ. of California, Irvine 9
P
Realization of Data/Data Mixing : Din
Q
RCK Same as Din,
synchronized with RCK
Din D0 D1 D2 D3 D0 D1 D2 D3
RCK
Q D0 D1 D2 D3 D0 D1 D2 D3
P
D0 D1 D2 D3 D0 D1 D2 D3
⊕ ⊕ ⊕ ⊕ ⊕ ⊕ ⊕ ⊕
D1 D2 D3 D4 D1 D2 D3 D4
Delay€ between
€ Din to Q€is related
€ to phase between
€ Din & €
RCK € €
EECS 270C Prof. M. Green / Univ. of California, Irvine 10
Define zero phase difference as a data transition coinciding with RCK falling edge;
i.e., RCK rising edge is in center of data eye.
Din
RCK
Δt Δt
Tb Tb
Δφ Δt 1 % Δφ 1(
= − Δt = Tb ' + *
2π Tb 2 & 2 π 2)
EECS 270C Prof. M. Green / Univ. of California, Irvine 11
€ €
P
Phase detector characteristic Din
also depends on transition Q
RCK
density:
Din
RCK
P Vswing
% Δt 1 ( % Δt 1 (
VP = Vswing ⋅ ' − * VP = Vswing ⋅ ' − *
& Tb 2 ) & 2Tb 2 )
In
€ general, €
& Δt 1 )
VP = Vswing ⋅ (α − + where α ≡ average transition density
' Tb 2 *
EECS 270C Prof. M. Green / Univ. of California, Irvine 12
€
Constructing CDR PD Characteristic
Δt Δφ 1
= +
Tb 2 π 2 VP α (α −1)
= Δφ +
VP Δt 1 Vswing 2π 2 VP
=α − Vswing
Vswing Tc 2 1
α=1
€ +
2
€ -π € +π
€ α € Δφ
slope: K pd =
2π 1
−
intercept: VP α −1 2 α = 0.5
Δφ = 0 ⇒ = α = 0.25
Vswing 2
€ €
QR D0 D1 D2 D3
R
R
QR
Always 50% duty cycle;
average value is (α −1) ⋅Vswing 2
VP −VR
Vswing
+1/2 α = 1€ Kpd still varies with α,
α = 0.5 but offset variation cancelled.
-π €
Δφ
+π
C. R. Hogge, “A self-correcting clock recovery circuit,”
IEEE J. Lightwave Tech., vol. 3, pp. 1312-1314, Dec.
-1/2 1985.
€
EECS 270C Prof. M. Green / Univ. of California, Irvine 14
Transconductance Block
Iout+ Iout-
P+ P- R- R+
ISS ISS
Din
P RCK
Din
Q €
RCK Q
tck-Q €
R QR
€
QR
P = Din ⊕ Q
tck-Q €
R = Q ⊕ QR
€
EECS 270C Prof. M. Green / Univ. of California, Irvine 16
€
Non-Idealities in Hogge Phase Detector:
A. Clock-to-Q Delay (2)
Result is an input-referred phase offset:
Din
VP − VR
RCK Vswing
+α/2
tck-Q Δφ
Q € φos
-α/2
tck-Q
QR €
P tck −Q
φos = 2π
Tb
R
tck-Q
Din
RCK
Δt DΔt DΔt
€ P
RCK
Din
Q
RCK Q
tck-Q
R QR
QR P
tck-Q R
Din
RCK
P
Din
Q Q
RCK
QR
R
P
QR
P
Din Vcontrol
Q
RCK
to VCO
QR
Q latch
€ P"
QR
P (up) latch
R (dn)
€ R"
Vcontrol latch
€ R Q2
Q3
Q2
latch
Q4
€ P"
P (up)
Q3 R (dn)
latch
€ R" P’(dn)
R’(up)
Q4
latch
Vcontrol
€
Cancels out effect of next pulse
EECS 270C Prof. M. Green / Univ. of California, Irvine 23
Other Nonidealities of Hogge PD (1)
60
PD Differential Output (mV)
40 response from
ideal linear PD
20
-20
-50p -40p -30p -20p -10p 0 10p 20p 30p 40p 50p
Data Delay in regard to Clock (s)
Since the PD output signals are averaged, XOR bandwidth limitation has negligible effect.
Clock falling edge early: Clock falling edge centered: Clock falling edge late:
Decrease Vcontrol No change to Vcontrol Increase Vcontrol
VP
Ideal binary Vswing
phase-voltage characteristic: +1/2 Also known as
“bang-bang” phase detector
€
Δφ
-1/2
Din
Early clock:
Data transitions align
with clock low RCK
€
What happens if Δφ=0?
tsetup
thold
???
A dog placed equidistant between two dog dishes will starve (in theory).
Din
RCK
€ VP
fvco
Din
RCK
€
VP
Circuit realization should sample data with clock (instead of clock with data)
while maintaining bang-bang operation.
UP
Q1 Q2
Din
Q3 Q4
RCK
€
Din
RCK
Q1
€ Q2
Q3
Q4
DN
UP
DFF outputs
VCO control
voltage
Linear PD Binary PD
RCK2
DB
RCK2
Din D0 D1 D2 D3 D4
DA D0 D2 D4
synchronized with
DB D3
clock transitions
D1
XB DB
latch latch
RCK2
Din
XA synchronized with
both RCK2 & Din
XB
DA synchronized with
These pulse widths DB RCK2
contain phase information.
EECS 270C Prof. M. Green / Univ. of California, Irvine 40
Complete Linear Half-Rate PD
XA DA RCK2
Din
RCK2 1 Din
×
2
P R
XA
XB € DB
XB
P = X A ⊕ XB
DA
J. Savoj & B. Razavi, “A 10Gb/s CMOS €
clock and data recovery circuit with a
half-rate linear phase detector,” DB
JSSC, vol. 36, pp. 761-768, May 2001.
R = DA ⊕ DB
Din Din
RCK RCK
RCKQ RCKQ
S0 S1 S2 S0 S1 S2
Phase logic:
S0, S2 sampled with RCK transitions
S1 sampled with RCKQ transitions
(S ⊕ S = 0) and (S ⊕ S = 1) ⇒
0 1 1 2 clock late
(S ⊕ S = 1) and (S ⊕ S = 0) ⇒
0 1 1 2 clock early
(S ⊕ S = 0) and (S ⊕ S = 0) ⇒
0 1 1 2 no transition
€
EECS 270C Prof. M. Green / Univ. of California, Irvine 42
€
€
Din DI
RCK VPD
DQ
J. Savoj & B. Razavi, “A 10-Gb/s
RCKQ CMOS clock and data recovery
circuit with a half-rate binary
phase detector,” JSSC, vol. 38,
pp. 13-21, Jan. 2003.
Din Din
RCK RCK
RCKQ RCKQ
DI DI
DQ DQ
VPD VPD