Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked...

118
Tutorial on Digital Phase-Locked Loops CICC 2009 Michael H. Perrott September 2009 Copyright © 2009 by Michael H. Perrott

Transcript of Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked...

Page 1: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

Tutorial onDigital Phase-Locked Loops

CICC 2009

Michael H. PerrottSeptember 2009

Copyright © 2009 by Michael H. Perrott

Page 2: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

2M.H. Perrott

Why Are Digital Phase-Locked Loops Interesting?

Performance is important- Phase noise can limit wireless transceiver performance- Jitter can be a problem for digital processors

The standard analog PLL implementation is problematic in many applications- Analog building blocks on a mostly digital chip pose

design and verification challenges- The cost of implementation is becoming too high …

Can digital phase-locked loops offer excellent performance with a lower

cost of implementation?

Page 3: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

Just Enough PLL Background …

Page 4: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

4M.H. Perrott

What is a Phase-Locked Loop (PLL)?

de BellescizeOnde Electr, 1932

e(t) v(t) out(t)ref(t)

VCO efficiently provides oscillating waveform with variable frequencyPLL synchronizes VCO frequency to input reference frequency through feedback- Key block is phase detector

Realized as digital gates that create pulsed signals

Analog

Loop FilterPhase

Detect

VCO

ref(t)

out(t)

e(t) v(t)

ref(t)

out(t)

e(t) v(t)

Page 5: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

5M.H. Perrott

Integer-N Frequency Synthesizers

Use digital counter structure to divide VCO frequency- Constraint: must divide by integer values

Use PLL to synchronize reference and divider output

Sepe and JohnstonUS Patent (1968)

Output frequency is digitally controlled

e(t) v(t) out(t)ref(t) Analog

Loop FilterPhase

Detect

VCO

ref(t)

div(t)

e(t) v(t)

Divider

N

Fout = N Fref

div(t)

Page 6: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

6M.H. Perrott

Fractional-N Frequency Synthesizers

Dither divide value to achieve fractional divide values- PLL loop filter smooths the resulting variations

Very high frequency resolution is achieved

WellsUS Patent (1984)

RileyUS Patent (1989)

JSSC ‘93

Kingsford-SmithUS Patent (1974)

e(t) v(t) out(t)ref(t) Analog

Loop FilterPhase

Detect

VCO

Divider

N[k]

Fout = M.F Fref

div(t)

Nsd[k] Σ−Δ

ModulatorM.F

ref(t)

div(t)

e(t) v(t)

Page 7: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

7M.H. Perrott

The Issue of Quantization Noise

Limits PLL bandwidthIncreases linearity requirements of phase detector

e(t) v(t) out(t)ref(t) Analog

Loop FilterPhase

Detect

VCO

Divider

N[k]

Fout = M.F Fref

div(t)

Nsd[k] Σ−Δ

ModulatorM.F

ref(t)

div(t)

e(t) v(t)

f

Σ−Δ Quantization Noise

Page 8: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

Striving for a Better PLL Implementation

Page 9: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

9M.H. Perrott

Analog Phase Detection

Pulse width is formed according to phase difference between two signalsAverage of pulsed waveform is applied to VCO input

out(t)ref(t) Analog

Loop FilterPhase

Detect

VCO

Reg

D Q

ref(t)

div(t)

phase errorD Q

reset

1

1

ref(t)

error(t)

div(t)

error(t)

Dividerdiv(t)

Page 10: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

10M.H. Perrott

Tradeoffs of Analog Approach

Benefit: average of pulsed output is a continuous, linear function of phase errorIssue: analog loop filter implementation is undesirable

ref(t)

div(t)

error(t)

Phase Detector

Characteristic

Phase Detector Signals

out(t)Analog

Loop FilterPhase

Detect

VCO

phase error

Av

era

ge

of

err

or(

t)

Divider

ref(t)

div(t)

Page 11: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

11M.H. Perrott

Issues with Analog Loop Filter

Charge pump: output resistance, mismatchFilter caps: leakage current, large area

out(t)ref(t) Analog

Loop FilterPhase

Detect

VCO

error(t)Icp

VoutCharge

Pump

Cint

Divider

Page 12: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

12M.H. Perrott

Going Digital …

Digital loop filter: compact area, insensitive to leakageChallenges: - Time-to-Digital Converter (TDC)- Digitally-Controlled Oscillator (DCO)

Staszewski et. al.,TCAS II, Nov 2003

out(t)ref(t) Analog

Loop FilterPhase

Detect

VCO

Time

-to-

Digital

out(t)ref(t) Digital

Loop Filter

DCO

Divider

Divider

Page 13: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

13M.H. Perrott

Outline of Talk

Overview of Key Blocks (TDC and DCO)Modeling & CAD ToolsHigh Performance TDC designQuantization Noise CancellationDCO based on an efficient passive DAC structureDivider DesignLoop Filter DesignPrototype with measured Results

Page 14: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

14M.H. Perrott

Time

-to-

Digital

out(t)ref(t) Digital

Loop Filter

DCO

div(t)

Reg

D Q

Delay

Reg

D Q

Reg

D Q

Delay Delay

ref(t)

e[k]

Dividerdiv(t)

ref(t)

div(t)

e[k]

1

1

1

0

0

Delay

Classical Time-to-Digital Converter

Resolution set by a “Single Delay Chain” structure- Phase error is measured with delays and registers

Corresponds to a flash architecture

Page 15: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

15M.H. Perrott

Time

-to-

Digital

out(t)ref(t) Digital

Loop Filter

DCODividerdiv(t)

ref(t)

div(t)

e[k]

1

1

1

0

0

Phase Detector

Characteristic

phase error

de

tec

tor

ou

tpu

t

Delay varies due to mismatch

Impact of Limited Resolution and Delay Mismatch

Integer-N PLL- Limit cycles due to limited resolution (unless high ref noise)

Fractional-N PLL- Fractional spurs due to non-linearity from delay mismatch

Page 16: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

16M.H. Perrott

Modeling of TDC

Phase error converted to time error by scale factor: T/2πTDC introduces quantization error: tq[k]TDC gain set by average delay per step: Δtdel

