Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop...

75
M.H. Perrott High Speed Communication Circuits and Systems Lecture 18 Design and Simulation of Frequency Synthesizers Michael H. Perrott April 9, 2004 Copyright © 2004 by Michael H. Perrott All rights reserved. 1

Transcript of Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop...

Page 1: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. Perrott

High Speed Communication Circuits and SystemsLecture 18

Design and Simulation of Frequency Synthesizers

Michael H. PerrottApril 9, 2004

Copyright © 2004 by Michael H. PerrottAll rights reserved.

1

Page 2: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Outline

Closed-Loop Design of Frequency Synthesizers- Introduction- Background on Classical Open Loop Design Approach- Closed Loop Design Approach- Example and Verification- Conclusion

Fast and Accurate Simulation of Frequency Synthesizers- Introduction- Difficulties of Traditional Approaches- Proposed Method- Example and Verification- Conclusion

2

Page 3: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Fractional-N Frequency Synthesizer

PFD ChargePump

Nsd[m]

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

div(t)

Σ−ΔModulator

v(t)

N[m]

LoopFilter

Divider

VCO

Focus on this architecture since it is essentially a “super set” of other synthesizers, including integer-N and fractional-N- If we can design and simulate this structure, we can also

do so for classical integer-N designs

3

Page 4: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Frequency-domain Model

Φdiv[k]

Φref[k] KV

jf

v(t) Φout(t)H(f)

1Nnom

2π z-1

z=ej2πfT1 - z-1n[k]

T1

Φd[k]

T2π

e(t)

PFD

Divider

LoopFilterC.P. VCO

α

Tristate: α=1XOR: α=2

Icp

See Perrott et. al. JSSC, Aug. 2002 for details

Closed loop dynamics parameterized by

4

Page 5: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Review of Classical Design Approach

Given the desired closed-loop bandwidth, order, and system type: 1. Choose an appropriate topology for H(f) Depends on order, type

2. Choose pole/zero values for H(f) as appropriate for the required bandwidth

3. Adjust the open-loop gain to achieve the required bandwidth while maintaining stability Plot gain and phase bode plots of A(f) Use phase (or gain) margin criterion to infer

stability

5

Page 6: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Example: First Order, Type I with Parasitic Poles

-90o

-315o

-165o

-180o

-240o

20log|A(f)|

ffp3

\A(f)

Open loopgain

increased

0 dB

PM = 51o for B

PM = -12o for C

PM = 72o for A

Non-dominantpoles

Dominantpole pair

ABC

B

A

A

B

C

C

Evaluation ofPhase Margin

Closed Loop PoleLocations of G(f)

fp fp2

Re(s)

Im(s)

0

6

Page 7: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

First Order, Type I: Frequency and Step Responses

0 dB

Closed Loop Frequency Response

Frequency

A

B

C

0

1

Closed Loop Step Response

Time

2

A

B

C

7

Page 8: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Constrained for applications which require precise filter response

Complicated once parasitic poles are taken into account

Poor control over filter shape Inadequate for systems with third order rolloff- Phase margin criterion based on second order systems

Closed loop design approach: Directly design G(f) by specifying dominant pole and zero locations on the s-plane (pole-zero diagram)

Limitations of Open Loop Design Approach

8

Page 9: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Closed Loop Design Approach: Overview

G(f) completely describes the closed loop dynamics- Design of this function is the ultimate goal

Instead of indirectly designing G(f) using plots of A(f), solve for G(f) directly as a function of specification parameters

Solve for A(f) that will achieve desired G(f) Account for the impact of parasitic poles/zeros

Performance

Specifications

{type, fo, ...}

|A(f)|

\A(f)

{K, fzA, fpA, ...}

G(f)

{fz , fp , ...}

A(f)

1+A(f)G(f) =

Open Loop

Design

Approach

Closed Loop Design ApproachClosed Loop Design Approach

G(f)

1-1-G(f)A(f) ) =

9

Page 10: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Closed Loop Design Approach: Implementation

Download PLL Design Assistant Software at http://www-mtl.mit.edu/research/perrottgroup/tools.html

Read accompanying manual Algorithm described by C.Y. Lau et. al. in “Fractional-N

Frequency Synthesizer Design at the Transfer Function Level Using a Direct Closed Loop Realization Algorithm”, Design Automation Conference, 2003

10

Page 11: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Definition of Bandwidth, Order, and Shape for G(f)

