PLL Design Report

Embed Size (px)

Citation preview

  • 8/9/2019 PLL Design Report

    1/30

    ARIZONA STATE UNIVERSITY

    EEE 598: Serial Links

    Final Project: Design of Phase Locked Loop (PLL)

    Muhammad Ruhul Hasin (ASU ID: 1204162578)

    Avinash Gadde (ASU ID: 1203581933)

    Lun Li (ASU ID: 1204311623)

    Ramachandran Sundaram (ASU ID: 1204102583)

    Madhur Naredi (ASU ID: 1204142220)

    Abhishek Gavankar (ASU ID: 1204115128)

    Naveen Sai Jangala Naga (ASU ID: 1203574172)

    Supervisor: Dr. Hongjiang Song

  • 8/9/2019 PLL Design Report

    2/30

  • 8/9/2019 PLL Design Report

    3/30

    3

    Introduction:

    This project describes the design of a fully-integrated PLL for low power applications. PLLs are

    used to generate on-chip clocks. A PLL is a feedback loop system that locks the on-chip clock

    phase to the input clock from the crystal to generate a high frequency clock for on chip usage. A

    series of clock buffers are used to increase the drive strength of the PLL and this can be used to

    drive large loads of the circuit. PLLs are mostly used for two purposes: clock generation, and

    timing recovery. For clock generation, since off-chip reference frequencies are limited by the

    maximum frequency of a crystal frequency reference, a PLL receives the reference clock and

    generates a high frequency clock in several Giga Hertz range. Timing recovery pertains to the

    data communication between chips.

    Fundamentals of PLL:

    The basic block diagram of a PLL is shown in the below figure . A PLL is a closed-loop

    feedback system that sets fixed phase relationship between its output clock phase and the phase

    of a reference clock. A PLL tracks the phase changes that are within the bandwidth of the PLL.

    A PLL also multiplies a low-frequency reference clock, to produce a high-frequency clock.

    Basic Components of PLL:

    The basic blocks of the PLL are :

    Phase Frequency Detector

    Charge Pump with loop filter Voltage Controlled Oscillator (VCO)

    Frequency Divider

  • 8/9/2019 PLL Design Report

    4/30

    4

    Phase Frequency Detector (PFD):

    The phase frequency detector (PFD) compares the phase difference between two input signals

    and produces up and down signal that is proportional to the phase difference. If clock 1 leads the

    clock 2 then exact phase difference is the difference between the rising edges of the up and down

    signal. On the other hand, if clock 2 leads the clock 1 then phase difference is the distance

    between the rising edges of the down and up signal. For the earlier case, the up signal will have a

    wider pulse while down signal will have wider pulse for the later case. It is noticeable that PFD

    can detect both frequency and phase of the incoming clocks. Because PFD can remember the

    previous value of the up and down signal which gives us the frequency information also. This is

    how PFD solves the problem of other phase detectors which would have failed if incoming

    clocks have different frequency. Nonetheless, it should be mentioned that, if the phase difference

    between the clocks is more than 360 degree then it cannot differentiate and it would repeat the

    same pattern for the next 360 degrees. PFD gain is denoted as KPDwhich is IB/2 where IBis the

    biasing current of the charge pump. In this project our IB is 20A which gives us KPDof 3.18.

    Followings are the schematics and simulation results of PFD separately.

    Figure 01: PFD complete schematic

  • 8/9/2019 PLL Design Report

    5/30

    5

    Figure 02: 2 input NAND

    Figure 03: Transfer function of PFD

  • 8/9/2019 PLL Design Report

    6/30

    6

    Charge pump with loop filter:

    The charge-pump circuit comprises of two switches that are driven with UP andDN outputs of

    PFD. The charge-pump injects the charge into or out of the loop filter capacitor (C1). The

    combination of charge-pump and C1 is an integrator that generates the average ofUP

    (orDN

    )pulses. This average voltage adjusts the frequency of the subsequent VCO circuit. Since the

    VCO introduces another integrator, the loop gain of a charge-pump PLL has two poles at origin;

    thus, the closed loop system is unstable. To stabilize the system, a zero, z = 1/RC1, is

    introduced in the loop gain by adding a resistor, R, in series with C1.

    Figure 04: 2nd order Charge pump with loop filter [1]

    The PFD, charge pump and filter are often modeled with a linear continuous-time model. In

    reality, the PFD acts as a pulse modulator system and drives the charge-pump for the duration of

    pulse width which is equal to PFD input phase difference, . The actual phase response is not

    linear because phase is cyclical. Furthermore, the phase information is discrete, sampled at the

    clock reference frequency However, a linear continuous-time approximation is often used to

    model the stability of an operating point. The error due to approximation is negligible if the PLL

    bandwidth is 1/10th or smaller than the reference clock frequency .The reference frequency

    determines the rate that PFD output is refreshed. With a linear approximation, V c is equal to:

    where Vc (s)/= (IB/2) F(s); F(s) is the transfer function of the loop filter and I Bis biasing

    current of the charge pump. F(s) = (1/sC1) *(1+sRC1).

  • 8/9/2019 PLL Design Report

    7/30

    7

    The charge pump has two gain components which are KPand KIwhere KP= R and KI= 1/sC1.

    Our loop bandwidth specification is around 1 MHz and we know loop bandwidth n =

    . Considering this equation, we calculated the KP= R = 26.5 kand KI= 1/C1=

    1/(5.24 pF) = 190.84 Gto get acceptable loop bandwidth, when KPD= 3.18, KVCO= 24.57 G

    rad/V-sec and N = 112. Followings are the simulation results for the charge pump with loop filter

    when connected to a PFD output signals.

    Figure 05: Whole schematic of loop filter with charge pump

  • 8/9/2019 PLL Design Report

    8/30

    8

    Figure 06 (a): Control voltage Vc when ck1 leads ck2

    Figure 06 (b): Control voltage Vc when ck2 leads ck1

  • 8/9/2019 PLL Design Report

    9/30

    9

    Voltage Controlled Oscillator (VCO):

    An oscillator is an autonomous system that generates a periodic output without any input. In this

    project we have used a CMOS ring oscillator to generate high frequency clock signals. VCO is

    controlled by the control voltage Vc coming from the loop filter. Ring oscillator based VCO has

    three major components which are biasing circuit, bias buffer and VCDL (voltage controlled

    delay line) elements. Biasing circuit is operated by an operational amplifier (Op-Amp) which

    takes the control voltage Vc (from the loop filter) as an input. The Op-Amp modulates the tail

    current source and the rail PMOS device to get the desired output voltage. This gate voltage of

    the tail current source is connected to the gates of tail current sources of all subsequent VCDL

    elements. Main purpose of the bias buffer is to separate the input side from the VCDL elements

    such that any abrupt change in the input side does not affect the output signals. In each VCDL

    element, two PMOS are connected in parallel, one of which is diode connected and the other one

    is operated in the linear region so that it acts like a variable resistor. This variable resistance of

    the PMOS is controlled indirectly by control voltage Vc to get the desired oscillation. Here,

    phase oscillation is equal to VCO =KVCO.Vc. dt; where KVCO is the gain of the VCO. Ideally,

    for the linear analysis to apply over a large frequency range, KVCO, needs to be relatively

    constant. KVCO is the found by sweeping the control voltage and observing the corresponding

    output oscillation frequency. f/VC is the KVCO of that particular VCO. For our project the value

    of KVCOis 24.57 G rad/V-sec. Followings are the schematics and simulated results of the VCO.

    Figure 07: Complete schematic of the VCO

  • 8/9/2019 PLL Design Report

    10/30

    10

    Figure 08: Biasing circuit and bias buffer of the VCO

    Figure 09: Four fully differential VCDL element

  • 8/9/2019 PLL Design Report

    11/30

    11

    Figure 10: Internal circuit of the Op-Amp

    Figure 11: Each stage of VCDL element

  • 8/9/2019 PLL Design Report

    12/30

    12

    At the output of the VCO, the signal swing is not rail to rail. That is why additional set of buffers

    are used at each output to generate rail to rail swinging clock signals.

    Figure 12: Schematic of full swing buffer of VCO

    Figure 13: Four equally spaced clock pulses at 2.9 GHz for Vc = 0.55 V

  • 8/9/2019 PLL Design Report

    13/30

    13

    Figure 14: Four equally spaced clock pulses at 1.66 GHz for Vc = 0.9 V

    Figure 15: VCO frequency tuning curve showing the KVCO to be 2*3.91 G rad/V-sec.

  • 8/9/2019 PLL Design Report

    14/30

    14

    Frequency Divider (FD):

    In PLL design, frequency divider is needed to divide the high frequency clock signal and feed it

    back to the input of the PFD which should have the same frequency as the input clock. In this

    project, we designed a frequency divider circuit as shown in the schematic below which

    performs frequency division by 96 and 112 based on the Select signal(S).

    Figure 16: Schematic of Divide by 96 and 112 Frequency DividerThis Frequency divider circuit is implemented using three blocksThe first block is an F/8 stage

    whose output frequency is one eighth the input frequency. The F/8 division was implemented asper the schematic below:

    Figure 17: Schematic of Divide by 8-Frequency Divider

    The second block has both F/6 and F/7 stages implemented separately and the output signals

    with frequency F/6 and F/7 are inputs to a multiplexer. Based on the select signal(S) in themultiplexer, it performs a frequency division of either F/6 or F/7.

    Divide by 6Frequency Divider Implementation: In the following circuit using an extra Flip

    Flop and a NAND gate instead of an inverter in the first stage (as in F/4 frequency divider )we

    F/8 Divider

    F/6 Divider

    F/7 Divider

    F/2 Divider

    2:1 MUX

  • 8/9/2019 PLL Design Report

    15/30

  • 8/9/2019 PLL Design Report

    16/30

    16

    Figure 21:Output plot of divide by 7 FD

    Plot showing Frequency division by 7 using the schematic above: Input CLK Time period =

    3.205ns and Output CLK Time period = 22.43ns (3.205*7).

    The third block has an F/2 stage which is implemented as a last stage to make sure the duty cycle

    of the output clocks to be 50 percent.

    Integrating the above three blocks, we obtain a Frequency division of 96 or 112 based on the

    clock frequency and select signal.

    Figure 22:Output plot of complete FD (2.496 GHz)

    Plot showing Frequency division by 96. Input CLK Time period = 400.7ps (2.496GHz) and

    Output CLK Time period = 38.47ns (400.7ps*96 or 26MHz).

  • 8/9/2019 PLL Design Report

    17/30

    17

    Figure 23:Output plot of complete FD (2.912 GHz)

    Plot showing Frequency division by 112 Input CLK Time period = 343.4ps (2.912GHz) and

    Output CLK Time period = 38.47ns (343.54ps*112 or 26MHz).

    Figure 24:Schematic of the TSPC register

    The flip-flop is the core part to design to satisfy high frequency operation. True Single PhaseClock FF is chosen for its fast response. However, the sizing for the TSPC needs to be done very

    carefully.

  • 8/9/2019 PLL Design Report

    18/30

    18

    Complete Phase locked loop (PLL) simulation:

    In this project, we have designed a second order PLL which can generate output frequency of

    2.496 GHz and 2.912 GHz. The control loop of second order PLL is given below:

    Figure 25: Control loop of second order PLL [2]

    This can be simplified into the following diagram.

    Figure 26: Simplified Control loop [2]

    Loop Bandwidth, Quality factor and Damping factor:

    Here n=

    ; which is the loop bandwidth and Q is the quality factor of the PLL;

    1/Q = = 2, is the damping factor. For our case the loop bandwidth is 1.29 MHzand Quality factor is 0.62, damping factor is 0.80 when N = 112 and M = 1. Now completeschematic and simulation results are shown below.

    Figure 27: Schematic of complete PLL

  • 8/9/2019 PLL Design Report

    19/30

  • 8/9/2019 PLL Design Report

    20/30

    20

    Figure 30: VCO output pulse frequency is 2.912 GHz and frequency divider output is 26 MHz

    (when S = 1)

    Figure 31: Cki and Cko are locked as seen and Vc is settled; ck4 (2.912 GHz) is the output ofVCO (when S = 1)

    Figure 30 and 31 showed the locked states of the PLL for two different rates. Figure 32 shows

    the all four equally spaced clock signals at 2.91 GHz. The phase difference between eachconsecutive clocks should be aournd 85.85 ps (period/4) which is seen from the figure.

  • 8/9/2019 PLL Design Report

    21/30

  • 8/9/2019 PLL Design Report

    22/30

    22

    Key performance results:Now all the key performance parameters will be shown in this section.

    i) Jitter:Here Jitter is the variation of time period of the high frequency clock output. For example, the

    clock signal of 2.912 GHz should have a period of 343.4 ps. Any variation from that period is thejitter. Following is the Jitter plot when frequency of the output clock is 2.912 GHz.

    Figure 34: Absolute jitter plot when clock frequency is 2.912 GHz

    Similarly, when clock frequency is 2.496 GHz, the absolute jitter plot is given below

    Figure 35: Absolute jitter plot when clock frequency is 2.496 GHz

    Following table shows the mean and standard deviation (STD) of absolute jitter (AJ), periodic

    jitter (PJ) and cycle to cycle jitter (CCJ) for two different frequencies.

  • 8/9/2019 PLL Design Report

    23/30

    23

    Frequency

    Of clock

    AJ mean

    (ps)

    PJ mean

    (ps)

    CCJ mean

    (ps)

    AJ STD

    (ps)

    PJ STD

    (ps)

    CCJ STD

    (ps)

    2.912 GHz 7.72516E-3 7.76398E-5 3.88199E-5 4.63928E-01 2.11788E-01 2.1601E-01

    2.496 GHz 1.97478E-1 1.63766E-4 0 9.24545E-1 7.1756E-1 8.54621E-1

    Figure 36: Eye diagram of Clock 1 (wide open eye, less jitter)ii) Phase Spacing Error (PSE):Ideally the four output clocks must be 90 degree apart from each other. Any variation from that

    ideal value is called phase spacing error (PSE). For clock frequency of 2.912 GHz, consecutiveclocks must be 85.85 ps apart from each other. Followings are the PSE plots when clockfrequency is 2.912 GHz.

    Figure 37: Phase spacing error plot between clock 1 and clock 2

  • 8/9/2019 PLL Design Report

    24/30

    24

    Figure 38: Phase spacing error plot between clock 2 and clock 3

    Figure 39: Phase spacing error plot between clock 3 and clock 4

    Following is the table showing all the mean and standard deviation (STD) value for the threedifferent sets of PSE when frequency is 2.912 GHz.

    Clocksinvolved PSE mean(ps) PSE STD(ps)

    ck1 and

    ck2

    1.47035 1.14599E-1

    ck2 and

    ck3

    1.49221E-1 1.2382E-1

    ck3 and

    ck4

    3.9462 1.6123E-1

  • 8/9/2019 PLL Design Report

    25/30

    25

    It is noticeable here that the PSE between clock 3 and clock 4 is slightly higher than the other

    sets values. This is because, clock 4 has a load to drive (frequency divider) while others do nothave anything to drive.

    Power Dissipation:Total power dissipation is the average current times the supply voltage. So the average currentcalculated is shown in the following figure.

    Figure 39: Average current from the whole PLL circuit

    So, total power dissipation = 1.8 * .0045665 = 8.22 mW.

    Behavioral (s-domain) PLL counterpart:

    This section covers all the analysis of the PLL in s-domain. Models of second order PLL from

    EEE598Lib has been used to do all the simulations. For our project, followings are the all gain

    values:

    KPD= 3.18; KVCO = 24.57 G rad/V-sec; KI= 190.84 G; KP= 26.5k; N = 112.

    The derivation of these values are already shown individually in each corresponding section.

    Overall Loop Response:

    To find out the overall loop response, following block has been used. The transfer function of

    second order PLL is

    where S = s/n. Values of nand Q

    11

    11

    )(2

    SQ

    S

    SQ

    sHi

    o

  • 8/9/2019 PLL Design Report

    26/30

    26

    are given at the beginning of complete PLL section.

    Figure 40: Loop response test bench

    Figure 41: Internal block diagram of the second order PLL system with the gain values

  • 8/9/2019 PLL Design Report

    27/30

    27

    Figure 42: Overall Loop response of the PLL showing the bandwidth to be 1.29 MHz.

    Previously calculated Quality factor, Q = 0.62 and damping factor, = 0.80.

    S-domain noise response:

    PLL can have three nodes at which noise can be injected. Those models and simulations are

    shown below.

    Figure 43: Test bench for noise response measurementFigure 43 shows the setup for measuring noise response when noise injected at the PFD. Other

    noise injection nodes and inputs are grounded to when noise at node n1 is measured. Same

    concept has been applied while measuring the noise at node n2 and n3.

  • 8/9/2019 PLL Design Report

    28/30

  • 8/9/2019 PLL Design Report

    29/30

    29

    Figure 46: Noise response when injected at the loop filter (Band pass response)

    If the noise is injected at the VCO then the noise transfer function is

    where S = s/nand nis the loop bandwidth. Here the response is high pass response.

    Figure 47: Noise response when injected at the VCO (High pass response)

    11

    |)(2

    2

    0

    33

    SQ

    S

    S

    NsH

    i

    oN

  • 8/9/2019 PLL Design Report

    30/30

    Estimation of layout area:

    Following table shows the total number of transistors used in individual blocks and theirestimated layout area. To estimate the area of interconnects, diffusion, n-wells and contacts, the

    summation of the transistor sizes are multiplied by a factor of 6.

    Name of the block or component Total number of transistors Estimated Area (m )

    Phase Frequency Detector (PFD) 44 27.24

    Charge pump 15 46.29

    Voltage controlled oscillator (VCO) 138 160.5

    Frequency Divider 143 132.65

    Resistor (R = 26.5 k) in loop filter - 0.9

    Capacitor C1in loop filter (5.24 pF) - 480

    Capacitor C2 in loop filter (0.524 pF) - 60

    Complete Phase locked loop (PLL) 340 907.58

    Summary:

    So in this project, we have successfully met all the specifications. Our output frequencies were

    2.912 GHz and 2.497 GHz which is within the range of 2000 PPM. Loop bandwidth is 1.29 MHz

    which is close to 1 MHz, quality factor Q is 0.62 and damping factor is 0.80. All the jitters of theoutput clock signal is way below pico seconds and the phase spacing errors are below 4 ps for

    any combination of consecutive clock signals. The estimated layout area of the complete PLL is

    907.58 m2. The eye diagram of the clock 1 is wide open suggesting very little presence of jitter.

    S domain analysis also showed satisfactory response as noise response has been measured when

    injected at different nodes.

    References:

    [1] Mozhgan Mansuri, PhD dissertation, "Low-Power Low-Jitter On-Chip Clock Generation",

    University of California, Los Angeles, 2003.

    [2] Hongjiang Song, class lecture 15, "Phase Locked Loop (PLL)", EEE 598, Serial Links,Arizona State University, 2012.