Time

-to-

Digital

out(t)ref(t) Digital

Loop Filter

DCO

quantizationerror

phaseerror[k]

e[k]

Phase DetectorCharacteristic

time error

de

tec

tor

ou

tpu

t

T

tq[k]

Dividerdiv(t)reference

period

T

TDCGain

1

Δtdel

Δtdel

1

Page 17: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

17M.H. Perrott

Time

-to-

Digital

out(t)ref(t) Digital

Loop Filter

DCODividerdiv(t)

Va

rac

tor

Va

rac

tor

Analog

Control

DAC

A Straightforward Approach for Achieving a DCO

Use a DAC to control a conventional LC oscillator- Allows the use of an existing VCO within a digital PLL- Can be applied across a broad range of IC processes

Ferriss ISSCC 2007Hsu ISSCC 2008

Page 18: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

18M.H. Perrott

A Much More Digital Implementation

Adjust frequency in an LC oscillator by switching in a variable number of small capacitors- Most effective for CMOS processes of 0.13u and below

Staszewski et. al.,TCAS II, Nov 2003

Time

-to-

Digital

out(t)ref(t) Digital

Loop Filter

DCODividerdiv(t)

Va

rac

tor

Va

rac

tor

Digital

Control

Page 19: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

19M.H. Perrott

Leveraging Segmentation in Switched Capacitor DCO

Similar in design as segmented capacitor DAC structures- Binary array: efficient control, but may lack monotonicity- Unit element array: monotonic, but complex control

Coarse and fine control segmentation of DCO- Coarse control: active only during initial frequency tuning

(leverage binary array)- Fine control: controlled by PLL feedback (leverage unit

element array to guarantee monotonicity)

Va

rac

tor

Va

rac

tor

1x 2x 4x 2nx

1x 1x 1x 1x

Binary Array

Unit Element Array

CoarseControl

FineControl

Page 20: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

20M.H. Perrott

Leveraging Dithering for Fine Control of DCO

Increase resolution by Σ−Δ dithering of fine cap arrayReduce noise from dithering by- Using small unit caps in the fine cap array- Increasing the dithering frequency (defined as 1/Tc)

We will assume 1/Tc = M/T (i.e. M times reference frequency)

Va

rac

tor

Va

rac

tor

CoarseControl

FineControl

InitialFrequency

Tuning

T

Divide-by-K

Tc=T/M

Digital Σ−Δ

Modulator

in[k] DigitalLoopFilter

ref(t)

out(t)

TDC outDCO

Page 21: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

21M.H. Perrott

Hntf(z)z=ej2πfTc

TcM2πKv

s

s=j2πf

in[k]

qraw[k]

Φout(t)

q[k]

PhaseNoise

ff

QuantizationNoise

Phase noise- Same as for

conventional VCO (tank Q, etc.)

Quantization noise from dithering- See Section 3

of Supplemental Slides

Calculation of Noise Spectrum: Switched Cap DCO

Va

rac

tor

Va

rac

tor

Digital

Control

Page 22: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

Modeling

Page 23: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

23M.H. Perrott

f

Stq(ej2πfT)

TDC-referredNoise

e[k]T

tq[k] TDCGain

1

Δtdel

Φref[k]

H(z)

LoopFilter

2πKv

s

Φn(t)

1

T

T

1

N

DT-CT

CT-DT

Φdiv[k]

Φout(t)

TDC DCO

Divider

SΦn(f)

-20 dB/dec

f

DCO-referredNoise

z=ej2πfT s=j2πf

Overall Digital PLL Model

TDC and DCO-referred noise influence overall phase noise according to associated transfer functions to outputCalculations involve both discrete and continuous time

Page 24: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

24M.H. Perrott

Key Transfer Functions

TDC-referred noise

DCO-referred noise

e[k]T

tq[k] TDCGain

1

Δtdel

Φref[k]

H(z)

LoopFilter

2πKv

s

Φn(t)

1

T

T

1

N

DT-CT

CT-DT

Φdiv[k]

Φout(t)

z=ej2πfT s=j2πf

Page 25: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

25M.H. Perrott

Define open loop transfer function A(f) as:

Define closed loop parameterizing function G(f) as:

- Note: G(f) is a lowpass filter with DC gain = 1

Introduce a Parameterizing Function

e[k]T

tq[k] TDCGain

1

Δtdel

Φref[k]

H(z)

LoopFilter

2πKv

s

Φn(t)

1

T

T

1

N

DT-CT

CT-DT

Φdiv[k]

Φout(t)

z=ej2πfT s=j2πf

Page 26: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

26M.H. Perrott

Transfer Function Parameterization Calculations

TDC-referred noise

DCO-referred noise

Page 27: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

27M.H. Perrott

e[k]T

tq[k] TDCGain

1

Δtdel

Φref[k]

H(z)

LoopFilter

2πKv

s

Φn(t)

1

T

T

1

N

DT-CT

CT-DT

Φdiv[k]

Φout(t)

z=ej2πfT s=j2πf

Key Observations

TDC-referred noiseLowpass with a DC

gain of 2πN

Highpass with a highfrequency gain of 1

DCO-referred noise

How do we calculate the output phase noise?

Page 28: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

28M.H. Perrott

Spectral Density Calculations

CT CT

DT DT

DT CT

CT CT

x[k]H(f)

y(t)

x[k]H(ej2πfT)

y[k]

x(t)H(f)

y(t)

DT DT

DT CT

Page 29: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

29M.H. Perrott

fofo2πN G(f) 1-G(f)

SΦn(f)

-20 dB/dec

f

DCO-referredNoise

f

TDC-referredNoise

tq[k] Φn(t)

Φout(t)

Stq(ej2πfT)

f

dBc/Hz

fo

G(f)2πNT1 2

Stq(ej2πfT)

SΦn(f)G(f)1-

2

Phase Noise Calculation

TDC noise- DT to CT calculation- Dominates PLL phase

noise at low frequency offsets

DCO noise- CT to CT calculation- Dominates PLL phase

noise at high frequency offsets

Page 30: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

30M.H. Perrott