Bandwidth – fo- Defined in asymptotic manner as shown Order – n- Defined according to the rolloff characteristic of G(f)

Shape- Defined according to standard filter design

methodologies Butterworth, Bessel, Chebyshev, etc.

fo f

rolloff =-20n

dB/decadeG(f)(dB)

0

11

Page 12: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Definition of Type

Type I: one integrator in PLL open loop transfer function- VCO adds on integrator- Loop filter, H(f), has no integrators

Type II: two integrators in PLL open loop transfer function- Loop filter, H(f), has one integrator

N

Φref(t) Φout(t)

Φdiv(t)

e(t) v(t)H(f) Kv

jfα2π

1

Loop FilterPFD

VCO

Divider

Tristate: α=1XOR-based: α=2

12

Page 13: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Loop Filter Transfer Function Vs Type and Order of G(f)

Practical PLL implementations limited to above- Prohibitive analog complexity for higher order, type

Open loop gain, K, will be calculated by algorithm- Loop filter gain related to open loop gain as shown above

KLP

1+s/wp

KLP

1+s/(wpQp)+(s/wp)2

KLP KLP1+s/wz

s

KLP1+s/wz

s(1+s/wp)

KLP(1+s/wz)

s(1+s/(wpQp)+(s/wp)2)

Type I Type II

Order 1

Order 2

Order 3

where KLP = Nnom

KvIcpαK

Calculated from software

H(s) Topology For Different Type and Orders of G(f)

13

Page 14: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Passive Topologies to Realize a Second Order PLL

DAC is used for Type I implementation to coarsely tune VCO- Allows full range of VCO to be achieved

Vout

C1 R1

Iin

DACIdac

Vout

C1C2

R1

Iin

Vout

Iin

R1

1+sR1C1= Vout

Iin

1s(C1+C2)

=1+sR1C2

1+sR1C||

Type I, Order 2 Type II, Order 2

14

Page 15: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Passive Topologies to Realize a Third Order PLL

Inductor is necessary to create a complex pole pair- Must be implemented off-chip due to its large value

Vout

C1 R1

L1Iin

DACIdac

Vout

C1C2

R1

L1Iin

Vout

Iin

R1

1+sR1C1+s2L1C1=

where C||= C1C2/(C1+C2)

Vout

Iin

1

s(C1+C2)=

1+sR1C2

1+sR1C||+s2L1C||

Type I, Order 3 Type II, Order 3

15

Page 16: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Problem with Passive Loop Filter Implementations

Large voltage swing required at charge pump output- Must support full range of VCO input

Non-ideal behavior of inductors (for third order G(f) implementations)- Hard to realize large inductor values- Self resonance of inductor reduces high frequency

attenuationCp

L1

L1

Alternative: active loop filter implementation

16

Page 17: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Guidelines for Active Loop Filter Design

Use topologies with unity gain feedback in the opamp- Minimizes influence of

opamp noise

Vnoise,in

Vref

Vout

R1 R2

2

Set nominalvoltage to Vref

Vout

LevelShift

Element

Use currentto achievelevel shift

Perform level shifting in feedback of opamp- Fixes voltage at charge

pump output

Prevent fast edges from directly reaching opamp inputs- Will otherwise cause opamp to be driven into nonlinear

region of operation17

Page 18: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Active Topologies To Realize a Second Order PLL

Follows guidelines from previous slide Charge pump output is terminated directly with a high

Q capacitor- Smooths fast edges from charge pump before they

reach the opamp input(s)

Vout

R2

R1

DAC

Iin

Idac

C1

Vref

Vout

C1

C3

C2

R1

Iin

Iin

Vref

Vref

Vout

Iin

R1

1+sR1C1= Vout

Iin

1+sR1(C1+C2+C3)=

sC2(1+sR1C1)

Type I, Order 2 Type II, Order 2

18

Page 19: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Follows active implementation guidelines from a few slides ago

Vout

C1

C2

R1 R2

Iin

Vref

DACIdac

Vout

C1

C2

C3R1 R2

Iin

Vref

Vout

Iin

-R2

1+s(R1+R2)C2+s2R1R2C1C2=

Vout

Iin

-1

s(C1+C2)=

1+sR2C3

1+sC||(R1(1+C1/C3)+R2)+s2R1R2C1C||

where C||= C2C3/(C2+C3)

