You are on page 1of 9

an effective design

and verification
methodology for
digital PLL
This Paper depicts an effective simulation methodology to overcome the spice simulation time
overhead of digital dominant, low frequency Digital PLL (DPLL)

Biju Viswanath
Rajagopal P C
Ramya Nair S R
Jobin Cyriac

QuEST Global
0.1 Abstract 01

0.2 Introduction 01

0.3 DPLL Overview 02

0.4 Design of DPLL System Modules 03

0.5 Phase Frequency Detector 03

0.6 Time to Digital Converter 03

0.7 References 06
An Effective Design and Verification Methodology for Digital PLL

An Effective Design and Verification Methodology for Digital PLL

Abstract This paper describes the simulation challenges of


low frequency analog mixed signal systems and
proposes an effective mechanism to reduce the
This Paper depicts an effective simulation simulation overhead using SystemVerilog and co-
methodology to overcome the spice simulation simulation environment. This methodology
time overhead of digital dominant, low frequency reduces the simulation effort to 1/3rd of the actual
Digital PLL (DPLL). A low power wide range spice simulation effort. Also it enables the
Digital Phase-Locked Loop (DPLL) design for designer to make the design fool proof.
generating precise pixel clock from a noisy and
low frequency horizontal synchronization signal Here the simulation effort of DPLL circuit is divided
(HSYNC) is described here. The basic design into two steps making use of SystemVerilog
verification,co-simulation. The DPLL loop
challenges faced by pixel clock generator are
consists of almost 80% digital components. It is
Noisy low-frequency reference clock and Very
cumbersome to analyze the entire loop using
high Feed back frequency multiplication ratio. spice simulation for loop analysis. Even the
Here, the verification methodology of the DPLL is functionality confirmation of the loop is time
divided into two stages: consuming as the system operates over a very
wide range of division ratios (N). This practical
simulation issue is addressed by the modeling of
1. Digital blocks are designed and verified with analog systems in the initial stages and by co-
stringent test cases using SystemVerilog and simulation in the advanced stage of system
analog block models. design.
Analog blocks are designed using normal spice
simulation. 2. Co-simulation environment is Another major design challenge in design of the
used for sign-off. type of circuit is the validation of digital blocks.
Validation of the complex digital filter and
Keywords—DPLL, SystemVerilog, Co- controller are done with SystemVerilog
simulation,mixed signal validation methodologies and test benches. This ensures
the functionality of digital blocks across all corner
I. Introduction cases. 100% code coverage is ensured for the
digital blocks.
A low power wide range Digital Phase-Locked
Loop (DPLL) design for generating precise pixel The Paper describes the system level architecture
clock from a noisy and low frequency horizontal of the DPLL, its operation and the complexity in
synchronization signal (HSYNC) is described simulation of this mixed signal design. It also
here. Digital PLL’s are used in video front-end provides a block level description of each block
systems as pixel clock generator. In such and explains how they are modeled and validated
applications, reference signal (HSYNC) used is in the proposed methodology. The block wise
of low frequency with range of 30Hz to 100 KHz. , validation procedure and top level system
and the output pixel clock ranges from 76 MHz to integration and testing applying System Verilog
800 MHZ based on different display resolutions. and co-simulation environment are also
This DPLL design uses an analog oscillator explained.
circuit which ensures high linearity and
portability to other technologies.

1
© 2015, QuEST Global Services
An Effective Design and Verification Methodology for Digital PLL

An Effective Design and Verification Methodology for Digital PLL

II. DPLL Overview In a digital video display system, the personal