Example Calculation for Delay Chain TDC

Note: G(f) = 1 at low offset frequencies

Ref freq = 1/T = 50 MHz, Out freq = 3.6 GHz

Inverter delay = Δtdel = 20 ps

fo

fo2πN G(f)

f

tq[k]

f

G(f)2πNT1 2 Δtdel

12

2

Δtdel

12

2

Stq(ej2πfT)

SΦout(f)

tdc

Page 31: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

CAD Tools

Page 32: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

32M.H. Perrott

Closed Loop PLL Design Approach

Classical open loop approach- Indirectly design G(f) using bode plots of A(f)

Proposed closed loop approach- Directly design G(f) by examining impact of its

specifications on phase noise (and settling time)- Solve for A(f) that will achieve desired G(f)

Implemented in PLL Design Assistant Software

Lau and Perrott, DAC, June 2003

Closed-LoopPerformance

Specifications

G(f)A(f)

1+A(f)=

A(f)G(f)

1-G(f)=

|A(f)| A(f)

{K,fp,fz, ...}

Open-LoopCharacteristics

Closed-LoopTransferFunction

G(f)

Open-LoopDesign

Approach

{fo, type, order}

Proposed Closed Loop Design Approach

http://www.cppsim.com

Page 33: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

33M.H. Perrott

Evaluate Phase Noise with 500 kHz PLL Bandwidth

Key PLL parameters:- G(f): 500 kHz BW, Type II, 2nd order rolloff- TDC noise: -94.7 dBc/Hz- DCO noise: -153 dBc/Hz at 20 MHz offset (3.6 GHz carrier)

Page 34: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

34M.H. Perrott

103

104

105

106

107

-160

-150

-140

-130

-120

-110

-100

-90

-80

-70

-60Output Phase Noise of Synthesizer

Frequency Offset (Hz)

L(f

) (d

Bc/H

z)

Detector NoiseVCO Noise Total Noise

GSM Mask(Referenced to

3.6 GHz carrier)

DCO Noise

TDC Noise

Overall PLLPhase Noise

Calculated Phase Noise Spectrum with 500 kHz BW

TDC noise too high for GSM mask with 500 kHz PLL bandwidth

Page 35: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

35M.H. Perrott

Change PLL Bandwidth to 100 kHz

Key PLL parameters:- G(f): 100 kHz BW, Type = 2, 2nd order rolloff- TDC noise: -94.7 dBc/Hz- DCO noise: -153 dBc/Hz at 20 MHz offset (3.6 GHz carrier)

Page 36: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

36M.H. Perrott

103

104

105

106

107

-160

-150

-140

-130

-120

-110

-100

-90

-80

-70

-60Output Phase Noise of Synthesizer

Frequency Offset (Hz)

L(f

) (d

Bc/H

z)

Detector NoiseVCO Noise Total Noise

GSM Mask(Referenced to

3.6 GHz carrier)

DCO Noise

TDC Noise

Overall PLLPhase Noise

Calculated Phase Noise Spectrum with 100 kHz BW

GSM mask is met with 100 kHz PLL bandwidth

Page 37: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

37M.H. Perrott

Loop Filter Design using PLL Design Assistant

PLL Design Assistant allows fast loop filter design- See Section 4 of Supplemental Slides

Assumption: Type = 2, 2nd order rolloff

- Where:

PLL Design Assistant provides the values of K, wp = 2πfp, wz = 2πfz

Page 38: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

38M.H. Perrott

Example Digital Loop Filter Calculation

Assumptions- Ref freq (1/T) = 50 MHz, Out freq = 3.6 GHz (so N = 72)- Δtdel = 20 ps, Kv = 12 kHz/unit cap- 100 kHz bandwidth, Type = 2 , 2nd order rolloff

Page 39: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

39M.H. Perrott

Verify Calculations Using C++ Behavioral Modeling

Schematic- Hierarchical

description of system topology

Code blocks- Specification

of modulebehaviorusing templatedC++ code

Behavioral environment allows efficient architectural investigation and validation of calculations- Fast simulation speed is essential for design investigation

PFDChargePump

Σ−Δ

Modulator

LoopFilter

Divider

CppSim Module

Description

Name

Inputs, Outputs

Parameters

Code

CppSim Module

Description

Name

Inputs, Outputs

Parameters

Code

1 D Q

R

1 D Q

R

Page 40: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

40M.H. Perrott

CppSim – A Fast C++ Behavioral Simulator

http://www.cppsim.com

Page 41: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

How Do We Improve TDC Performance?

Two Key Issues:• TDC resolution• Mismatch

Page 42: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

42M.H. Perrott

fofo2πN G(f) 1-G(f)

SΦn(f)

-20 dB/dec

f

DCO-referredNoise

f

TDC-referredNoise

tq[k] Φn(t)

Φout(t)

f

dBc/Hz

Stq(ej2πfT)

f

dBc/Hz

fofo

Low PLL Bandwidth High PLL Bandwidth

DCONoise

TDCNoise

TDCNoise DCO

Noise

PLL bandwidth dramatically influences relative impact of TDC and VCO noise

Want high PLL bandwidth?

Motivation

Need lowTDC Noise

Page 43: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

43M.H. Perrott

div(t)

Reg

D Q

Delay

Reg

D Q

Reg

D Q

Delay Delay

ref(t)

e[k]

ref(t)

div(t)

e[k]

1

1

1

0

0

Delay

div(t)

Reg

D Q

Delay

Reg

D Q

Reg

D Q

Delay Delay

ref(t)

e[k]Delay2 Delay2 Delay2

div(t)

Delay

ref(t)

Delay2

e[k]

1

1

1

0

0

Vernier

Improve Resolution with Vernier Delay Technique

Effective resolution:

Delay-Delay2

Page 44: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

44M.H. Perrott

div(t)

Reg

D Q

Delay

Reg

D Q

Reg

D Q

Delay Delay

ref(t)

e[k]Delay2 Delay2 Delay2

div(t)

Delay

ref(t)

Delay2

e[k]

1

1

1

0

0

Vernier

Issues with Vernier Approach

