Clock and Data Recovery For Serial Digital Communication
Clock and Data Recovery For Serial Digital Communication
Clock and Data Recovery For Serial Digital Communication
Basic Idea
Serial data transmission sends binary bits of track drifting txas a seriesprop delayor electrical identify bits information clock and of optical variation + pulses:
0111011000111110011010010000101011101100011111..
The transmission channel (coax, radio, ber) generally distorts the signal in various ways:
Eye diagram
Use a precise clock to chop the received data into periods Overlay each of the periods onto one plot symbol cell Y
jitter
Denition of Jitter
unit interval
time
20
29
28
Model of Loop
Phase Detector Loop Filter VCO
K 1 + -----------------( 1 + s )
Kv
1 -s
30
1 + -----------------( 1 + s )
Kv -----s
c b
31
Jitter Measurements
SONET has most complete set of jitter measurement standards, but the techniques are useful and relevant for datacom applications also.
46
FM modulated clock
At each frequency, the sinewave modulation amplitude is increased until the BER penalty is equal to that caused by 1dB optical attentuation 47
acceptable range
f1
f0 [Hz] 10 10 10 ?
f2
f1 [Hz] 30 30 600 ?
f3
f2 [Hz] 300 300 6000 ?
ft
f3 [kHz] 6.5 25 100 400 ft [kHz] 65 250 1000 4000
48
Phase detector
Signal Generator
Phase modulator
49
Assuming small angles (i.e.: only one dominant sideband on recovered clock):
ulta nt
V sideband Jitter pp ( rads ) = 2 2 atan ------------------------- V clock
res
Jitter transfer is dened as the jitter at the clock output divided by the jitter at the D.U.T input, plotted as a function of jitter frequency. ??
fc
Data Rate 155 Mb 622 Mb 2.488 Gb fc[kHz] 130 500 2000 P[dB] 0.1 0.1 0.1
Multiplex Jitter
bit stufng events high speed data sub-rate data phase error [in UI] time Multiplex jitter is not a problem on the high rate channel itself - it only occurs on non-synchronous, lower speed tributaries that have been sent over the high-speed channel (e.g.: DS3 over SONET OC-48). 9
V Vt t=0 t=t1
10
Jitter Generation
decision circuit
computer
spectrum analyzer
recovered clock
51
sideband
2) Multiply Jitter components by Filter Mask 3) RMS sum total noise voltages over band 4) Convert RMS noise voltage to RMS jitter
OC-48 (2.488 Gb/s SONET) species 12 kHz hipass lter, and maximum 0.01 UI RMS integrated jitter. 52
res
ulta
nt
Decision Circuit
Quantizes amplitude at precise sample instant Typically uses positive feedback to resolve small input signals A master/slave D-ip-op carefully optimized for input sensitivity and clock phase margin is a common choice Latches input data on rising edge of clock signal
D Q clock 39
Code Disparity
Disparity is dened as Nhigh - Nlow in past transmitted signal
+5 0 -5
In an unbalanced code the disparity can grow without limit. e.g.: 4B5B code of FDDI In a balanced code, the disparity is limited to a nite worst case value. e.g.: 8B10B of FibreChannel 16
After Tom Hornak: Interface Electronics for Fiber Optic Computer Links, (see bibliography for full citation)
bandpass lter e.g.: SAW lter bandpass lter LC tank Recovered Clock Output
power in dB
f = 0
1 2T
1T
3 2T
2T
22
+ +
+ +
+ +
+ +
f = 0
fc 2
fc fc A k sin 2 ----- k k 2 k
23
All the symmetric sidebands mix pairwise to coherently create a carrier frequency component:
d dt
Pro:
Very simple to implement Temperature and frequency variation of lter group delay makes sampling Can be built with time difcult to control microwave tinkertoys using coax to very high frequencies Narrow pulses imply high fT Hi-Q lter difcult to integrate 26
data in clock
slave latch
clock
To minimize bit-error rate, the decision threshold X-X must centered in the signal swing. Two common ways of automatically generating threshold voltage are:
Peak detection of signal extremes, limited run-length required positive peak detector negative peak detector Decision Threshold
Signal
Decision threshold = signal average, balanced signal required Low-Pass Filter Decision Threshold 15
Signal
After Tom Hornak: Interface Electronics for Fiber Optic Computer Links, (see bibliography for full citation)
Quantized Feedback
AC-Coupled Transmission Link
TX
H ()
RX
D Q clock
11
Phasor Diagram
Graph of relative phase between clock and data Each complete rotation is 1 unit interval of phase slip Rotations/second = frequency error (in Hz)
0
270
180
Data at 1/2, or VCO at 2x, the proper frequency look locked. This puts a limit on VCO tolerance to prevent false locking.
[FP15.5]
270
90
Aided Acquistion
Tricky task due to Nyquist sampling constraints caused by stuttering data transitions PD Input Data VCO FD loop lter 2 loop lter 1
Phase Detectors
Phase detectors generate a DC component proportional to deviation of the sampling point from center of bit-cell Phase detectors are:
Continuous
90 180 90 0 180
Binary Quantized
Binary quantized phase detectors are also called Bangbang phase detectors 32
After Tom Hornak: Interface Electronics for Fiber Optic Computer Links, (see bibliography for full citation)
Training Loops
retimed data bang-bang drive Input PDET charge pump Clock VCO Data
select
State Machine
LOS
1/256 divider
An increasingly common technique is to provide a reference clock to the CDR circuit. This allows the VCO process-variation to be dynamically trimmed out, avoiding false locking problems. (Figure from paper FP15.5, 1997 ISSCC) 45
Manchester [San82] mB/nB [Gri69][Rou76][WiF83] [YKI84] [Pet88] Scrambling [CCI90] CIMT [WHY91] 17
Maximum Runlength is 6 Coding Efciency is 4/3 Sending Sync Sequence: SyncA(even), SyncA(odd), SyncB(even), SyncB(odd) allows the unambiguous alignment of 4-bit frame
18
Scrambling
Uses a feedback shift register to randomize data reversing process at receiver restores original data Scrambled Data Data Output
Data Input
XOR Shift Register n j 2 1 Clk PRBS Generators Caveat: Only guarantees balance and runlength under very specic data conditions!
After Tom Hornak: Interface Electronics for Fiber Optic Computer Links, (see bibliography for full citation)
1 2
19
VCO alternatives
LC Oscillator Speed Phase Noise Integration Multivibrator Ring Oscillator
Technology Dependent 1-10s of GHz, CMOS 1-2 GHz Good Poor (L, Varactor) Narrow/Slow Good Poor Excellent
Tunability Stability
Other
After Todd Weigandt, B. Kim, P.Gray, Timing Jitter Analysis for High-Frequency CMOS Ring Oscillators, March 10, 1994
36
Multivibrator VCO
Capacitor is alternately charged and discharged by constant current Tuned by varying Itune in current source Diode clamps keep output voltage constant independent of frequency Relies on non-linear switching for oscillation behavior, and so is limited to moderate frequencies. Itune
I tune Frequency = ---------------4CV be
After Alan B. Grebene, Analog Integrated Circuit Design, Van Nostrand Reinhold, 1972, pp 313-315
37
Inpu
Input 1 Tune Input 2 Output
t2
38
Loop Filters
may be analog (integrator) or digital (up-down counter) should have provision for holding value constant (tristating) under long run-length conditions [Den88] [Dev91] [LaW91] [WuW92] VOUT
UP 0 0 DOWN 0 1 0 1 VOUT tristate ramp DOWN ramp UP tristate
UP
DOWN
1 1
35
Skin Loss
Nearly all cables can be modeled by the Skin Loss Equation with various k factors: T ( f ) = 10 1.0 linear amplitude k=.001 k=.0001 k=.00001 R3 R2
( k ) f
0.0
[YFW82]
[WWS92] 13
Agenda
Overview of Serial Data Communications Signal Degradation Mechanisms Data Coding Techniques Clock Recovery Methods Components Used in Clock/Data Recovery Jitter Measurements
Clock and Data Recovery (CDR) applications span the range from ultra-high-volume, low cost datacom applications to very high precision, long-haul telecom applications Many different trade-offs are made to tailor each circuit to the target application area
1cm
Q also equals the center frequency of a lter divided by the full-width of the resonance measured at the half power points: Fcenter/
amplitude
Q/2*PI cycles
Fcenter
TX link synth
RX
??
D Q
D Q
DOWN Data
33
Data
DQ Clock
DQ
T A T B
[Ale75][WHY91] [LaW91][ReG73]
34
how much noise can be added to the input signal while maintaining target BER? (voltage margin) How far can clock phase alignment be varied while maintaining target BER? phase margin) how much does the static phase error vary versus frequency, temperature and process variation? Is input amplier gain, noise and offset sufcient?
what is the jitter generation? (VCO phase noise, etc) what is the jitter transfer function? (peaking and bandwidth)what is the jitter tracking tolerance versus frequency?
how do long runlengths affect system performance? is bandwidth sufcient for individual isolated bit pulses? are there other problematic data patterns? (resonances)
does PLL bandwidth, jitter, and stability change versus transition density? 4) Acquisition Time what is the initial, power-on lock time? what is the phase-lock aquisition time when input source is changed?
are external capacitors, inductors needed? does the CDR need an external reference frequency?
Is S11/S22 (input/output impedance) maintained across the frequency band? are reection large enough to lead to eye closure and pattern dependency? is t >15 dB return loss maintained across the band?
does the CDR create power supply noise? how sensitive is the CDR to supply noise? Is the VCO self-modulated through its own supply noise? (can be deadly) what is the total static power dissipation? what is the die temperature under worse case conditions?
can false lock occur? are false lock conditions be detected and eliminated? can the VCO run faster than the phase/frequency detector can operate? (another killer) have all latchup/deadly embrace conditions been considered and eliminated?