Cadence and Ltspice
Cadence and Ltspice
FACULTY OF PHYSICS
ELECTRONICS DEPARTMENT
Supervisor:
Dr. T. Laopoulos, professor, Electronics laboratory
Thessaloniki 2010
Analysis and design of PFDs in CADENCE
2
Analysis and design of PFDs in CADENCE
INDEX
1. Chapter 1: INTRODUCTION 5
1.1 Presentation 5
1.2 Study areas 5
1.3 General objectives 5
3.1 Design 20
3.2 Components 20
3.3 Conclusions 24
5.3 Comparisons 59
Main References 92
Other References 93
4
Analysis and design of PFDs in CADENCE
CHAPTER 1
INTRODUCTION
1.1 PRESENTATION
Digital Electronic
1.2 STUDY AREAS
This project will try to provide better understanding of Phase detectors, more
specifically of the Phase Frequency Detectors; analysis some designs that presents very
interesting properties.
The main tool of this study will be CADENCE Design Systems. It is the main IC
software design and the most used by circuit designers.
For this, CADENCE environment will be used, taking advantage of its potential and
versatility in the design, implementation and analysis of IC circuits.
The aim of this thesis is to deepen the concept of the PFD, to know its basic
performance and recognize their limitations in order to resolve them in future designs as
the ones which are shown here. So, watching the properties of these new designs will be
able to choose one or the other depending on the benefits and drawbacks of each.
6
Analysis and design of PFDs in CADENCE
CHAPTER 2
THEORICAL BASIS
A Phase-Locked Loop (PLL) is a closed-loop circuit that compares its output phase with
the phase of an incoming reference signal and adjusts itself until both are aligned, i.e.,
the PLL output's phase is "locked" to that of the input reference. It is composed by a
phase detector (PD), a low-pass filter (LPF), and a voltage controlled oscillator (VCO).
The circuit compares the input signal phase and the oscillator output signal and adjusts
the last one to maintain the phases matched. As it is known, the frequency is the
derivate of phase. So, maintaining phases matched means maintaining matched
frequencies.
When there is not input signal in the circuit, the Vd(t) voltage that controls the VCO is
zero. And its oscillation frequency is fo (free oscillation frequency). In contrast, when
there is an input signal in the circuit with frequency fi, the phase detector device
7
Analysis and design of PFDs in CADENCE
compares the phase and frequency of this input signal with the Vo(t) signal. This
comparator generates an error voltage Ve(t) which is proportional to the phase and
frequency difference between the two signals. Then, this error voltage Ve(t) after been
filtered and (sometimes) amplified is applied to the VCO input. So, VCO frequency
varies to reduce the difference between the frequencies fo and fi. Once the loop is locked
(the phase difference between the output and the input signals is very close to zero) the
frequency of the output signal is equal (or a multiple) of the input signal's frequency.
Phase Detector: This dispositive has got two input signals: the reference input
signal and the feedback from the VCO.
There are several types of phase detectors in the two main categories of analog
and digital environment, depending on the kind of application. Most of the
analog phase detectors are just analog multipliers: their output voltage is
proportional to the multiplication of the two input voltages. And their main
advantage is that they can be used in a large frequency range. In the other hand,
the most popular and simplest in the digital world is the XOR gate.
8
Analysis and design of PFDs in CADENCE
Low pass filter: It receives the error voltage signal Ve(t) and suppresses high-
frequency components in it, allowing the dc value to control the VCO
frequency.
When the input voltage is zero, the VCO output signal will have a frequency
called “free oscillation frequency” and when the input signal changes, the output
frequency increases or decreases proportionality. It has an integrator function
for the phase input signal.
9
Analysis and design of PFDs in CADENCE
It is typically build with varicap diodes and crystal quartz. They are very
sensitive to weather conditions. Fig.2.4 shows its operation through some
waveforms.
Next fig.2.5 and fig.2.6 shows the waveforms of the different components in a PLL. The
first one illustrates a typical situation where the two input signals have the same
frequency but a small phase difference between them. So, the PD generates a signal
according to this phase difference. Besides, the LPF avoids the high frequency
components in the PD output and generates the dc voltage that controls the VCO.
Fig.2.6 shows the PLL behavior in the situation where there is a frequency change when
it is already locked.
10
Analysis and design of PFDs in CADENCE
Historically, earliest research towards what became known as the phase-locked loop
goes back to 1932, when British researchers developed an alternative to Edwin
Armstrong's super heterodyne receiver, the Homodyne or direct-conversion receiver.
The technique was described in 1932, in a paper by Henri de Bellescize, in the French
journal L'Onde Électrique. Besides, in analog television receivers since at least the late
1930s, phase-locked-loop horizontal and vertical sweep circuits are locked to
synchronization pulses in the broadcast signal. When Signetics introduced a line of
monolithic integrated circuits that were complete phase-locked loop systems on a chip
in 1969, applications for the technique multiplied. A few years later RCA introduced the
"CD4046" CMOS Micropower Phase-Locked Loop, which became a popular integrated
circuit.
- Ideal phase detector: an ideal phase detector (PD) produces an output signal
whose dc value is linearity proportional to the difference between the phases (∆ф) of the
two periodic inputs.
11
Analysis and design of PFDs in CADENCE
Typically, PD generates an output pulse whose width is equal to the time difference
between the consecutive zero crossing of the two inputs. Since the two inputs are not
equal, the phase difference exhibits a “beat” behavior with an average value of zero.
12
Analysis and design of PFDs in CADENCE
As it is shown in the above figure, when the phase error is small (smaller
than 60⁰) this phase detector could be considered as an ideal one.
Besides, when the phase error is smaller than 90⁰, the output voltage
increases when the phase error increases while this relation is not linear,
at least the phase detector works. But, in contrast, when the phase error is
bigger than 90⁰, the output voltage decreases; so, this means a
malfunction.
13
Analysis and design of PFDs in CADENCE
Thus, this digital phase detector has the same operation range than the
analog one but it has the advantage that it is more linear in it.
View this XOR implementation, it is important to say that there are other
structures also used as the BJ bistable whose linear range is the
maximum one, 360⁰.
14
Analysis and design of PFDs in CADENCE
These special detectors are allowed to detect both phase and frequency difference
proves extremely useful because it significantly increases the acquisition range and lock
speed of PLLs.
It works as follows: If the frequency of input A is greater than that of input B, then the
PFD produces positive pulses at QA, while QB remains zero. Conversely, if frequency in
input B is greater than in A, positive pulses appear at QB while QA=0. If both
frequencies are equal, then the circuit generates pulses at either QA and QB with a width
equal to the phase difference between the two inputs. Thus, the average value Q A-QB is
an indication of the frequency or phase difference between A and B. The outputs QA
and QB will be called UP and DOWN signal, respectively.
This basic PFD is also called “three states PFD”. That is why it can be understood also
as a three state machine as follows:
QA (UP) 0 1 0 1
15
Analysis and design of PFDs in CADENCE
QB (DOWN) 0 0 1 1
The circuit can change state only on the rising transitions of A and B. Fig. 2.14 shows a
state diagram summarizing the operation: If the PFD is in state 0, a transition on A takes
in to state I. In this situation, if a transition occurs on B, the PFD returns to state 0.
Similarly between state 0 and state II.
According to all of this, in case that Fref is a little bit higher than Fvco, the subtraction
UP-DOWN will be positive. And, the control signal that arrives at the VCO system, will
force it to increase its output frequency. In contrast, if Fvco is higher than Fref, this
subtraction will be negative and it will produce the contrary effect.
The most popular implementation of the above PFD is shown in Fig. 2.15. It is formed
by two D-FF and an AND gate. Each D-FF is activated by the CK signal where the
input PFD signals are (ref and VCO). That way, as the D input of the D-FF is always
“1”, the Q (output of the D-FF) will be up at the moment of a positive rising edge in the
CK input (in the PFD inputs, respectively).
When the two outputs of the two D-FF are in the “high” state (state not allowed), they
will be reset by the reset signal generated by the AND gate output whose inputs are Up
and Dn. In this moment, both outputs become down again.
16
Analysis and design of PFDs in CADENCE
Besides, the Fig. 2.16 shows the input-output characteristic of the PFD.
- The use of the Charge Pump (CP): It is a circuit whose aim is to convert to DC
the PFD output voltage. Next figure (fig. 2.17) illustrates this circuit.
17
Analysis and design of PFDs in CADENCE
It consists of two switched current sources (S1 with I1 and S2 with I2) driving a
capacitor (Cp). Its operation depends on the state of the PFD: in state 0, both
switches remain opened. So, the capacitor voltage does not change from its last
value, Vout. In state I, where A leads B, S1 closes and I1 source charges Cp. In
state II, S2 closes and I2 removes charge from Cp.
This circuit is widely used in PLLs where there are PFDs. So, instead of a PD
and a LPF, these PLLS called Charge-pump PLLs (CPPLLs), presents a PFD
and a CP. This new model has the advantage that the capture range is now only
limited by the VCO output frequency range and that the static phase error is zero
if mismatches and offsets are negligible.
- Problems in the conventional PFD: To improve the operating speed of PFD, both
the pulse width and the propagation delay of reset signal need to be reduced. In
the previous design, the reset signal is structurally affected by the DFF delay. To
improve the operating speed of PFD, both the pulse width and the propagation
delay of the reset signal need to be reduced.
According to that, the way to decrease the width pulse and the delay of the reset
signal (and so, increase the speed of operation) is to reduce these two delays,
avoiding its dependence with the DFF device.
18
Analysis and design of PFDs in CADENCE
This new design could be over twice as fast as with static logic. It uses
only fast N transistors, and is amenable to transistor sizing optimizations.
Static logic is slower because it has twice the loading, higher thresholds,
and actually uses slow P transistors to compute things.
In it, propagation delay and pulse width of the reset signal are shorter
than in the conventional one and it can improve the frequency limit of the
PFD. The only disadvantage of the dynamic CMOS circuit is its high
power consumption.
o Feedforward-reset design
A new design of the PFD will be presented in the next chapter, and it will
be analyzed step by step.
19
Analysis and design of PFDs in CADENCE
CHAPTER 3
FEEDFORWARD-RESET PFD
3.1 DESIGN
This new PFD model is described in “Phase Detectors/Phase Frequency Detectors for
High Performance PLLs” article; by Hiroyasu Y, Kenji T. and Kenichi N. And its goal
is to avoid de bad effect of the D-FF in the PFD behavior and, so, to use it in more
exigent applications.
Its improvement consists of removing the dependence that the reset signal has with the
D-FF. That way, the D-FF delay will not affect the width and the delay of this signal
and a higher operation speed will be achieved.
3.2 COMPONENTS
This parallel and symmetrical configuration is composed by several blocks (which are
duplicated for each input signal: ref and VCO) that are described below:
- Delay cell: it takes the input signal and gives it a delay. Its output is called
“CK-ref” or “CK-vco”, respectively. It could be implemented by some
inverters (even number for not invert the signal), as in the conventional one.
20
Analysis and design of PFDs in CADENCE
This way, the delayed input signals are obtained and they will be in D-FF
input, respectively.
It is possible to control the introduced delay by the method of logical effort. It
is a straightforward technique used to estimate delay in a CMOS circuit. Used
properly, it can aid in selection of gates for a given function and sizing gates to
achieve the minimum delay possible for a circuit. Delay is expressed in terms
of a basic delay unit, τ = 3RC, the delay of an inverter driving an identical
inverter with no parasitic capacitance.
Really, the delay can be done by many ways (for example, all logic gates
introduce some delay) but the use of the inverters gives to the circuit simplicity
and it does not need too much circuitry.
- Shot pulse generator: it generates a pulse that will activate the “reset
generator”. It has two input signals: the original input signal (ref and VCO in
each branch) and the delayed by the delay cell input signal.
It will produce a pulse at the same time as the one of its inputs will be active
first, so, the ref or the VCO signal, respectively. The second input, the delayed
ref or VCO signal, determinates de width of the pulse.
21
Analysis and design of PFDs in CADENCE
22
Analysis and design of PFDs in CADENCE
The D-FF used in this study is the one that is shown in figure 3.5. It operates as
follow: When both CLK and RST are low, node 1 will be connected to VDD
through M8, M4. At the raising edge CLK, the node 2 will be connected to
ground through M3, M2. Since node 1 is connected to VDD that will turn off
M6 keeping node 2 from charging high. As RST signal charges up, node 1 will
be connected to the ground through M27, which will lead to pull up node 2 and
it will become high due to switching M6 on. Transistor M8 job is to prevent a
short circuit in the M5, M8amd M27 path. When CLK is low and RST is high a
large current will low this path so M8 is placed there to prevent this current and
lower the power consumption of the D flip-flop. Since we are getting flipped
value of Q, an inverter has been added at the end of the circuit to flip the value
and get a correct value of Q. The two D-FFs have the same design, one of them
will control the UP output of the PDF and the other will control the DOWN
output.
23
Analysis and design of PFDs in CADENCE
3.3 CONCLUSIONS
As a conventional PFD, the three valid states will be:
a) Up and Dn down (V constant, loop locked);
b) Up high, Dn down (V will increase to become locked);
c) Up down, Dn high (V will decrease to become locked);
According to all described above, the essential difference with the conventional one is
the reset generation. In the classic model, it is made by the AND output of the D-FF
outputs; in contrast, now the reset signal is directly built from the input signal and the
D-FF output. So, that way the D-FF delay does not affect the reset signal delay.
Besides, the result of changing the AND gate by the OR gate, reduces the total reset
signal delay but also increase the width of the reset pulse. Anyway, this effect can be
controlled by the pulse width of the input signals and also by the “delay cell” and the
“shot pulse generator”.
24
Analysis and design of PFDs in CADENCE
Chapter 4
After the theorist study of each design, it is necessary to verify the properties of which
boast. The parameters that will be analyzed are the ones that describe the operation of
this kind of circuits: transient response, periodic noise, the delay time/reset time and the
power consumption.
The two input signals are two pulse ones with the following parameters:
25
Analysis and design of PFDs in CADENCE
Bellow, the analysis parameters from which the two main designs will be compared are
briefly described:
- Noise: In this analyze, the noise produced by the components of the circuit will
be shown in its output nodes. It consist on a “pss” (periodic steady state) and a
“pnoise”(periodic noise analysis) simulations and from them, the output noise
will the plotted in a range of frequencies.
- Delay time and reset time: These parameters are usually the bottleneck in the
PFD designs. These circuits are called to be as faster as possible. So, the delay
time and the reset time must be the shorter the better. The delay time is
measured as the difference in time between the input signal and the output one
(in the half maximum voltage value) that ideally would be zero but it depends on
the circuit structure so it is difficult to reduce. Besides, in the basics designs of
PFD, the reset time is the reset pulse width also in the medium voltage value.
Both of them should be as short as possible.
First, one by one, and after making a comparison between all of them; their operation
will be discussed.
26
Analysis and design of PFDs in CADENCE
As it was described above, it is composed by two D-FF and an AND logic gate. Each D-
FF has got eight CMOS transistors and the AND gate has got six ones. So, this design
consists of 22 transistors.
Realizing the transient simulation, the obtained waves are illustrated in fig.4.2.
As it is shown on it, the input signals (Fref and Fvco) have different frequency
and phase. Besides, the A signal (which is the D-FF output whose input is Fref)
follows Fref input until the reset signal is activated. The same happens with B
signal (which is the D-FF output whose input is Fvco) and Fvco. Moreover, reset
signal (which is the AND gate output) is active only when both A and B are up.
27
Analysis and design of PFDs in CADENCE
4.1.1.2 Noise
Realizing the noise simulation, the obtained wave is illustrated in fig.4.3. Due
the symmetry of the circuit, both periodic noise responses in the Up and Down
nodes are the same.
28
Analysis and design of PFDs in CADENCE
Looking at the basic PFD design, it is clear that de delay between the input
signal and the output one will the de D-FF delay. In an ideal situation in which
neither the transistors, nor cables nor any device presented in the circuit have
delay, both input and output signals would be simultaneous.
Besides, the reset signal should act immediately when both Up and Down
signals are active at the same time. However, it is not that way because these two
signals must be processed by the AND gate. This reset time is the AND gate
delay.
29
Analysis and design of PFDs in CADENCE
Fig.4.4 shows the delay between the Fref signal pulse and an Up signal one.
Measuring this time difference in 0.9V, the obtained value is 88,9pseg.
Fig.4.5 shows the delay between the Fvco signal pulse and a Down signal one.
Measuring this time difference in 0.9V, the obtained value is 86pseg.
30
Analysis and design of PFDs in CADENCE
Fig.4.5 Delay time between Fvco and Down signal in a Basic PFD
- Reset time:
Fig.4.6 shows the reset pulse width. Measuring this time difference in 0.9V, the
obtained value is 151,4pseg.
31
Analysis and design of PFDs in CADENCE
As it was expected, both delay times between the inputs ant the outputs are
almost the same. Besides, the reset signal (AND gate delay) is lower than these
values (D-FF delay).
Next fig. 4.7 shows the current in the Vdd node. Taking a period of this signal
and integrating its value; dividing by the length of this period, the average
current is obtained. Then, multiplying by the Vdd voltage value, the power
consumption is obtained.
So, I= (38.99e-15)/2u=19.495e-9 A.
P=1.8V*19.495.5e-9A=0.035uW
32
Analysis and design of PFDs in CADENCE
There is a controversy regarding the reset time. As it is shown in fig. 4.2, the UP width
pulse depends on the reset signal width pulse. On the one hand, it is convenient to
reduce the width of the reset pulse in order to increase the circuit speed and also for not
loosing during this active time in the reset any rising edge in the input signals;
maintaining it as brief as possible to ensure a good performance in the design. On the
other hand, a very brief width pulse in the output signals can produce problems in the
operation of the charge pump.
33
Analysis and design of PFDs in CADENCE
Realizing the transient simulation, the obtained waves are illustrated in fig.4.9.
The operation of this design is essentially the same as the previous one.
34
Analysis and design of PFDs in CADENCE
4.1.2.2 Noise
Fig.4.10 Periodic noise response in a Basic PFD with extra delay in one output
Due to the incorporation of the two inverter devices, the noise suffers an
increase.
The delay time between the input and the output signals will be the same as in
the previous design, only the reset signal will be increased because of the
include of the two inverters. Now, the reset signal will not be defined as the
AND gate delay but as the AND gate delay and the two inverters delay. So, it
will be bigger.
Fig.4.11 shows the delay between the Fref signal pulse and an Up signal one.
Measuring this time difference in 0.9V, the obtained value is 88,9pseg.
35
Analysis and design of PFDs in CADENCE
Fig.4.12 shows the delay between the Fvco signal pulse and a Down signal one.
Measuring this time difference in 0.9V, the obtained value is 86pseg.
36
Analysis and design of PFDs in CADENCE
Fig.4.12 Delay time between Fvco and Down signal in a Basic PFD with extra
delay
-Reset time:
37
Analysis and design of PFDs in CADENCE
As it was supposed to be, the reset time has been increased thanks to the
inclusion of the two inverters. The reset time value is equivalent to the AND
gate and the two inverters delay. Its value is 227ps.
Next fig. 4.14 shows the current in the Vdd node. Taking a period of this signal
and integrating its value; dividing by the length of this period, the average
current is obtained. Then, multiplying by the Vdd voltage value, the power
consumption is obtained.
So, I= (48.77e-15)/2u=24.38e-9 A.
P=1.8V*24.38e-9= 4.38e-8w=0.0438uW
Of course, the inclusion of the two inverter devises involves an increase in the
power consumption.
38
Analysis and design of PFDs in CADENCE
Addressing the need of reducing the reset time, the Feedforward reset PFD, which was
presented in previous chapters; will be implemented and simulated. As it was already
described, it is composed by two D-FF, two delay cells, two shot pulse generators and
two reset generators. In total, the design has 40 CMOS transistors.
39
Analysis and design of PFDs in CADENCE
Looking at the following fig. 4.16, it is easy to observe that the circuit does not work
properly. It is due to the way of working of the delay cell. As it is said before, it is
composed by two inverter circuits that produce in the input cell a delay on it. But, as it
is shown bellow, the delay between Fref and CKref or Fvco and CKvco is so tiny that
the reset generator does not work as it should do.
So, the alternatives is to put more inverter circuits in these cell to increase the delay
between the original input signals and the D-FFs inputs which increases the number of
transistors and make the schematic more complicated.
Alternatively, the following simulations will be done with some external sources with
the same frequency of Fref and Fvco, respectively; but adding to their delay, other extra
one. It is a practical way to face the problem acting as the delay cell should do.
40
Analysis and design of PFDs in CADENCE
Anyway, in the real world, fabricants offer delay cells for all king of devises.
41
Analysis and design of PFDs in CADENCE
As it was described below, instead of the delay cell composed of two inverters, some
external voltage sources are uses to generate the CKref and the CKvco signals.
42
Analysis and design of PFDs in CADENCE
43
Analysis and design of PFDs in CADENCE
4.2.2.2 Noise
This design presents more noise in the output node. This is due to the increase
of devices in it, comparing to the basic topology. Each device introduces
noise and also the cables.
44
Analysis and design of PFDs in CADENCE
Looking at the design, it is clear that de delay between the input (CKref and
CKvco) signals and the output ones will the de D-FF delay. In an ideal
situation in which neither the transistors, nor cables nor any device presented
in the circuit have delay, both input and output signals would be
simultaneous.
Fig.4.20 shows the delay between the CKref signal pulse and an Up signal
one. Measuring this time difference in 0.9V, the obtained value is 79,7pseg.
As it is supposed, this value is practically the same as the ones in the previous
designs. The used DFF is the same so, its delay too.
45
Analysis and design of PFDs in CADENCE
Fig.4.21 shows the delay between the Fvco signal pulse and a Down signal
one. Measuring this time difference in 0.9V, the obtained value is 79.3pseg.
46
Analysis and design of PFDs in CADENCE
4.2.2.4 Current
Next fig. 4.22 shows the current in the Vdd node. Taking a period of this
signal and integrating its value; dividing by the length of this period, the
average current is obtained. Then, multiplying by the Vdd voltage value, the
power consumption is obtained.
So, I= (21.86e-12)/2u=10.93e-6 A.
P=1.8V*10.93e-6A=19.674uW
47
Analysis and design of PFDs in CADENCE
Apart from that, the design is much more complicated than the basic one. It includes 40
transistors that increase the noise, the current and the power consumption, and so, its
price. As it is said in previous chapters, this disadvantage can be solved partially by
using dynamic CMOS logic instead of the static one.
In the next chapter, these main designs will be simulated adding in its topology the
parasitic capacitance effect, which means another added disadvantage in their operation.
Anyway, the feedforward reset PFD design offers a high speed reset signal but ads too
much complicity in the circuit.
48
Analysis and design of PFDs in CADENCE
49
Analysis and design of PFDs in CADENCE
Chapter 5
Layout-Parasitic capacitances
Due to the simulator problems, it was not possible to apply the CDR to this layour
design and so, not possible also to simulate it. So, in order to study the effects of the
parasitic capacitances in the PFD designs descrived, other transistor level simulations
will be done but this time considering the presence of these noideal effects: considering
a capacitance in all the nodes of the circuit with a certain value.
The propose of this new study in to make a comparation between the operation of each
PFD design with (noideal) and without (ideal) the parasitic effects. And, besides,
compare the Basic PFD and the Feedforward reset PFD behaviours with this effect.
50
Analysis and design of PFDs in CADENCE
behavior to depart from that of 'ideal' circuit elements. In addition, parasitic capacitance
can exist between closely spaced conductors, such as wires or printed circuit board
traces. The parasitic capacitance between the base and collector of transistors and other
active devices is the major factor limiting their high frequency performance.
- Transient response
Next fig. 5.2 shows the transient response of the Basic PFD when the parasitic effects
are considered. As it is illustred in it, the waves forms are a little bit rounder than in the
ideal situation and it means a bad linearity behaviour in the design.
- Delay times
As it is said before, the delay time between Fref and Up signal measures the
DFF delay. The study considering the parasitic effects, consists of “adding” in a
51
Analysis and design of PFDs in CADENCE
simbolic way some capacitances in each node of the circuit. This fact supposes
an increase of the D-FF propagation delay as it is traduced in the results.
52
Analysis and design of PFDs in CADENCE
As the DFF is the same in both branches, the delay time is the same. The value
of this delay is 605ps.
- Reset time
The reset signal suffers a lot the parasitic effect. The capacitances added in each node
affect its width as it is illustred in fig.5.5. Now, the reset width value is 1010ps.
53
Analysis and design of PFDs in CADENCE
- Current-Power consumption
As it is obvious, the addition of the new capacitances in every node involves an increase
in the current that it is traduced as an increase in the power consumption by the circuit.
Calculing the average current in a period (2us) of signal and after, obtaining the power
consumption value, the results are as follows:
54
Analysis and design of PFDs in CADENCE
- Transient response
Next fig.5.7 shows the transient response of the Feedforward reset PFD when the
parasitic effects are considered. As it is illustred in it, the waves forms are a little bit
rounder than in the ideal situation and also the reset signals suffers a notable widening.
All these effects mean a bad linearity behaviour in the design.
55
Analysis and design of PFDs in CADENCE
- Delay times
As it is said before, the delay time between CKref and Up signal measures the
DFF delay. The study considering the parasitic effects, consists of “adding” in a
simbolic way some capacitances in each node of the circuit. This fact supposes
an increase of the D-FF propagation delay as it is traduced in the results.
56
Analysis and design of PFDs in CADENCE
57
Analysis and design of PFDs in CADENCE
As the DFF is the same in both branches, the delay time is the same. The value
of this delay is 599ps.
- Current-Power consumption
58
Analysis and design of PFDs in CADENCE
The value of the integral of the I signal in the Vdd node in a period is -21.188e-12A.
Dividind this value by the period length (2us), the following value is obatained:
10.944e-6A. To obtain the power consumption, P=IV and as the Vdd voltage value is
1.8V, the result is: P=10.944uA*1.8V=19.7uW.
5.3 COMPARATIONS
Next table shows briefly the previous simulation results. Values in black correspond to
the noideal simulations where parasitic capacitances are considered. Besides, values in
grey correspond to the ideal simulations with no parasitic effects made in Chaper 4.
59
Analysis and design of PFDs in CADENCE
38.99e-15A 21.86e-12A
0.0395uW 19.674uW
As it is detailed here, all the delay times increases because of the presence of the
parasitic capacitances. Also, its effect involves a huge increase in the power
consumption in both designs.
Comparing the behavior of both models in the real situation of parasitic presence, the
Feedforward reset PFD suffers less in the power consumption. Besides, while the reset
signal in the basic design suffers a huge increase, in the new design it remains immune.
60
Analysis and design of PFDs in CADENCE
APPENDIX A
LTSPICE SIMULATIONS
61
Analysis and design of PFDs in CADENCE
Before can work with CADENCE software, I tried to analyze the behaviors of the
circuits simulating them in LTSpice tool. SPICE is an English acronym for Simulation
Program with Integrated Circuits Emphasis (Simulation Program with emphasis on
integrated circuits). It was developed by the University of California, Berkeley in 1975
by Donald Pederson. It is an international standard which aims to simulate analog
electronic circuits composed of resistors, capacitors, diodes, transistors, etc.
For these simulations I used the models that I had in my university courses:
In the absence of data, all the transistors have the same dimensions: length (L)=1um
and width(W)=4um.
In all the simulation the VDD will be a DC voltage source of 1.8V. And the Fref and
Fvco have the following properties:
1. Basic PFD
Remaining, it is composed by two D-FF and and an AND gate.
62
Analysis and design of PFDs in CADENCE
- Transient response
The waveforms plotted in Fig. A.2 are the transient response: .trans 0 10u
63
Analysis and design of PFDs in CADENCE
- Delay time
It is measured as the delay between the input signals Fref and Fvco and the
output ones, Up and Down, respectively; in the middle of the maximum voltage
value.
Fig.A.3 LTSpice delay time between Fref and UP signal in Basic PFD
64
Analysis and design of PFDs in CADENCE
Fig.A.4 LTSpice delay time between Fvco and DOWN signal in Basic PFD
- Reset time
It is measured as the reset signal width in the middle of its maximum voltage
value.
65
Analysis and design of PFDs in CADENCE
From the simulator, the average current in a period is obtained (which is the
integral in a period of the current, divided by the period length). So, multiplying
this value to the Vdd voltage, the power consumption is derived.
66
Analysis and design of PFDs in CADENCE
67
Analysis and design of PFDs in CADENCE
- Transient response
- Delay time
68
Analysis and design of PFDs in CADENCE
It is measured as the delay between the input signals Fref and Fvco and the
output ones, Up and Down, respectively; in the middle of the maximum voltage
value.
Fig.A.10 LTSpice delay time between CKvco and DOWN signal in FD-PFD
69
Analysis and design of PFDs in CADENCE
From the simulator, the average current in a period is obtained (which is the
integral in a period of the current, divided by the period length). So, multiplying
this value to the Vdd voltage, the power consumption is derived.
70
Analysis and design of PFDs in CADENCE
APPENDIX B
71
Analysis and design of PFDs in CADENCE
Article A1
The design of a good PFD design means play with some PFD parameters that
sometimes are opposite to get this good design. In general, the main
characteristics that are sought are:
Its application in high speed designs: this typically involves high power
consumption. To obtain that, the method is to redesign the D-FF using
some high speed logic families.
High maximum operation frequency: so, it means reduce the circuit delay
and the number of transistors and their size. The maximum operation
frequency is defined as the shortest period with correct UP and DN
signals together with the inputs have the same frequency and 90⁰ phase
difference. It increases with the voltage supply (that should be as low as
possible).´
The ideal PFD design has free dead zone, the highest maximum frequency of
operation with the lowest power consumption. But that is not easy to obtain.
Later, some designs will be compared:
- Conventional PFD
One way to increase the operation speed without suffering damages is to use
a specific dynamic logic family, as TSPC (True Single Phase Clock), which
performs the flip flop operation with little power and at high speeds.
The TSPC logic is “n-p” logic, since of each gate exists the n-version and
the p-version. The main advantage of the TSPC logic is the presence of a
single clock, since for its internal structure it is not necessary the presence
of the clock negated. This family has shown good characteristics in term of
speed, area occupancy and power dissipation. It has got also some
disadvantages as a complicated distribution of the CLK signal and also, the
huge evaluation time difference between the P-logic (very slow) and the N-
logic.
73
Analysis and design of PFDs in CADENCE
Apart from that, every dynamic logic needs of a pre-charge (or pre-
discharge) transistor to lead to a known state some pre-charged nodes. This
is done during the working phase known as pre-charge phase or memory
phase; during another working phase, the evaluation phase the output has a
stable value.
Edge Triggered D flip flops are often implemented in integrated high speed
operations using dynamic logic. This means that the digital output is stored
on parasitic device capacitance while the device is not transitioning. This
design of dynamic flip flops also enable simple resetting since the reset
74
Analysis and design of PFDs in CADENCE
UP and DN signals trigger because of the falling edge of Fvco and FREF,
respectively.
-UP and DN output signals will be high when both FREF and Fvco are high.
-UP and DN output signals will be down when both FREF and Fvco are down.
So, the difference in pulse width between UP and DN is equal to the phase
difference between the input frequencies.
In summary, the Falling Edge PFD design presents the following properties:
free dead zone, the lowest power consumption (thanks to the only 12
transistors in use) and a higher maximum operation frequency than the
conventional PFD design but lower than the MPt-PFD.
- Simulaciones
The simulated circuit is like as follows and it is fed with two input signals that
have the following properties:
77
Analysis and design of PFDs in CADENCE
In it, we can see that the first pulse width of the UP signal is the phase difference
between the two input signals.
78
Analysis and design of PFDs in CADENCE
Now, the signal whose first pulse width shows the difference phase between Fref
and Fvco is DOWN (DN) signal.
To analyze the results in a better way, I re-simulated the circuit introducing two
input signals with the same frequency but a delay between them.
79
Analysis and design of PFDs in CADENCE
Measuring:
80
Analysis and design of PFDs in CADENCE
So, the time difference in the middle voltage value between the Fref and the Up
pulses is 35.1357ns.
81
Analysis and design of PFDs in CADENCE
So, the time difference in the middle voltage value between the Fvco and the Dn
pulses is 12.4104ns.
82
Analysis and design of PFDs in CADENCE
Article B1
The new proposed PFD is used in PLLs to recover high-frequency clocks to integrated
NRZ pseudo-random sequences. It has a simple architecture, removing the state
machine.
Traditionally, phase detectors used to this application include a state machine with a
nonlinear operator to generate energy at the speed of the data; but their performance
degrades rapidly at high frequencies due to flip-flop which forms the state machine.
Fig.1
This structure could be still simplified in PLLs with ring-oscillator type VCO. In that
situation, the two delay stages to generate CLK_d1 and CLK_d2 signals would not be
necessary because they could be obtained from the VCO. This idea is shown in the
following figure:
83
Analysis and design of PFDs in CADENCE
Fig.2
Furthermore, if the number of stages of the oscillator is even and bigger than 4, the
AND gate can be removed since that signal is generated directly to the VCO output.
Next figure shows that idea:
Fig.3
This new PD design can be used for both clock recovery and random signals and allows
working at higher speeds tan conventional ones.
84
Analysis and design of PFDs in CADENCE
Article B2
This new design gives a modular extension range of -2Nπ to 2Nπ, where N is an
integer, order of the PFD/CP. This new range improves frequency acquisition time.
Besides, the improvement of frequency acquisition of single-loop PLLs requires an
extended linear range of operation for PFDs and, also, it is a way to avoid some kinds of
noises.
PFD consists of 2 D-flip-flops and an AND gate. And the CP is made of 2 current
sources Io, 2 switches and a capacitor. The current sources charge or discharge the
capacitor according to the flip-flop output (QA and QB).
Finite state machine: when the phase difference between the input signals IN1 and IN2 is
within ±2Nπ, Iout (in average) is proportional to this phase difference. For input phase
differences larger than 2π, the output current is not linear. Talking about times, the time
that the state machine spends in the state 1 is equal to the time difference between IN1
signal rising edge and IN2 rising edge. And, thus, the amount of charge to the capacitor
is proportional to this time.
As it is said before, if the input phase difference is larger than 2π, the linearity
disappears. The way to make it larger is to increase the number of states of the PFD in
85
Analysis and design of PFDs in CADENCE
order to know the exact difference between the number of rising edges of IN1 and the
number of rising edges of IN2. This difference is the frequency difference between IN1
and IN2. Due to the CP elements, this frequency difference is integrated, so at the end, it
provides the phase difference between IN1 and IN2.
The new state machine has 2N+1 states. This new state machine works like that: if the
phase difference between the input signals IN1 and IN2 is between 2π(k-1) and 2πk; k is
≥0 and ≤N; then, the state is +k in the time interval from the rising edges between
signals IN1 and IN2. On the other hand, if the phase difference between IN1 and IN2 is
between -2πk and -2π(k-1), the machine is in the state –k in the time interval from the
rising edges between IN1 and IN2.
For example, according with those details, a PFD/CP with range of linearity of ±4π
(N=2) should be like that:
86
Analysis and design of PFDs in CADENCE
Note that the use of inverts is to avoid critical races that could appear between the
various reset signals.
As the aim of this new design is to increase the range of linearity, the next figure shows
the simulated average output current Iout normalized to Io versus the input signals phase
difference normalized to π. The conventional one (N=1), N=2 and N=3 can be
compared in it and it is easy to see that actually, the bigger N the larger linearity range:
87
Analysis and design of PFDs in CADENCE
Such an increase of the linearity range improves the acquisition frequency time as it is
shown in the next figure. In it, the transient VCO input voltage (normalized to V ωc)
when the input signal is a frequency step of 4ωc is shown versus the acquisition time.
Looking at the figure, the acquisition time is reduced by about 40% in N=2 design and
50% in N=3 design, comparing with the conventional design (N=1):
88
Analysis and design of PFDs in CADENCE
Article B3
A new phase detector design is presented, which is capable of linear operation over an
arbitrary wide operating range. It is constructed with a pair of n-bit counters. Its linear
operating range is between – (2n-1)π to +(2n-1)π. This kind of design provides several
benefits. First, the linear range of behavior could be modified according to the
application; so, cycle slips can be avoided and that allows an analytical treatment of
transient behavior. Second, this design involves an important increase in acquisition
speed most of the times.
As it is shown, each input is clocked by a counter: rising edges from input1 by the up
counter and rising edges from input2 by the down counter. The outputs of these two
counters will be summed and converted to an analogical signal thanks to the D/A
converter.
If the two inputs have the same frequency, the counters count at the same rate. And, if it
exists, the phase difference between the two input signals could add some duty cycle. If
the frequency of the input2 increases, the counter of this input will be faster than the
other counter; and the overall output declines reflecting the accumulative difference
phase between the two signals. After the D/A convertor, there is a differential amplifier
which provides a DC offset that gives a symmetrical swing around zero volts.
89
Analysis and design of PFDs in CADENCE
An accumulative phase detector as this one, using n-bit counters has an operating range
of ±(2n-1)π radians, and the n factor will be chosen depending on the application. This
wider operating range provides a linear character to the design and that guarantees no
cycle slips and phase continuity. To really guarantee no cycle slips, it is important to
support S/N ratios high and to use a low noise design in D/A converter and the
following analog circuit.
To make sure of this design works and meets expectations, an experimental PLL circuit
has been constructed where the new design could be compared with the traditional
phase/frequency detector. The PLL circuit is shown below:
After the simulation, the phase and the frequency error of the PLL with the traditional
PFD and with the accumulative PD (with 4-bit counters) have been compared.
Next two figures show the measured phase error transient obtained with a PFD and with
the new accumulative PD (filtered, to appreciate it better). In the first one, this error
reaches 2π in around 50µs and thereafter, the loop suffers some cycle slips until around
1700µs, when the system becomes stable. In contrast, with the accumulative PFD
(filtered), the peak phase error is around 9π rad. Now, the system becomes stable in
600µs, a third part of the same system using the traditional PFD.
90
Analysis and design of PFDs in CADENCE
The following figure shows the measured frequency error transient obtained with a PFD
and with the new accumulative PD after being filtered. Again, the tuning time with the
accumulative PD is the third part.
The use of this accumulative PD is beneficial when there is a frequency change of 15%
or more. In this case, cycle slipping could appear and it could be avoided with the
accumulative phase detector.
91
Analysis and design of PFDs in CADENCE
MAIN REFERENCES
[1] Hiroyasu Y., Phase Detectors/Phase Frequency Detectors for High Performance
PLL. Analog Integrated Circuits and Signal Processing, 1999
[5] Othman M., A Simple CMOS PFD for High Speed Applications, European Journal
of Scientific Research, 2009
[6] Tang Y., Phase detector for PLL-based high –speed data recovery. Electronics
Letters, 2002
[7] Moura L., A modular phase-frequency detector design with ±2Nπ linear range
operation, Circuits, Systems and Signal Processing, 2004
[8] Mhd Zaher Al Sabbagh, B.S., 0.18μm PHASE / FREQUENCY DETECTOR AND
CHARGE PUMP DESIGN FOR DIGITAL VIDEO BROADCASTING FOR
HANDHELD’S PHASE-LOCKED-LOOP SYSTEMS, The Ohio State University,
2007
92
Analysis and design of PFDs in CADENCE
OTHER REFERENCES
93