Mismatch issues are more severe than the single delay chain TDC- Reduced delay is formed as difference of two delays

Large measurement range requires large area- Initial PLL frequency acquisition may require a large range

Effective resolution:

Delay-Delay2

Page 45: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

45M.H. Perrott

Vernier

div(t)

ref(t)

Coarsee[k]

Delay Delay Delay

Delay2 Delay2 Delay2

Delay Delay Delay

Reg

D Q

Reg

D Q

Reg

D Q

Reg

D Q

Reg

D Q

Reg

D Q

Logic

Mux

Finee[k]

Single Delay Chain

Delay

Delay - Delay2

Two-Step TDC Architecture Allows Area Reduction

Single delay chain provides coarse resolution(Folded) Vernier provides fine resolution

Ramakrishnan, BalsaraVLSID ‘06

Page 46: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

46M.H. Perrott

Single Delay Chain

div(t)

ref(t)

Coarsee[k]

Delay Delay DelayDelay Delay Delay

Reg

D Q

Reg

D Q

Reg

D Q

Reg

D Q

Reg

D Q

Reg

D Q

Logic

Mux

Finee[k]

Single Delay Chain

Delay

Delay

Time

Amplifier

Amplificationof Time

Single delay chain provides coarse and fine resolutionTime amplification is used to improve resolution

Simplified view of: Lee, AbidiVLSI 2007

Two-Step TDC Using Time Amplification

Page 47: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

47M.H. Perrott

Leveraging Metastability to Create a Time Amplifier

Metastability leads to progressively slower output transitions as setup time on latch is encroached upon- Time difference at input is amplified at output

Simplified view of: Abas, et al., Electronic Letters, Nov 2002(note that actual implementation uses SR latch)

Time

AmplifierLatch

D Qin(t)

ref(t)

out(t)

ref(t)

in(t)

out(t)

ref(t)

in(t)

out(t)

ref(t)

Δtin Δtin

Δtout Δtout

in(t)out(t)

Page 48: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

48M.H. Perrott

Interpolating time-to-digital converter

Interpolate between edges to achieve fine resolutionCyclic approach can also be used for large range

Tstop

Start

Stop

Tq

Tin

1

1

1

1

1

Out

Stop

StartDelayDelayDelay

Registers

Out

1

0

Henzler et al., ISSCC 2008

Page 49: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

49M.H. Perrott

Ring OscillatorVdd

Counter

Register

Reset

Count[k]

e[k]

Osc(t)

e[k]

ref(t)

div(t)

Phase Error[1] Phase Error[2]

Logic

div(t)

ref(t)

Count[k]

3 3

An Oscillator-Based TDC

Output e[k] corresponds to the number of oscillator edges that occur during the measurement time windowAdvantages- Extremely large range can be achieved with compact area- Quantization noise is scrambled across measurements

Page 50: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

50M.H. Perrott

Ring OscillatorVdd

Counter

Register

Reset

Count[k]

e[k]

Osc(t)

e[k]

ref(t)

div(t)

Phase Error[1] Phase Error[2]

Logic

div(t)

ref(t)

Count[k]

3 3

Quant.Error[k]

q[1] q[3]

-q[0] -q[2]

A Closer Look at Quantization Noise Scrambling

Quantization error occurs at beginning and end of each measurement intervalAs a rough approximation, assume error is uncorrelated between measurements- Averaging of measurements improves effective resolution

Page 51: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

51M.H. Perrott

Deterministic quantizer error vs. scrambled error

Deterministic TDC do not provide inherent scramblingFor oversampling benefit, TDC error must be scrambled!Some systems provide input scrambling (ΔΣ fractional-N PLL), while some others do not (integer-N PLL)

Page 52: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

Proposed GRO TDC Structure

Page 53: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

53M.H. Perrott

Ring Oscillator

Counter

Register

Reset

Count[k]

e[k]

Osc(t)

e[k]

ref(t)

div(t)

Phase Error[1] Phase Error[2]

Logic

div(t)

ref(t)

Count[k]

3 4

Quant.Error[k]

q[1] q[2]

-q[0] -q[1]

Enable

A Gated Ring Oscillator (GRO) TDC

Enable ring oscillator only during measurement intervals- Hold the state of the oscillator between measurements

Quantization error becomes first order noise shaped!- e[k] = Phase Error[k] + q[k] – q[k-1]- Averaging dramatically improves resolution!

Page 54: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

54M.H. Perrott

Ring Oscillator

Register

Reset

Count[k]

e[k]

ref(t)

div(t)

Logic

Enable

Osc.Phases(t)

Count[k]

e[k] 11 10

Quant.Error[k]

q[1] q[2]

-q[1]

Phase Error[1] Phase Error[2]

div(t)

ref(t)

-q[0]

Counters

Raw resolution is set by inverter delayEffective resolution is dramatically improved by averaging

Helal, Straayer, Wei, Perrott VLSI 2007

Improve Resolution By Using All Oscillator Phases

Page 55: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

55M.H. Perrott

GRO TDC Also Shapes Delay Mismatch

Barrel shifting occurs through delay elements across different measurements- Mismatch between delay elements is first order shaped!

Enable

Enable

Enable

Enable

Measurement 1

Measurement 2

Measurement 3

Measurement 4

Page 56: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

56M.H. Perrott

Simple gated ring oscillator inverter-based core

Enabled Ring Oscillator Disabled Ring Oscillator

(a) (b)

Gate the oscillator by switchingthe inverter cores to the

power supply

Enable

Enable

Enable

VoiVoi-1

Delay Element

Vo4Vo1

Von

Vo2Vo3

Vo5

M4

M3

M2

M1

Von-1

Page 57: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

57M.H. Perrott

GRO Prototype

GRO implemented as a custom 0.13 μm CMOS IC

Straayer,Perrott

15 Stage Gated Ring Oscillator

enable(t)EnDis

Logic error[k]

enable

enable

S QR

Page 58: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

58M.H. Perrott

enable

enable

15 Stage Gated Ring Oscillator

enable(t)

Logic

S QR

error[k]

VariableDelay

Measured GRO Results Confirm Noise Shaping

0.01 0.1 1 10 100-30

