aniruddha_chandra
23,587 views
50 slides
Jun 24, 2012
Slide 1 of 50
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
About This Presentation
3 hour tutorial on phase locked loop.
Size: 968.92 KB
Language: en
Added: Jun 24, 2012
Slides: 50 pages
Slide Content
Jan 24, 2009
Winter School on
VLSI Systems Design
ECE Department, ECE Department,
NIT DurgapurNIT Durgapur
Aniruddha Chandra
ECE Department, NIT Durgapur, WB, India.
<[email protected]>
Phase Locked Loop (PLL)Phase Locked Loop (PLL)
A. Chandra, NIT DGP – PLL 2/50
24/01/09
VLSI
Systems
DesignOutlineOutline
Synchronization
PLL Basics
Analog PLL
Digital PLL
TDTL FPGA Implementation
A. Chandra, NIT DGP – PLL 3/50
24/01/09
VLSI
Systems
DesignSynchronization ???Synchronization ???
In heavy traffic we are forced to match our speed to that
of the car in front of us
and should also try to avoid sudden braking so as not to
frighten the driver behind us.
Concept Attribute
Synchronization Frequency/ phase
Urban traffic Vehicle
speed
A. Chandra, NIT DGP – PLL 4/50
24/01/09
VLSI
Systems
DesignSynchronization ???Synchronization ???
In a symphony orchestra, the reference is the conductor,
and all musicians attempt to reproduce the beat as set by
the conductor’s baton.
Concept Attribute
Synchronization Frequency/ phase
Orchestra Scale of note
A. Chandra, NIT DGP – PLL 5/50
24/01/09
VLSI
Systems
Design
Synchronization
We take it for granted
A. Chandra, NIT DGP – PLL 6/50
24/01/09
VLSI
Systems
DesignSynchronizationSynchronization
What happens without it?
Exchange
A. Chandra, NIT DGP – PLL 7/50
24/01/09
VLSI
Systems
DesignSynchronizationSynchronization
What happens without it?
Exchange
A. Chandra, NIT DGP – PLL 8/50
24/01/09
VLSI
Systems
DesignSynchronizationSynchronization
What happens without it?
A. Chandra, NIT DGP – PLL 9/50
24/01/09
VLSI
Systems
DesignSynchronization HierarchySynchronization Hierarchy
Coherent demodulation – phase/ frequency
Non-coherent demodulation – frequency
Multi Carrier systems – sub-carrier
Carrier Synchronization
Symbol Synchronization
Frame Synchronization
Network Synchronization
Integrator, Decision device
Multiple access (TDMA), FEC (Block coding)
Transmitter synchronization – Satellite, GPS, CDMA
A. Chandra, NIT DGP – PLL 10/50
24/01/09
VLSI
Systems
Design
Phase Locked Loop (PLL)
Building block for all
synchronization system
A. Chandra, NIT DGP – PLL 11/50
24/01/09
VLSI
Systems
DesignPLL - BasicsPLL - Basics
What is PLL?
PLL is a circuit synchronizing an output signal (generated by
an oscillator) with a reference or input signal in the frequency
as well as in phase.
This is the
action of a
PLL
Oscillator outputReference input
These look like pointless operations!
Track average phase (& frequency)/ period input
A. Chandra, NIT DGP – PLL 12/50
24/01/09
VLSI
Systems
Design
Oscillator outputReference input
PLL - BasicsPLL - Basics
Oscillator outputReference input
PLL types
Phase and Frequency locked
coherent demodulation
Frequency locked,
constant Phase difference
non-coherent demodulation
A. Chandra, NIT DGP – PLL 13/50
24/01/09
VLSI
Systems
DesignPLL - ApplicationsPLL - Applications
Clock phase adjustment in μP
Time-to-Digital converters (TDC)
Frequency synthesis
Motor speed control
Frequency modulation/ demodulation
Jitter reduction, Skew suppression, Clock
recovery
A. Chandra, NIT DGP – PLL 14/50
24/01/09
VLSI
Systems
Design
1922-27: Oscillator synchronization - Appleton, VanderPol
1932: Publication on the PLL concept - H. de Bellescise
1932: British scientists develop the homodyne/
synchrodyne detection (AFC)
1943: PLL applied in TV - vertical and horizontal scan
1965: Analog PLL devices appeared
1970: Digital PLL introduced - IC 565, CD 4046
1980-90: All-digital PLL (ADPLL) was invented.
Software controlled PLL (SPLL) became relity.
Turning the pages of HistoryTurning the pages of History
A. Chandra, NIT DGP – PLL 15/50
24/01/09
VLSI
Systems
Design
Analog Phase Locked Loop
(APLL)
A. Chandra, NIT DGP – PLL 16/50
24/01/09
VLSI
Systems
DesignAnalog PLL (APLL)Analog PLL (APLL)
The components of a PLL: VCO, PD, and LF.
In synchronized or locked state, the phase error between
the oscillator’s output and the reference signal is either
zero or an arbitrary constant.
When phase error builds up, the oscillator is tuned by a
control mechanism to reduce the phase error.
A. Chandra, NIT DGP – PLL 17/50
24/01/09
VLSI
Systems
DesignAPLL - AnalysisAPLL - Analysis
() ( )tVtv
111
cosw=
() ( )tVtv
222
cosw=
The reference (or input signal)
The output signal of the VCO
with , where ω
o is the centre frequency of
the VCO, K
o is the VCO gain, and v
f
(t) is the output signal of
loop filter
() ()tvKt
f002 +w=w
A. Chandra, NIT DGP – PLL 18/50
24/01/09
VLSI
Systems
Design
()( )tt
e
21w-w=q
() ()tKtv
edd
q=
The phase error at PD
PD output signal , where K
d is the PD gain
v
d
(t) consists of a dc component and a superimposed ac
component
v
f
(t) is delayed version of v
d
(t) with ac removed
APLL - AnalysisAPLL - Analysis
A. Chandra, NIT DGP – PLL 19/50
24/01/09
VLSI
Systems
DesignAPLL – ComponentsAPLL – Components
Phase Detector (PD)
PD compares the phases of the input and output signals and
generate an error signal proportional to the phase deviation.
A mixer (analog multiplier/ balanced modulator) generates the
sums and differences of the frequencies at its input terminals.
A. Chandra, NIT DGP – PLL 20/50
24/01/09
VLSI
Systems
DesignAPLL – ComponentsAPLL – Components
Phase Detector (PD)
Superior noise performance
Operates on the entire amplitude of the input and VCO
signals rather than quantizing them to 1 bit
Best suited for PLL applications in the microwave
frequency range as well as in low noise frequency
synthesizers
Loop gain depends on signal amplitude
Non-linear response due to non-idealities in the circuit
A. Chandra, NIT DGP – PLL 21/50
24/01/09
VLSI
Systems
DesignAPLL – ComponentsAPLL – Components
Voltage Controlled Oscillator (VCO)
VCO produces an oscillation whose frequency can be
controlled through some external voltage.
VCO types
Ring oscillator - Odd number of inverters connected in a
feedback loop.
Relaxation oscillator - Generates square wave using
Schmitt trigger.
A. Chandra, NIT DGP – PLL 22/50
24/01/09
VLSI
Systems
DesignAPLL – ComponentsAPLL – Components
VCO types (Contd.)
Resonant oscillator - Resonant circuit in the positive
feedback path of a voltage to current amplifier.
A simple resonant circuit VCO, where
the frequency is controlled by adjusting
the reverse bias of the varactor diode C
1
Crystal Oscillator
YIG Oscillator - YIG
(Yttrium, Iron and Garnet)
spheres, due to the ferrite
properties, resonate at μ-
wave frequencies when
immersed in a magnetic
field.
A. Chandra, NIT DGP – PLL 23/50
24/01/09
VLSI
Systems
Design
Active lead-lag filterPassive lead-lag filter
Loop Filter
PLLs are mostly second order and as the VCO is modeled
as an integrator, loop filters are of the lead-lag type.
More specifically, the loop filter contains an integrator
which is able to track a phase ramp, and this corresponds
to tracking a step in frequency.
APLL – ComponentsAPLL – Components
A. Chandra, NIT DGP – PLL 24/50
24/01/09
VLSI
Systems
Design
Hold Range
The hold range, is defined as the frequency range over
which the PLL is able to statically maintain phase tracking
APLL – Performance MetricsAPLL – Performance Metrics
Lock Range
The lock range, is defined as the frequency range within
which the PLL locks within one single-beat note between
the reference frequency and output frequency.
A. Chandra, NIT DGP – PLL 25/50
24/01/09
VLSI
Systems
Design
Digital Phase Locked Loop
(DPLL)
A. Chandra, NIT DGP – PLL 26/50
24/01/09
VLSI
Systems
Design
Superiority in performance
APLLs can’t operate at very low frequencies. The analog LPF
struggles while extracting the lower frequency component, as
it needs larger time for better frequency resolution.
Speed
Self-acquisition of APLLs is often slow, while DPLLs can
achieve locking within few cycles.
Reliability
VCO is sensitive to temperature and power supply variations.
Analog multipliers are sensitive to DC drifts.
Reduction in size and cost
Why DPLL?Why DPLL?
A. Chandra, NIT DGP – PLL 27/50
24/01/09
VLSI
Systems
DesignDPLL DevelopmentDPLL Development
Sinusoidal Digital PLL (1970)
Digital tan-lock loop (1982)
Time-delay digital tan-lock loop
A. Chandra, NIT DGP – PLL 28/50
24/01/09
VLSI
Systems
DesignDPLL SchematicDPLL Schematic
Digital PD
A. Chandra, NIT DGP – PLL 29/50
24/01/09
VLSI
Systems
DesignDPLL – ComponentsDPLL – Components
Phase Error Detector (PED)
Classification based on PED type
•Flip-flop DPLL
2. The Nyquist-rate DPLL
3. The lead-lag DPLL or, binary-quantized DPLL
4. Exclusive-OR DPLL
5. Zero-crossing DPLL
A. Chandra, NIT DGP – PLL 30/50
24/01/09
VLSI
Systems
Design
Phase detector
Comparator - convert sinusoidal input into a square wave
Q output - duration when Q = 1 is proportional to phase error
Counter clock
- frequency 2
M
×
f
o
f
o
= DCO center frequency
2
M
= number of quantization
levels of the phase error over
period of 2π
Flip-flop DPLLFlip-flop DPLL
A. Chandra, NIT DGP – PLL 31/50
24/01/09
VLSI
Systems
Design
Phase detector
Counter - starts counting on the positive-going edge of the
flip-flop waveform.
The content of the counter, N
o
, which is proportional to the
phase error, is applied to digital filter.
Flip-flop DPLLFlip-flop DPLL
The output of the digital filter
K controls the period of the
DCO
DCO - programmable divide-
by-K counter
A. Chandra, NIT DGP – PLL 32/50
24/01/09
VLSI
Systems
DesignDPLL – ComponentsDPLL – Components
Digital Controlled Oscillator (DCO)
A. Chandra, NIT DGP – PLL 33/50
24/01/09
VLSI
Systems
Design
Binary SubtratorDCO Components
Programmable counter
Binary subtractor
Zero detector
Digital Controlled Oscillator (DCO)Digital Controlled Oscillator (DCO)
When it reaches zero, the counter generates a pulse. This
pulse is used to load the counter with M −K where K is input.
With each clock pulse
counter decrements by one.
A. Chandra, NIT DGP – PLL 34/50
24/01/09
VLSI
Systems
Design
DCO free-running
frequency
f
o
= f
c
/M
where f
c is the
frequency of the
counter clock.
Digital Controlled Oscillator (DCO)Digital Controlled Oscillator (DCO)
Binary Subtrator
The period between the (k−1)
th
and the k
th
pulse
T(k) = (M − K) T
c
where T
c
= 1/ f
c
A. Chandra, NIT DGP – PLL 35/50
24/01/09
VLSI
Systems
Design
Sinusoidal DPLL
Digital tan-lock loop (DTL)
Time-delay digital tan-lock loop (TDTL)
A. Chandra, NIT DGP – PLL 36/50
24/01/09
VLSI
Systems
Design
Why DTL?
Sinusoidal DPLL - sensitive to the variations in the input
signal power and rather limited lock range
Digital tan-lock loop (DTL)Digital tan-lock loop (DTL)
Components
90
o
phase shifter, 2 samplers, PED, digital loop filter, DCO
A. Chandra, NIT DGP – PLL 37/50
24/01/09
VLSI
Systems
Design
Phase error at sampling instant is extracted by the tan
−1
function. This phase error, modified by the digital filter,
controls the period of DCO.
Digital tan-lock loop (DTL)Digital tan-lock loop (DTL)
Sampler I and II takes in-phase (I) and quadrature (Q)
samples simultaneously.
A. Chandra, NIT DGP – PLL 38/50
24/01/09
VLSI
Systems
Design
Why TDTL?
A digital Hilbert transformer introduces approximations and
imposes limitations on the range of input frequencies,
especially when implemented on a microprocessor.
Time-delay DTL (TDTL)Time-delay DTL (TDTL)
A constant time-delay may be used to produce a phase-
shifted version of the incoming signal to reduce complexity.
A. Chandra, NIT DGP – PLL 39/50
24/01/09
VLSI
Systems
DesignImproved TDTL - IImproved TDTL - I
The conflicting requirements of fast acquisition and wide
locking range necessitate the inclusion of more than one
time delay.
Variable delay TDTL (VD-TDTL)
A. Chandra, NIT DGP – PLL 40/50
24/01/09
VLSI
Systems
DesignImproved TDTL - IIImproved TDTL - II
If a sudden change in input frequency drives the system
to go outside the locking range, the system senses this
error through the FSM and updates the gain of the digital
filter to bring the operating point within the locking region
Adaptive gain TDTL (AG-TDTL)
A. Chandra, NIT DGP – PLL 41/50
24/01/09
VLSI
Systems
DesignImproved TDTL - IIIImproved TDTL - III
Adaptive gain variable delay (AG-VD) TDTL
Combining the best of two - faster acquisition, wider
locking range and more resilience to frequency drifts
A. Chandra, NIT DGP – PLL 42/50
24/01/09
VLSI
Systems
Design
TDTL FPGA Implementation
A. Chandra, NIT DGP – PLL 43/50
24/01/09
VLSI
Systems
Design
Xtreme DSP development board
Virtex-II XC2V3000 chip with three million gates
Virtex-II XC2V80 for clocking and I/O management
Spartan-II interface FPGA for communicating with PC
using the PCI bus/ USB.
Xtreme DSP Development
Kit-II powered by a Virtex-II
FPGA chip from Xilinx.
PlatformPlatform
Xilinx System Generator serves as
the software development platform. It
consists of a Simulink library called
the Xilinx Blockset, and software to
translate a Simulink model into a
hardware realization of the model.
A. Chandra, NIT DGP – PLL 44/50
24/01/09
VLSI
Systems
DesignTDTL FPGA ImplementationTDTL FPGA Implementation
A. Chandra, NIT DGP – PLL 45/50
24/01/09
VLSI
Systems
DesignCORDIC Arctangent BlockCORDIC Arctangent Block
The COordinate Rotational DIgital Computer (CORDIC)
algorithm is an iterative method of calculating
trigonometric and functions.
The CORDIC algorithm is used to implement the 4-quad
tan
−1
(x / y) function of the phase detector, converging to
angles between ± π within eleven system clock cycles.
A. Chandra, NIT DGP – PLL 46/50
24/01/09
VLSI
Systems
DesignDCO BlockDCO Block
The disadvantage of using divide-by-k counter is poor
frequency resolution.
The DCO is implemented using a Direct Digital Synthesis
(DDS) block
A. Chandra, NIT DGP – PLL 47/50
24/01/09
VLSI
Systems
Design
References
A. Chandra, NIT DGP – PLL 48/50
24/01/09
VLSI
Systems
DesignRead more about thisRead more about this
S. R. Al-Araji, Z. M. Hussain, and M. A. Al-Qutayri, Digital
Phase Lock Loops: Architectures and Applications,
Springer, Dordrecht, Netherlands, 2006.
W. F. Egan, Phase-Lock Basics, Wiley InterScience, John
Wiley & Sons, New York, 1998.
R. E. Best, Phase-Locked Loops: Design, Simulation, and
Applications, McGraw-Hill, New York, 2003, 5
th
edition.
A. Chandra, NIT DGP – PLL 49/50
24/01/09
VLSI
Systems
Design
M. Kihara, S. Ono, and P. Eskelinenesign, Digital Clocks for
Synchronization and Communications, Artech House,
Boston, London, 2003.
H. M. Berlin, Design of Phase-Locked Loop Circuits with
Experiments, SAMS Publishers/ Longman Higher Education,
1978.
A. Blanchard, Phase-Locked Loops: Application to Coherent
Receiver Design, Krieger Publishers, 1992.
F. M. Gardner, Phaselock Techniques, John Wiley & Sons,
New York, 2005, 3
rd
edition.
Read Read eveneven more about this more about this
A. Chandra, NIT DGP – PLL 50/50
24/01/09
VLSI
Systems
Design
Thank You! [email protected]
Questions???