Professional Documents
Culture Documents
Articles
Clock and data recovery 1
Clock and data recovery/Introduction 2
Clock and data recovery/Introduction/Definition of (phase) jitter 3
Clock and data recovery/Introduction/Jitter is far from sinusoidal.. 6
Clock and data recovery/Introduction/Models can only be linear.. 7
Clock and data recovery/Introduction/Acquisition, tracking and jitter performances 10
Clock and data recovery/Buffer Memory (Elastic Buffer) 12
Clock and data recovery/Buffer Memory (Elastic Buffer)/Clock domains 14
Clock and data recovery/Buffer Memory (Elastic Buffer)/Overflow and Underflow 16
Clock and data recovery/Buffer Memory (Elastic Buffer)/Transit delay inside the elastic buffer 17
Clock and data recovery/Structures and types of CDRs 18
Clock and data recovery/Structures and types of CDRs/The CDR phase comparator 21
Clock and data recovery/Structures and types of CDRs/Examples 27
Clock and data recovery/Structures and types of CDRs/The jitter tolerance function 40
Clock and data recovery/Structures and types of CDRs/The (slave) CDR based on a second order
PLL 42
Clock and data recovery/Structures and types of CDRs/The (slave) CDR based on a second order
PLL/The jitter transfer function 45
Clock and data recovery/Structures and types of CDRs/The (slave) CDR based on a second order
PLL/The error function 46
Clock and data recovery/Structures and types of CDRs/The (slave) CDR based on a second order
PLL/The jitter tolerance function 48
Clock and data recovery/Structures and types of CDRs/The (slave) CDR based on a second order
PLL/The unit step response 51
Clock and data recovery/Structures and types of CDRs/The (slave) CDR based on a second order
PLL/The jitter transfer and tolerance of two cascaded CDRs 52
Clock and data recovery/Design values used in practice 54
Clock and data recovery/Design values used in practice/Continuous transmission mode 55
Clock and data recovery/Design values used in practice/Burst transmission mode 57
Clock and data recovery/Design values used in practice/Burst transmission mode/Step response of
a phase aligner 58
Clock and data recovery/Miscellanea 63
Clock and data recovery/Conclusion 71
References
Article Sources and Contributors 73
Image Sources, Licenses and Contributors 74
Article Licenses
License 76
Clock and data recovery 1
• Introduction
• Definition of (phase) jitter
• Jitter is far from sinusoidal..
• Models can only be linear..
• Acquisition, tracking and jitter performances
• Buffer Memory (Elastic Buffer)
• Clock domains
• Overflow and Underflow
• Transit delay inside the elastic buffer
• Structures and types of CDRs
• The CDR phase comparator
• Examples
• The jitter tolerance function
• The (slave) CDR based on a second order PLL
• The jitter transfer function
• The error function
• The jitter tolerance function
• The unit step response
• The jitter transfer and tolerance of two cascaded CDRs
• Design values used in practice
• Continuous transmission mode
• Burst transmission mode
• Step response of a phase aligner
• Miscellanea
• Conclusion
Clock and data recovery/Introduction 2
Eye diagram
On the screen of an oscilloscope, triggering the display with the clock signal, it is possible to display such clock and
an NRZ data stream associated with it.
The subsequent traces of the data waveform trace different patterns, owing to the random nature of the source data.
Note that the physical limitation of slew rate and of signal bandwidth reduce the slope and smooth the corners of the
signal transitions.
The presence of noise, of intersymbol interference and of various types of distortions, that affect any real
transmission, make the individual traces spread out and differ from each other.
In practice, the pattern of a train of “eyes”, the "eye pattern" will appear on the scope.
Why call it an "eye" diagram?
Clock and data recovery/Introduction/Definition of (phase) jitter 4
During the signal transmission, noise, intersymbol interference, channel non linearities and jitter are added to the
signal.
The eye diagram at the receiving end (using the original, un-jittered clock to trigger the scope) shows a closing eye.
The closing eye corresponds in fact to a signal that is less easily detected (= less “visible”).
When the data stream is a coded multilevel signal, the diagram shows a stack of eyes.
Relative phase
The received signal can be strongly amplified and then limited, so that , as a result, it switches rapidly between two
opposite levels.
The time position of its abrupt level transitions still betray the analog and imperfect nature of the signal.
In the signal, the transitions through the mid-level amplitude carry the timing information.
Clock and data recovery/Introduction/Definition of (phase) jitter 5
The positions of the level transitions move continuously back and forth in an irregular, almost nervous, manner (=
they jitter).
If the vibration reaches as far as the middle point before the next transition (= the center of the eye diagram), the bit
level in the received signal may be falsely detected (= errored bit).
The jitter added to the (otherwise linear) phase of a constant frequency signal
In some practical cases it is useful to distinguish between the AC part of x(t) – and call it jitter in a restricted sense -
from its very low frequency components – and call that wander -.
The wander part of the jitter is made up by the low frequency (or truly DC, which is nothing but a frequency drift)
components.
More precisely, the wander components are the low frequency ones that impact in the topic under study only with
unidirectional, slow but large, deviations. During the duration of the phenomenon being studied, the drift
Clock and data recovery/Introduction/Definition of (phase) jitter 6
components last less than one half cycle at their frequency (their period is more than twice the interval of time being
considered).
The jitter proper is made by the components relevant to the topic under study as periodic functions of time (or as
functions of j ).
A slow, large deviation of the signal phase from 0t would be seen on the scope as a drift of the eye diagram to the left
(negative phase variation) or to the right (positive phase variation).
The eye drift of a real signal, although slow, exhibits in practice the same random behavior of the jitter in general.
This drifting sometimes to the right, sometimes to the left, is called wander.
Mathematical descriptions
Block diagrams can be used to describe a physical system, or its schematic diagram can be used, or the set of
mathematical equations characterizing its parts.
However mathematical models, in the form of systems equations, are needed when detailed relationships are
required.
Every control system may theoretically be characterized by mathematical equations.
The solution of these equations represents the system’s behavior.
Often this solution is difficult if not impossible to find.
In these cases, certain simplifying assumptions must be made in the mathematical description.
Linear models
For a large number of control systems these approximations and simplifications lead to systems describable by linear
ordinary differential equations. Moreover, techniques for solving these equations are well documented in the
literature of mathematics and engineering.
In modern communication systems the implementation of the clock and data recovery circuits (CDR) is primarily
digital, and the circuits can be very complex (in particular the loop filters and the local oscillator).
The designer sometimes may find it difficult to choose the right architecture and also to understand the operation of
the circuit itself in some conditions.
The best way to solve this is to choose a system architecture that corresponds to the structure of a well understood
model of CDR, and to refer to the mathematical description of it to understand the closed loop operation in all
conditions and to actually design the system circuitry blocks.
Not only do these first or second order CDR models offer choice of the best compromises possible between stability
and performance, but they can also be well described mathematically and their operation understood. Once familiar
with their operation, the circuit designer will be able to decide what circuit choices to make, in terms of structure of
the blocks and even of the order of its CDR.
Clock and data recovery/Introduction/Models can only be linear.. 8
will be presented and emphasized as the only really important models to use. Although such idealizations may not
perfectly describe our circuit in some specific aspects (non-linearity of some circuit blocks, etc.) they serves to
simplify the mathematics, keep us from getting lost in a welter of algebraic quantities, and –most of all- produce
results that can be interpreted quite usefully.
Further on in the book, a section called Structures and types of CDRs/Examples does show the characteristic
functions of these two architectures, as well as the characteristic functions of some other architectures.
The other architectures that are presented in Structures and types of CDRs/Examples are there only for didactical
purposes, but are of no practical use for the electronic engineer.
The two fundamental architectures instead, are further developed in two dedicated sections :
1. first order loop, the burst-mode CDR, at: Design values used in practice/Burst transmission mode
2. second order loop, the slave CDR, at : Structures and types of CDRs/The (slave) CDR based on a second order
PLL .
References
[1] http:/ / cid-a0b14219829a3f6f. skydrive. live. com/ browse. aspx/
PaB%20in%20Windows%20Live%20SkyDrive?authkey=dJjdFK6n*jw%24|
Clock and data recovery/Introduction/Acquisition, tracking and jitter performances 10
Acquisition
To study the acquisition phase, the best mathematic tool is the unit step response of the loop.
As long as the received signal is not present, the CDR is kept idle by the LOS control signal, which is generated by
the first stages of the receiver, (LOS = Loss Of Signal).
When the LOS is deactivated, the CDR is released and the acquisition phase begins.
The phase of the incoming signal has at that moment (in all practical cases) a random difference from the phase of
the local oscillator of the CDR. The CDR then reacts (like any control system does react) to the abrupt step change
of the input signal.
There are only two CDR architectures of practical use, and the acquisition behaviors of the two are markedly
different.
As we will see, one of the two architectures (the simplest one, called "first order loop of type 1") has the best
acquisition performances.
Its response to an abrupt change of phase (step input), even if combined with a frequency difference between the
timing of the received signal and the free running frequence of the local oscillator (ramp input), is always free from
initial overshhoots.
In fact the phase difference during the acquisition is always a decreasing function and the acquisition transient of this
type of circuit is always free of initial "slips".
Clock and data recovery/Introduction/Acquisition, tracking and jitter performances 11
There are other CDRs (based on the more sophisticated architecture, called "second order loop of type 1") whose
acquisition is inevitably long and sometimes a series of slips precedes the achievement of a stable acquisition.
Although the presence of slips at the beginning of the acquisition is considered acceptable in some application
(Regenerator CDRs, see here below), it should be restricetd only to cases of real necessity for two reasons:
• it is impossible to model it because of the intrinsic strong non linearities (and therefore it is difficult to have
absolute confidence in it)
• it is really inelegant!
Tracking
Poor tracking: when the input jitter becomes larger, the loop slips twice, then locks-in again.
All CDRs
To study the tracking state, the fundamental characteristic of all CDRs is:
• the ability to operate correctly (that is with a low enough Bit Error Rate = BER) in the presence of a given jitter.
This is called Jitter Tolerance (or Jitter Acceptance), and is often specified as a mask of jitter amplitude versus
jitter frequency. The circuit must operate correctly at any condition defined by a jitter amplitude and a jitter
frquency within the boundary set by the mask. In other words, the locus of the conditions of onset of BER shall be
measured and found above the boundary set by the mask.
and, if the CDRs are intermediate stages in a series of links and resend the regenerated data stream further on,
Clock and data recovery/Introduction/Acquisition, tracking and jitter performances 12
Regenerator CDRs
two other characteristics are important as well:
• the filtering of jitter frequencies above the frequency range involved in the lock-in and tracking. This is called
Jitter Transfer Function, and there often exists a mask setting an upper limit for the curve that characterises our
circuit (the jitter transfer function is the ratio, at any given frequency, of the amplitude of the jitter at the output to
the amplitude of the jitter at the input).
The presence of a filter block in the 2nd order PLL allows one more degree of design freedom (instead of τ
only, ωn and ζ can be chosen). The 2nd order architecture is used when a particular requirement for jitter
filtering makes the 1st order PLL inadequate. The quantity ωn essentially defines the cut off frequency of the
low pass effect that such PLL has on the incoming jitter.
• the amount of Generated Jitter inside our circuit (phase noise added to the retrieved timing signal). Often
specified as a rms or peak value of the output jitter with zero input jitter.
The ITU-T, in its Recommendations Telecommunication Standardization Sector (ITU-T) [1], is an unvaluable source
of theory and practical knowledge on the subject. It primarily deals with the requirements of large, geographical,
networks, and therefore these Recommendations are especially useful, and exact in their quantitative references, for
the engineer that studies Telecom digital networks, but they can also provide a lot of insight if other fields of
application of CDRs are being targeted.
References
[1] http:/ / www. itu. int/ publications/ sector. aspx?lang=en& sector=2
Such buffer, in principle, consists of a R/W memory with circularly sequential addresses, and of two counters.
The write counter times the writing into the memory of an incoming serial flow of information, and the read counter
sets, in turn, the timing of the reading operation.
Clock and data recovery/Buffer Memory (Elastic Buffer) 13
Elastic buffers
If the buffer is meant to absorb delay variations due to the transit along a transmission line (that is: designed to
absorb jitter), then its size in bytes (or in bits) is smaller, the control of the phase relation of the write and of the read
clocks is more accurate, and its name specialises into “elastic buffer”.
An adder compares the content of the two counters.
At the start-up of the system, the write counter is set to 0, and the reading counter is set to half the memory depth. It
is possible to program the initial value of the read counter to less than half the memory depth, to use less than the
entire memory - thereby reducing the transit delay.
In general a buffer memory may be used to absorb delays, or just delay variations (jitter), generated by transmission
over physical media, or by software elaboration, or other types of delays.
Phase aligners
A special case of elastic buffer is the "phase aligner"
The phase aligner is an elastic buffer used inside a single clock domain. It is typically implemented as a
1st order PLL.
A more formal definition, without mention of the operation within a single clock domain, can be:
The phase aligner is a CDR that shifts the phase of the received signal so that it matches the phase of a
reference clock (and then regenerates the aligned signal with that clock).
References
[1] http:/ / en. wikipedia. org/ wiki/ Data_buffer|
[2] http:/ / en. wikipedia. org/ wiki/ OSI_model
[3] http:/ / en. wikipedia. org/ wiki/ Data_buffer
Clock and data recovery/Buffer Memory (Elastic Buffer)/Clock domains 14
In general, the slave clock needs not run at the same frequency of the master.
There are cases where the frequencies are different (by the ratio of two integer numbers).
When the frequencies differ, since the jitter is measured in radian (i.e. as a fraction of 2 * clock period), the same
jitter amount if measured in time (i.e. seconds) will represent, if measured in radian, an amount of jitter different at
the slave than at the master, by the ratio:
If two clocks exhibit a phase difference because they have followed different paths inside the same clock domain, or
because they belong to different clock domains, a buffer memory can be used to compensate that difference.
The figure below illustrates the second case, where, to compensate for the phase difference of two clocks of different
domains, a buffer memory is used at the point of border connection.
A clock signal that has cumulated jitter along a transmission path is re-syncronized with the system clock.
The figure above shows a case where two different clocks (the system clock and its copy after many
regenerations) are to be re-synchronised together. This is not the most general case, because the two clocks
represented here belong to the same clock domain (i.e. are generated from the same clock, apart from fixed
delay and jitter).
If two clocks that do not share a link with a common clock source (=they belong to different clock domains)
and are to be reconciled (by an elastic buffer), then the thing is complicated by the fact that, in addition to
jitter, they exhibit a frequency difference ( a wander), although small.
If an elastic buffer, of depth equal to n clock cycles, is at the boundary between different clock domains of
frequencies f1 and f1-Δf, it will be subject to periodic slips (under or overflows), with a frequency given by:
• 'Deliberate Slips (overflow or underflow execution with minimum inconvenience to the “payload”)
Clock and data recovery/Buffer Memory (Elastic Buffer)/Overflow and Underflow 17
• In some cases, when the incoming data flow is framed, if a slip is inevitable it may be convenient to slip
(cancel or replicate) an entire frame, exactly from beginning to end (e.g. TDM frames of layer 1
synchronization).
• Or, if the incoming data have a layer 2 packet structure, it may be convenient to drop or duplicate
inter-frame idle characters (e.g. Ethernet inter-frame characters). To do so, when the reading clock gets
close (e.g. within +/- 5% of the buffer size) to the writing clock and a slip appears inevitable within a short
time, the decision to slip is taken, but it is put to effect a little later, in coincidence with the start of the next
frame. Obviously, the buffer must be long at least 10% more than one entire frame.
The cost is not significantly different whether the buffer memory is organised by bit or by byte. The saving in
transit time when organising by bit with respect to organising by byte, is not significant either, as the average
delay is expected to be several bytes.
A clock signal that has cumulated jitter along a transmission path is re-syncronized with the system clock.
It is easy to measure the total delay in periods of the system clock at the output of the elestic memory( but it will be
inclusive of the delay added by the elastic buffer). Then the delay of the elastic buffer shall be deducted, and the
transmission delay exactly computed. (In the system of the figure above it would also include the time added by the 9
regenerators!).
A PLL in a CDR is of unity feedback, of the first or of the second order and of type 1.
The PLLs inside CDRs are in all cases of the unity feedback kind. The input of the circuit is the phase of a reference
signal (a clock or a serial data signal) and the output is the phase of a signal (a serial data stream or a simple clock).
The output is locked -as much s the circuit can- to the input signal. The input signal is contrasted with the output
signal in a phase comparator, whose output is the error signal. The error signal is processed and then used to control
another circuit block that produces the output signal.
Clock and data recovery/Structures and types of CDRs 20
• Type 1 systems are able to track signals that exhibit a step change of phase, without steady-state error. They are
not able to track unit ramp inputs without a finite error, though.
Type 1 system are the preferred type for CDRs, because they can be designed to phase lock:
1. with zero phase error when there is no frequency (just phase) difference
2. with a very small phase error when the master clock embedded in a received signal stream has a frequency
different from the free running frequency of the local oscillator.
• Type 2 systems are not used in the study of CDRs because two poles in the open loop transfer function (in a unity
feedback loop!) do not allow any margin for designing other needed performances of the PLL. Type 2 is
incompatible with 1st order, and is also too much of a requirement for a 2nd order PLL with other useful
characteristics.
References
[1] "The Synchronous Oscillator" (http:/ / www. tapr. org/ ss_g1pvz. html#synch_osc) James A. Vincent, 1993
[2] Behzad RAZAVI, Monolithic Phase-Locked Loops and Clock Recocvery Circuits .- Theory and Design. IEEE PRESS 1996 - ISBN
0-7803-1149-3
Linear range
Even if a circuit operates as linear (to any practical purpose), it has a finite range of operation. The EXOR circuit is
probably the best introductory example:
The figure above represents a clock signal on the lower input that changes its delay with respect to the upper input.
The output is a periodic signal of twice the frequency of the inputs (the EXOR is a “multiplier”). If such delay
Clock and data recovery/Structures and types of CDRs/The CDR phase comparator 22
reaches one full half cycle of the period of the two signals (180o), the output reaches its maximum level. If the delay
is further increased, then the output gradually decreases to its minimum level. If the two inputs are exactly in phase
with each other (0o), the output is again at its minimum. If the phase difference is gradually varied, the entire
input-output characteristic of this circuit can be obtained. It is a triangular sawtooth of period 180o (= π) and
amplitude +/- π (or 0 to 1, depending on the circuit implementation!).
The useful signal is the filtered output, not the output of the EXOR, that has useless wide swings at the clock
frequency. In fact the phase comparator always works at the bit line frequency (very high) but the CDR loop just
needs the low frequency components of the phase comparison (Low frequency means in this case “not higher than
the maximum frequency of significance for the control loop operation”, which is at least 10 times less than the bit
line frequency, but often 100 or more times lower). In the figure above, two points might be emphasized:
1. Only one of the two slopes of the sawtooth characteristic correspond to stable operation of the loop. Operation on
the other one is unstable and the working point would quickly move to the closest end of the nearest stable slope.
2. The gain of this comparator, along any stable slope of its characteristic, is 1V / π/4 radian, that is 1.273 V/radian.
Clock and data recovery/Structures and types of CDRs/The CDR phase comparator 23
Introduction to the NRZ-to-Clock phase comparator. See the next figure for the full circuit.
When a bit is followed by a bit of the same polarity, no transition occurs. A phase comparator of easy making is one
that generates a pulse every time a signal transition is received, like the EXOR multiplier of the previous section
above does when comparing two clock signals. That comparator (as well as the one in the figure above) is
considered “linear” because the duration of the generated pulses is proportional to the phase distance between the
transition of the incoming signal and the corresponding transition of the other signal that enters the other input of the
comparator. The pulses obtained in the figure above tell -with their duration- the phase distance between each
transition of the incoming signal and the next sampling edge of the local clock (such distance should be 900 , or π/2,
for optimum sampling of the received waveform). Unfortunately such pulses can only be obtained when a signal
transition is present. What to do when no transition is received? This is similar to the dilemma of a car driver at night
when temporarily dazzled by an excess of light.
• 1. To steer abruptly to one side? Certainly not! But this is what our waveform in the figure above would make our
CDR do, because it stays at its lowest level when no transitions are present!
• 2. The equivalent to keeping the steering wheel in its mid position would be obtained with the following retrofit to
our phase comparator, that adds pulses exactly corresponding to perfect phase lock whenever the information
carrying pulse can not be obtained because a transition is missing:
Clock and data recovery/Structures and types of CDRs/The CDR phase comparator 24
The gain of this phase comparator will be a function of the ratio between the actual number of
transitions in the incoming signal, and the number of transitions corresponding to a continuous
10101010.. data pattern in it. Let's call this ratio DT, which will vary between 0 and 1.
The comparator gain can be calculated considering that the couple of output pulses corresponding to one
input transition yield 0 V for a clock sampling the transition (clock phase = 0 radian), 0.5 V for a clock
sampling the center of the received pulse (clock phase = π radian) and 1 V for a clock sampling the end
transition of the received pulse (clock phase = 2π radian) :
Gain = DT / 2π [V/radian.]
The characteristic of this comparator as a function of the phase difference of its inputs is again a
sawtooth, but, in this case, with normally oblique stable slopes and vertical unstable slopes.
Clock and data recovery/Structures and types of CDRs/The CDR phase comparator 25
Characteristic of the phase comparator. No consideration about the transition density of the incoming signal is made, therefore assuming it to be
100%.
It is important to point out that the transition density DT in practical cases is never very close to zero
because the presence of different elaborations of the bits that are actually transmitted contributes to
bring DT towards its average value of 0.5. The possible presence of factors that may modify DT, like bit
scrambling, error correcting coding, framing, 8B10B character coding, etc., shall be taken into
consideration to evaluate the actual behavior of the phase comparator and its gain.
• 3. It would be best for our driver -temporarily blind- to maintain for a while the position of the steering wheel that
he had just before the loss of vision. The same holds good for the output of our phase comparator. But our phase
comparator operates at the line bit frequency, and its memory span can not be extended beyond a few flip-flops,
that is not beyond a few periods of the local clock. After that, any memory of the last meaningful phase
comparison is lost by the phase comparator. To find inside our CDR a memory element similar to the memory of
our driver, we must involve the loop filter, and use it to maintain memory of the last meaningful information from
the phase comparator. But if the blindness (=the lack of transitions) persists beyond a certain time, our
unfortunate driver should not insist keeping the steering wheel turned, but shall gradually take it back to its
central position. With a strong analogy, we shall not freeze our filter status for too long, but allow it to evolve
towards its discharged state (= towards driving the local oscillator to its free running frequency). In this latter
sense, an elegant solution to the need of mitigating the problem (of uneven density of transitions in the received
signal) can be seen in [1] . (A sub-circuit detects when a transition is missing in the incoming NRZ data stream
[i.e. when the next data bit is NOT the opposite of the previous data bit]. In such occasions the output of the
phase comparator would be unable to generate the couple of pulses whose average duration tells the phase
difference between the local clock and the data transitions. The sub-circuit then forces the Low Pass Filter of the
PLL to the same filter output that would result from the addition of a “dummy” couple of pulses equal to the last
one from the output of the phase comparator.)
• Bang-bang drawbacks: primarily noise generation (and difficulty to model its behavior). A CDR that uses a
bang-bang phase detector generates a lot of phase noise because it “overestimates” the small amplitude jitter. In
fact it behaves like a linear comparator of very high gain when the input jitter is of small amplitude, and it
behaves like a linear comparator of low gain when the jitter amplitude is large.
• Bang-bang (supposed) advantage : jitter tolerance. In presence of jitter with large amplitude, this type of
comparator approximates a low gain linear comparator. The low gain corresponds to an over-damped loop, that
has no undershoot in its jitter tolerance characteristic, as we will see when analyzing the jitter tolerance of a
(slave) CDR based on a second order PLL
• Bang-bang compromise: Cascade of a CDR1 (with some desirable jitter tolerance but poor jitter filtering and
generation) followed by a CDR2 (with good jitter filtering). The second CDR will be a linear one, with good jitter
transfer characteristics (= will filter out most of the jitter generated by the first), cascaded to the first based on the
bang-bang.. This compromise imitates a solution that has in general some merits, described later on in Cascade of
CDRs. The second CDR will correct to a good extent the shortcomings of the first (noise generation) while the
jitter tolerance of the first will not be reduced. It remains to be seen, however, why a good design of the cascade
of two linear CDRs (the first one to give a good jitter tolerance, the second to give a good jitter transfer and
filtering) would not be a better solution in many -if not all- respects.
References
[1] A Monolithic 156 Mb/s Clock and Data Recovery PLL Circuit Using the Sample -and-Hold Technique by Noboru Ishihara and Yukio
Akazawa, IEEE Journal of Solid-State Circuits, vol. SC-29, pp. 1566-1571, December 1994
Clock and data recovery/Structures and types of CDRs/Examples 27
The PLL in this CDR is of unity feedback, of the first order and of type 0.
The relation of the output to the input (= the transfer function) is:
• that the loop tracks the jitter frequencies below , and is unable to follow higher jitter
frequencies;
• that there remains a steady state error, which is minimised if is >> 1. In fact a type 0 loop like this one
needs a small phase error to track a delta phase in the incoming signal (with respect to the phase of
Clock and data recovery/Structures and types of CDRs/Examples 28
the free running oscillator!) of . In other words, if the local oscillator is synchronous with the received signal
(i.e. both are within a single clock domain), this circuit provides a strong reduction of the phase difference
between the two, that is reduced from to .
• A circuit of this type may be useful to phase align (with a small residual error) the clock, delayed by the
amplification buffers of the clock tree, to the original reference clock, inside an IC chip (= inside a single clock
domain). As long as the residual phase error is kept small by a large loop gain, it may be acceptable in such an
application. The unconditional stability and the fast response are useful, while the mediocre jitter filtering at
high frequencies, as well as the small steady state error may not be important in the application.
The Phase Locked Loop in this case is of the first order. The unity feedback (always the case for PLLs) corresponds to a loop of type 0.
1st order type 1 (with the complementary delay): the phase aligner
= the CDR with good acquisition characteristics.
This is the first architecture of two that must be remembered.
A second example of unity feedback, first order and type 1. The local oscillator is fixed and an adder compensates the phase deviations of the
incoming signal before its regeneration with the local clock
- a clock independent from the PLL operation (i.e. in the Figure above) is used for the regeneration, while it
is -y(s) instead that represents the output of the PLL system.
- as a consequence of the point above, the CDR incorporates an "elastic buffer" function, located in the
processing of the input signal through the adder block and through the subsequent re-sampling by the local
clock ( ).
This example in fact describes the abstract model of the phase aligner. The CDRs that match this model are found in
network points where a signal (jittered and possibly regenerated by slave CDRs one or more times along a
transmission path) is brought back in phase with the clock that was used to generate it[1] .
For sake of simplicity in the following calculations - and without loss of generality in the results- the local clock
is used as reference for the phase of all the signals.
Therefore its jitter is identically zero. Additionally it is assumed that the initial phase value .
• Jitter transfer function
It can be easily derived as follows:
-y = ( - x + y)*G/s = - x*G/s + y*G/s
xG/s = y (1 + G/s)
x = y (s/G + 1)
The jitter transfer function in this case describes a characteristic of the PLL as usual, but becomes meaningless for
the whole CDR, because of the phase alignement resulting from the elastic buffer feature of this CDR.
• Unit step response
In this particular case, as already pointed out for the transfer function, this characteristic only describes the PLL
operation, while it is meaningless for the whole CDR.
It can easily be obtained from the transfer function:
and can be seen as the waveform at the output of the phase adder ( x-y signal in the Figure above ) resulting from a
phase step of the input ( x(s) in the Figure above ).
• Jitter tolerance function ( The jitter tolerance function )
The phase jitter tolerance of this circuit is limited both by the range of linearity of the phase adder and by the range
of linearity of the phase comparator.
Let's see each one separately. Then, the tolerance function at any frequency will simply be the lower of the two,
because the signal in either of the two circuit blocks does not influence the characteristic of the other block.
• Adder tolerance function ( Tolerance of phase adders )
The adder is normally made by a delay line, that adds a delay to the input signal ( x(s) in the
Figure above ) equal to the signal present on the control input (- y(s) in the Figure above ).
- Defining as D (measured in radian - if D is in seconds, then use ) the total phase
delay that the delay line can add, and
- defining as zero the phase delay added when the control signal is set at the mid point of its
control range,
then the tolerance of the adder inserted in the CDR circuit of the above Figure is:
(-D/2 + ) < Amplitude of [y(jω)] < (+D/2 - ).
using the relation (see the relevant subsection on the jitter transfer function of this example)
Clock and data recovery/Structures and types of CDRs/Examples 33
then
Magnitude of [x(jω)] =
• Comparator tolerance function ( Tolerance of phase comparators )
The tolerance limit is reached when the phase difference between and x-y (again on the right
part of the Figure above) exceeds an error :
Magnitude of [x(jω) − y(jω)] =
using the relation (see the relevant subsection on the jitter transfer function of this example)
then
Magnitude of [x(jω)] =
The relevant diagrams of response to a unit step variation of the input signal phase, of jitter transfer function and of
jitter tolerance function ( The jitter tolerance function ) are shown in the Figures here below.
Clock and data recovery/Structures and types of CDRs/Examples 34
The unit step response and the jitter transfer function of this CDR do not differ from the typical 1st order, type 1
CDR.
The jitter tolerance of this CDR shows a new example. It is limited at low frequencies by the jitter tolerance of the
adder and, at medium and high frequencies, by the jitter tolerance of the phase comparator. In fact the actual design
choices always assure that
(-D/2 + ) >> .
In conclusion, this example shows a CDR that:
• is not able to tolerate a wander of the input signal frequency. There is no increasing jitter tolerance with a 6
dB/oct asymptote towards zero frequency, but just the flat tolerance limited by the adder range. This CDR can
only phase align a signal (jittering but) synchronous with its local clock;
• can lock in quickly into a signal burst after a period of loss of signal;
Clock and data recovery/Structures and types of CDRs/Examples 35
The classic architecture, preferred for slave CDR applications. The loop is a second order, type 1 with unity feedback.
The architecture, too complex and non preferred for phase aligner CDR applications. The loop is a second order, type 1 with unity feedback.
The structure depicted in the above figure is meant as another example, but has no value for a real CDR application.
Its special characteristics, very valuable for the “slave” application, are wasted in the phase aligner application.
The essential points are the same of the previous example.
• The oscillator is controlled in frequency. It converts an input signal into a frequency, that is into the integral of a
phase: its transfer function in the s domain is in fact V0/s. (It is therefore a type 1 system).
• Between the output of the phase comparator and the input of the oscillator, a single pole low pass filters the
higher frequencies of the error signal. (Combined with the oscillator, this low pass in the forward path makes the
loop a second order, unity feedback, system).
The following figures, as in previous examples, plot the unit step response, the jitter transfer function and the jitter
tolerance function of this architecture.
In order to appreciate some of the peculiarities of this new example, also the corresponding curves for the first order
phase aligner have been plotted as well.
Clock and data recovery/Structures and types of CDRs/Examples 38
adjusted) during the lock-in phase for a phase aligner application. (On the other hand, it has the disadvantage of
limited tolerance at low jitter frequencies, when compared to the classic 2nd order circuit for slave CDR
applications, as it will be shown in the following paragraphs.)
The time function and its time diagram figure are identical to the ones of the previous example.
• Jitter transfer function
The ability to filter out the high frequency components of the incoming jitter is the strong point of this architecture.
But this type of performance is valuable as long as the CDR is a slave and sends the regenerated clock with the data
stream to another slave. In this example of a phase aligner however, this ability is not useful at all, because the phase
aligner uses the PLL output only for its internal operation, and uses the local system clock for its output data stream.
The jitter transfer function can be derived with the same steps used for the first order phase aligner:
y=( - x + y) = (G / (s * (1 + s( )) * (- x + y)
-y s (1 + s )=-Gx+Gy
Gx = y (G + s + s2 )
=
n
=1 / 2
The j function and the figure are identical to the ones of the previous example.
• Jitter tolerance function
The inherent weakness of this type of architecture (undershoot of the tolerance below 1 U.I. around n ) remains ,
and it can not be offset by the corresponding jitter transfer advantages that are meaningless for a phase aligner
system.
Following the approach of the first order phase aligner, let’s find separately the tolerance due to the adder and the
tolerance due to the phase comparator. The circuit tolerance, at any frequency, is the lower of the two.
• Tolerance of the phase adder ( Tolerance of phase adders )
The adder is normally made by a delay line, that adds a delay to the input signal ( x(s) in the
Figure above ) equal to the signal present on the control input (- y(s) in the Figure above ).
- Defining as D (measured in radian - if D is in seconds, then use ) the total phase
delay that the delay line can add, and
- defining as zero the phase delay added when the control signal is set at the mid point of its
control range,
then the tolerance of the adder inserted in the CDR circuit of the above Figure is:
(-D/2 + ) < Amplitude of [y(jω)] < (+D/2 - ).
using the relation (see the relevant subsection on the jitter transfer function of this example)
then
then:
It is easy to see that the tolerance is equal (for > 0.707) to the tolerance of the first order phase aligner, or inferior
for lower values of .
In conclusion, the importance of this architecture is limited to its use as example for didactic purposes. Its first order
alternative, simpler and more efficient, is preferred in practice for phase aligners.
References
[1] A robust phase detector for 1.25 Gbit/s burst mode data recovery (from the INTEC team of Ghent University) IEICE Electronic Express, Vol.
1, No. 18, 562-567 http:/ / www. jstage. jst. go. jp/ article/ elex/ 1/ 18/ 1_562/ _article
• In a type 1 loop (often the case in CDR PLLs) the behavior towards zero frequency in a Bode magnitude plot
will show:
1. an asymptote towards amplitudes of jitter (often a desirable characteristic) if the 1/s block is between the
non-linear block and the phase comparator, or
2. an asymptote towards 0 amplitudes of jitter (rarely –if ever- a desirable characteristic) if the 1/s block is between
the input point of the phase comparator and the non-linear block.
If the lack of transitions has been long (and if the free-running frequency is markedly different from the received
signal inherent frequency) there may be errored bits and even duplication or cancellation of bit intervals (bit slips).
To avoid this risk, the CDR architecture should be modified so that a "longer memory" is created, and long
sequences of received pulses can be tolerated without errors or slips.
Addition of some memory to the phase comparator output, to sample correctly during long sequences of
identical pulses
The first order loop returns to its free-running frequency when no transitions are present in the incoming signal.
This frequency drifts exponentially with a time constant equal to τ, the time constant of the loop itself.
To improve the tracking ability, it is necessary to introduce some memory in the loop, at the output of the phase
comparator, that is the information which must be remembered longer.
The simplest implementation is the addition of a low pass filter of the first order (For sake of generality, it is
convenient to introduce a first order low pass combined with a flat gain block).
The added filter changes the loop order form first to second: the loop can exhibit two real poles or a pair of complex
poles, depending on the gain and cut-off frequency of the added circuit block. In practice, the added block is always
chosen so that the poles are complex and the damping coefficient ζ is not far from 1 (at ζ = 1 or larger, the two poles
become real and the loop behaves like two first order loops in cascade).
The loop is analyzed in detail in the following pages. But we can immediately see that it can track longer sequences
of pulses without transitions, and that its unit step response is slower and starts with an especially slow and
“uncertain” beginning.
This second order loop has lost the ability to lock-in without slips in all cases, in return for the ability of staying in
lock for much longer periods without transitions.
It should be noted that the two blocks of the first order loop (the phase comparator and the VCO) are necessarily
working at the line pulse speed (that is the highest speed in a CDR). This makes them more complex technologically
and more expensive to modify when an improvement of the loop performances is required. The added filter block
instead works at lower frequencies, and its design is correspondingly more flexible. The filter block is used to
implement the desired values of ω and ζ in the second order loop.
Once again it is good design approach to implement a filter that be linear (at least in its practical behavior). The loop
modeling and simulation remain possible in all conditions and are simpler than the modeling and simulation of a
non-linear loop, whose models and simulations do not always exist.
What is gained
The ability to stay in lock even when signal transitions are missing for a while is the first requirement that a first
order architecture is not able to satisfy.
There are others. For instance:
• the need to be insensitive to jitter of medium frequencies
• to be a CDR part of a regenerator chain
• to reject noise at certain frequencies
Clock and data recovery/Structures and types of CDRs/The (slave) CDR based on a second order PLL 44
What is lost
1. fast acquisition
2. ability to lock without slips in all conditions
3. rejection of medium frequency noise from the VCO
The case of R3 = 0 corresponds to a second order system with just two poles and no zero, and is studied in detail in
the next pages.
The most important functions that describe the relations amongst the variables shown in the figure, expressed for the
sinusoidal jitter condition, are described in the following three subchapters.
The fourth subchapter that follows gives the equations and the diagram for the time function that describes how this
circuit reacts to an abrupt change of phase in the received signal.
Clock and data recovery/Structures and types of CDRs/The (slave) CDR based on a second order PLL 45
Essential difference
There is always some sort of filtering at the output of a phase comparator.
This filtering does not necessarily turn a first order loop into a second order loop...
References
[1] http:/ / en. wikipedia. org/ wiki/ Parts_per_million|
The magnitude of the jitter transfer function of jω tells, at each frequency f = ω/2π , the amplitude of the output jitter
for an input jitter with the amplitude of 1 radian ≈ 57.3°.
The following figure is the Bode magnitude plot of the jitter transfer function. Curves for different values of the
parameter ζ (damping ratio) are shown:
The magnitude of jitter filtering, for different values of the damping ratio.Peak amplification for low values of the damping ratio.
It can be seen that the CDR is essentially a low-pass filter for the phase jitter. There is no amplification of the input
jitter but for values of the damping ratio smaller than = 0.707, at some frquencies at and around the resonant
Clock and data recovery/Structures and types of CDRs/The (slave) CDR based on a second order PLL/The jitter transfer
function 46
The phase error function is not very relevant in a pure PLL circuit, whose task is to track the input clock (and to
dejitter it, maybe), but is extremely important if the PLL is serving into a CDR circuit.
The regeneration of the data depends on sampling the received pulses (that have undergone amplification,
equalization and filtering of out-of-band noise) at a time when the remaining noise and intersymbol interference are
not altering the pulse too much, close to the time of maximunm amplitude of that pulse. A significant phase error
makes the probability of a wrong detection higher: in other words a phase error that is not affecting clock tracking
may still increase to intolerable levels the bit error rate!
The following figure plots the magnitude of the error function. The y scale is in radian (1 radian ≈ 57.3°).
Clock and data recovery/Structures and types of CDRs/The (slave) CDR based on a second order PLL/The error function 47
Figure 4. The magnitude phase tracking error, for various damping ratio values. The error overshoots just above the characteristic frequency, and
much more so for low values of the damping ratio.
At low jitter frequencies there is practically no error, because the tracking is very good.
At very high jitter frequencies the error is practically identical to the input: in fact the PLL is not able to track the
jitter and the local clock stays unmoving with respect to it.
At intermediate jitter frequencies, around , the error increases with frequency till it is as large as the input jitter
itself, or even up to the point of becoming larger than it at frequencies just above for low values of ζ.
Large values of ζ ( >> 1) involve a large error even at frequencies much lower than , and small values of ζ ( <
1.0) correspond to large overshoots of the phase error just above .
Values of ζ between 1.0 and 1.5 are therefore an inevitable design choice, but other considerations can be drawn
from the study of the jitter tolerance function and suggest an even tighter range of ζ values for the CDR design.
It can be noted that both the jitter transfer and the jitter error functions are true "transfer functions". They tell the
ratio of an output to an input (The function in the figure above can be easily seen as representing the magnitude of
the error transfer function, and not just the error magnitude for an input of fixed, 1 radian, value). The function in the
next sub section instead -the jitter tolerance function- is not a transfer function. In fact even the aspect of causality
(that in a transfer function is the fact that the input generates the output) is not present. The jitter tolerance function
describes the values of input jitter that generate a fixed value of phase error.
In real applications the PLL circuit will not operate correctly any more when the phase difference between input and
ouptput (i.e. when the magnitude of the error funtion) exceeds a certain value that can be called . Depending on
the PLL design, it may slip abruptly by the phase amount of one clock cycle, or it may exhibit other irregularities of
operation. It is good design practice to have the value, in all jitter conditions, be larger than the error phase that
the circuit is expected to tolerate. This situation of irregular operation is essentially encountered when the circuit
non-linearities are reached. The next mathematical function, which corresponds also to a practical measurement
condition for the circuit, is useful in describing the circuit behaviour when the boundaries of the non-linear operation
are reached. This is the Jitter tolerance function, and is the subject of the next page.
Clock and data recovery/Structures and types of CDRs/The (slave) CDR based on a second order PLL/The jitter tolerance
function 48
The magnitude of the maximum jitter that can be tolerated, for various damping ratio values.The maximum tolerance undershoots just above the
characteristic frequency, and much more so for low values of the damping ratio.
This function can therefore be seen as the tolerance of our circuit (if = 1 radian) to an input sinusoidal jitter of
the plotted magnitude. If another value of better simulates the circuit tolerance limit, the curve plotted still
applies provided it is translated vertically by the amount .
At low jitter frequencies there is very good tracking, even if the jitter has a large amplitude. The circuit has time to
follow these large but slow variations. It takes an extremely large jitter amplitude to reach the limit of tolerance.
At very high jitter frequencies the circuit is unable to follow the jitter that varies too fast. The tolerance is in practice
exactly the lateral eye opening (or the phase comparator range, whichever limit is reached first). In fact, the PLL is
not able to track the jitter at all and the local clock stays unmoving with respect to it.
At intermediate jitter frequencies, just above , the circuit is tricked by the jitter into overreaching while the jitter
is coming back to its zero value. In the range of such intermediate frequencies, at and above , the tolerance is
correspondingly reduced below its asymptotic value, and especially so for low values of ζ.
The following table gives the values of the maximum tolerance reduction for different values of ζ:
Clock and data recovery/Structures and types of CDRs/The (slave) CDR based on a second order PLL/The jitter tolerance
function 50
The tolerance has a minimum that depends in frequency and value on the damping ratio ζ.Minimums are listed
for different values of ζ.The reduction is especially large for low values of the damping ratio.
Values of ζ between 1.0 and 1.5 are therefore an inevitable design choice. The designer shall pay attention to the
fabrication tolerances of the CDR blocks (that may often be as large as ± 20 %) as well as to the dependence of them
from operating conditions like the power supply variations or the density of transitions inside the incoming signal.
It is therefore important to check the behaviour of the CDR circuit (whatever its actual implemetation is, analog,
digital or ..) in the frequency range around the transition from tracking (typical at low jitter frequencies) to unability
to track (typical at very high jitter frequencies): an undershoout of the jitter tolerance may be present, and go
unnoticed otherwise!.
References
[1] http:/ / www. itu. int/ rec/ T-REC-G/ e
Clock and data recovery/Structures and types of CDRs/The (slave) CDR based on a second order PLL/The unit step
response 51
The amplitude of the output phase as a result of a (unit) step variation of the input phase, for different values of the damping ratio . The output phase
oveershoots the input after an initial delay, and then gradually settles in good tracking.
It is however important to be cautious when using the step response to model the system in case of large abrupt
variations of the input phase.
Care is necessary because the boundaries of linear operation of the system (the range of the phase comparator, the
swing of the filter output, the control range of the VCO, ..) can easily be reached and exceeded during a (relatively)
large transient.
The CDR will -very likely- still operate correctly but its performances may not be well described by this linear
model during such transient.
Clock and data recovery/Structures and types of CDRs/The (slave) CDR based on a second order PLL/The jitter transfer
and tolerance of two cascaded CDRs 52
The first CDR supplies the regenerated incoming pulse stream and its clock to the input of an elastic buffer, and
supplies its clock also as input to the another CDR. The second CDR in turn, de-jitters the clock, and then uses it to
get the data out of the elastic buffer.
• What is the combined Jitter transfer characteristic of the two CDRs?
• The Jitter Tolerance of the cascade of the two CDRs is the locus of conditions that both can tolerate, and is
therefore represented by the area below both curves (below the dark blue line). The Figure above represents
the case of two similar CDRs, where the second is simply filtering the jitter more than the first. There is no
Clock and data recovery/Structures and types of CDRs/The (slave) CDR based on a second order PLL/The jitter transfer
and tolerance of two cascaded CDRs 53
advantage in having the first CDR more tolerant and better tracking than the second in such case.
• The Jitter Transfer function of the cascade of the two CDRs is the product of the two transfer functions, as the
figure indicates. In practice, the jitter filtering is made by the second CDR only.
An improvement in the combination of the two CDRs in cascade can be obtained if the second CDR (that must in
any case be the one with tighter jitter filtering) has a different Jitter Tolerance characteristic for high jitter
frequencies. The Figure below indicates how the combined characteristic looks, and also suggest one simple method
of increasing the tolerance to high jitter frequencies in the second CDR.
Figure: Two CDRs in series with different filtering and different tolerances (with elastic buffer in between).
The division by 4 (or more), inside CDR2, of both the clock to lock and of the local clock will be effective without
drawbacks if the CDR1 is adequate to track the incoming signal. The divison by 4 will remove from the CDR1
output the high jitter frequencies, and make the CDR2 insensitive to them at the same time. This should not cause
problems, as long a the CDR2 is expected to filter out such high jitter frequencies.
It should be emphasized that the depth of the elastic buffer has no relevance in the jitter characteristics of the
combination of the two CDRs, provided such depth is larger than the CDR2 tolerance at high jitter frequencies. In
fact the buffer is represented in the above figures simply because it happens to be present in practical cases, but its
presence is requested by system considerations other than the jitter characteristics, and is therefore always larger than
required to match the jitter tolerance of CDR2.
Clock and data recovery/Design values used in practice 54
These CDRs are designed so that their acquisition is inevitably long and a series of slips may precede
the achievement of a stable acquisition.
Clock and data recovery/Design values used in practice 55
In such cases, it is impossible to model their acquisition phase because of the intrinsic strong non
linearities. To be confident that one such circuit will eventually achieve lock in all cases, the circuit
concept shall be extensively simulated and the circuit prototype will be tested in the worst case
conditions during the circuit validation phase.
Multipoint access network with continuous mode downstream and burst mode upstream.
These links serve several users at the same time and shall be active all the time. Typical important cases can be:
Clock and data recovery/Design values used in practice/Continuous transmission mode 56
• Radio links from the base station to mobile phones (the continuous-mode clock recovery circuit to consider is
the one at receiving end, inside the receiver part of the mobile phone);
• Downstream transmission in LANs (Local Area Networks);
• Downstream transmission of a PON (Passive Optical Network).
The clock recovery circuits, in the equipment described above (the ones represented in blue in the Figure above),
must essentially provide good performances after the phase lock has been reached (after acquisition has been
achieved). Performances during the lock-in (= acquisition) phase, that is when the connection is being established,
are less important and can be traded off to some extent, in order to optimize the performances during normal
transmission (that are the jitter transfer, generation and tolerance). The only thing that is really needed is the
certainty that the phase lock will be achieved within a specified (not unreasonably long) time after the received
signal has appeared.
The ITU-T Recommendations (the G.7XX series and the G.8XX series in particular, see for instance the G.825)
describe a lot of the characteristics of clock regeneration recommended for applications in continuous mode. With a
little reverse engineering of the large amount of data available from that source, the preferred values that can be
obtained are:
= 1/2500
= 0.66 (to match the requirement of 0.1 dB of max Jitter amplification).
shall not exceed 0.66 in order to keep the maximum jitter amplification (maximum value of the jitter transfer
function) below 0.1 dB. This is especially important in applications where several CDRs find themselves in a line of
regenerators along a series of cascaded transmission links. Jitter at that particular frequency could be repeatedly
amplified and accumulate along the line. Another aspect that suggests values of a bit larger than the classic 0.7
found in some early literature about PLL design, is the overshoot when tracking a sinusoidal jitter. Both the diagram
of the jitter tolerance and the diagram of the jitter error show that (for just above 1) there is an extra deterioration
of the tracking performances for low values of . Finally the construction tolerances when actually building the
physical CDR circuit are to be considered. They can affect the design parameters significantly (sometimes as much
as +/- 30%, like in the case of monolithic integrated circuits). In practice CDR for continuous mode applications will
typically be designed with:
= 1/50 to 1/10,000 (typ. 1/1000) of
= 1.0 to 1.3 (typ. 1.1).
An extreme case with << can be found in long distance links on coaxial cable, where a high number of
regenerators are located in series along the line, each one with its own CDR.
In that case the jitter accumulation is the performances to care about. The jitter transfer characteristic (that represents
how the incoming jitter is filtered by the CDR) will have a very small bandwidth, with / = 1/10000, while
stays higher than 0.7 to limit the jitter amplification at any frequency to be less than +0.1 dB in the worst case.[1]
References
[1] ITU-T Rec.G.783 (03/2006), in particular Table 15-2 / G.783 - Jitter transfer parameters and 15.1.3 Jitter and wander transfer
Clock and data recovery/Design values used in practice/Burst transmission mode 57
Multipoint access network with continuous mode downstream and burst mode upstream.
Topology of the OLT phase aligner. The received signal, delayed by the delay line, is recovered with (= regenerated by the sampling of) the
system clock. This approach (that the delay line is the first processing done on the received signal) inherently implements also the phase
alignment expected of an elastic buffer.
The circuit of the above figure is in fact a 1st order, type 1, control loop (= a first order PLL), and a complete CDR if
also the gray part in the figure above is included.
The response of such a loop to an abrupt step of the input phase is shown in the figure below, where x(t) represents
the input signal and err funct(t) represents the phase error of the CDR. (The step impulse response is in fact the
function that starts from zero and exponentially reaches the input function).
Clock and data recovery/Design values used in practice/Burst transmission mode/Step response of a phase aligner 60
The burst mode receiving CDR is best made with a 1st order architecture
The simple architecture of the previous figure (PLL of first order and type 1) generates an exponential decay of the phase error after the input step.
The time constant is set by the attenuation in the feedback path.
This step response is the same also for all other 1st order CDRs, but can also be seen as the response of this type of
CDRs to the appearance of the incoming burst.
The local oscillator phase is uncorrelated with the phase of the incoming signal.
Before the incoming signal (= the burst) is detected, there exists a phase difference. In general, the amount of such
difference is unknown to the CDR before the burst is actually received.
As soon as the burst is detected, the phase difference between the first received pulse -delayed by the present length
of the delay line- and the closest transition of the local clock is computed by the phase comparator.
The value of the difference is fed into the control loop: the phase lock starts.
The evolution of the phase lock is described by the step impulse response. The height of the step, in radian, is the
value of the initial phase difference.
A second order loop would be less fit for the burst mode receiver, and this is evident if the unit step responses of the
first and of the second order loops are contrasted:
Clock and data recovery/Design values used in practice/Burst transmission mode/Step response of a phase aligner 61
Responses to an abrupt phase step of 1st and 2nd order PLLs. All functions normalized for = = 1.
The figure clearly shows that the first order loop reacts first, without hesitation and effectively.
The second order loop seems to wait for additional confirmation of the need to respond.
The “prudence” of the 2nd order loop is a characteristic that can not be separated form the better ability of that loop
to reject high frequency jitter,
and this difference of performances is evident in the following figure (again with normalization for both
architectures to = 1).
Rejection of high frequency jitter of 1st and 2nd order PLLs.Note the 6dB/octave of the roll-off on one case, and the 12 dB/octave roll-off of the 2nd
order loop.All functions normalized for \omega_n = \tau = 1.
Clock and data recovery/Design values used in practice/Burst transmission mode/Step response of a phase aligner 62
The unit step response changes as well, but not so fundamentally, as the following figure shows us:
Response to a step phase change of 2.5 radian of the discrete time systems described above, and of a continuous-time similar model.
Clock and data recovery/Design values used in practice/Burst transmission mode/Step response of a phase aligner 63
A continuous time representation is accurate enough also in this case, provided the scale factor of the clock
frequencies of the two simulations is taken properly into account!
This result should come as no surprise, if we consider that the CDR function is essentially an averaging function of
subsequent phase information coming as a discrete time series.
The need to filter severely in some cases (regenerator CDRs) makes discrete time modeling a largely
unnecessary complication.
In the case of burst mode receivers instead, the reaction of the control system has to be so fast as to be
executed within a few clock cycles. In this case as well, luckily, the simplicity of the architecture makes the
discrete time system behave not differently from a system where the phase information was inputted (and the
whole system operated) continuously.
References
[1] Wikipedia: delay-locked loop
[2] Serial Programming/Forming Data Packets
[3] Dieter Verhulst, Xin Yin, Johan Bauwelinck, Peter Ossieur, Xing-Zhi Qiu and Jan Vandewege (the INTEC team of Ghent University), “A
robust phase detector for 1.25Gbit/s burst mode data recovery”, IEICE Electronic Express, Vol. 1, No. 18, pp.562-567, (2004). http:/ / www.
jstage. jst. go. jp/ article/ elex/ 1/ 18/ 1_562/ _article
[4] Alan V. Oppenheim, Ronald W. Schafer, John R. Buck : Discrete-Time Signal Processing, Prentice Hall, ISBN 0-13-754920-2
F(s) = = =
(the denominator polynomial has roots equal to , roots equal to , ... , roots equal to where
= n)
which –in simpler terms- means that a CDR can be made with a first order loop, or with a second order loop,
or with a product/sum of them.
Common engineering sense dictates that a design be “as simple as it can be made”. Therefore just one of the simplest
possibilities will be chosen:
• a constant is a flat jitter transfer function, and not a real choice;
• a first order (jitter) transfer function will be the choice when the prime considerations are a quick response
(=acquisition) and the maximum resilience to parameter drifts and non-linearities;
• a second order (jitter) transfer function will be the choice when the steady state error (d.c. phase error) and the
tight bandwidth (jitter filtering) are prime concerns, while a slower step response and less resilience to parameter
variations and non-linearities are acceptable;
• any other (inevitably more complex) possibility does not offer much more performances while it makes the circuit
more sensitive (often too sensitive) to parameter variations and to small non-linearities.
PLL Simulator
What it is.
This simulator is a free software based on a simple spreadsheet:[where the spreadsheet can be found and downloaded
[1]
].
It runs on any standard PC and simulates the acquisition phase of a PLL inside a CDR circuit.
It simulates the signals inside a 2nd order PLL circuit.
Non linearity of the phase comparator, as well as of the filter (or of the controlled oscillator) range is taken into
account.
Clock and data recovery/Miscellanea 65
Hardware platform
It has been developed on a Dell INSPIRON ME051, with ® Pentium® M processor, 1.70 GHz, 1.99 GB RAM,
Microsoft Windows XP Professional, 2002 versions with Service Pack 2.
Software platform
This simulator file has been developed with: OpenOffice.org Calc
OpenOffice.org is a free open software that can be downloaded from www.OpenOffice.org
What it does
It accepts a string of input parameters and produces as output some other parameters and three diagrams.
Input parameters
• Comparator range of linear operation
• R1, R2, R3, C
• VCO gain
• input ramp and input sinusoid.
The input parameters define both the characteristics of a second order PLL and the characteristics of its input
signal. They are formatted in a single row of cells for ease of store and retrieval.
Each parameter can be varied independently from the others, to simulate any case of interest.
Possible sets of input parameters for interesting cases are provided. Each set can be copied and pasted in a
single operation, to see the simulation that corresponds to it.
Clock and data recovery/Miscellanea 66
Output
Three items of information are produced:
• The main characteristics of the loop defined by the input parameters, in the form of quantities like ωn, ζ, …
• A time diagram of the quantities (phases and voltages) of the loop nodes during the acquisition phase. This
diagram is in fact the main output of the simulation.
• The loop Jitter Transfer Function and the Transfer Function of the loop filter, in the form of diagrams of
magnitude versus angular frequency.
These two diagrams can be useful for understanding better both:
1. the operation of the loop under consideration and
2. the simulation result.
Purpose
The purpose of the simulator file is essentially didactic, to:
1. identify and point out the fundamental blocks of the PLL, and consequently of the clock recovery part of the
CDR. Each block needs to be identified in its function, its input/output connections, its characteristic and its main
limitations (= its inevitable non-linearities).
The simulated structure is the complete structure of a 2nd order PLL.
The filter is the full feature 1st order filter, represented as an operational amplifier with three resistors
and one capacitor.
Special cases are:
• If C = 0, the filter is a flat gain stage, and the PLL degenerates into a 1st order PLL;
• If R3 = 0, the filter has just a single pole. This is the classic case of a 2nd order PLL, with a jitter transfer
function that has no zeros;
• If R2 = 0, the filter is a low pass still, but with a zero at the origin.
1. understand the overall PLL (= clock recovery) operation.
2. get familiar with the formulas and equations that constitute the mathematical model (and with their
implementation in the simulator spreadsheet).
3. introduce the concept of discrete time, as actual PLLs are often made with digital, discrete-time circuitry. In
fact this tool:
• only uses 500 time steps for the simulation,
• uses difference equations in form of recurrence relations. See also: http://en.wikipedia.org/wiki/
Difference_equations for the formulas used in the simulation of the loop filter and of the VCO.
Copy of the simulator can be downloaded jumping to the [page before the page where the actual download can be
requested [1]]
How it is made
The sequence of 500 spreadsheet rows corresponds to subsequent instants, or time steps in the “discrete time”
representation of the quantities that are simulated.
The columns are used to represent each one a different quantity (the phase or the voltage of the signal at a certain
node of the simulated circuit).
More precisely, each cell contains the value that the quantity assumes at the corresponding instant.
Each quantity value depends on the time instant (i.e. on the row index of the cell that contains it) and on the values of
other quantities in that instant and in previous instants (in this case the present instant and just the previous instant, as
the filter is a first order system).
Clock and data recovery/Miscellanea 67
In order to avoid problems of circular computation, the quantity columns are located so that every quantity depends
only on its past values and on values of other quantities located only at the same level or above and only to the left.
The location “at the same level or above” represents causality in time. Only present or past values of other quantities
influence the present value of the quantity to be computed.
The location “to the left” represents causality in the propagation of signals inside the filter circuit. In fact, the order of
columns corresponds to the signal flow through the PLL forward path.
To close the loop, the (unity) feedback in the loop is obtained as an auxiliary quantity equal to the output signal, but
just delayed by one time step.
Phase Comparator
It implements a sawtooth characteristic a shown in the figure below:
Characteristic of a phase comparator. The transition density of the incoming signal is assumed to be 100%. More about this choice in:[ Clock and
[2]
data recovery: The phase comparator ]
The limited range of the comparator is the first of the two (strong) non-linearities in this simulator.
Loop Filter
This is a generic first order linear filter, with one zero and one pole. Its output is additionally clamped brutally to +/-
1 V.
The reference used to derive the equations is a possible implementation of such filter, based on an operational
amplifier, 3 resistors and one capacitor.
The filter transfer function can be obtained using the concept that the inverting input of an Op Amp stays at the same
voltage of the other input, and that its input impedance is infinite:
Clock and data recovery/Miscellanea 68
This saturation range, set at +/- 1 V, can be modified and set to +/- Range by changing the formulas in the
column “Saturated Filter Output” from:
=IF(ABS(F9)>1;SIGN(F9);F9)
to:
=IF(ABS(F9)>Range;SIGN(F9)*Range;F9)
and then propagating the change to the bottom end of the column.
Feedback
The feedback signal is just the VCO output, but delayed by one time step. This is necessary to avoid errors of
circular reference in the spreadsheet calculation.
Limitations
This simulator is a simple tool and is correspondingly limited.
Necessary cautions are related to:
The frequency of the received line signal does not appear.
The only frequencies that appear are the frequencies that characterize the loop operation. They are
the only ones that are simulated.
The line frequency shall always be -for the cases you want to simulate - significantly higher
(typically 20 or more times higher) than any frequency significant for the loop operation.
The simulator only uses 500 time steps.
The characteristic loop frequency (= n) shall be kept between 0.2 and 0.01, by choosing adequate
sets of input parameters).
The actual n of any loop of practical interest would be much higher.
Scaling is always needed to reconcile the frequencies of the simulator to the frequencies of the actual
circuit.
A PLL is simulated, not an entire CDR. The simulator will show events like :
stuttering of the phase error as the input sinusoidal variations (that represent mostly the intersymbol
interference jitter)
trick the phase comparator back and forth across the tooth edges of the sawtooth characteristic;
clock slips, that are easily detected when the VCO tracks a signal parallel to the input signal, but
with a gap that is multiple of the comparator range;
The simulator will not be able to show:
bit errors, because the simulator does not consider the input bit stream , but only its phase;
loop gain variations that are consequence of the input transition density.
This is because of the same reason already mentioned for the point above.
See: CDR phase comparator [3] for more considerations.
To simulate a transition density lower than 1, the magnitude of the filter transfer function should be
reduced by the same factor (leaving the filter clamp where it is).
Clock and data recovery/Miscellanea 70
In spite of the many limitations, this tool is valid and complex enough to assist the average electronic engineer
towards a better comprehension of the PLL operation inside a CDR.
References
[1] https:/ / cid-a0b14219829a3f6f. skydrive. live. com/ browse. aspx/ PaB%20in%20Windows%20Live%20SkyDrive/
Simulator%20to%20download?view=details|
[2] http:/ / en. wikibooks. org/ wiki/ Clock_and_data_recovery/ Structures_and_types_of_CDRs/ The_CDR_phase_comparator|
[3] http:/ / en. wikibooks. org/ wiki/ Clock_and_data_recovery/ Structures_and_types_of_CDRs/ The_CDR_phase_comparator|The
Clock and data recovery/Conclusion 71
Clock and data recovery/Introduction Source: http://en.wikibooks.org/w/index.php?oldid=1630016 Contributors: BORGATO Pierandrea, Panic2k4, 1 anonymous edits
Clock and data recovery/Introduction/Definition of (phase) jitter Source: http://en.wikibooks.org/w/index.php?oldid=1662691 Contributors: BORGATO Pierandrea, Kwi, 3 anonymous
edits
Clock and data recovery/Introduction/Jitter is far from sinusoidal.. Source: http://en.wikibooks.org/w/index.php?oldid=1473922 Contributors: BORGATO Pierandrea
Clock and data recovery/Introduction/Models can only be linear.. Source: http://en.wikibooks.org/w/index.php?oldid=1632982 Contributors: BORGATO Pierandrea
Clock and data recovery/Introduction/Acquisition, tracking and jitter performances Source: http://en.wikibooks.org/w/index.php?oldid=1596446 Contributors: BORGATO Pierandrea
Clock and data recovery/Buffer Memory (Elastic Buffer) Source: http://en.wikibooks.org/w/index.php?oldid=1536714 Contributors: BORGATO Pierandrea
Clock and data recovery/Buffer Memory (Elastic Buffer)/Clock domains Source: http://en.wikibooks.org/w/index.php?oldid=1467336 Contributors: BORGATO Pierandrea, 1 anonymous
edits
Clock and data recovery/Buffer Memory (Elastic Buffer)/Overflow and Underflow Source: http://en.wikibooks.org/w/index.php?oldid=1467339 Contributors: BORGATO Pierandrea
Clock and data recovery/Buffer Memory (Elastic Buffer)/Transit delay inside the elastic buffer Source: http://en.wikibooks.org/w/index.php?oldid=1467567 Contributors: BORGATO
Pierandrea
Clock and data recovery/Structures and types of CDRs Source: http://en.wikibooks.org/w/index.php?oldid=1903268 Contributors: BORGATO Pierandrea, DavidCary, 1 anonymous edits
Clock and data recovery/Structures and types of CDRs/The CDR phase comparator Source: http://en.wikibooks.org/w/index.php?oldid=1616833 Contributors: BORGATO Pierandrea
Clock and data recovery/Structures and types of CDRs/Examples Source: http://en.wikibooks.org/w/index.php?oldid=1569900 Contributors: BORGATO Pierandrea, 4 anonymous edits
Clock and data recovery/Structures and types of CDRs/The jitter tolerance function Source: http://en.wikibooks.org/w/index.php?oldid=1473623 Contributors: BORGATO Pierandrea, 2
anonymous edits
Clock and data recovery/Structures and types of CDRs/The (slave) CDR based on a second order PLL Source: http://en.wikibooks.org/w/index.php?oldid=1695547 Contributors:
BORGATO Pierandrea, Borgato Pierandrea
Clock and data recovery/Structures and types of CDRs/The (slave) CDR based on a second order PLL/The jitter transfer function Source:
http://en.wikibooks.org/w/index.php?oldid=1473689 Contributors: BORGATO Pierandrea, 1 anonymous edits
Clock and data recovery/Structures and types of CDRs/The (slave) CDR based on a second order PLL/The error function Source: http://en.wikibooks.org/w/index.php?oldid=1563970
Contributors: BORGATO Pierandrea
Clock and data recovery/Structures and types of CDRs/The (slave) CDR based on a second order PLL/The jitter tolerance function Source:
http://en.wikibooks.org/w/index.php?oldid=1527051 Contributors: BORGATO Pierandrea
Clock and data recovery/Structures and types of CDRs/The (slave) CDR based on a second order PLL/The unit step response Source:
http://en.wikibooks.org/w/index.php?oldid=1461462 Contributors: BORGATO Pierandrea
Clock and data recovery/Structures and types of CDRs/The (slave) CDR based on a second order PLL/The jitter transfer and tolerance of two cascaded CDRs Source:
http://en.wikibooks.org/w/index.php?oldid=1461453 Contributors: BORGATO Pierandrea
Clock and data recovery/Design values used in practice Source: http://en.wikibooks.org/w/index.php?oldid=1563967 Contributors: BORGATO Pierandrea, DavidCary
Clock and data recovery/Design values used in practice/Continuous transmission mode Source: http://en.wikibooks.org/w/index.php?oldid=1563968 Contributors: BORGATO Pierandrea
Clock and data recovery/Design values used in practice/Burst transmission mode Source: http://en.wikibooks.org/w/index.php?oldid=1473895 Contributors: BORGATO Pierandrea, Swift
Clock and data recovery/Design values used in practice/Burst transmission mode/Step response of a phase aligner Source: http://en.wikibooks.org/w/index.php?oldid=1454489
Contributors: BORGATO Pierandrea, DavidCary, 1 anonymous edits
Clock and data recovery/Miscellanea Source: http://en.wikibooks.org/w/index.php?oldid=1626329 Contributors: BORGATO Pierandrea, Van der Hoorn
Image:Phase error magnitude plot.png Source: http://en.wikibooks.org/w/index.php?title=File:Phase_error_magnitude_plot.png License: Public Domain Contributors: User:BORGATO
Pierandrea
Image:Jitter tolerance magnitude plot.png Source: http://en.wikibooks.org/w/index.php?title=File:Jitter_tolerance_magnitude_plot.png License: Public Domain Contributors:
User:BORGATO Pierandrea
Image:Point of minimum.png Source: http://en.wikibooks.org/w/index.php?title=File:Point_of_minimum.png License: Public Domain Contributors: User:BORGATO Pierandrea
Image:Unit step response.png Source: http://en.wikibooks.org/w/index.php?title=File:Unit_step_response.png License: Public Domain Contributors: User:BORGATO Pierandrea
Image:CDRs cascade.png Source: http://en.wikibooks.org/w/index.php?title=File:CDRs_cascade.png License: Public Domain Contributors: User:BORGATO Pierandrea
Image:CDRs cascade with improved tolerance.png Source: http://en.wikibooks.org/w/index.php?title=File:CDRs_cascade_with_improved_tolerance.png License: GNU Free Documentation
License Contributors: User:BORGATO Pierandrea
Image:multipoint 2.png Source: http://en.wikibooks.org/w/index.php?title=File:Multipoint_2.png License: Public Domain Contributors: User:BORGATO Pierandrea
Image:PON_OLT_Phase_aligner.png Source: http://en.wikibooks.org/w/index.php?title=File:PON_OLT_Phase_aligner.png License: Public Domain Contributors: User:BORGATO
Pierandrea
Image:Phase_aligner_step_response.png Source: http://en.wikibooks.org/w/index.php?title=File:Phase_aligner_step_response.png License: Public Domain Contributors: User:BORGATO
Pierandrea
Image: 1st n 2nd USR contrasted.png Source: http://en.wikibooks.org/w/index.php?title=File:1st_n_2nd_USR_contrasted.png License: Public Domain Contributors: User:BORGATO
Pierandrea
Image: 1st n 2nd JTF contrasted.png Source: http://en.wikibooks.org/w/index.php?title=File:1st_n_2nd_JTF_contrasted.png License: Public Domain Contributors: User:BORGATO
Pierandrea
Image: PON OLT Phase aligner discrete time.png Source: http://en.wikibooks.org/w/index.php?title=File:PON_OLT_Phase_aligner_discrete_time.png License: Public Domain
Contributors: User:BORGATO Pierandrea
Image: PhAl response continuous and discrete.png Source: http://en.wikibooks.org/w/index.php?title=File:PhAl_response_continuous_and_discrete.png License: Public Domain
Contributors: User:BORGATO Pierandrea
Image:Schematic of simulated PLL.png Source: http://en.wikibooks.org/w/index.php?title=File:Schematic_of_simulated_PLL.png License: Creative Commons Attribution-Sharealike 3.0
Contributors: Original uploader was BORGATO Pierandrea at en.wikibooks
Image:1st order filter based on OpAmp Rs n C.png Source: http://en.wikibooks.org/w/index.php?title=File:1st_order_filter_based_on_OpAmp_Rs_n_C.png License: GNU Free
Documentation License Contributors: Original uploader was BORGATO Pierandrea at en.wikibooks
Image:Clocks in a shop window 2.jpg Source: http://en.wikibooks.org/w/index.php?title=File:Clocks_in_a_shop_window_2.jpg License: Creative Commons Attribution-Sharealike 3.0
Contributors: BORGATO Pierandrea
License 76
License
Creative Commons Attribution-Share Alike 3.0 Unported
http:/ / creativecommons. org/ licenses/ by-sa/ 3. 0/