Professional Documents
Culture Documents
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.7 References 06
An Effective Design and Verification Methodology for Digital PLL
1
© 2015, QuEST Global Services
An Effective Design and Verification Methodology for Digital PLL
2
© 2015, QuEST Global Services
An Effective Design and Verification Methodology for Digital PLL
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.
3
© 2015, QuEST Global Services
An Effective Design and Verification Methodology for Digital PLL
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
5
© 2015, QuEST Global Services
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