computer (PC) graphics card sends analog video
RGB signals which will be accompanied by
The main application of Phase Locked Loop vertical synchronization clock (VSYNC) and
(PLL)s are as frequency synthesizers or clock horizontal synchronization clock (HSYNC).! The
generators. A PLL acts as a feedback system DPLL takes the HSYNC as a reference clock to
comparing input phase with output phase and generate a high speed pixel clock. HSYNC is of
produces an output signal that is phase aligned low frequency with range of 30Hz to 100
with the input signal. However when it is used as KHz.!The frequency multiplication ratio of the
pixel clock generator in analog interface of DPLL depends on the display resolution of the
digital video display system and is always larger
digital video display systems, it needs to phase
than 800 and can be up to over 2600. The DPLL
align the output with a noisy and very low provides a wide output frequency of range
frequency horizontal synchronization signal 76MHz to 650MHz working at a single 1.2V
(HSYNC). If proper phase aligning is not power supply.
obtained, the displayed image will become
blurry. Therefore in such applications the PLL Furthermore, here one of the main challenges is
must closely track the input clock signal. This that the output pixel clock (CKOUT) is generated
paper introduces a Digital PLL (DPLL) design from noisy low frequency reference signal so the
with fast tracking scheme which align the output design needs to ensure that the output pixel clock
feedback clock with noisy low frequency input is phase aligned to the HSYNC
reference signal (HSYNC). The DPLL finds
application in Digital video display system such
as LCD flat panel monitors, Plasma display
panels, Video capture hardware etc. The HPLL
is implemented in 65nm CMOS process. Table 1
shows the brief specification of the DPLL.

2
© 2015, QuEST Global Services
An Effective Design and Verification Methodology for Digital PLL

An Effective Design and Verification Methodology for Digital PLL

III. Design of DPLL System Modules B. Time to Digital Converter (TDC)

Figure 1 shows the block diagram of the DPLL. TDC converts the error signal from PFD to digital
The DPLL is composed of a Phase Frequency bits. The TDC block consists of 2 Sub-TDC blocks
Detector, Timeto- Digital Converter (TDC), a and a TDC code selection block (Figure 2) for
first-order delta-sigma modulator(DSM), taking into account both positive and negative
digitally controlled oscillator (DCO), PLL phase errors [7]. PFD’s output signals are used to
controller, a digital loop filters (DLF) and a 12 bit select the output of the sub-TDCs. Each sub-TDC
programmable frequency divider (Prescalar). block consists of a chain of delay generation circuit
The HSYNC is taken as the reference clock, and and T2B (thermometric to binary converter). The
the HSOUT is the output pixel clock (CKOUT) delay generation block is implemented using
divided by the frequency divider. The frequency couple of inverters and delay flops where the delay
multiplication ratios (N) for different video display of the couple inverters corresponds to the
resolutions are specified by the VESA display resolution of the TDC. If the HSYNC leads the
monitor timing standard. Based on different HSOUT, the output of the #1 sub-TDC
display standards we can externally program the (tdc_code_lead) is selected as the “tdc_code”.
12 bit frequency divider. Oppositely, if the HSYNC lags the HSOUT, the
output of the #2 sub-TDC (tdc_code_lag) is
A. Phase Frequency Detector (PFD) selected as the “tdc_code”.

The phase-frequency Detector is based on PFD The validation of the TDC block is a bit difficult due
used in [2]. The only difference is that, along with to the presence of the delay elements. Modeling of
the UP and DN signal here additional digital logic the TDC also may not be accurate as the
is used to generate direction signals LEAD and functionality the determined by the delay of cells.
LAG. After system reset, the PFD detects the Actual standard cell libraries are included in the
phase and frequency error between the HSYNC functionality validation to get the actual
and the HSOUT and based on that it outputs characteristics of the delay cells.
“UP” and “DN” control signals to the PLL
controller. This UP and DN signal represents the Figure 2.
time error information between the HSOUT and
HSYNC. If HSOUT is leading HSYNC, then DN
represents the time error information between
them and LAG becomes high indicating the DCO
to decrease the speed. Conversely, if HSYNC is
leading HSOUT, then UP represent the time
error information between them and LEAD
becomes high indicating DCO to increase the
speed.

PFD is modeled in verilog and can be easily


tested for the functionality and logic conditions
with verilog test benches. This is done with
modelsim and other digital tools.

3
© 2015, QuEST Global Services
An Effective Design and Verification Methodology for Digital PLL

An Effective Design and Verification Methodology for Digital PLL

C. PLL Controller and Digital loop filter

In the DPLL the controller and filter blocks are


fully digital in nature [4]. The DPLL controller
outputs a 19 bit dco_code to the DSM. The lock-
in procedure of the DPLL controller is divided into
four states: a coarse code search state, a fine
code search state, a fractional code search state
and a fast phase tracking state[5][6]. In the
coarse code search state and fine code search
state, the DSM is turned off, and the PLL
controller adjusts the integral part of the DCO
control code (dco_code[18:9]) with the PFD’s
output. Subsequently, the DSM is turned on to
improve the equivalent resolution of the DCO.
Then, the DPLL controller adjusts the fractional
part of the DCO control code (dco_code [8:0]) to
minimize the frequency error between the
HSYNC and the HSOUT.