Type I, Order 3 Type II, Order 3

Active Topologies To Realize a Third Order PLL

19

Page 20: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Example Design

Type II, 3rd order, Butterworth, fo = 300kHz, fz/fo = 0.125- No parasitic poles

Required loop filter transfer function can be found from table:

20

Page 21: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Use PLL Design Assistant to Calculate Parameters

21

Page 22: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Resulting Step Response and Pole/Zero Diagram

22

Page 23: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Impact of Open Loop Parameter Variations

Open loop parameter variations can be directly entered into tool

23

Page 24: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Resulting Step Responses and Pole/Zero Diagrams

Impact of variations on the loop dynamics can be visualized instantly and taken into account at early stage of design

24

Page 25: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Design with Parasitic Pole

K, fp and Qp are adjusted to obtain the same dominant pole locations

Include a parasitic pole at nominal value fp1 = 1.2MHz

25

Page 26: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Noise Estimation

Phase noise plots can be easily obtained- Jitter calculated by integrating over frequency range

26

Page 27: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Calculated Versus Simulated Phase Noise Spectrum

Simulated Phase Noise of SD Freq. Synth.

104

Frequency Offset (Hz)105 106 107 108180

160

140

120

100

80

60

L(f)

(dB

c/H

z)

Without parasitic pole:

180

160

140

120

100

80

60Output Phase Noise of Synthesizer

L(f)

(dB

c/H

z)

SD Noise Detector NoiseVCO Noise Total Noise Simulated Noise

104

Frequency Offset (Hz)105 106 107 108

RMS jitter = 13.791ps

27

Page 28: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Calculated Versus Simulated Phase Noise Spectrum

104180

160

140

120

100

80

60Simulated Phase Noise of SD Freq. Synth.

Frequency Offset from Carrier (Hz)

L(f)

(dB

c/H

z)

105 106 107 108

With parasitic pole at 1.2 MHz:

104180

160

140

120

100

80

60Output Phase Noise of Synthesizer

Frequency Offset (Hz)

L(f)

(dB

c/H

z)

SD Noise Detector NoiseVCO Noise Total Noise

105 106 107 108

Simulated Noise

RMS jitter = 14.057ps

28

Page 29: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Noise under Open Loop Parameter Variations

Impact of open loop parameter variations on phase noise and jitter can be visualized immediately

SD Noise Detector NoiseVCO Noise Total Noise

Output Phase Noise of Synthesizer

180

160

140

120

100

80

60

L(f)

(dB

c/H

z)

104

Frequency Offset (Hz)105 106 107 108

RMS jitter = 11.678ps (min), 18.211ps (max)

29

Page 30: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Conclusion

New closed loop design approach facilitates: - Accurate control of closed loop dynamics

Bandwidth, Order, Shape, Type - Straightforward design of higher order PLL’s- Direct assessment of impact of parasitic poles/zeros

Techniques implemented in a GUI-based CAD tool

Beginners can quickly come up to speed in designing PLL’s

Experienced designers can quickly evaluate the performance of different PLL configurations

30

Page 31: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. Perrott

Simulation of Frequency Synthesizers

31

Page 32: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Impact of Synthesizer Noise

Noise must be low to meet transmit mask requirement

Noise must be low to meet receiver SNR and blocking requirements

ChannelSelect

DigitalBaseband

D/A

ChannelSelect

DigitalBaseband

A/DRF Out RF In

Wireless Transmitter Wireless Receiver

FrequencySynthesizer

FrequencySynthesizer

TransmitterChannel

f

SynthesizerNoise

ReceiverChannel

f

SynthesizerNoise

32

Page 33: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Impact of Synthesizer Dynamic Behavior

Settling time must be fast to support channel hopping requirements

ChannelSelect

DigitalBaseband

D/A

ChannelSelect

DigitalBaseband

A/DRF Out RF In

Wireless Transmitter Wireless Receiver

FrequencySynthesizer

FrequencySynthesizer

TransmitterChannel

fReceiverChannel

f

33

Page 34: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

What Do We Want From a Simulator?

Accurate estimation of synthesizer performance- Noise spectral density- Dynamic behavior

Fast computation to allow use in IC design flow Simple to use- C++, Verilog, Matlab

34

Page 35: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Background Information

35

Page 36: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Integer-N Frequency Synthesizer

VCO produces high frequency sine wave Divider divides down VCO frequency PFD compares phase of ref and div Loop filter extracts phase error information

