Clock and Data Recovery/Structures and types of CDRs/The (slave) CDR based on a second order PLL/2nd order type 1< Clock and Data Recovery | Structures and types of CDRs | The (slave) CDR based on a second order PLL
- 1 Generalities of a 2nd order PLL of type 1
- 2 Jitter transfer function
- 3 Error signal
- 4 Jitter tolerance
- 5 The rejection of generated (VCO) noise…..
- 6 Unit step response
- 7 Notes and External References
Generalities of a 2nd order PLL of type 1Edit
Best fit for a regenerator, but with a slow acquisition.
Good filtering of the incoming signal noise but poor filtering of the VCO noise.
Becomes underdamped if the loop gain increases.
A linear, time-invariant model of the circuit is described here.
The case of a second order loop, fit for a regenerator CDR, is presented.
This architecture is in fact the best for regenerator applications, to recover a clock and to resend the data stream further, as the introductory example has shown.
There are two ways of looking into the model of the 2nd order CDR loop:
1. to specify the CDR overall characteristics, or to measure its performances. (ωn2 and ).
- In these cases of overview approach, the "engineer" will use two variables that characterize the overall performances of the control loop.
- The variables are the undamped natural frequency ωn2 and the damping ratio .
2. to design, verify and validate the CDR, as well as engineer its individual blocks. (G and ).
- In these other cases there are again just two variables that correspond to the two basic degrees of freedom of the circuit.
- The “designer” variables are the loop gain, G, and the time constant of the loop filter, .
ωn2 and ζ as functions of G and τfEdit
It is important to remember that the two sets of parameters are interchangeable. Deciding the two values for a set fixes the values also for the other set, as restated in the table below:
|Setting ωn2 and ζ||Setting G and τf|
|G = ωn2 / 2ζ||ωn22 = G/τf|
|τf = 1 / 2ζωn2||ζ2 = 1 / 4τfG|
The value of ζ (when DT is at its minimum expected value) must be close to 1, to ensure that the behavior of the loop is neither under-damped nor over-damped.
Saying that the second order loop has one more degree of freedom than the first order loop is therefore an overstatement.
It is more fair to say that in both cases the time (and frequency) response of the loop are primarily set by the gain G.
In the case of the second order loop it is possible to have a slightly higher variability associated with the (limited) range of variation allowed for f.
The main advantage of the second order loop is the sharper filtering action for input frequencies in excess of ωn2.
The sharper filtering corresponds to attenuating the jitter components beyond ωn2 with a slope of 40 dB/decade, while a first order loop filters with a slope of just 20 dB/decade beyond its ωn.
The meaning of the loop parameters (just ωn or τ in a first order system, ωn2 and ζ in a second order system) is slightly different in the two cases:
- ωn2 is essentially the same as ωn: it represents the angular frequency at which the loop changes behavior and a "filterng" action begins (e.g. filtering of the input jitter) or ends (e.g filtering of the VCO noise).
- τ of a first order system is the time constant of the system unit step response. τf in a second order system can not be seen exactly as the same because the unit step response varies for different values of the other loop parameter, ζ. In general however a relation exists and the time response of a second order system is close to about 2 times τf, as shown in more detail further on in this page where unit step responses of 1st and 2nd order loops are contrasted, under the condition ωn2 = ωn.
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 subpages.
A dedicated section further down in this page 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.
ζ is larger than 1Edit
- When ζ < 0.707, the jitter at frequencies around ωn2 will be amplified during the transit through the PLL as seen when studying the jitter transfer function of this loop, and more so for smaller values of ζ.
- Amplification of jitter may - if the input jitter at those frequencies is large enough to start with - accumulate when more identical regenerators are interconnected in a chain along the signal path (a not infrequent case in geographical networks).
- When ζ >> 1, the loop behaves more and more like a first order loop. The sharp cutoff at about ωn2 , typical of a good 2 - 1 PLL, smoothes out, and the jitter at frequencies around ωn2 is less effectively rejected.
- Similar indications are derived from the study of the error signal in this 2-1 loop:
- Large values of ζ ( >> 1) involve a large error even at frequencies much lower than ;
- small values of ζ ( < 1.0) correspond to large overshoots of the phase error just above ωn2.
The transition Density DT is never stable at its maximum value (100%). Rather, the loop must not become underdamped when DT is somewhat lower than its average of 50%. DT = 33% means a comparator gain reduction of 67% from the Gφ value.
As ζ varies inversely to the square root of G, it is made correspondingly larger by design.
ωn2 and ωf or ωzEdit
In a second order loop, the cut-off frequency of the loop filter block (ωf or ωz, as the case may be) fixes the bandwidth of the closed loop (apart from minor adjustments as ζ varies within its allowed range).
Anticipating some simple formulas that will be derived later in the book,
the natural frequency of the PLL ωn2 (which can also be seen as the jitter cutoff frequency of the CDR) is defined by the loop gain and by ωf :
(using the subscripts to identify loop order and type) and can also be expressed as a function of just ζ and ωf :
This simple formula tells that (in a 2nd order PLL of type 1 where ζ21 must remain close to 1) the natural frequency ωn21 remains close to half the cutoff frequency of the loop filter!
- Similarly, for the model of a 2nd order type 2 loop (where ζ shall also preferably remain close to 1):
- This simple formula tells that (in the linear model of a 2nd order PLL of type 2 where ζ22 shall remain ≈ 1) the natural undamped frequency ωn22 remains close to twice the cutoff frequency of the loop filter!
ωn21 and ωn1Edit
In a 1st order loop, the quantity ωn = G tells how fast the loop reacts. The higher ωn, the faster the loop response.
For the 2nd order loop it is difficult to relate ωn2 to how fast the loop reacts to a change. In the 2 - 1 loop, for ζ ≈ 1, and setting -for sake of comparison- the gain G equal for the two loops:
In other words a 2nd order type 1 PLL (ζ ≈ 1) wold seem twice as “fast” as a 1st order PLL of the same gain!
But it can also be seen that, setting, for sake of comparison, ωn2 = ωn, then the 2nd order type 1 loop is not practically slower than the 1st order loop!
- “Slow or fast” in the sentences above means both:
- - slow or fast to acquire the lock condition
- - slow or fast to drift to its free running frequency when the input signal disappears.
Note that the USR of the 1 - 1 loop model is plotted for two different values of ωn1: ωn1 = ωn2 of the other two loops and ωn1 = ωn2 / 2 of the other two loops
Jitter transfer functionEdit
The transfer function for a given input X(s) (that is the Jitter Transfer function!) is:
The magnitude of the jitter transfer frequency response (= absolute value of the jitter transfer, once modified with s replaced by jω) tells, at each frequency f = ω/2π , the ratio of the magnitude of the output jitter divided by the magnitude of the input jitter.
It can also be seen as the amplitude of the (sinusoidal) output jitter for a sinusoidal input jitter of amplitude = 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:
This 2nd order type 1 PLL is a good low-pass filter [40 dB/decade] for the phase jitter.
Gain peak at ωpeak when ζ > √ ≃ 0.707Edit
There is no amplification of the input jitter except for values of the damping ratio smaller than √ ≃ 0.707, at some frequencies around ωn2.
The peak amplification occurs at ωpeak = ωn2 √ and amounts to :  .
The jitter transfer function of a simpler 1st order type 1 loop (where the signal processing block is just a flat gain block of gain Gf) can be easily obtained as:
Similar to the case above, it filters out all jitter components above ωn (ωn = Gφ * Gf * GVCO = G), but without peaking nor smoothing of the corner, and with a single slope of 20 dB/decade instead of 40 dB/decade, as seen in the previous page.
Important changes in jitter filtering going from the 1 - 1 loop tp the 2 - 1 loopEdit
The most important new feature is the sharper cut off of the input jitter frequencies above ωn2 , with a slope of -40 dB/decade instead of just -20 dB/decade.
The addition of the 1st order filter between the phase comparator and the VCO has added one pole to the transfer characteristic of the loop.
All CDRs act as low pass filters on the timing signal, and remove all the (jitter) frequencies above a cut off frequency, called ωn in the model of a 1st order loop and ωn2 in the model of a 2nd order loop.
The figure above contrasts the two cases in a particular example. Also the frequency of the received line pulses, ωp, is shown, as the vertical marker of the yellow line.
The (CDR) PLL models in general refer to discrete time systems with sample frequency equal to ωp, and therefore all characteristics above ωp are not investigated (they repeat themselves periodically along the frequency axis).
In the case shown as well as in general, the choice of ωn2 implicitly defines the input jitter below ωn2 as useful signal, and the input jitter above ωn2 as noise to be rejected.
- The stronger filtering effect of the 2nd order type 1 loop can be reasonably estimated assuming that:
- the jitter has a flat spectral density from ω = 0 to ω = ωp,
- the jitter from ω = 0 to ω = ωn2 is useful signal and
- the jitter from ω = ωn2 to ω = ωp is noise to be rejected.
With these assumption, it can be calculated that the 2nd order loop fiters the noise jitter 17.23 dB more than the 1st order loop.
The previous section about the jitter transfer function has shown that some PLLs may even amplify the input jitter amplitude.
This happens for the frequency components around ωn2 of the input jitter, if the damping ratio ζ is lower than √ ≃ 0.707.
Another tool to investigate the same critical frequency band is the function that describes the time distance (that is the phase distance if time is divided by the duration of a line pulse, i.e. by 2π/ωp) between output and input.
This function is called error signal, indicated respectively as ε(t) or E(s) or E(jω).
The error signal is less important in a pure PLL circuit, whose task is to track an input clock (and to dejitter it, maybe), but is extremely important if the PLL is serving into a CDR circuit.
E(jω) is especially meaningful, because:
- jitter is investigated in "steady state" conditions, i.e. with the Fourier transforms: sinusoidal input, sinusoidal output and sinusoidal waveforms at every inner node of the PLL;
- the PLL output tracks exactly the input with just the difference ε(t);
- ε(t) is exactly the difference between the eye center and the sampling instant: when ε(t) is maximum the lateral eye margin is minimum;
- the maximum value of a sinusoidal deviation is its magnitude: the useful function is therefore |E(jω)|.
Its magnitude tells, at every jitter frequency, the amplitude of the sinusoidal distance between the output and the input phases. It is easy to realize that this function is the loop error function:
The regeneration of the data depends on sampling the received pulses (that have undergone amplification, equalization and filtering of out-of-band noise) close to the time of maximum amplitude of each pulse. At that time the remaining noise and intersymbol interference still alter the pulse to a certain extent. 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 (not in dB, but in radian referred to the line pulse duration) of the error signal if the input jitter amplitude at any given frequency is exactly 1 rad (1 radian ≈ 57.3°).
The error signal is, in other words, normalized to the value of the loop input, plotting in fact the error "transfer" function: E(s)/X(s).
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 ωn2, the error increases with frequency till it is as large as the input jitter itself, with an intermediate region where it can become larger, at frequencies just above ωn2 for low values of ζ.
Large values of ζ ( >> 1) involve a large error even at frequencies much lower than ; small values of ζ ( < 1.0) correspond to large overshoots of the phase error just above .
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 represents in fact the magnitude of the error transfer function, as well as the error magnitude, for an input with a fixed value of 1 radian).
The function in the next Section instead -the jitter tolerance function- is not a transfer function. The aspect of causality (the fact that the input generates the output) is not present there. The jitter tolerance function describes the values of input jitter that generate a fixed value of the error signal.
The steady state error due to fp – ffr difference and the steady state error of the sampling timeEdit
The free-running frequency characteristic of the VCO, ffr, never coincides exactly with fp.
As introduced earlier in the VCO page,
the VCO control signal -while the PLL is tracking the input signal -
exhibits a d.c. offset from its center value, proportional to the frequency mismatch.
This steady state error (in a control system of type 1 with unity feedback, like the system under consideration here) in presence of a unit ramp applied to the input of the system (as seen earlier in this book) is also present at the output and has the constant finite value of:
If the ramp applied to the input, instead of a slope of 1 rad/sec, has a slope of S rad/sec, Es becomes:
and if, like in most practical cases, the ramp is caused by the frequency difference between the clock embedded in the CDR incoming pulse stream (fp) and the free-running frequency of its VCO (ffr), the phase error in those type 1 systems is:
The frequency offset
This offset (of the drive signal at the node connected to the VCO input), depends on the type of the PLL:
- may not be a steady state signal because at some other node the signal would ramp until some non-linearity of the loop limits it (and the loop loses its control ability - loops of type 0), or
- may be present at the other PLL nodes with a proportionality coefficient (loops of type 1), or
- may be compressed to zero at some other PLL nodes by some integration in the loop (loops of type 2).
Sampling time shifted from the best instant
For the type 1 PLLs the dc offset that reconciles fp and ffr at the VCO input is also present -with some coefficients of proportionality- at the other nodes.
In particular this offset is present also between the two inputs of the phase comparator, has the value Es seen above and represents a deviation of the sampling time from its best (=center) position.
The VCO centering is the limit to a very narrow jitter bandwidth
In the 2nd order, type 1, loop, the VCO frequency mismatch fp – ffr becomes a sampling time error Es according to:
For fixed open loop dc gain G and filter time constant τf, the jitter cut-off frequency ωn2 is:
It is easy to see that, for a 1st order type 1 loop: Es = ((ωp – ωfr) / ωn1
The same equation, rearranged, tells that the frequency mismatch and the maximum Es define how tight the the loop jitter bandwidth can be:
It is easy to see that, for a 1st order type 1 loop: (ωn1/ωp ) = ((ωp – ωfr) /ωp) / Es )
For instance, if Es is conservatively set as low as = 0.1 rad, then ωn2 can be : ωn2 ≃ 20 * (ωp – ωfr) .
As seen already about CDRs and parts per million of frequency mismatch, the free running frequency of a slave CDR may differ no more than 50 ppm from the frequency of its remote master (very low cost quartz crystal), or 10000 ppm (monolythic RC oscillator after EWS trimming), or even differ less than 1 ppm, still without big cost concerns (quartz for GPS receivers inside mobile phones). Less than 0.1 ppm is typical of professional equipment.
The four mentioned cases set a respective minimum for the design choice of ωn2 at: 0.001 ωp , 0.2 ωp , 2 e-5 ωp , 2 ppm ωp .
For the slave 2 - 1 loop, the jitter tolerance can be obtained as |X(jω)||Ε(jω)| = Φleo, which corresponds to the hypothesis that the tolerance is limited by (and only by) the lateral eye opening, see also the relevant page. (Φleo is the lateral eye opening expressed in radian).
In other words the mathematical function is obtained as if it was the range of the phase comparator that set the tolerance limit, but reduced to the lower value Φleo.
The comparator range corresponds to the ideal width of the received pulse left and right of its mid point ( ±π ).
The function that gives the ratio of the input to the error is:
Its magnitude in steady state (s = jω), that represents the magnitude of the sinusoidal input generating an error of magnitude 1 rad ( |Ε(jω)| = 1 rad ), is the normalized jitter tolerance function:
The magnitude of the jitter tolerance function (de-normalized) is the same function but taken for |E(jω)| = Φleo :
The Bode magnitude plot is given in the following figure:
If another value 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 ωn, the local clock 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 ωn, the tolerance is correspondingly reduced below its asymptotic value, and especially so for low values of ζ.
It may be noted that the weak spot just above ωn when ζ is low, corresponds to an asymptote towards low frequencies (-20 dB/decade typical of all type 1 loops) that is correspondignly higher [translated vertically by -20log10(2ζ) with respect to the asymptote going through (ωn , Φleo)].
This does not compensate, in CDR applications, the reduction of the tolerance margin in the critical frequency band, and the 2 - 1 loop should never be significantly under-damped.
The following table gives the values of the maximum tolerance reduction for different values of ζ:
Values of ζ between 1.5 and 3.0 are therefore an inevitable design choice.
- Fabrication tolerances of the CDR elementary components may often (monolythic implementation) be as large as ± 20 %. Dependence from operating conditions like the power supply variations or the density of transitions inside the incoming signal may account for even larger variations.
- It is important to verify and to validate the behaviour of the CDR circuit (whatever its actual implemetation is, analog, digital or ..) in the frequency range from good tracking (low jitter frequencies) to around the characteristic frequency and up to inability to track (very high jitter frequencies): an undershoot of the jitter tolerance may be present, and go unnoticed otherwise!.
The normalized jitter tolerance for all three important loop models used in (slave) CDRs is shown in the following figure.
The asintote towards low frequencies (in the log-log plot) has a slope of 20 dB/ decade for the type 1 systems, and of 40 dB/ decade for the type 2 system.
The rejection of generated (VCO) noise…..Edit
Noise injected into the different nodes of the PLL loop reaches the output modified by the loop operation.
See also the page Clock and Data Recovery/Noise is shaped by the PLL structure.
The description in the s domain of such modifications for a 2nd order type 1 PLL is:
The noise generated by the filter Nf is modified by the transfer equation TFNf = (TFVCO) / (1 + TFPhComp*TFfilter*TFVCO))
The noise generated by the VCO No is modified by the transfer equation TFNo = 1/(1 + TFPhComp*TFfilter*TFVCO)
The 2 - 1 magnitude is: |Y(jω)/No(jω)| = 20log10(((ω2τz)2+ω2)1/2 / ( (G-ω2τz)2 + ω2 )1/2)
The 2 - 1 loop attenuates the VCO noise at all frequencies below , with a single slope (20 dB/decade) and with a gain overshoot that - whenever ζ > 0 , i.e. always - peaks at .
The 2-1 loop is normally used in regenerator applications (when is low): a low noise VCO must be used.
It also needs very good control of ζ21 that must be kept close to 1.0 (this rules out the use of blocks with hard non-linearities and largely variable gain, like bang-bang phase detectors).
Unit step responseEdit
The analysis in the frequency domain (jitter transfer, error function, jitter tolerance, noise transfer) models the circuit behavior in the "small signal" conditions.
The Unit Step Response is part of the same mathematical model, and gives a time domain perspective of the circuit,
that complements the frequency domain perspective offered by the jω functions.
The Unit Step Response can be obtained from the jitter transfer function, multiplying it by 1/s and inverse transforming.
In fact the (unit) step response shows the response of the PLL output phase to an abrupt variation of the input phase.
The (unit) step response is used primarily to see how the acquisition phase evolves towards phase lock.
The step response of this type of loop is slower than that of the 1st order (and than that of the 2nd order type 2), because the loop filter does attenuates the high frequencies (while there is no attenuation of high frequencies in the case of the other two loops).
At the beginning of an acquisition the signal pops up with some timing difference from the phase of the -free-running until that moment- local oscillator, and this can be well represented by a step function, with a value of the step that may vary randomly, from acquisition to acquisition, in the range of -π to +π rad.
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.
The response when left free-runningEdit
The unit step response of the loop filter can give some understanding also on the behavior of the CDR when the latter loses lock and becomes free-running.
(The CDR is left free-running, for instance, when the incoming signal has no level transitions for the phase comparator to detect its phase. At that moment the phase comparator output steps abruptly to its neutral -i.e. no phase difference- level.)
- In a 1st order loop, the comparator output waveform is applied directly to the VCO input (apart from some flat amplification). The VCO abruptly changes its frequency to its free-running frequency. The sampling point drifts from its lock-in point following a linear (phase) ramp. The slope of the ramp is the frequency difference between the free-running frequency of the local oscillator and the frequency of the remote transmit oscillator (Δf = ffr -fs).
- In a 2nd order type 1 loop, the loop filter smooths down the frequency step. The phase ramp does not start immediately, but gradually. The graduality corresponds to the time constant of the loop filter, τ.
This helps understand the difference in the architectural sense, but may be misleading in practice, because the two loops, for the same fp , would be used in different applications with widely different values of GVCO.
GVCO would be much larger in a 1st order loop, in consideration of the fast acquisition expected, and much smaller in the 2nd order loop, in consideration of the tight jitter filtering expected.
The (1st order type 1) loop drifts 1 rad exactly after a time equal to: fp / |fp – ffr| periods of received pulses.
But errored bits might appear even before, if the lateral eye opening was less than 1 rad (1 rad is an improbable value, 2 rad is a more likely threshold for the onset of error-ed bits).
In the case of a 2nd order type 1 loop, (for the property of the 1st order USR -of the filter inside the 2nd order PLL- that the area lost versus the unit step is exactly τ = 1/ω) :
Notes and External ReferencesEdit
- Step by step, starting from the magnitude formula in the figure of Jitter transfer magnitude:
= = = = = = = =
- Maximum gain peaking: 0.1 dB, see ITU-T Rec. G.8251 (09/2010) page 16: Table A.1-1 − Summary of ODUk clock (ODC) types, and page 23: Table A.7-2 – ODCr jitter transfer requirement.
- Not to have gain peaking in the jitter (= closed loop) transfer function ( G(s)/(1+G(s)) ), the magnitude of the open loop transfer function ( G(s), the nominator ) must never be greater than the magnitude of (1+G(s)) ( the denominator ):
| G(s) | < | 1+G(s) | Re(G(jω))2 + Im(G(jω))2 < ( 1 + Re(G(jω)) )2 + Im(G(jω))2 Re(G(jω))2 < ( 1 +Re(G(jω)) )2 Re(G(jω))2 < 1 + 2Re(G(jω) )+ Re(G(jω) )2 Re(G(jω)) > -1/2
- The diagrams of jitter tolerance and of transfer of input noise are horizontally flipped versions of each other. The formula that gives the peak frequency is the same.