PLLTutorial ISSCC2004
PLLTutorial ISSCC2004
Outline
Introduction Basic Feedback Loop Theory Circuits Spectacular Failures Appendices: design for test writing a PLL Spec references Sorry: no DLLs in this tutorial
Intended Audience
If you Are a novice PLL designer Specify PLL requirements Integrate PLLs on-chip Test/debug PLLs Review PLL designs
Introduction
What is a PLL?
A PLL is a negative feedback system where an oscillator-generated signal is phase and frequency locked to a reference signal. Analogous to a cars cruise control
Vctl
Clk VCO
C2
C P
LS
C1
FbClk
DIV
Clk
Components in a Nutshell
PFD: outputs digital pulse whose width is proportional to phase error CP: converts digital error pulse to analog error current LPF: integrates (and low-pass filters) error current to generate VCO control voltage VCO: low-swing oscillator with frequency proportional to control voltage LS: amplifies VCO levels to full-swing DIV: divides VCO clock to generate FBCLK clock
10
Is My PLL Stable?
PLL is 2nd-order system similar to mass-springdashpot or RLC circuit. PLL may be stable or unstable depending on phase margin (or damping factor). Phase margin is determined from linear model of PLL in frequency-domain. Find phase margin/damping using MATLAB, loop equations, or simulations. Stability affects phase error, settling, jitter.
11
12
13
14
15
16
17
18
X = RC2
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
PLL Circuits
Phase-Frequency Detector Charge-Pump Low-Pass Filter Voltage-Controlled Oscillator Level-Shifter Voltage Regulator
36
PhasePhase-Frequency Detector(PFD)
37
G o F a s te r
Ref
CK R DLY
Vdd
R D D
DFF
Q G o S lo w e r
FB
CK
38
39
Example: PFD
Ref FbClk GoFaster GoSlower Vctl
40
Avoiding the Dead-Zone Dead Dead-zone occurs when the loop doesnt respond to small phase errors - e.g. 10 pS phase error at PFD inputs: PFD cannot generate 10 pS wide GoFaster and GoSlower pulses Charge-pump switches cannot turn on and off in 10 pS Solution: delay reset to guarantee min. pulse width (typically > 150 pS)
41
Charge Pump(CP)
42
Charge Pump
Converts PFD phase error (digital) to charge (analog) Charge is proportional to PFD pulse widths Qcp = Iup*tfaster Idn*tslower Qcp is filtered/integrated in low-pass filter
43
GoFaster VDD D CK R Reset VDD D CK R DFF FB Q GoSlower Icp Sdn Q Icp Sup Charge Pump
REF
44
45
46
47
48
Ibi s
Up_n Down
m2
m5
Vctl
m6
m1
m7
49
Up V c tl D own
U p_n
Up V irtV c tl D own
+ D own_n
Vbn
A m p Ib ia s s h o u l
tra c k Ic p
50
Up_n I ias
m5 m8
Vctl
m1 m4 m9
m2
m3
Down
m10
m1,m4,m5,m8,m9: long L
51
Charge Pump: switches reversed with fast turn-off (Ingino 01) turnm6 m7
Up_n Ibias
m5
m11
Up
m8
Vctl
m1 m4 m9
m2
m3
Down
m10 m12
Down_n
52
Simple Charge-Pump Bias Charge Ib ~ (Vdd Vt)/R Ib dependent on PVT Prefer low-Vt, moderate-to-long L for process insensitivity, large W/L for low gate-overdrive Pro: Simple, stable. Con: Vdd dependence
m1 m2
Ibias
53
VDDVDD-independent Ibias
Ib ~ 1/R2 Con: requires start-up circuit not shown
m3 m4 m5
m1
M=4
m2
Ibias
54
BandgapBandgap-based Ibias
Ib ~ Vref/R Con: feedback loop may oscillate - cap added to improve stability Pro: VDD-independent, mostly Temp independent
Vref
m1 m2
Vf
I ias
55
56
LowLow-Pass Filter
Integrates charge-pump current onto C1 cap to set average VCO frequency (integral path). Resistor provides instantaneous phase correction w/o affecting avg. freq. (proportional path). C2 cap smoothes large IR ripple on Vctl Typical value: 0.5k < Rlpf < 20kOhm Vctl Res C1 C2
57
V2I
CP2
Vproportional Res
Virtual Vctl Copyright, Dennis Fischette, 2004
IVCO
RO
58
59
60
61
62
63
VoltageVoltage-Controlled Oscillator
VCO usually consists of two parts: control voltageto-control current (V2I) circuit and currentcontrolled ring oscillator (ICO) VCO may be single-ended or differential Differential design allows for even number of oscillator stages if differential-pair amps used for delay cells V2V may be used instead to generate bias voltages for diff-pair amps
64
65
66
67
weak
weak
weak
68
VCO V-to-I Circuits V-to Converts Vctl to Ictl May generate additional Vbias for oscillator May use internal feedback to set VCO swing Provides power-supply rejection fets in deep saturation or amp-based internal feedback Filters high-frequency Vctl ripple w/another cap Adds parasitic pole BW(V2I) >> BW(PLL) Digital Range settings allow for control of VCO gain and Vctl range must overlap ranges
69
Simple V2I
Minimal filtering of Vctl ripple Keep long-channel current source in saturation Cap adds parasitic pole Zp = 1/(Rvco*C) Typical Cap Size: 0.5 pF < C < 5 pF Reference Vctl to same potential as LPF caps
Vctl
70
V2I w/Feedback
Feedback amp provides good low-freq powersupply rejection Cap to Vdd provides good high-freq rejection Start-up needed Stability concern?
_ +
Vfb Ivco Vctl
m2
m1
71
Differential VCOs
72
zn ip
m1 m2
zp in
Vbn
m3
73
m3
m6
m7
m4
zn ip
m1 m2
zp in
Vbn
m5
74
m3
m6
m7
m4
Vf
m1 m2
+ Vctl
V n
m5
75
VCO Level-Shifter Level Amplify limited-swing VCO signals to full-rail typically from 0.4-0.7V to VDD Maintain 50% duty-cycle usually +/- 3% difficult to do over PVT and frequency Insensitive to power-supply noise < 0.5 % per % dVDD Which power-supply? Analog or digital? usually digital
76
VCO: Level-Shifter Level Need sufficient gain at low VCO frequency Use NMOS input pair if VCO swing referenced to VSS for better power-supply rejection Net zn should swing almost full-rail to switch output inverter
m3 m4
zn in
m1 m2
ip
77
Feedback Divider
78
79
Feedback Divider
Two common types of dividers: Asynchronous cascade of div-by-2s Synchronous counter typically used
80
Asynchronous Divide-by-2 Divide-by Pro: fast, simple Pro: small area Con: long latency for large divisors Con: divide by powers of 2 only Can be used as front-end to synchronous counter divider to reduce speed requirements
81
82
CounterCounter-Based Divider
Pro: divide by any integer N Pro: constant latency vs. N Pro: low latency Pro: small area Binary-encoded. Con: slow if using ripple counter dont Con: output may glitch delay (re-sample) output by one cycle to clean up glitch
83
84
Voltage Regulator/Filter
Used to filter power-supply noise typically > 20 dB (10x) PSRR over entire frequency range desire 30+ dB Secondary purpose is to set precise voltage level for PLL power supply usually set by bandgap reference
85
Voltage Regulator
Bandgap reference generates a voltage reference (~1.2V) that is independent of PVT relies on parasitic diodes (vertical PNP) Regulator output stage may be source-follower (NFET) or common-source amp (PFET) source-follower requires more headroom (and area?) but is more stable common-source amp may be unstable without Miller capacitor or other compensation Beware of large, fast current spikes in PLL load (i.e. when changing PLL frequency range)
Copyright, Dennis Fischette, 2004
86
V g
5k
1k m=8 m=1
87
+ c2 r1
m1
Vreg
c1
r2
88
89
90
91
PLL Problem
Problem: 3-stage PMOS diff-pair VCO wouldnt oscillate at low frequencies. When VCO finally started up at high Vctl, it outran FBDIV. Cause: leaky, mis-manufactured loads in delay cell reduced gain of delay element < 2 Solutions: increase L of load devices for higher gain add more VCO stages to reduce gain requirements
92
PLL Problem
Problem: VCO stuck at max frequency at poweron. Cause: PLL tried to lock before VDD was stable. Because VCO couldnt run fast enough to lock at low VDD, Vctl saturated. When VDD finally stabilized, Vctl = VDD, causing a maxed-out VCO to outrun FBDIV. Solution: maintain PLL RESET high until VDD is stable to keep Vctl at 0V.
93
PLL Problem
Problem: VCO stuck at max frequency after changing power-modes. Cause: Feedback DIV could not run fast enough to handle VCO overshoot when locking to a new frequency or facing a reference phase step. Solutions: limit size of frequency steps increase speed of Feedback DIV
94
PLL Problem
Problem: PLL would not lock. Cause: Feedback DIV generated glitches causing PFD to get confused. Solution: add re-sampling flop to output of feedback DIV to remove glitches.
95
PLL Problem
Problem: PLL output clock occasionally skipped edges at low VCO frequencies Cause: VCO level-shifter had insufficient gain when VCO swing was close to Vt. Solutions: increase W of diff-pair inputs use low-Vt devices
96
PLL Problem
Problem: VCO jitter was huge at some divider settings and fine at others. Cause: Integration team connected programmable current sources backward. Solution: write accurate verilog model that complains when inputs are out-of-range.
97
PLL Problem
Problem: PLL jitter was poor at low freq and good at high freq. Cause: Vctl was too close to Vt at low frequency. Solution: Run VCO at 2X and divide it down to generate slow clocks.
98
PLL Problem
Problem: RAMDAC PLL had large accumulated phase error which showed up as jitter on CRT screen. Cause: PLL bandwidth was too low, allowing random VCO jitter to accumulate. Solution: increase bandwidth so that loop corrects before VCO jitter accumulates.
99
PLL Problem
Problem: PLL had poor peak-peak jitter, but good RMS jitter. Cause: digital VDD pin in package adjacent to PLLs analog VDD coupled digital VDD noise to analog VDD during certain test patterns. Solution: Remove wirebond for adjacent digital VDD pin.
100
PLL Problem
Problem: large static offset. Cause: designer did not account for gate leakage in LPF caps. Solutions: switch to thick-gate oxide caps switch to metal caps
101
PLL Problem
Problem: VCO period jitter = +/- 20%, modulated at a fixed frequency. Cause: Unstable V2I internal feedback loop caused by incorrect processing of stabilizing caps. Solutions: correct manufacturing of capacitors add more caps
102
PLL Problem
Problem: bandgap reference was stable in one process but oscillated in a different process with similar feature sizes. Cause: compensation caps for 2-pole feedback system with self-bias were too small. Solution: make compensation caps 3X larger.
103
104
Appendices
105
Appendices
Appendix Appendix Appendix Appendix Appendix A: Design for Test B: Writing a PLL spec C: Additional PLL material D: Paper References E: Monograph References
106
107
108
109
110
111
Jitter Hardware/Software
Jitter Analysis tools: e.g. Wavecrest, Tek(Jit2), Amherst Design Jitter measurement types: Period jitter histogram Long-term jitter Cycle-to-adjacent cycle jitter Half-period jitter Jitter FFT - limited by Nyquist aliasing Scope memory depth
112
113
114
Analog Observation
Analog observation IO pins for debug and characterization may force internal analog nets as well if bidirectional pin low-bandwidth requirements low MHz or kHz isolate analog nets with unity-gain buffer or resistor and pass-gates w/solid pull-down drive analog pins to known value when not in use tri-state analog pin for ESD leakage testing ESD protection (CDM and HBM) may cause IO leakage
Copyright, Dennis Fischette, 2004
116
Probing On-chip On If not flip-chip, then put probe pads on top-layer metal. Probe pad size >1um x 1um. Prefer > 2um x 2um. Place probe pad on a side-branch of the analog signal to avoid breaking wire with probe. Separate probe pads to allow room for multiple probes. FIB: can add probe pad, add or remove wires. need room and luck FIB: can FIB SOI flip-chip from back of wafer if enough room around lower-level wires.
Copyright, Dennis Fischette, 2004
117
118
Spec Overview
Area, physical integration Technology issues Power-supply voltage Performance metrics Logic interface
119
Physical Integration
Area, aspect ratio? What metal layers are available? Digital signal routing allowed over PLL? Where is PLL located on chip? Wire-bond or flip-chip?
120
Semiconductor Process
90nm, 130nm, 180nm? Bulk vs. SOI? SOI body-ties? Nwell vs. twin-well? Epi substrate? Accumulation-mode capacitors? Gate-oxide thickness? Capacitance density and leakage. Dual-gate oxide available? Leakage. Poly density requirements? Low-Vt available? Resistor types? Poly? Diffusion?
Copyright, Dennis Fischette, 2004
121
PowerPower-Supply
Separate analog VDDA? What voltage? 1.8V? 2.5V? Higher than core voltage? Separate analog VSSA? Wire-bond or flip-chip? Package Type? What type of VDDA filtering on board? Ferrite bead? What cap sizes? Min, max VDDA? DC variation? AC variation? Natural frequency (1/LC) of VDDA?
122
Performance
Reference clock frequency? Range? Min/Max VCO Frequency? Duty cycle? Period Jitter? Fixed jitter spec or pct of period? Cycle-to-adjacent cycle jitter spec? Half-cycle jitter spec?
123
Performance
Max Frequency overshoot while settling? Static phase error? Dynamic phase error? Loop bandwidth? Time to acquire initial lock? Time to re-acquire lock after frequency change? Power Dissipation?
124
Logic Interface
Reset available? PowerOK available? VCO/CP/R range settings allowed? Clock glitching allowed when switching VCO frequency ranges? Level-shift and buffer PLL inputs/outputs? Different power domains?
125
126
References
127
Paper References
[1] B. Razavi, Monolithic Phase-Locked Loops and Clock-Recovery Circuits, IEEE Press, 1996. collection of IEEE PLL papers. [2] I. Young et al., A PLL clock generator with 5 to 110 MHz of lock range for microprocessors, IEEE J. Solid-State Circuits, vol. 27, no. 11, pp. 15991607, Nov. 1992. [3] J. Maneatis, Low-Jitter Process-Independent DLL and PLL Based on SelfBiased Techniques, IEEE J. Solid-State Circuits, vol. 31, no. 11, pp. 17231732. Nov. 1996. [4] J. Maneatis, Self-Biased, High-Bandwidth, Low-Jitter 1-to-4096 Multiplier Clock Generator PLL, IEEE J. Solid-State Circuits, vol. 38, no.11, pp. 17951803. Nov. 2003. [5] F. Gardner, Charge-pump phase-lock loops, IEEE Trans. Commun., vol COM-28, no. 11, pp 1849-1858, Nov. 1980. [6] V. von Kaenel, A 32- MHz, 1.5mW @ 1.35 V CMOS PLL for Microprocessor Clock Generation, IEEE J. Solid-State Circuits, vol. 31, no. 11, pp. 1715-1722. Nov. 1996.
128
129
130
Monograph References
[1] B. Razavi, Design of Analog CMOS Integrated Circuits, McGraw-Hill, 2001. [2] R. Best, Phase-Locked Loops,McGraw-Hill, 1993. [3] R. Dorf, Modern Control Theory, 4th Edition, Addison-Wesley, 1986. [4] P.Gray & R. Meyer, Analysis and Design of Analog Integrated Circuits, 3rd Edition, J. Wiley & Sons, 1993. [5] K. Bernstein & N. Rohner, SOI Circuit Design Concepts, Kluwer Academic Publishers, 2000. [6] A. Hajimiri & T. Lee, The Design of Low Noise Oscillators, Kluwer Academic Publishers, 1999 [7] T. Lee, The Design of CMOS Radio-Frequency Integrated Circuits, Cambridge University Press, 1998. [8] F. Gardner, Phaselock Techniques, 2nd Edition, New York, Wiley & Sons, 1979
131