Poor frequency resolution

PFD ChargePump

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

N

LoopFilter

DividerVCO

ref(t)

div(t)

Fout = N FrefFref

36

Page 37: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Fractional-N Frequency Synthesis

Divide value is dithered between integer values Fractional divide values can be realized!

Very high frequency resolution

PFD ChargePump

Nsd[m]

out(t)e(t)

DitheringModulator

v(t)

N[m]

LoopFilter

DividerVCO

ref(t)

div(t)

MM+1

Fout = M.F Fref

M.F

Fref

37

Page 38: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Fractional-N Frequency Synthesis

Dither using a modulator Quantization noise is shaped to high frequencies

PFD ChargePump

Nsd[m]

out(t)e(t)

Σ−ΔModulator

v(t)

N[m]

LoopFilter

DividerVCO

ref(t)

div(t)

MM+1

Fout = M.F Fref

f

Σ−ΔQuantization

Noise

Fref

38

Page 39: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Other Noise Sources

Charge pump noise VCO noise

PFD ChargePump

Nsd[m]

out(t)e(t)

Σ−ΔModulator

v(t)

N[m]

LoopFilter

DividerVCO

ref(t)

div(t)

MM+1

M.F

f

Σ−ΔQuantization

Noise

f

ChargePumpNoise

f

VCONoise

-20 dB/dec

39

Page 40: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Problems with Current Simulators

40

Page 41: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Problem 1: Classical Simulators are Slow

High output frequency High sample rate Long time constants Long time span for transients

Large number of simulation time steps required

PFD ChargePump

Nsd[m]

out(t)e(t)

Σ−ΔModulator

v(t)

N[m]

LoopFilter

DividerVCO

ref(t)

div(t)

10-100 kHz

MM+1

1-10 GHz

41

Page 42: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Problem 2: Classical Simulators Are Inaccurate

PFD output is not bandlimited- PFD output must be simulated in discrete-time

Phase error is inaccurately simulated Non-periodic dithering of divider complicates matters

PFD ChargePump

Nsd[m]

out(t)e(t)

Σ−ΔModulator

v(t)

N[m]

LoopFilter

DividerVCO

ref(t)

div(t)

MM+1

42

Page 43: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Example: Classical Constant-Time Step Method

Directly sample the PFD output according to the simulation sample period- Simple, fast, readily implemented in Matlab, Verilog, C++

Issue – quantization noise is introduced- This noise overwhelms the PLL noise sources we are

trying to simulate

PFDe(t)ref(t)

e(t)t

e[n]n

Sample Period = Ts(Johns and Martin,Analog Integrated Circuit Design)

43

Page 44: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Alternative: Event Driven Simulation

Set simulation time samples at PFD edges- Sample rate can be lowered to edge rate!

PFDe(t)ref(t)

Sample Period Non-constant

e(t)t

e[n]n

Tk Tk+1(Smedt et al, CICC ’98,Demir et al, CICC ’94,Hinz et al, Circuits and Systems ’00)

44

Page 45: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Issue: Simulation of Filter Blocks is Complicated

Filtering computation must deal with non-constant time step- Closed-form calculation is tedious- Iterative computation is time-consuming

Complicates Verilog, Matlab, or C++ implementation

Sample Period Non-constant

e(t)e(t)

t

e[n]n

Tk Tk+1

tLoop Filter

h(t)v(t)

45

Page 46: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Is there a better way?

46

Page 47: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Proposed Approach: Use Constant Time Step

Straightforward CT to DT transformation of filter blocks- Use bilinear transform or impulse invariance methods

Overall computation framework is fast and simple- Simulator can be based on Verilog, Matlab, C++

e(t)

tLoop Filter

h(t)

v(t)e(t)

t

1

0

e[n]

n

Loop Filter

Ts v[n]h[n] = Ts h(Tsn)

Ts

47

Page 48: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Problem: Quantization Noise at PFD Output

Edge locations of PFD output are quantized- Resolution set by time step: Ts

Reduction of Ts leads to long simulation times

e(t)

tLoop Filter

h(t)

v(t)e(t)

t

1

0

εTs Ts/2

e[n]

n

Loop Filter

Ts v[n]h[n] = Ts h(Tsn)

48

Page 49: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Proposed Approach: View as Series of Pulses