-20

-10

0

10

20

30

40

Frequency (MHz)

Am

plit

ud

e (

dB

)

Noise shapedquant. noise

Harmonics dueto nonlinearity of

variable delay

Input variabledelay signal

Page 59: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

59M.H. Perrott

Measured deadzone behavior of inverter-based GRO

Deadzones were caused by errors in gating the oscillatorGRO “injection locked” to an integer ratio of FSBehavior occurred for almost all integer boundaries, and some fractional values as wellNoise shaping benefit was limited by this gating error

Page 60: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

60M.H. Perrott

Next Generation GRO: Multi-path oscillator concept

Use multiple inputs for each delay element instead of oneAllow each stage to optimally begin its transition based on information from the entire GRO phase state Key design issue is to ensure primary mode of oscillation

Single InputSingle Output

Multiple InputsSingle Output

Page 61: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

61M.H. Perrott

Multi-path inverter core

Lee, Kim, LeeJSSC 1997

Mohan, et. al., CICC 2005

Page 62: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

62M.H. Perrott

Proposed multi-path gated ring oscillator

Oscillation frequency near 2GHz with 47 stages…Reduces effective delay per stage by a factor of 5-6! Represents a factor of 2-3 improvement compared to previous multi-path oscillators

Hsu, Straayer, Perrott ISSCC 2008

Page 63: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

63M.H. Perrott

A simple measurement approach…

2 counters per stage * 47 stages = 94 counters each at 2GHz Power consumption for these counters is unreasonable

Need a more efficient way to measure the multi-path GRO

N-Stage Gated Ring Oscillator

ResetStart

Stop

Logic

Register

Count[k]

e[k]

Counters

Enable

Helal, Straayer, Perrott VLSI 2007

Page 64: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

64M.H. Perrott

Count Edges by Sampling Phase

Calculate phase from:- A single counter for coarse phase information (keeps track of

phase wrapping)- GRO phase state for fine count information

1 counter and N registers much more efficient

Page 65: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

65M.H. Perrott

Proposed Multi-Path Measurement Structure

Multi-path structure leads to ambiguity in edge positionPartition into 7 cells to avoid such ambiguity

Requires 7 counters rather than 1, but power still OK

Page 66: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

66M.H. Perrott

Prototype 0.13μm CMOS multi-path GRO-TDC

Timing

Generation

Out

Enable 47-stage

Gated Ring

Oscillator

State

Register

Start

Stop

Adder

Z1-47

Measurement

Cells

Start

Stop

Enable

CLK

CLK

1 72 3 4 5 6

Two implemented versions:- 8-bit, 500Msps- 11-bit, 100Msps version

2-21mW power consumption depending on input duty cycle

Straayer et al., VLSI 2008

Page 67: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

67M.H. Perrott

Measured noise-shaping of multi-path GRO

Data collected at 50MspsMore than 20dB of noise-shaping benefit80fsrms integrated error from 2kHz-1MHzFloor primarily limited by 1/f noise (up to 0.5-1MHz)

104 105 106 107

Frequency (Hz)

-100

-90

-80

-70

-60

-50

-40

Po

wer

Sp

ectr

al D

en

sit

y

(dB

ps

2/H

z)

65,536 pt. FFT(Hanning window + 20x averaging)

278.6

278.8

279.0

279.2TDC Output after 1MHz LPF

Filte

red

TD

C O

utp

ut

Time (µµs)

0 40 80 120 160 200

Noise of 80fsrms in 1MHz BW

Input of

1.2pspp

Ideal variance of

50-Msps quantizer

with 1ps steps

1.2ps

(a)(a) (b)

Page 68: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

68M.H. Perrott

Measured deadzone behavior for multi-path GRO

Only deadzones for outputs that are multiples of 2N- 94, 188, 282, etc.- No deadzones for other even or odd integers, fractional output

Size of deadzone is reduced by 10x

Page 69: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

The Issue of Quantization Noise Due to Divider Dithering

Page 70: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

70M.H. Perrott

The Nature of the Quantization Noise Problem

PFD LoopFilter

N/N+1

Ref Out

M-bit 1-bit

Div

ΔΣ

Modulator

Fout

Noise

FrequencySelection

FrequencySelection

OutputSpectrum

QuantizationNoise Spectrum

PLL dynamicsΔΣ

Increasing PLL bandwidth increases impact of ΔΣfractional-N noise- Cancellation offers a way out!

Page 71: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

71M.H. Perrott

Previous Analog Quantization Noise Cancellation

Phase error due to ΔΣ is predicted by accumulating ΔΣ quantization errorGain matching between PFD and D/A must be precise

Matching in analog domain limits performance

Page 72: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

72M.H. Perrott

Proposed All-digital Quantization Noise Cancellation

Scale factor determined by simple digital correlation Analog non-idealities such as DC offset are completely eliminated

Hsu, Straayer, PerrottISSCC 2008

Page 73: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

73M.H. Perrott

Details of Proposed Quantization Noise Cancellation

Correlator out is accumulated and filtered to achieve scale factor- Settling time chosen to be around

10 usSee analog version of this technique in Swaminathan et.al., ISSCC 2007

Page 74: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

74M.H. Perrott

Proposed Digital Wide BW Synthesizer

Gated-ring-oscillator (GRO) TDC achieves low in-band noiseAll-digital quantization noise cancellation achieves low out-of-band noiseDesign goals: - 3.6-GHz carrier, 500-kHz bandwidth- <-100dBc/Hz in-band, <-150 dBc/Hz at 20 MHz offset

Page 75: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

75M.H. Perrott

Overall Synthesizer Architecture

Note: Detailed behavioral simulation model available at http://www.cppsim.com

Page 76: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

76M.H. Perrott

Dual-Port LC VCO

Frequency tuning:- Use a small 1X varactor to minimize noise sensitivity- Use another 16X varactor to provide moderate range- Use a four-bit capacitor array to achieve 3.3-4.1 GHz range

Page 77: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

77M.H. Perrott

Digitally-Controlled Oscillator with Passive DAC

Goals of 10-bit DAC- Monotonic- Minimal active circuitry and no transistor bias currents- Full-supply output range