After frequency acquisition is complete, the The reference clock (HSYNC) is very noisy in the
DPLL controller enters the fast phase tracking digital video display system. Thus, in the DPLL
state, and the phase error between the HSYNC architecture, a digital loop filter [9] is used to
and the HSOUT is quantized by the TDC, then produce a baseline frequency control code
the proposed fast phase tracking scheme is (avg_dco_code). When the phase polarity is
applied to reduce the phase error between the changed, the DPLL controller along with digital
HSYNC and the HSOUT [8]. As a result, after the loop filter restores the baseline frequency control
DPLL is locked, the phase error is minimized. code (avg_dco_code) to the DCO control code
After system is reset, the PFD detects the phase (shown as C in Figure. 3) to reduce the jitter of
and frequency error between the HSYNC and the output pixelclock operation.
the HSOUT. Then, it outputs “UP” and “DN”
control signals to the PLL controller to indicate The flow chart of the proposed digital loop filter is
that the DCO’s output frequency should be sped shown in Figure 4. The proposed DLF accepts
up or slowed down, respectively. When the PLL the DCO control code (dco_code) generated by
controller increases the DCO control code the PLL controller. Then, it stores eight DCO
(dco_code), the DCO’s output frequency is control codes (C0 to C7) to generate a baseline
slowed down. Oppositely, when the PLL frequency control code (avg_dco_code). Every
controller decreases DCO control code time two new DCO control codes (CN1 and CN2)
(dco_code), the DCO’s output frequency is sped are received by the DLF, the DLF searches for
up. A binary search scheme is used in the PLL the maximum and minimum values in C0 to
controller to reduce the lock-in time to search for C7,CN1 and CN2. Subsequently, the maximum
the target DCO control code (dco_code). and minimum values are removed and the
Therefore, when the PFD’s output is changed remaining DCO control codes are then stored in
from UP to DN or vice versa (shown as A in to C0 to C7, thus the output of the filter
Figure.3), the search step is divided by 2 until the represents the baseline average code
search step (Internal signal of PLL controller). is avg_dco_code. Thus DLF helps in reducing the
reduced to 1(shown as B in Figure. 3). reference clock jitter effects of the noisy HSYNC.

4
© 2015, QuEST Global Services
An Effective Design and Verification Methodology for Digital PLL

An Effective Design and Verification Methodology for Digital PLL


represents the fractional code. The DSM converts
the 19 bit avg_dco_code to 10 bit dco_code. In the
frequency acquisition the integral code will be
modified based on the output of the PFD by the
PLL controller. After the frequency acquisition the
time-to-digital converters are applied to quantize
the phase error into digital codes. Subsequently,
the compensation codes for the digitized phase
errors are added to the fractional bits of the DCO
control codes. Hence, the phase error is
immediately compensated for by the DCO
dithering scheme with a delta-sigma modulator
(DSM).

E. Digital Control Oscillator (DCO)

The DCO receives the 10 bit control code


[D<9:0>] from DSM as shown in Figure 5. The
proposed DCO consist of a bias generator circuit,
a Ring oscillator section and a Differential to single
ended amplifier. The bias generator section
consists of a Digital to analog converter (DAC)
section which converts the input digital dco_code
<9:0> from DSM to analog voltage thereafter
generating appropriate bias voltage VBN and
VBP by the bias section. Ring oscillator section is
implemented using four stages of differential pair
same as in [2] and a Differential to single ended
amplifier is used to convert the dual small swing
The proposed digital loop filter quickly updates
differential input to single output having rail-to-rail
the baseline DCO control code for the PLL
swing..
controller to track the target frequency.
Therefore, the lock-in time of the DPLL is further
reduced by the proposed DLF.

The validation of the complex controller and filter