Area of each pulse set by edge locations Key observations:- Pulses look like impulses to loop filter- Impulses are parameterized by their area and time offset

e(t)

tLoop Filter

h(t)

v(t)

e(t)

e(t)t

t

1

0

1

0

εTs Ts/2

area = εarea = Ts/2

e[n]

n

Loop Filter

Ts v[n]h[n] = Ts h(Tsn)

49

Page 50: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Proposed Method

Set e[n] samples according to pulse areas- Leads to very accurate results

Mathematical analysis given in paper- Fast computation

e(t)

tLoop Filter

h(t)

v(t)

e(t)

e(t)t

t

e[n]n

1

0

1

0

1

0

εTs Ts/2

area = εarea = Ts/2

ε/Ts1/2e[n]

n

Loop Filter

Ts v[n]h[n] = Ts h(Tsn)

50

Page 51: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Implementation Overview

Compute transition values in VCO block

PFD ChargePump

Nsd[n]

out[n]e[n]

Σ−ΔModulator

v[n]

N[n]

LoopFilter

DividerVCO

ref[n]

div[n]

(Assume VCO outputis a square-wavefor this discussion)

51

Page 52: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Calculation of Transition Values

Model VCO based on its phase

v[n]

VCO

out[n]

π

Φvco(t)

t

εk

out[n]

n

52

Page 53: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Calculation of Transition Values

Determine output transition time according to phase

v[n]

VCO

out[n]

π

Φvco(t)

t

Φ[k]

Φ[k-1]

out(t)

εk

πout[n]

n

53

Page 54: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Calculation of Transition Values

Use first order interpolation to determine transition value

v[n]

VCO

out[n]

π

Φvco(t)

tεk Φ[k]-Φ[k-1]π-Φ[k-1]

=

Φ[k]

Φ[k-1]

out(t)

out[n] n

εk

π

2 -1

out[n]

εk

n

54

Page 55: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Implementation Overview

Compute transition values in VCO block Pass transition information in Divider block

PFD ChargePump

Nsd[n]

out[n]e[n]

Σ−ΔModulator

v[n]

N[n]

LoopFilter

DividerVCO

ref[n]

div[n]

55

Page 56: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Implementation Overview

Compute transition values in VCO block Pass transition information in Divider block Compute transition values for PFD output

PFD ChargePump

Nsd[n]

out[n]e[n]

Σ−ΔModulator

v[n]

N[n]

LoopFilter

DividerVCO

ref[n]

div[n]

56

Page 57: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Implementation Overview

Compute transition values in VCO block Pass transition information in Divider block Compute transition values for PFD output Compute Filter output

PFD ChargePump

Nsd[n]

out[n]e[n]

Σ−ΔModulator

v[n]

N[n]

LoopFilter

DividerVCO

ref[n]

div[n]

57

Page 58: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Implementation Overview

Compute transition values in VCO block Pass transition information in Divider block Compute transition values for PFD output Compute Filter output

PFD ChargePump

Nsd[n]

out[n]e[n]

Σ−ΔModulator

v[n]

N[n]

LoopFilter

DividerVCO

ref[n]

div[n]

58

Page 59: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Computation of PFD Output

Goal: compute transition information in terms of primitive blocks (registers, XOR gates, etc.)- Allows straightforward implementation in simulator- Accommodates a rich variety of PFD structures

ref[n]

n

n

div[n]

e[n]n

S

RDQQ

DQQ

DQQ

DQQ

59

Page 60: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Implementation of Primitives - Registers

Relevant timing information is contained in the clock signal- Transfer transition information from the clock to the

register output- Complement output using a sign change

DQQ

clk[n] n

out[n] n

n

clkout

out

out[n]

60

Page 61: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Implementation of Primitives – Logic Gates

Relevant timing information contained in the input that causes the output to transition- Determine which input causes the transition, then pass

its transition value to the output

a[n] n

b[n] n

n

ab

out

out[n]

61

Page 62: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Issue: Must Observe Protocol When Adding Noise

Divider and PFD blocks operate on a strict protocol for their incoming signals- Values other than 1 or -1 are interpreted as edges- Example: inputting noise at divider input breaks protocol!

Add noise only at places where signal is “analog”- PFD, charge pump, and loop filter outputs are fine

PFD ChargePump

Nsd[n]

out[n]e[n]

Σ−ΔModulator

v[n]

N[n]

LoopFilter

DividerVCO

ref[n]