1X varactor minimizes noise sensitivity16X varactor provides moderate rangeA four-bit capacitor array covers 3.3-4.1GHz

Page 78: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

78M.H. Perrott

Operation of 10-bit Passive DAC (Step 1)

5-bit resistor ladder; 5-bit switch-capacitor arrayStep 1: Capacitors Charged- Resistor ladder forms VL = M/32•VDD and VH = (M+1)/32•VDD,

where M ranges from 0 to 31- N unit capacitors charged to VH, and (32-N) unit capacitors

charged to VL

Page 79: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

79M.H. Perrott

Operation of 10-bit Passive DAC (Step 2)

Step 2: Disconnect Capacitors from Resistors, Then Connect Together- Achieves DAC output with first-order filtering- Bandwidth = 32• Cu/(2π•Cload)•50MHz

Determined by capacitor ratioEasily changed by using different Cload

Page 80: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

80M.H. Perrott

Now Let’s Examine Divider …

Issues: - GRO range must span entire reference period during

initial lock-in

Page 81: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

81M.H. Perrott

Proposed Divider Structure

Resample reference with 4x division frequency- Lowers GRO range to one fourth of the reference period

Divide value =N0+N1+N2+N3

Page 82: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

82M.H. Perrott

Proposed Divider Structure (cont’d)

Place ΔΣ dithered edge away from GRO edge- Prevents extra jitter due to divide-value dependent delay

Page 83: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

83M.H. Perrott

Dual-Path Loop Filter

Step 1: resetStep 2: frequency acquisition- Vc(t) varies- Vf(t) is held at midpoint

Step 3: steady-state lock conditions- Vc(t) is frozen to take quantization noise away- ΔΣ quantization noise cancellation is enabled

Page 84: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

84M.H. Perrott

Fine-Path Loop Filter

Equivalent to an analog lead-lag filter- Set zero (62.5kHz) and first pole (1.1MHz) digitally- Set second pole (3.1MHz) by capacitor ratio

First-order ΔΣ reduces in-band quantization noise

Page 85: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

85M.H. Perrott

Linearized Model of PLL Under Fine-Tune Operation

Standard lead-lag filter topology but implemented in digital domain- Consists of accumulator plus feedforward path

e[k]T

TDCGain

1

Δtdel

Φref[k]

H(z)

LoopFilter

2πKv

s

1

T

T

1

Nnom

DT-CT

CT-DT

Φdiv[k]

Φout(t)

z=ej2πfT s=j2πf

V

2B

DACGain

K1

1

1-z-1

1

ΔΣ

1-α

1-αz-1K2 Gain

Accumulator

Gain

first-orderIIR

VCO

divider

Page 86: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

86M.H. Perrott

Same Technique Poses Problems for Coarse-Tune

DAC thermal noise impacts performance due to the higher coarse VCO gain- Can we somehow lower

the DAC bandwidth?

Page 87: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

87M.H. Perrott

Fix: Leverage the Divider as a Signal Path

Bypass to divider for feed-forward path allows coarse DAC bandwidth to be dramatically reduced!

Page 88: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

88M.H. Perrott

Linearized Model of PLL Under Coarse-Tune Operation

Routing of signal path into Sigma-Delta controlling the divider yields a feedforward path- Adds to accumulator path as both signals pass back

through the divider- Allows reduction of coarse DAC bandwidth

Noise impact of coarse DAC on VCO is substantially lowered

e[k]T

TDCGain

1

Δtdel

Φref[k]2πKvc

s

1

T

T

1

Nnom

DT-CT

CT-DT

Φdiv[k]

Φout(t)

s=j2πf

V

2B

DACGain

1

1-z-1

Accum. VCO

1

644

Kc 1-z-1

z-12π

Divider

1-α

1-αz-1

first-orderIIR

Page 89: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

89M.H. Perrott

Die Photo of Prototype

0.13-μm CMOSActive area: 0.95 mm2

Chip area: 1.96 mm2

VDD: 1.5VCurrent: - 26mA (Core)- 7mA (VCO output

buffer at 1.1V)

GRO-TDC:- 2.3mA- 157X252 um2

Page 90: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

90M.H. Perrott

Power Distribution of Prototype IC

Notice GRO and digital quantization noise cancellation have only minor impact on power (and area)

21.0mW (46%)

7.7mW (17%)

Digital

GRO-TDC

Ref. Buffer

DACDivider

VCO Pad Buffer

VCO 6.8mW (15%)

3.4mW (7%)

3.0mW

2.8mW

(7%)

(6%)

1.4mW (3%)

Total Power: 46.1mW

Page 91: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

91M.H. Perrott

Measured Phase Noise at 3.67GHz

Suppresses quantization noise by more than 15 dBAchieves 204 fs(0.27 degree) integrated noise (jitter)Reference spur: -65dBc

Page 92: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

92M.H. Perrott

103

104

105

106

107

−180

−160

−140

−120

−100

−80

−60

−40

dBc/

Hz

foffset

VCO NoiseFinepath ΣΔ Quantization NoiseFine−tune DAC ThermalCoarse−tune DAC ThermalDivider Noise (1% left)GRO NoiseRef NoiseClose−loop Noise

Calculation of Phase Noise Components

See wideband digital synthesizer tutorial available at http://www.cppsim.com

Page 93: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

93M.H. Perrott

-75

-70

-65

-60

-55

-50

3.62 3.63 3.64 3.65 3.66 3.67frequency (GHz)

Spur

(dB

c)

Measured Worst Spurs over Fifty Channels

16.2us

Tested from 3.620 GHz to 3.670 GHz at intervals of 1 MHz- Worst spurs observed close to integer-N boundary

(multiples of 50 MHz)-42dBc worst spur observed at 400kHz offset from boundary

Integer boundary(50MHz•73)

Page 94: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

94M.H. Perrott

Conclusions

Digital Phase-Locked Loops look extremely promising for future applications- Very amenable to future CMOS processes- Excellent performance can be achieved

Analysis of digital PLLs is similar to analog PLLs- PLL bandwidth is often chosen for best noise performance