block across all test scenarios are very much
time consuming with spice simulation. Here we
use the SystemVerilog test benches and
methodologies for the validation of the same
Here the DCO is designed in such a way that the
frequency range of the DCO can be changed
D. Delta sigma Modulator (DSM)
based on external mode pin P0. Mode0 implies
low frequency operation and mode1 implies high
After frequency acquisition is complete, the
frequency operation.
DPLL keeps tracking the phase error between
the HSYNC and the HSOUT with TDC and DSM.
This DPLL design uses an analog oscillator to
In the DPLL, the output of the DPLL controller
ensure high linearity and frequency accuracy over
will be 19 bit, here 10 bit MSB of dco_code
PVT variations. The oscillator verilog/verilogA
represents the integral code and 9 bit LSB
models are used in the initial functionality

5
© 2015, QuEST Global Services
An Effective Design and Verification Methodology for Digital PLL

An Effective Design and Verification Methodology for Digital PLL

simulations. Models are replaced with actual using SystemVerilog test environment ensures
spice netlist in co-simulation phase. the circuit quality and co-simulation makes the
system design less time consuming. The
IV. Simulation Results suggested mechanism can be applied for similar
low frequency operation mixed signal sytems..
The DPLL is done in 65 nm CMOS technology.
Figure 6 shows the co-simulation simulation
waveform of the DPLL. The use of binary search VI. References
scheme along with fast tracking state of PLL
controller minimizes the lock in time and phase [1] Behzad Razavi, "Design of Analog CMOS
error between HSYNC and HSOUT. The 12 bit Integrated Circuit", McGraw-Hill, 2001.
programmable divider enables us to support [2] Biju Viswanathan, Ramya Nair S. R., Vijay
different display resolutions such as XGA, Viswam, Joseph J. Vettickatt, Kulanthaivelu R.,
SXGA, UXGA and WUXGA Lekshmi S. Chandran, “4 GHz 130nm Low Voltage
PLL Based on Self Biased Technique”, vlsid,
pp.330-334, 2010 23rd International Conference
on VLSI Design, 2010.
[3] Anitha Babu, Bhavya Daya, Banu
Nagasundaram, Nivetha Veluchamy, “All Digital
Phase Locked Loop Design and Implementation”,
IEEE transactions on Magnetics, 2009.
[4] Ching-Che Chung, Member, IEEE, and Chiun-
Yao KoTsung-Heng, “A Fast Phase Tracking
ADPLL for Video Pixel Clock Generation in 65 nm
CMOS Technology”, IEEE Journal of Solid-state
circuits, vol. 46, no. 10, pp. 2300-2311, 2011
[5] Robert Bogdan Staszewski and Poras T.
Balsara, “All-Digital PLL With Ultra Fast Settling",
IEEE Trans. on Circuits and Systems, 2007
[6] Ping-Hsuan Hsieh, Jay Maxey, and Chih-Kong
Ken Yang, “A Phase-Selecting Digital Phase-
Locked Loop With Bandwidth Tracking in 65-nm
CMOS Technology”, J. Solid-State Circuits, 2010.
[7] Senior Member, IEEE S.-Y. Lin and S.-I. Liu, “A
1.5 GHz all-digital spread-spectrum clock
generator,” IEEE J. Solid-State Circuits, vol. 44,
no. 11, pp. 3111–3119, Nov. 2009.
[8] X. Chen, J. Yang, and L.-X. Shi, “A fast locking
all-digital Phase Locked loop via feed-forward
V. Conclusion compensation technique,” IEEE Trans. Very Large
In the present work, a fast phase tracking DPLL Scale Integr. (VLSI) Syst., vol. 19, no. 5, pp.
for video pixel clock applications is implemented 857–868, May 2011.
in 65nm CMOS technology. In order to [9] S.-Y. Yang,W.-Z. Chen, and T.-Y. Lu, “A 7.1mW,
overcome the simulation time overhead of the 10 GHz all digital frequency synthesizer with
system, an effective mechanism using dynamically reconfigured digital loop filter in 90 nm
SytemVerilog and co-simulation environment is CMOS technology,” IEEE J. Solid-State Circuits,
employed. This makes the system design and vol. 45, no.3, pp. 578–586, Mar. 2010.
digital logic verification easy and hence reduces
the design time considerably. The verification

6
© 2015, QuEST Global Services
www.quest-global.com
© 2015, QuEST Global Services
© 2015, QuEST Global Services

You might also like