Clock and Data Recovery/Structures and types of CDRs/The CDR' amplifier/filter
This CDR block, in comparison with the phase comparator and the VCO, requires much less hardware effort to be implemented.
Therefore it adapts itself to the interfaces that the two other blocks present to it and
its performances complement what is available from the other two blocks
to achieve the desired characteristics of the overall loop.
When analyzing an existing CDR, in order to find out its fundamental blocks,
and to find the fundamental architecture that corresponds (or at least comes closest) to it,
the amplifier/filter is the easiest block to identify.
 First, it is the easiest to identify because it is the only block (unlike the phase comparator and the VCO) that needs not operate at frequencies as high as the line pulse frequency f_{p}. In fact, it operates at the "loop" frequencies (that are always lower and often even some decades lower than f_{p}). Consequently the technology used to implement the CDR is more than adequate for the amplifier/filter, which looks like the least sophisticated of the three blocks.
 Second, because it is a simple, self contained circuit block with only one input and one output and only one function to accomplish. The phase comparator may be combined with the pulse regenerator and bit decoder, with a runlength mitigator, etc.. The VCO may incorporate DLLs, special LC tuned networks, variable rate dividers, etc..
In some cases, this block may be just a level shifter, or a flat gain amplifier, or may not be present at all.
In all cases though, this block exhibits a linear behavior, with the only exception sometimes at its output interface (the VCO drive) if it helps control the inherent nonlinearity of the VCO at its end_of_range extremes.
In all cases, this block decides which of the different reference models apply. Whether the loop is a 11, 21 or 22, depends on it only.
Contents
Large signals view[edit]
This amp/filter block adapts itself to the other two and its input and output interfaces match the output interface of the phase comparator and the input interface of the VCO.
The signal range at the output of the phase comparator corresponds to the phase interval that the comparator can follow before a slip takes place (multiplied by the comparator phasetovoltage gain, Gφ).
The input range of the amp/filter is designed to match it exactly.
At the other interface, the filter output is designed to match the signal range that the VCO can accept at its input.
Small signals view[edit]
All CDRs identify, inside the received signal, a frequency close to the freerunning frequency of the VCO f_{fr}, and reject any other frequency that differs from f_{fr} more than a certain, small amount. This amount is a characteristic bandwidth of the CDR, and is conceptually the same as the "jitter bandwidth" of the CDR.
This is primarily a consequence of the integration performed by the VCO.
To maintain the PLL "lowpass" requirement, also the amplifier/filter is always some sort of lowpass (that degenerates into a flat gain block in the simplest of all architectures, as presented in the example page, Section: 1st order, type 1).
Flat gain[edit]
For the simplest PLL architecture of interest (loop of 1st order and of type 1 [link indietro]), the filter structure is the simplest: just an amplifier with a flat gain of value G_{f} (at all frequencies of relevance for the loop operation).
For such a PLL with flat gain in the intermediate block, the loop jitter lowpass frequency is called ω_{n1}.
Lowpass, for more sophisticated PLLs[edit]
Besides the PLL with a flat gain block, two PLL architectures are of interest, that depend only on the architecture of the amplifier/filter itself:
 1st order lowpass with a single pole (the PLL is a 2nd order type 1 loop):
 1st order lowpass with a single zero (the PLL is a 2nd order type 2 loop):