TDC (or Ref) noise dominates at low frequency offsetsDCO noise dominates at high frequency offsets

Behavioral simulation tools such as CppSim allow architectural investigation and validation of calculationsTDC structures are an exciting research area- Ideas from A-to-D conversion can be applied

Innovation of future digital PLLs will involve joint circuit/algorithm development

Page 95: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

Supplemental Slides

Section 1: Digital Fractional-N Frequency Synthesizers

Page 96: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

96M.H. Perrott

Time

-to-

Digital

out(t)ref(t) Digital

Loop Filter

DCODividerdiv(t)

e[k]

N[k]

N[k] 45

out(t)

div(t)

ref(t)

e[k]

Constant divide value of N = 4 leads to frequency error- Phase error accumulates in unbounded manner

A First Glance at Fractional-N Signals (Fout = 4.25Fref )

Page 97: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

97M.H. Perrott

Time

-to-

Digital

out(t)ref(t)Digital

Loop Filter

DCO

div(t)

cnt[k]

out(t)

ref(t)

e[k]

45

Reg countcnt[k]

resetRe-timeref(t) signal

Reg

e[k]

div(t)

Phase

Unwrap

Reg

TI Approach to Fractional Division

Wrap e[k] by feeding delay chain in TDC with out(t)Counter provides information of when wrapping occurs

Staszewskiet. al.,

TCAS II, Nov 2003

Page 98: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

98M.H. Perrott

Key Issues

Counter, re-timing register, and delay stages of TDC must operate at very high speeds- Power consumption can be an issue

Calibration of TDC scale factor required to achieve proper unwrapping of e[k]- Can be achieved continuously with relative ease

See Staszewski et. al, JSSC, Dec 2005

Time

-to-

Digital

out(t)ref(t)Digital

Loop Filter

DCO

div(t)

Reg countcnt[k]

resetRe-timeref(t) signal

Reg

e[k]Phase

Unwrap

Reg

Page 99: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

99M.H. Perrott

Accum4.25

Time

-to-

Digital

out(t)ref(t) Digital

Loop Filter

DCODividerdiv(t)

e[k]

N[k]

N[k] 45

out(t)

div(t)

ref(t)

e[k]

Fractional-N Synthesizer Approach (Fout = 4.25Fref )

Accumulator guides the “swallowing” of VCO cycles- Average divide value of N = 4.25 is achieved in this case

Page 100: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

100M.H. Perrott

The Accumulator as a Phase “Observer”

Accumulator residue corresponds to an estimate of the instantaneous phase error of the PLL- Fractional value (i.e., 0.25) yields the slope of the residue

Carry out signal is asserted when the phase error deviation (i.e. residue) exceeds one VCO cycle- Carry out signal accurately predicts when a VCO cycle

should be “swallowed”

Time

-to-

Digital

out(t)ref(t) Digital

Loop Filter

DCODividerdiv(t)

e[k]

AccumN.Frac = 4.25 Residue

CarryOut

Frac=0.25

Carry Out

Page 101: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

101M.H. Perrott

Improve Dithering Using Sigma-Delta Modulation

Provides improved noise performance over accumulator-based divide value dithering- Dramatic reduction of spurious noise- Noise shaping for improved in-band noise- Maintains bounded phase error signal

Digital Σ−Δ fractional-N synthesizer architecture is directly analogous to analog Σ−Δ fractional-N synth.

Time

-to-

Digital

out(t)ref(t) Digital

Loop Filter

DCODividerdiv(t)

e[k]

N[k]Σ−Δ Modulator M.F

Nsd[k]

f

Σ−Δ QuantizationNoise

Page 102: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

102M.H. Perrott

f

Stq(ej2πfT)

TDC-referredNoise

e[k]T

tq[k] TDCGain

1

Δtdel

Φref[k]

H(z)

LoopFilter

2πKv

s

Φn(t)

1

T

T

1

Nnom

DT-CT

CT-DTΦdiv[k]

Φout(t)

TDC DCO

Divider

SΦn(f)

-20 dB/dec

f

DCO-referredNoise

z=ej2πfT s=j2πf

1-z-1

z-1

z=ej2πfT

n[k]

f

Sq(ej2πfT)

Σ−Δ QuantizationNoise

Model of Digital Σ−Δ Fractional-N PLL

Divider model is expanded to include the impact of divide value variations

Page 103: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

103M.H. Perrott

fofo2πNnomG(f) 1-G(f)

SΦn(f)

-20 dB/dec

f

DCO-referredNoise

f

TDC-referredNoise

tq[k] Φn(t)

Φout(t)

Stq(ej2πfT)

f

dBc/Hz

fo

G(f)2πNnomT1 2

Stq(ej2πfT)

SΦn(f)G(f)1-

2

fo

T G(f)f

Sq(ej2πfT)

Σ−Δ QuantizationNoise

1-z-1

z-1n[k]

z=ej2πfT

G(f)2πT

T1

2

Sq(ej2πfT)1-e-j2πfT

Transfer Function View of Digital Σ−Δ Fractional-N PLL

Σ−Δ quantization noise now impacts the overall PLL phase noise- High PLL

bandwidth will increase its impact

Digital PLL implementation simplifies quantization noise cancellation

See: Hsu, Straayer, PerrottJSSC Dec 2008 for details

Page 104: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

104M.H. Perrott

For More Information on Digital Fractional-N PLLs

Check out the CppSim tutorial:- Design of a Low-Noise Wide-BW 3.6GHz Digital Σ−Δ Fractional-N

Frequency Synthesizer Using the PLL Design Assistant and CppSim

www.cppsim.com

Page 105: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

Supplemental Slides

Section 2: DCO Modeling

Page 106: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

106M.H. Perrott

Leveraging Dithering for Fine Control of DCO

Increase resolution by Σ−Δ dithering of fine cap arrayReduce noise from dithering by- Using small unit caps in the fine cap array- Increasing the dithering frequency (defined as 1/Tc)

We will assume 1/Tc = M/T (i.e. M times reference frequency)

Va

rac

tor

Va

rac

tor

CoarseControl

FineControl

InitialFrequency