div[n]

Noise

62

Page 63: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Can we speed the simulation up further?

63

Page 64: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

out(t)v(t)

div(t)

N[m]

DividerVCO

N[m]cyclesN[m-1]

cycles

div(t)

out(t)

Time step of simulation typically set by VCO output

Small time steps means long simulation runs

Divider output often 100 times lower in frequency

Sample Rate Set by Highest Frequency Signal

Can we sample according to divider output?

64

Page 65: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Divider Output Can Be Computed from VCO Phase

Key Idea: Model VCO and Divider using Phase

v(t)

VCO

Kvs

Φvco(t)out(t)v(t)

div(t)

N[m]

Dividerdiv(t)

Divider

VCO

2πN[m]N[m]cyclesN[m-1]

cycles 2πN[m-1]

Φvco(t)

t

div(t)div(t)

out(t)

(Van Halen et al, Circuits and Systems ’96)

65

Page 66: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Combine VCO and Divider Blocks

PFD ChargePump

Nsd[n]

e[n]

Σ−ΔModulator

v[n]

N[n]

LoopFilter

DividerVCO

ref[n]

div[n]

2πN[m]

Φvco(t)

t

Φ[k]

Φ[k-1]

div(t)

div[n] nεk

εk

Transient simulations run 2 orders of magnitude faster!

Compute divider output using first order interpolation of VCO phase

66

Page 67: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Does it really work?

67

Page 68: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

The CppSim Simulator

Blocks are implemented with C/C++ code- High computation speed- Complex block descriptions

Users enter designs in graphical form using Cadence or Sue2 schematic capture- System analysis and transistor level analysis are

possible in the same CAD framework Resulting signals are viewed in Matlab or CppSimView- Powerful post-processing and viewing capability

Simulation package freely downloadable athttp://www.cppsim.com

68

Page 69: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

The Sue2 and CppSimView Environment

69

Page 70: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Experimental Prototype to Verify Approach

1.8 - 1.9 GHz

0.6 CMOS IC

Digital Modulator

PFD Out20 MHz

64 ModulusDivider

LoopFilter

2Frequency

Select

Perrott et alJSSC, Dec 97

70

Page 71: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Simulation Results - Dynamic Behavior

Simulation time: 260 thousand time steps in 5 seconds on a 650 MHz Pentium III Laptop (custom C++ simulator)

Nsd (Input to Σ−Δ Modulator)

0 100 200 300 400 500 600 700

Synthesizer Output Frequency (MHz)

Freq

uenc

y (M

Hz)

Time (Micro Seconds)

97969594939291

1940192019001880186018401820

Div

ide

Valu

e

71

Page 72: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Noise Sources Included in Simulation

Dominant noise sources in synthesizer- Quantization noise of (produced by block)- Charge pump noise (calculated from Hspice)- VCO noise (input-referred – calculated from measurement)

PFDref(t)

div(t)

LoopFilter v(t)

1.85e-25A2/Hz 3.25e-16

V2/Hz

1.2e-24A2/Hz1.5 μA

1.5 μA

f

Σ−ΔQuantization

Noise

ChargePumpNoise

VCONoise

(Input-referred)

72

Page 73: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Measured Synthesizer Noise Performance

MeasuredVCO Noise(open loop)

(closed loop)

Measured OverallSynthesizer Noise

Noise Floor ofMeasurement

System

73

Page 74: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Simulated Synthesizer Noise PerformanceL(

f) (d

Bc/

Hz)

-60-70-80-90

-100-110-120-130-140-150

Simulated Spectrum: 1/Ts = 20*(reference frequency)

100 kHz25 kHz 1 MHz 10 MHz 25 MHz

Measured NoiseSimulated Noise

Simulated results compare quite well to measured! Simulation time: 5 million time steps in 80 seconds

74

Page 75: Design and Simulation of Frequency Synthesizers · 2013-08-11 · M.H. Perrott Outline Closed-Loop Design of Frequency Synthesizers Introduction-Background on Classical Open Loop

M.H. PerrottM.H. Perrott

Conclusion

Phase locked loop circuits can be quickly and accurately simulated- Accuracy achieved with area conservation principle- Fast computation by combining VCO and Divider blocks

A variety of simulation frameworks can be used- C++, Matlab, Verilog- Circuit primitives are supported

Noise and dynamic performance of fractional-N frequency synthesizers can be investigated at system level

75