The overall performances of these two 2nd order PLLs are analysed in the following page :
and each separately in :
and in :
Equations of the 1st order lowpass filter in general[edit]
In general, a first order linear filter, with one zero and one pole, has the pole always at a frequency lower than the zero to be a lowpass.
(Its output, unbound in the ideal model, will be additionally brutally clamped to +/ Range [V] when implementing the simulator program).
The reference used to derive the model equations (and the recurrence relation of the linear part for the simulator) can be a possible analog implementation with an operational amplifier, 3 resistors and one capacitor.
The filter transfer function is obtained using the concept that the inverting input of an Op Amp stays at the same voltage of the other input, and that its impedance is infinite:
x(s)/R_{1} = y(s)/R_{2} + y(s)/(R_{3}+1/sC) y(s)/x(s) = [R_{2}(sCR_{3} + 1)] / [R_{1}(sCR_{2} +sCR_{3} + 1)]
Where:
G_{0} = R_{2}/R_{1}
G_{∞} = R_{3}R_{2} / (R_{1}(R_{2}+R_{3})
τ_{z} = R_{3}C ; τ_{p} = C (R_{2}+R_{3})
To have a calculation sheet simulate the filter, time is considered discrete, and every row of the calculation sheet represents one instant in a sequence.
The row index k = 1,2,3,... is the reference index for all the time sequences and Δt is the discrete time step.
A sequence x[k] can then be used as the representation of the input signal and a sequence y[k] as the representation of the output signal.
A description of the first order filter with difference equations allows the computation of every y[k] from y[k1], x[k] and x[k1].
_{(A system of higher order would need, for the computation of the output sample, correspondingly older samples from the input and the output sequences.}
_{For instance, a second order system would require y[k1], y[k2], x[k], x[k1] and x[k2] for the computation of y[k]).}
In the case of our first order filter, let's use the Capacitor equation:
ΔV = (I*Δt)/C v_{C}[k] – v_{C}[k1] = i_{C}[k]Δt/C
Note that this is a backward difference, in compliance with the causality of our system.
(As the capacitor is the only element with memory, it is the only one that is described by a first order difference equation).
A second equation can be obtained from the Kirchoff's First Law applied to the node of the inverting input (no current flows into the inverting input of the Op Amp):
and a third equation from the Kirchoff's Second Law applied to the loop of the Op Amp output network:
Combining (1), (2) and (3), the intermediate variables i_{C}[k] and v_{C}[k] can be eliminated, and the solution found with respect to y[k].
x[n] Δt/R_{1} – y[n] Δt/R_{2} = y[n]C  R_{3}C(x[n]/R_{1} – y[n]/R_{2}) – y[n1]C + CR_{3}( x[n1]/R_{1} – y[n1]/R_{2}) (1 & 2 & 3)
y[n]( Δt/CR_{2}+1+R_{3}/R_{2}) = y[n1](1+R_{3}/R_{2}) + x[n]( Δt/CR_{1}+R_{3}/R_{1})  x[n1](R_{3}/R_{1})__ __
1st order lowpass with a single zero[edit]
If R_{2} = ∞ (i.e. if the PLL is of 2nd order, type 2) :
Where:
τ_{z} = CR_{3}
τ_{f} =τ_{z} = 1/ω_{c}, with ω_{c} = filter cutoff frequency
y(s)/x(s) = G_{f} (sτ_{z} + 1) / sτ_{z}
The overall PLL block diagram, including the two hard nonlinearities that are in the simulation but not in the model, is:
The lowpass filter recurrence relation for the simulation can be derved from:
i_{C}[k] = C(v_{C}[k] – v_{C}[k1]) (1)
i_{C}[k] = i_{R1}[k] = x[k]/R_{1} (2)
v_{C}[k] = y[k] – R_{3} i_{C}[k] (3)
Combining (1), (2) and (3), the intermediate variables i_{C}[k] and v_{C}[k] can be eliminated, and the solution found with respect to y[k]:
The resulting equation can then be inserted in a calculation sheet for the simulation program. (The ratio R_{3}/R_{1} corresponds to the high frequency gain G_{∞} and the time constant R_{3}C corresponds to the time constant τ_{z} of the finite zero).
An alternative way of presenting the single zero filter, to introduce the 22 PLL as a 11 loop with an additional integration [link], coming to the same results, is the following:
Recursive equation for the flat gain block:
Recursive equation for the integrator block of gain 1:
It should be noted that an integrator (more appropriately: an "accumulator" in the discrete time domain) needs only one parameter to be identified. If τ_{i} ( ω_{i} = 1/τ_{i} is the angular frequency for which the gain is 1 i.e. 0 dB) is chosen, then the above applies. The equation can be rewritten, without change of result, using G_{i} = 1/τ_{i} or using ω_{i} = 1/τ_{i}.
Recursive equation for a flat gain block of gain G_{f} in parallel with an integrator of time constant τ_{i}:
_________ _______________
If the filter is to be part of a PLL, the relation ω_{c} /ω_{n1} is fundamental for the loop operation.
In a CDR of the 2nd order and type 2, the filter cutoff frequency ω_{c} should be made smaller than 1/4 of the loop ω_{n1} (ω_{n1} is G, the open loop gain, or the forward gain if the filter was just a flat amplifier G_{f})''.
As it will be shown, a 2nd order type 2 loop where ω_{c} is larger than ω_{n1}/4 is underdamped according to ω_{n1}/(4ω_{c}) = ζ^{2}.
1st order lowpass with a single pole[edit]
If R_{3} = 0 (i.e. if the PLL is of 2nd order, type 1) :
Where:
τ_{p} = CR_{2}
τ_{p} = 1/ω_{c} > ω_{c} = filter cutoff frequency
y(s)/x(s) = G_{f} / (sτ_{p} + 1)
The filter gain is flat from d.c. to the cutoff frequency, and then decreases with a slope of 20 dB/decade.
The overall PLL block diagram, including the two hard nonlinearities that are in the simulation but not in the model, is:
The lowpass filter recurrence relation for the simulation can be derved from:
ΔQ = C ΔV (1)
i_{C}[k]Δt = C(y[k] – y[k1]) (1)
i_{C}[k] = x[k]/R_{1} – y[k]/R_{2} (2)
Combining (1) and (2), it is possible to solve with respect to y[k], eliminating the intermediate variables i_{C}[k] and v_{C}[k], and to get the formula for the calculation sheet:
x[k]Δt/R_{1}  y[k]Δt/R_{2} = C(y[k] – y[k1])
y[k](1+ Δt/CR_{2}) = y[k1] + x[k]Δt/CR_{1}
y[k] = ( y[k1] + x[k]Δt G_{f}/τ_{p} ) / (1+ Δt/τ_{p} )
If the filter is to be part of a PLL, the relation ω_{c} /ω_{n1} is fundamental for the loop operation.
In a 2nd order type 1 loop the filter cutoff frequency ω_{c} should be made larger than 1/4 of the loop ω_{n1} (ω_{n1} is the same as G, the open loop gain, or the forward gain if the filter was just a flat amplifier G_{f}).
As it will be shown, a 2nd order type 1 loop where ω_{c} is smaller than ω_{n1}/4 is underdamped according to ζ^{2} = 4ω_{c} /ω_{n1}.
In case of a charge pump[edit]
When the last stage of the phase comparator is a charge pump, the performances of the loop amplifier/filter depend both on the charge pump current and on the additional RC networks^{[1]}
.
The following figure also shows the Bode plots of the transfer functions of the two (passive) filtering options:
The transfer functions are:



 22:
v_{o}/i_{i} = (1/s(C_{f} + C)) * ( (1 + sRC_{f}) / (1 + sRC')) ; C' = series of C and C_{f}
 22:





 21:
v_{o}/i_{i} = R_{2} / ( (1 + sR_{1}C)*(1 + sR_{2}C_{f}) + sCR_{2}))
 21:


These networks exhibit a high frequency pole that is influenced by C (1/RC' with C' = CC_{f}/(C+C_{f}) in the 22 case and 1/R_{1}C + 1/R_{2}C_{f} in the 21 case).
The frequency of this pole is always high enough not to influence the closed loop performances in the frequency band of interest.
It corresponds to the need to prevent the high frequency noise (generated by the comparator logic and the charge pump) from propagating outside these circuit blocks.
Otherwise said, the capacitor C and the poles it creates are not considered for the PLL order and type.
When no RC network is present besides the capacitor C, the loop is a 1st order loop. The considerations above, about C filtering high frequency noise of the charge pump without influencing the fundamental PLL operation, hold good as well.
References[edit]
 ↑ Floyd M. Gardner, "ChargePump PhaseLock Loops", vol. COM28, NO.11, pp. 1849  1858, November 1980 in IEEE TRANSACTION ON COMMUNICATION.