Tuning

T

Divide-by-K

Tc=T/M

Digital Σ−Δ

Modulator

in[k] DigitalLoopFilter

ref(t)

out(t)

TDC outDCO

Page 107: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

107M.H. Perrott

Time-Domain Modeling of the DCO

Input to the DCO is supplied by the loop filter- Clocked at 1/T (i.e., reference frequency)

Switched capacitors are dithered by Σ−Δ at a higher rate- Clocked at 1/Tc = M/T- Held at a given setting for duration Tc

Fine cap element value determines Kv of VCO- Units of Kv are Hz/unit cap

Digital Σ−Δ

Modulator

in[k]

Zero-OrderHold

tTc

1

0

m m

inq[m]

t

Tc

1

Kv

Frequencyto Phase

incap(t) Φout(t)

in[k] inq[m] incap(t)

t

Tc

Φout(t)

fcap(t)

Σ−Δ

insd[m]

M

Upsampler

k

insd[m]

Page 108: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

108M.H. Perrott

Frequency Domain Modeling of DCO

Upsampler and zero-order hold correspond to discrete and continuous-time sinc functions, respectivelyΣ−Δ has signal and noise transfer functions (Hstf(z), Hntf(z))- Note: var(qraw[k]) = 1/12 (uniformly distributed from 0 to 1)

f1/Tc

Tc

0

Zero-OrderHold

Digital Σ−Δ

Modulator

in[k]

Zero-OrderHold

tTc

1

0

inq[m]

Kv

Frequencyto Phase

incap(t) Φout(t)

fcap(t)

Σ−Δ

insd[m]

M

Upsampler

f1/MTc

M

0

Upsamplerby M

Hntf(z)

Hstf(z)in[k]

Conversionto Phase

2πKv

s

s=j2πfz=ej2πfTc

Digital Σ−Δ

Modulator

Φout(t)

qraw[k]

Page 109: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

109M.H. Perrott

Simplification of the DCO Model

Focus on low frequencies for calculations to follow- Assume sinc functions are relatively flat at the low

frequencies of interestUpsampler is approximated as a gain of MZero-order hold is approximated as a gain of Tc

Assume Hstf(z) = 1- True for Σ−Δ structures such as MASH (ignoring delays)

f1/Tc

Tc

0

Zero-OrderHold

f1/MTc

M

0

Upsamplerby M

Hntf(z)

Hstf(z)in[k]

Conversionto Phase

2πKv

s

s=j2πfz=ej2πfTc

Digital Σ−Δ

Modulator

Φout(t)

TcM

1

qraw[k]

Page 110: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

110M.H. Perrott

Hntf(z)z=ej2πfTc

TcM2πKv

s

s=j2πf

in[k]

qraw[k]

Φout(t)

q[k]

PhaseNoise

ff

QuantizationNoise

T2πKv

s

s=j2πf

Φout(t)in[k]

DT-CTΦn(t)

DCO-ReferredNoise

SΦn(f)

f

Further Simplification of DCO Model

Proper design of DCO will yield quantization noise that is below that of the intrinsic phase noise (set by tank Q, etc.)- Assume q[k] = 0 for

simplified modelNote that T = MTc

Page 111: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

Supplemental Slides

Section 3: Derivation of VCO Quantization Noise Due to Capacitor Dithering

Page 112: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

112M.H. Perrott

Hntf(z)z=ej2πfTc

TcM2πKv

s

s=j2πf

in[k]

qraw[k]

Φout(t)

q[k]

PhaseNoise

ff

QuantizationNoise

Calculation of Quantization Noise from Cap Dithering

DT to CT spectral calculation:

- Sqraw(f) = 1/12 since qraw[k] uniformly distributed from 0 to 1

- Hntf(z) is often 1-z-1 (first order) or (1-z-1)2 (second order)

Page 113: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

113M.H. Perrott

Example Calculation for DCO Quantization Noise

At a frequency offset of f = 20 MHz:

Assumptions (Out freq = 3.6 GHz)- Dithering frequency is 200 MHz (i.e., 1/Tc = 200e6)- Σ−Δ has first order shaping (i.e., Hntf(z) = 1 - z-1)- Fine cap array yields 12 kHz/unit cap (i.e., Kv = 12e3)

Below the phase noise (-153 dBc/Hz at 20 MHz) in the example

Page 114: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

Supplemental SlidesSection 4: Derivation of Discrete-Time Loop Filter

Parameterization based on Continuous-Time Specifications

Page 115: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

115M.H. Perrott

Transfer Function Design using PLL Design Assistant

PLL Design Assistant assumes continuous-time open loop transfer function Acalc(s):

Above parameters are calculated based on the desired closed loop PLL bandwidth, type, and order of rolloff (which specify G(s))For 100 kHz bandwidth, type = 2, 2nd order rolloff, we have:- K = 3.0x1010

- wp = 2π(153 kHz)- wz = 2π(10 kHz)

Page 116: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

116M.H. Perrott

e[k]T

tq[k] TDCGain

1

Δtdel

Φref[k]

LoopFilter

2πKv

s

Φn(t)

1

T

T

1

N

DT-CT

CT-DTΦdiv[k]

Φout(t)

z=esT s=j2πf

H(z)

Continuous-Time Approximation of Digital PLL

Resulting continuous-time approximation of open loop transfer function of digital PLL:

At low frequencies (i.e., |sT| << 1), we can use the first order term of a Taylor series expansion to approximate

Page 117: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

117M.H. Perrott

Applying PLL Design Assistant to Digital PLL Design

Given the continuous-time approximation of A(s), we then leverage the PLL Design Assistant calculation:

- Also note that:

Given the above, we obtain:

Page 118: Tutorial on Digital Phase-Locked Loops - CppSim · M.H. Perrott 2 Why Are Digital Phase-Locked Loops Interesting? Performance is important-Phase noise can limit wireless transceiver

118M.H. Perrott

Simplified form with type = 2 (assume order = 2)

Simplified Form for Digital Loop Filter (Type II PLL)

From previous slide:

- Where:

* Typically implemented by gain normalization circuit*

Note:Tdco= T/N