Beruflich Dokumente
Kultur Dokumente
Analog Integrated Circuit Design A video course under the NPTEL Nagendra Krishnapura
Department of Electrical Engineering Indian Institute of Technology, Madras Chennai, 600036, India
Nagendra Krishnapura
Outline
Type I PLL
Practical phase detectors Type I PLL limitations
Type II PLL
Feedback systems and stability Type II PLL
Nagendra Krishnapura
Frequency synthesizers in radios for local oscillators Frequency multiplication for reference clock generation Phase alignment
Nagendra Krishnapura
Broadcast FM band
88MHz
88.2MHz
5kHz
channel spacing 0.2MHz
channel spacing
0.2MHz
890MHz
890.2MHz
935MHz
935.2MHz
915MHz
108MHz 960MHz
fc
1610kHz
530kHz
Tuned to the desired channel frequency plus an intermediate frequency (IF) Generate equally spaced frequencies from a reference frequency Waveform shape not very important Spurious output and noise must be sufciently low
Nagendra Krishnapura Phase locked loop frequency synthesizers
Frequency divider
Vref R(N-1) Vref/N R fref fref/N
N frequency divider
Digital frequency divider can generate multiple frequencies Frequencies not equally spaced Reference frequency higher than output frequencies
Nagendra Krishnapura
Voltage multiplier
voltage difference zero, at steady state Vref + Vout/N K2 dt + Vctl K1Vctl+Vo + R Vout
Frequency multiplier
frequency difference zero, at steady state cos(2freft) frequency measure fref + fout/N frequency measure N K2 dt Vctl KvcoVctl+fo cos(2foutt) fout fo Vctl slope = Kvco
Divided output frequency subtracted from the reference frequency to generate error Output source controlled by the integral of the frequency error
Nagendra Krishnapura
Nagendra Krishnapura
Phase error
70 60 50 40 30 20 10 0 10 0 ideal phase error phase with error
4
Nagendra Krishnapura
10
Frequency multiplier
phase difference fref K2 dt + dt
cos(2freft)
frequency measure
Vctl
KvcoVctl+fo
cos(2foutt)
K2
cos(2fout/N t)
Integration before subtraction Integral of the frequency is phase Integrator+subtractor measures phase difference between the reference input and the divided output (feedback)
Nagendra Krishnapura
Nagendra Krishnapura
Phase detector
1 2
phase detector
Kpd(1-2)
Nagendra Krishnapura
2fout/N t+vco/N 1/N Vctl = 2(fref-fout/N)t + ref - out/N At steady state, fref=fout/N; Vctl = ref - out/N
Modelled in terms of phases of signals The loop locks with Vctl = Kpd (ref out /N ) = (Nfref fo )/Kvco This is the operating point of the circuit
Nagendra Krishnapura Phase locked loop frequency synthesizers
2fout/N t+out/N+out/N
1/N
Nagendra Krishnapura
out
Nagendra Krishnapura
out(s)/N 1/N
Loop gain L(s) = 2 Kpd Kvco /Ns Transfer function out (s)/ref (s) = N /(1 + Ns/(2 Kpd Kvco )) Type-I loopOne integrator in the loop Closed loop bandwidth (= unity loop gain frequency) = 2 Kpd K vco/N rad/s
Nagendra Krishnapura Phase locked loop frequency synthesizers
Type-I PLLlimitations
|ref out /N | < 2 |fout fo | < 2 Kpd Kvco Lock range limited by periodicity of phase detector
Period of all phase detectors not necessarily 2 Commonly used three state phase detector periodic with 2
Nagendra Krishnapura
Phase detector
Frequency divider output has a varying duty cycle Phase detector should sensitive to duty cycle
XOR gate etc. are not preferable
Phase detector should be sensitive only to rising edges (or only to falling edges) of inputs
Nagendra Krishnapura
A B
A
A ref
QA
RST
-1
+1
A
B div RST D Q QB
output=QA-QB
Output +1, 1, 0
+1 if reference leads divider output 1 if reference lags divider output 0 if reference coincides with divider output
Nagendra Krishnapura
Tref +1 +1
Tref
A B QA QB
-1 +1 -1 +1 +1
A B QA QB
-1 +1 -1 +1 +1
ref-div
div-ref
A leading B
A lagging B
Nagendra Krishnapura
RST
-1
+1
A
B div RST D Q QB
output=QA-QB
fA > fB : Eventually get two consecutive edges of A Circulates between 0 and +1 states: Average output > 0 Similarly, average output > 0 for fA < fB This detector is a phase/frequency detector (PFD)
Nagendra Krishnapura
Vout (f ) =
sinc 2 n=
n 2 n 2
+ Vout (t ) = 2
sinc
n =1
Nagendra Krishnapura
Output contains fref and its harmonics Output = 1/2 ( + Periodic signal in addition to Kpd
an cos(2 nfref t ))
All real phase detectors have a periodic error in addition to the dc term proportional to phase error
Nagendra Krishnapura
0.5 0
f/fref
10
Nagendra Krishnapura
vco/N 1/N
Error e(t ) added to the input of the phase detector Disturbances in the VCO output phase out (t ) even with a perfect reference (ref (t ) = 0) VCO output: cos(2 Nfref t + N ref + out (t )) VCO output not periodic at Nfref
Nagendra Krishnapura Phase locked loop frequency synthesizers
Phase error
70 60 50 40 30 20 10 0 10 0 ideal phase error phase with error
4
Nagendra Krishnapura
10
Transfer function from the error to the output out (s)/E (s) = out (s)/ref (s) = N /(1 + Ns/(2 Kpd Kvco )) E (j 2 f ) =
n (an /2) (f
nfref )
Phase locked loop frequency synthesizers
Nagendra Krishnapura
Type-I PLL
out (s) E (s) out (s) ref (s) 2 Kpd Kvco /Ns = N 1 + 2 Kpd Kvco /Ns 1 = N 1 + sN /2 Kpd Kvco
Type I PLL
2KpdKvco/N
L/(1+L)
|out/ref| 20log(N)
dB
Nagendra Krishnapura
Feedback system
In our system, out (s) E (s) = N 2 Kpd Kvco /Ns 1 + 2 Kpd Kvco /Ns
In general, in a feedback system with a loop gain L(s) Hclosedloop (s) = Hideal (s) L(s) 1 + L(s)
Where Hideal (s) is the ideal closed loop gain (with L = ). This can be approximated as Hclosedloop (s) = Hideal (s)L(s) = Hideal (s) |L | 1
|L | 1
Nagendra Krishnapura
= cos(2 Nfref t )
b1 /2 cos(2 (N + 1)fref t )
Spurious tones in the output at a spacing of fref from the desired frequencyReference feedthrough In general, spurious tones will be present at nfref from the desired PLL output
Nagendra Krishnapura Phase locked loop frequency synthesizers
Reference feedthrough
b1 = a1 |H (j 2 fref )| Kpd Kvco /jNfref = a1 N 1 + Kpd Kvco /jNfref Kpd Kvco a1 N jNfref Nf3dB sinc = 2 fref 2 Maximum value of b1 = 4Kpd Kvco when =
Nagendra Krishnapura
Reference feedthroughexample
f3dB /fref = 5 106 f3dB = 5 Hz Lock range = 2 Nf3dB 10 kHz Lock range is too small; Cant switch to the next channel which is 1 MHz away! May not be able to lock for any value of N , unless the free running frequency happens to be Nfref for some N
Nagendra Krishnapura
Nagendra Krishnapura
Nagendra Krishnapura
Nagendra Krishnapura
In steady state, Voff = (fout-ffree)/KvcoKpd output signal at fout (fout=Nfref at steady state)
In steady state, = 0
Nagendra Krishnapura
Nagendra Krishnapura
Lock range is not limited by the phase detector Loop locks with zero phase difference between reference and feedback signals Tri state phase detector output is zero for zero input phase difference No reference feedthrough! Reference feedthrough does exist in reality due to mismatches
Nagendra Krishnapura
2fout/N t+out/N 1/N dVctl/dt 2(fref-fout/N)t + ref - out/N At steady state, fref=fout/N; ref - out/N = 0;
Nagendra Krishnapura
zero at steady state Kpd,I 2freft+ref + Kpd dt + Vctl + 2fout t+out 2Kvco dt
2fout/N t+out/N 1/N dVctl/dt 2(fref-fout/N)t + ref - out/N At steady state, fref=fout/N; ref - out/N = 0;
Nagendra Krishnapura
out(s)/N 1/N
Nagendra Krishnapura
p1 > 2KpdKvco/N more poles can be used + vctl(s) Vctl 1 1+s/p1 + 2Kvco s out(s)
out(s)/N 1/N
Nagendra Krishnapura
Type II PLLImplementation
Tref +1 reference -1 divider o/p +1 -1 reference pdout +Icp -Icp proportional +IcpR output -IcpR integral output slope=Icp/C divider o/p
tri-state phase detector
iout R1 +
proportional + integral output
C1 -
Integral term Kpd ,I /s: Current owing into a capacitor C1 Proportional term Kpd : Current owing into a resistor R1 Series RC to obtain the sum Kpd = Icp R1 /2 ; Kpd ,I = Icp C1 /2
Nagendra Krishnapura
Icp
1 A ref D Q QA (UP)
RST
iout + R1
QB (DN)
B div 1
RST D Q
C1 Icp -
QA and QB drive a charge pump Charge driven into the loop lter Icp Tref /2
Nagendra Krishnapura
1 CLK
CLK
RST
CLK
S R
Q Q
Q Q
S R
RESET
RESET
Realization using NOR gates
Nagendra Krishnapura
A B QA QB
-1 +1 -1 +1 +1
A B QA QB
= ref-div QA and QB simultaneously on
-1 +1 -1 +1 +1
A leading B
A lagging B
Nagendra Krishnapura
Icp+Icp/2
1 A ref D Q QA (UP)
A iout R1 C2 B
-1 Tref +1 -1
RST
B div 1
RST D Q QB (DN)
QA QB Itop Icp-Icp/2 C1
Icp-Icp/2 Trst Icp+Icp/2
Ibot iout
-Icp (zero average)
Ideally = 0 in a type-II loop no ref. feedthrough Mismatch between top and bottom current sources and switching transients causes a non zero and reference feedthrough Current pulse area Icp Trst much smaller than in a Type I PLL (area Icp Tref )
Nagendra Krishnapura Phase locked loop frequency synthesizers
Kpd,I ref + + +
out/N 1/N
Loop locks with a small phase offset (due to mismatch) between ref and vco /N for all frequencies Error E (t ) is periodic at fref : E (t ) = n=1 an cos(2 nfref t + n ) Amplitude of E (t ) related to mismatch; much smaller than in a type-I PLL
Nagendra Krishnapura
E(j2f) = n an ejn (f-nfref) E(s) ref + + + Kpd out/N 1/N Kpd,I s + vctl + 2Kvco s out
Nagendra Krishnapura
2fout/N t+out/N 1/N dVctl/dt 2(fref-fout/N)t + ref - out/N At steady state, fref=fout/N; ref - out/N = 0;
Additional poles beyond the unity loop gain frequency to reduce reference feedthrough
Nagendra Krishnapura
p1 > 2KpdKvco/N more poles can be used + vctl(s) Vctl 1 1+s/p1 + 2Kvco s out(s)
out(s)/N 1/N
Additional poles beyond the unity loop gain frequency to reduce reference feedthrough
Nagendra Krishnapura
Icp
1 A ref D Q QA (UP)
RST
iout R1
QB (DN)
B div 1
RST D Q
C1 Icp
C2 C3
Extra RC sections for additional poles Must be sufciently beyond the unity loop gain frequency to ensure sufcient phase margin
Nagendra Krishnapura
out/N 1/N
Noise can be added as ref (reference phase noise, charge-pump noise, divider output phase noise) or vnc (loop lter noise) or vco (VCO phase noise) Need to compute transfer functions from each of these noise sources to out
Nagendra Krishnapura Phase locked loop frequency synthesizers
L(s) = u ,loop = z1 = out (s) ref (s) out (s) Vnc (s) out (s) vco (s) = = =
u ,loop z1 s 1+ s s z1 2 Kpd Kvco Icp RKvco = N N Kpd ,I 1 = Kpd RC 1 + s/z1 N 1 + s/z1 + s2 /z1 u ,loop s/z1 N Kpd 1 + s/z1 + s2 /z1 u ,loop s2 /z1 u ,loop 1 + s/z1 + s2 /z1 u ,loop
Nagendra Krishnapura
L(s) 1 + L(s)
Two poles and a zero Zero z1 = Kpd ,I /Kpd Natural frequency n = Quality factor Q = 2 Kpd ,I Kvco /N NKpd ,I /2 Kvco /Kpd u ,loop /z1 z1 /u ,loop =
1/N|out/ref| [dB]
5 2 10 1 0 15 1 3 10 =4.08 =0.3162 =1 10
2 2 1 0
10
10
10
20
25 3 10
10 /
10
10
u,loop
= N
10 10 f/f 10
out
/ /
ref
out nc out
/v *1V
vco
10
u,loop
(Example parameters: N = 10, z1 = 0.1u ,loop , N /Kpd = 2 Kvco /u ,loop = 25 V1 ) |out /ref |: Lowpass with a dc gain N |out /vnc |: Bandpass with peak gain N /Kpd = 25 V1 |out /vco |: Highpass with a high frequency gain of 1
Nagendra Krishnapura Phase locked loop frequency synthesizers
10 f/f
10
10
u,loop
(Example parameters: N = 10, z1 = 0.1u ,loop , N /Kpd = 2 Kvco /u ,loop = 25 V1 ) Reference contribution dominant below 0.1u ,loop VCO contribution dominant above 0.1u ,loop VCO contribution reduced by the loop upto u ,loop Charge pump and loop lter noise ignored in the above
Nagendra Krishnapura Phase locked loop frequency synthesizers
= N
Low pass response; Reference noise attenuated at high frequencies Low frequency gain of N , -3 dB bandwidth of 2 Kpd Kvco /N Pole zero doublet p1 z1 = Kpd ,I /Kpd ; p1 at a slightly higher frequency than z1
Nagendra Krishnapura Phase locked loop frequency synthesizers
|out/Vctl|
dB(radians/V)
20log(N/Kpd)
-20dB/dec
N Kpd
radians/Volt Bandpass response Mid band gain of N /Kpd Lower cutoff at Kpd ,I /Kpd , Upper cutoff at 2 Kpd Kvco /N
Nagendra Krishnapura Phase locked loop frequency synthesizers
0dB
+20dB/dec +10dB/dec
s2 = s2
N 2 Kpd ,I Kvco
N 2 Kpd ,I Kvco
+s
Kpd +1 Kpd ,I
Second order highpass response Feedback loop effectively inactive beyond 2 Kpd Kvco /N
Nagendra Krishnapura Phase locked loop frequency synthesizers
S(f) dBc/Hz
2KpdKvco/N Kpd,I/Kpd
Nagendra Krishnapura
LC oscillator
Nagendra Krishnapura
LC oscillator
L C RP (GP) L C GP -GN GN GP for sustained oscillation
Lossless LC resonator sustains a sinusoidal voltage indenitely LC resonator loss modeled using a parallel resistance Rp Compensate the loss of a lossy LC resonator using a parallel negative resistance Oscillation frequency fo = 1/2 LC
Nagendra Krishnapura Phase locked loop frequency synthesizers
LC resonator losses
Rs,L
Rs,C L C
C RP=RP,L||RP,C
Capacitor and Inductor series resistances represented by equivalent parallel resistances Effective Rp is a parallel combination of losses from all components
Nagendra Krishnapura
Negative resistance-implementation
+ v -
Nagendra Krishnapura
Negative resistance-implementation
Cross coupled differential pair Negative conductance = gm /2 where gm is the transconductance of each MOS device
Nagendra Krishnapura
LC oscillator
Vdd L C -gm/2 GP
Itail
Parallel LC tank with cross coupled differential pair This and its variants are the most commonly used topologies of CMOS integrated oscillators
Nagendra Krishnapura
LC oscillator-amplitude
Vdd L C GP vp M1 Itail vn M2 M1 off M2 on vp-vn M1 on M2 off
Complete switching of MOS devices assumed Equivalent to a square wave current of amplitude I /2 driving the parallel LC tank
Nagendra Krishnapura
LC oscillator-amplitude
Vdd I L C GP I/2 I/2 "bias" point
2I/ I/2
Vdd I L C GP M1 off 0 M2 on I I
sinusoid at fo
v(t)
L C GP vn
vp I/2 I/2 To
driving current
fundamental component
differential voltage
Nagendra Krishnapura
LC oscillator-amplitude
Equivalent to a square wave current of amplitude I /2 driving the parallel LC tank All components except the fundamental ltered out Amplitude of the differential sinusoidal voltage = 2IRP /
Nagendra Krishnapura
LC oscillator-tunability
a a n+ n- well pa b p+ n+ n- well pa n+ b
b b
Tunable using a varactor Reverse biased p-n junction MOS device in accumulationlarger tuning range; more popular in CMOS ICs
Nagendra Krishnapura
metal
metal
n+
n+
n+
n+
n+
Wfinger
n+
n+
n+
n+
n+
Wfinger
nMOS in n-well Multi ngered structure to reduce gate, channel resistance W few microns; L > Lmin to reduce parasitics Quality factor: 20+
Nagendra Krishnapura Phase locked loop frequency synthesizers
ap
an
Interdigitated ngersalternate ones connected to ap and an Region between gates connected to ap and an at 0 V due to symmetry All n+ contacts except the ones at the end can be removed [7] Smaller structure, lower series resistance, and smaller parasitic capacitances
Nagendra Krishnapura Phase locked loop frequency synthesizers
On chip inductors
via
Planar inductor on one of the metal layers Top level metal preferred
Farther from the substrate Smaller parasitic capacitance Lesser coupling to substrate, and hence, loss
Thicker top level metal ( 2 m) available in mixed signal processes Nagendra Phase loop frequency synthesizers on Inductor values up Krishnapura to a couple of locked tens of nH practical
RS
2 C2
C1
R1 substrate
R2 substrate
Winding resistance
R2 L/W Effective R2 larger due to skin effect Copper: 2 m skin depth ( 1/ f ) at 1 GHz
Capacitive coupling to substrate and its resistance Inductive coupling to (resistive) substrate Quality factors upto 15 possible, typically 8-10 Use adequate thickness and number of vias during layout
Nagendra Krishnapura Phase locked loop frequency synthesizers
Differential inductor
vias
via
via
Inductor simulation
Some processes have scalable inductor library and models Typically needs to be simulated from process parametersmetal thickness, resistivity, intermetal spacing etc. Inductance value
FastHenry, Asitic etc. Accurate estimation possible
Quality factor
FastHenry, Asitic etc. Harder to accurately estimate losses due to substrate coupling
Parasitic capacitance
First order parallel plate estimationOK for single ended inductors FastCap etc. Use distributed models for accuracy2 to 3 sections are sufcient
Nagendra Krishnapura Phase locked loop frequency synthesizers
Transistors typically minimum length at high frequencieslonger to lower 1/f corner Bias source: longer than minimum length to lower 1/f noise Minimize all parasitics to maximize tuning range from the varactor Transistor W /L to get the desired gm for startup in the worst case
Large gm increased phase noise; So dont go crazy! Minimize gm variations over process and temperature; Less overdesign
Nagendra Krishnapura Phase locked loop frequency synthesizers
L = 4 nH and C = 0.25 pF (differential) chosen 6 turn inductor on top metal layer, 140 m square From inductor simulations, Q 6 Minimum length transistors
Nagendra Krishnapura
5GHz VCO-inductor
Nagendra Krishnapura
Nagendra Krishnapura
Nagendra Krishnapura
6.2
6.1
fvco(in GHz)
5.9
5.8
5.7
5.6 0.5
0.5
1.5
Vctl (V)
Nagendra Krishnapura Phase locked loop frequency synthesizers
30 dB/decade
20
40
60
80
100
20 dB/decade
120
140 2 10
10
10
10
10
10
Nagendra Krishnapura
Nagendra Krishnapura
D Q combinational logic N
Nagendra Krishnapura
D Q
D Q fin
All of the circuitry running at full speed Very high power dissipation Asynchronous operation preferred
fin
P/P+1
M
reset
Dual modulus prescaler P /P + 1 Divide by P + 1 for A cycles Divide by P for M A cycles Full cycle = (P + 1)A + P (M A) = MP + A Only the dual modulus prescaler running at full speed Programmability using M and A
Nagendra Krishnapura Phase locked loop frequency synthesizers
p0
p1
p2 5
p3
p4
Each stage divides by 2 (if pk = 0) Each stage divides by 3 (if pk = 1) once in each output cycle With L stages, the division factor range from 2L to 2L+1 1 Modular approach
Nagendra Krishnapura
p1
p0p1=11
Each stage divides by 2 (if pk = 0) Each stage divides by 3 (if pk = 1) once in each cycle With L stages, the division factor range from 2L to 2L+1 1 Modular approach
Nagendra Krishnapura
A1
Latch1 D clk Q
A2 modin
Nagendra Krishnapura
References
Behzad Razavi, RF Microelectronics, Prentice Hall, 1998. Behzad Razavi (editor), Monolithic Phase Locked Loops and Clock Recovery Circuits-Theory and Design, IEEE Press, 1996. Behzad Razavi (editor), Phase Locking in High Performance Systems-From Devices to Architectures, IEEE Press, 2003. Nagendra Krishnapura, Introducing Negative Feedback with an Integrator as the Central Element, 2012 International Symposium on Circuits and Systems (ISCAS), Seoul, South Korea, 20-23 May 2012. Nagendra Krishnapura, Synthesis Based Introduction to Opamps and Phase Locked Loops, 2012 International Symposium on Circuits and Systems (ISCAS), Seoul, South Korea, 20-23 May 2012. Marc Tiebout, Low Power VCO Design in CMOS (Springer Series in Advanced Microelectronics) , Springer 2005. A. S. Porret et al., Design of high-Q varactors for low-power wireless applications using a standard CMOS process, IEEE Journal of Solid-State Circuits, pp. 337-345, Volume 35, Issue 3, March 2000. C. Vaucher et al., A family of low-power truly modular programmable dividers in standard 0.35- m CMOS technology, IEEE Journal of Solid-State Circuits, vol. 35, no. 7, pp. 1039-1045, July 2000.
Nagendra Krishnapura