GB2509595A - Signal phase delay chain with calibration, bypass and digital comparator circuits. - Google Patents

Signal phase delay chain with calibration, bypass and digital comparator circuits. Download PDF

Info

Publication number
GB2509595A
GB2509595A GB1320392.2A GB201320392A GB2509595A GB 2509595 A GB2509595 A GB 2509595A GB 201320392 A GB201320392 A GB 201320392A GB 2509595 A GB2509595 A GB 2509595A
Authority
GB
United Kingdom
Prior art keywords
output
value
delay
delay chain
comparator
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
GB1320392.2A
Other versions
GB201320392D0 (en
Inventor
Sivaramakrishnan Subramanian
Nidhir Kumar
Sridhar Cheruku
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ARM Ltd
Original Assignee
ARM Ltd
Advanced Risc Machines Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ARM Ltd, Advanced Risc Machines Ltd filed Critical ARM Ltd
Publication of GB201320392D0 publication Critical patent/GB201320392D0/en
Publication of GB2509595A publication Critical patent/GB2509595A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/12Synchronisation of different clock signals provided by a plurality of clock generators
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION, OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/08Details of the phase-locked loop
    • H03L7/081Details of the phase-locked loop provided with an additional controlled phase shifter
    • H03L7/0812Details of the phase-locked loop provided with an additional controlled phase shifter and where no voltage or current controlled oscillator is used
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03LAUTOMATIC CONTROL, STARTING, SYNCHRONISATION, OR STABILISATION OF GENERATORS OF ELECTRONIC OSCILLATIONS OR PULSES
    • H03L7/00Automatic control of frequency or phase; Synchronisation
    • H03L7/06Automatic control of frequency or phase; Synchronisation using a reference signal applied to a frequency- or phase-locked loop
    • H03L7/08Details of the phase-locked loop
    • H03L7/081Details of the phase-locked loop provided with an additional controlled phase shifter
    • H03L7/0812Details of the phase-locked loop provided with an additional controlled phase shifter and where no voltage or current controlled oscillator is used
    • H03L7/0814Details of the phase-locked loop provided with an additional controlled phase shifter and where no voltage or current controlled oscillator is used the phase shifting device being digitally controlled
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03KPULSE TECHNIQUE
    • H03K5/00Manipulating of pulses not covered by one of the other main groups of this subclass
    • H03K5/13Arrangements having a single output and transforming input signals into pulses delivered at desired time intervals
    • H03K5/131Digitally controlled

Abstract

Disclosed is a calibratable delay chain with a plurality of delay stages and adjustment circuitry to vary the delay of the stages in response to an input value. The calibration circuitry calibrates a delay of the chain, with calibration control circuitry which supplies the input value to the adjustment circuitry, output selection circuitry to select an output from a predetermined point along the delay chain, and a bypass path for bypassing the delay chain. Digital and analogue comparators compare the output from the delay chain and the output from the bypass path. The calibration control circuitry controls the output selection circuitry to output a signal from one point on the delay chain to the digital comparator and to change the input value to the adjustment circuitry in a first direction at a first rate until a change in an output value of the digital comparator value is detected. The calibration control circuitry responds to the detected change in output value of the digital comparator to control the output selection circuitry to output a signal from a further point on the delay chain to the analogue comparator and to change the input value in a second direction at a second rate starting from a value determined by the input value at which the digital comparators output value changed value, the second rate being slower than the first rate, a change in value output from the analogue comparator indicating an input value that provides a calibrated delay.

Description

CAUBRATON OF DELAY CHAftNS The technical field relates to data processing apnarat.us and in particular. to the calibration of delay paths for delaying a clock signal in order to shift the clock signal by a predetermined phase.
In many data processing systems it tray be desirable to phase align two signals, or to have a predetermined phase difference between them. For example. in DDR PHY (double date rate physical layer) there is a requirement to shift die clock input by both 3600 and by 90° for effective data capture.
to In these systems the phase difference is provided by delaying a clock signal by a predetermined amount using a delay locked loop DLL. Ilie delay in the DLL is provided by multiple basic delay stages arranged in a chain, the delay across the who]c chain being set to one clock cycle. The delay chain may be designed from CMOS or CML (current-mode logic) styles of invcrters. CML stages generally being ts preferred over CMOS as they show better power supply' noise immuiiity. Asthe delay of these CML stage,s vary with PVT (process. Voltage and Lemperalt.re) calibration is.
needed to keep the delay constant or nearly constant across these different PYTs.
Adjustment devices such as binary weighted capacitive or resistive load inside the CML stages may be used to adjust the delay.
In devices of the orior art the phase difference between thc clock signal passing through the chain and the clock signal passing through a bypass line has been compared during calibration using art analogue comparator. An analogue comparator according to the prior art it shown in Figure Ia along with a timing diagram Figure lb showing the signals.
In the analogue comparator of Figure Ia there are two inputs that receive signals one otrtput]. that being the output of the delay chain and the other, output2 being an ouLpLlL from the bypass path. l'hese signals are passed into an exclusive OR gate 12 which generates a signal Y indicative of whether these values are the same or are different arid a signal YB which is the inverted value of Y. These signals Y, YB are then input to averaging circuit 14 which forms an average of these values. A comparison is then done using comparator 16 The averaging circuit 14 is present to prevent or at least impede false results due to jitter.
An analogue comparator is an accurate way of comparlng the signak but it takes time to perform each comparison due to the averaging and the desire to allow the signals to settie.
Looking at Figure lb we see that where the signals are nearly aligned the output Y is positive fix very little of the time whereas the output YB is positive for a S lot of the time. Thus, the average of YB is far greater than the average value of Y. As the signals get out of phase this difference reduces until at a 90° phase difference the signals cross over and the avenge value of Y starts to become greater than the average value of YB. This analogue comparator therefore provides a very good way of detecting a quarter phase change, that is a phase change of either 900 or 270°. It cannot be used to detect any othcr phase change.
Thus,inadeviceofthepriorartwherea36O°phasechangeisrequiredan output signal will be taken from a quarter of the length of the delay chain and the analogue comparator is used to determine when the signal is 90° out of phase. It is then assumed that the whole delay chain has a delay of 4 times this, that is 3600. This is acceptable provided the delay stages are well matched.
In order for the analogue comparator 10 to be able to produce an accurate result a time of about of 500 nanoseconds per reading is required. This is a significant time and makes the calibration a lengthy process. For this reason, in devices of the prior art the adjustments to the delay stages are initially made in large steps and a rough estimate found, whereupon the calibration he performed again around this point in smaller steps.
It would be desirable to be able to make an accurate calibration in less time.
A first aspect of the present invention provides a calib ratable delay chain comprising: a delay chain comprising a plurality of delay stages and adjustment circuitry configured to vary a delay of each of said plurality of delay stages in response to an input value; and calibration circuitry configured to calibrate a delay of said delay chain, wherein said calibration circuitry comprises: calibration control circuitry for controlling said calibration and supplying said input value to said adjustment circuitry output selection circuitry configured to select an output from a predetermined point along said delay chain; a bypass path for bypassing said delay chain; a digital comparator configured to compare an output from said delay chain and an output from said bypass path; an analogue comparator configured to compare an output from said delay S chain and an output from said bypass path; wherein said calibration control circuitry is configured to control said output selection circuitry to output a signal fix,m one point on said delay chain to said digital comparator and to change said input value to said adjustment circuitry in a first direction at a first rate until a change in an output value of said digital comparator value is detected; said calibration control circuitry is configured to respond to said detected change in output value of said digital comparator to control said output selection circuitry to output a signal from a further point on said delay chain to said analogue comparator and to change said input value in a second direction at a second rate starting from a value determined by said input value at which said digital comparator's output value changed value, said second rate being slower than said first rate, a change in value output from said analogue comparator indicating an input value that provides a calibrated delay.
The technology describcd herein recognises that although analogue comparators provided an accurate way of finding a quarter phase delay, the time required fir each comparison to be made is high resulting in a lengthy calibratiot The technology also recognises that digital comparators respond quickly to differences in input signal levels and as such can perform comparisons much more quickly than analogue comparators, albeit with less accuracy. A much quicker calibratioa could therefore be performed if a digital comparator were used. Furthermore, no accuracy needs to be lost if the digital comparator is used to provide a rough estimate of the required delay, and an analogue comparator used to compare the output signals at this point or at a point near this point to find an accurate calibrated value.
In this way a far quicker calibration than an analogue only calibration can be performed without any loss of accuracy.
Although the analogue comparator may have a number of forms, in some embodiments said analogue comparator comprises circuitry for providing a signal indicating when said two output signals have a same value and a signal indicating when said two output signals have different values and averaging circuitry configured to avenge said two signals over time, said analogue comparator comparing said two averaged signals and detecting a point at which a larger of said two averaged signals becomes a smaller of said two averaged signal, such that said analogue comparator circuitry is configured to detect a quarter phase difference between said output S signals.
Analogue comparators work well where they compare average signals as any jitter on the signal can be averaged out However, if this is the case then they generally can only compare signals that are a quarter phase out of synchmnisation with each other.
This means that if a delay of a full phase is required then calibrating it with the analogue circuitry can only calibrate the 90° or a 2700 point and onc must assume that the chain is uniform. Generally the delay chains are designed to be uniform but there will be some non-uniformities.
In some embodiments, said analogue comparator comprises: exclusive OR circuitry for exclusive ORing the two outputs together and an inverter for generating an inverted value of said exclusive OR output; avenging circuitry for generating an averaged value of said exclusive OR output and an averaged value of said inverted value of said exclusive OR output; and a comparator for comparing said two averaged values and indicating when one of said two averaged values that was smaller than another becomes larger.
In some embodiments said digital conpantor is configured to determine when an output of said delay chain has a different value to an output of said bypass path, such that a change in output value of said digital comparator indicates a phase difference of 360' or a whole clock cycle between said two outputs.
Digital comparators can be used to detect diffcrcnccs in signal levels. They may therefore be used to detect phase difference of 360° which is often the difference that is required in delay locked loops for example.
In some embodiments, said output selection circuitry is configured to output a signal from an end of said delay chain to said digital comparator and from a point three quarters of the way along said delay chain to said analogue comparator, said digital comparator changing value in response to said output signal being delayed by a whole clock cycle, and said analogue comparator changing value in response to said output signal being delayed by three quarters of a clock cycle, such that said calibrated delay for said delay chain is a whole clock cycle delay.
As noted above digital comparators are well adapted to detect signals being delayed by 36(Y or a whole clock cycle, while analogue comparators arc well adapted to detect signals delayed of a quarter of a clock cycle out of phase. Thcrefore, it is advantageous if the analogue comparator compares a signaL from three quarters of the way along the delay chain and the digital comparator from the end of the delay chain, such that they both detect approximately the same phase difference. Taking the signal from three quarters of the way along the chain, rather than from a. quarter of the way along, means that more of the delay chain is used. in the measurement such that the efibet of any non-uniformities in the chain on the result is reduced.
In some embodiments, said digital comparator is a flip flop and in some cases a D flip flop and the calibration control circuitry is configured to detect said output of said D flip flop changing from a one to zero indicating that said two signals are moving into alignment.
The digital comparator may have a number of forms, it may he a flip flop and in some cases a D-flip fop A flip flop will change value when the input signals change value which will provide a good indication signal for the calibration control circuitry.
Where the calibration control circuitry is looking-ft,r a 360° phase change then it will detect when the output of a I) flip flop changes front a I to a 0 which will indicate that the two signals are moving into alignment.
In some embodiments, the first and second directions may he different directions while in other embodiments the first and second directions may be the same direction.
When determining whether to continue to change the va].ue in the same direction during the analogue comparison as during the digital comparison, one needs to know whether the digital comparIson was an over or under estimat.e us this wil] indicate where the real alignment point is. If one does not know this, then rather than using the detected value the detected value that has been changed to ensure that it is either an underestimate or an overestimate can he used. In c-fleet if the digital comparison is thought -to have occurred too early then the second direction should be the same as the first, while if it is thought to have occurred too late, then the second direction should be in the opposite direction In some embodiments, said calibration control circuitry is configured to perform a verification step prior to controlling said output selection circuitry to output a value to said analogue comparator, said verification step being for verif5zing that said change in output value of said digital comparator is due to a difference in output
S
signals and -not to jitter on one of said output signals, said verification step comprising: varying said input value finther in said first direction by a predetermined amount and determining whether said digital comparator continues to output said changed output value, if said digital comparator continues to output said changed output value said calibration control circuitry determines that said detected change in output values is due to a difièrence in output signals and proceeds to control sad output selection circuitry to output a value to said. analogue comparator.
It may be advantageous if the calibration control circuitry verifies the rough estimate providcd by the digital comparator. The digital comparator compares two signals and indicates when one of them changes with respect to the other. It may be that jitter on one of the signals triggers the digital comparators to change and generates a false posithc. In order to avoid analogue comparisons being made from a point that is not close to the required phase delay, it may he advantageous if a verification step is performed following detection of a change in signals by the digital comparator. In the verification step the input value can be incremented by a predetermined amount and. if the output 0f the digital comparator does not change from the value output when the detection was made. then the rough estimate is judged to he correct and this input value can be used. as the starting value for the analogue comparison. IF however it changes then the rough estimate was a false positive and should be discarde± in some embodiments, said calibration control circuitry is configured in response to said digital comparator not continuing to output said changed output value during stud verification step to continue to increase said input value in said first direction until a thrther change in output value is detected and to perform said verification step for said thrther change in output value.
Where the veriflcation step indicates a false)ositve then the digital comparator continues to check its two input signals while the input values and therefbre the delay are changed, until a new positive is ibund whereupon the verification step is performed again.
In some embodiments, said predetermined amount that said input value is increased by in said verification step is selected to change a delay in said delay chain by a time amount that is longer than a predicted jitter pulse.
In order for the verification step to be able to reliably discount false positives dues to jitter, the predetermined amount that the input value is increased by should be longer than a jitter signal is predicted to last such that if the positive was due to jitter then when the new measurement is taken the jitter should no longer be present on the S signal.
Although the output selection circuitry can comprise a number of things, in some embodiments it comprises a multiplexer. Similarly the adjustment circuitry used will depend on the type of delay stage but in some embodiments the delays stages are made of CML current-mode logic and the adjustment circuitry comprises binary wcightcd capacitivc or resistive load circuitry.
In some embodiments, the calibratable delay chain comprises 4n delay stages where n is an integer, and wherein said digital comparator compares an output from said delay chain after 4n delay stages, that is at an end of said delay chain and said analogue comparator compares an output fix,m said delay chain after 3n delay stages.
Where the analogue comparator looks for signals that are quarter of a cycle out of phase while the digital comparator looks signals that are a whole cycle out of phase then it is desirable if a signal can be taken from three quarters of the length of the delay chain for the analogue comparison. In such a case, it is advantageous if the number of delay stages in the delay chain is divisible by Ibur. Although a signal a quarter of a cycle out of phase could be taken after just n stages, taking the signal from after 3n stages means that more of the delay chain is used in the comparison and this reduces errors due to differences between different delay stages.
In some embodiments, said calibration control signal is configured to change said input value in steps and to hold said input value at each value for at Icast ten times longer during said analogue comparison than during said digital comparison.
The digital comparator can make its comparison far quicker than the analogue comparison and thus the calibration control circuitry needs to hold the input value steady for a much shorter time. In general the input value is held for at least 1110th of the time it is held for the analogue signal and in some embodiments for I15O'k A second aspect provides a delay locked loop comprising a delay chain according to a first aspect.
Although the delay chain can be used in a number of devices where a calibrated delay is required, it is particularly suitable for a delay locked loop, which are designed to generate clock signals with a certain phase difference to other clock signals.
A third aspectS provides a meLhod of calibrating a delay chain, said delay chain comprising a pLurality of stages and adjustment cIrcuitry contgurcd to vary a delay of each of said plurality 01 delay stages in response to an input value; said method compnsmg the steps of outputting a signal from one point on said delay chain to a digital comparator; outputting a signal from a bypass path not passing through said delay-chain to said digital comparator; varying an input value to said adjustment circuitry in a first dircction at a first rate until a change in an output value of said digital comparator value is detected; outputting a signal from a further point on said dclay chain to an analoguc comparator; outputting a signal from a bypass path not passing through said delay chain to said analogue comparator; varying said input value in a second direction at a second rate starting from a value-detened y said value at which said digital comparators output value changed value, said second rate being slower than said first rate until a change in value output from said analogue comparator is detected; using said input values that generated said change in value output as calibration values fr said delay chain.
A fourth aspect of the present invention pmvides ealibratable delay chain compnsing: a delay chain comprising apiuralitv of delay means and adjustment means for varying a delay of each of said plurality of delay means in response to an input value; and 2 calibration means for calibrating a delay of said delay chain, wherein said calibration means comprises: calibration control means for controlling said calibration and supplying said input value to said adjustment circuitry; output selection means for se]ecting. an output from a predetermined point along said delay chain; bypass means for bypassing said delay chain; digital comparing means for comparing an output from said delay chain and an output of said bypass means; analogue comparing-means for comparing two output siglials, an output signal from said delay chain and an output signal from said bypass means: wherein said calibration control means is for controlling said output selection means to output a signal from one point on said delay chain to said digital comparing means and for changing said input value to said adjustment means at a first rate until a change in an output value of said digital comparing means is detected; said calibration control means is for responding to said detected output of said digital comparing means to control said, output selection means to output a signal from a further point on said delay chain to said analogue comparing means and to change said input value at a second rate starting from a value dctcrniincd by said input value at whien said digital comparmg means output value changed value, said second rate being slower than said first rate, a change in value output from said analogue comparing means indicating an input value that provides a calibrated delay.
Embodiments of the invention will now be described, by way of example only with reference to the accompanying drawings in which: Figure Ia shows an analogue comparison circuit according-to an embodiment of
the prior art;
Figwe lb shows wave fon-ns depicting the calibration formed by the analogue comparator comparison circuit of Figure Ia; Figure 2 shows a delay chain and cahhration circuit 3 for calibrating that delay chain according to an embodiment of the present invention; Figure 3 shows an alternative embodiment of a delay chain and calibration circuitry according to an crnbodin'icnt of the present mvcmition; Figure 4a shows the circuit of Figure 3 during digital calibration; Figure 5 shows the waveforms during the digital calibration; Figure 6 shows in greater detail the uhase error due to uncertainty in the set up-time of the B-flop of the circuit of Figure 4; Figure 7 shows the ei.rcut oH'i.gure 4 during th.e analogue comparlsons; Figure 8 shows wavefomms of the circuit during analogue calibration; and Figure 9 shows a flow diagram illustrating steps in the method according to an embodiment of. the present technique.
Figure 2 shows a calibratable delay chain 20 according to an embodiment of the present invention. The ealibratable delay chain comprises a delay chain 30 made up of individual stages 32. These stages have adjustable circuitry within them which changes the delay of the stage as a control value input to the stages changes. This may he in the form of variable resistive or capacitive loads such as binary weighted capacitive/resistive loads. The control value is an input value 40 generated by calbration contro] circuitry 50. The calibration control circuitry 50 increases or decreases thc input value to increase or decrease the delay seen by the delay chain.
The cahhratahie delay chain also has a multiplexer 35 which can select an output from one of the stages in the delay chain, and forward this to selection circuitry which transmits the outputs it receives to either an analogue comparator 70 or a digital comparator 60. The calibration control circuitry 50 controls the select signal for both the multipLexer 3.5 and the seLect circuitry 80.
[n this embodiment, the digital comparator compares an output sienal from the end of the delay chain O4 with the output signal Output2 which does not pass through the delay chain hut is rather sent via a bypass path 33. Analogue comparator 70 compares the output fnni three quarters of the way along the delay chain output 0-with the output from the bypass path 33 output Output2. Bypass path 33 should mirror the path through the delay chain except thr the delay chain part of that path, so that any difference in phase is due to the delay chain and can be controlled. For this reason there is a dummy multiplexer 37 on the bypass path that matches the muitinlexer 35 and provides a similar delay to a clock signal passing through it.
As noted previously whether the two output signals from the bypass path and the dcLay chain are sent to the analogue or dgjtaJ comparators is controlled by select circuitry 80 which is controlled by a signal from calibration control circuitry 50.
In operation, when the calibration control circuitry 50 calibrates the delay chain for a 360° phase shift, then initially it adjusts the input value 40 and selects the output O4 at the end of the delay chain 30 with multiplexer 35, sending this output signal via select circuitry 80 to the digital comparator 60. The digital comparator 60 will compare the output from the bypass path with the output from the end of the delay chain as the input value 40 is increased and the delay is increased. As a digital comparison is being-made, the rate of change of the input value can he high of the order of iOns as the digital comparator 60 can make a comparison very quickly.
At a certain point the digital flag output from digital comparator 60 will indicate that the unaligned signals have become aligned again. The chgitai comparator will trigger the digital flag to change value when either two rising edges or two falling edges occur at about the same time.
The calibration control circuitry 50 then knows that there is approximately a 36oc phase shift in the two signals at this point. It will then transfer the select signal to multiplexer 35 to output an output signal from three quarters of the way along the delay chain that is O to output I and this will he output by a select circuitry 80 to analogue comparator 70 along with the output from the bypass patti. The analogue comparator will compare the signals and find when there is a three quarter phase shift.
it will start using the input value used when the diitai comparator set the digital flag and will either continue increasing these values to increase the delay or will gradually decrease them until the cross over point shown in Figure lb is reached. At this point it will determine that the system is calibrated and will store the input value 40 used to generate this delay as the calibrated value. As the analogue comparator 70 takes much longer to make a comparison than the digital comparator 60 the input value will change at a much slower rate taking about iOOns for each comparison.
It should be noted that by taking the value from three quarters of the way along the delay chain rather than a quarter of the way along as in the prior art any inhornogeneities in the first three quarters of the delay' chain wil! be accounted for in the calibration and will not affect the results. This is clearly better than if only the first quarter are accounted for, in some embodiments, rather than stopping immediately once the digital flag is set the calibration control circuitry will control the input vahte to increase by a certain amount. This amount will be selected such that the delay increases beyond what is considered a reasonable length fbr a jitter signal.
The output of the digital comparator is then checked again to check that the digital flag is still set and has not changed value. If it determines that it has not changed value then it is determined that the clock signals are aligned and the analogue comparison is made from the input value that caused the digital flag to be set.
If, however, increasing the input value, by the certain amount provides a different digital flag output then it is determined, that the digital flag did not indicate that the signals were approximately 360t out of phase hut rather provided an indication of jitter on one of the signals. The calibration process then resumes with.
the input value being incremented at a particular rate until the digital flag signals alignment of the two signals again. At this point the jitter test can he performed again and when the Jitter test conflnm that the flag was not set due to Jitter then the analogue comparison can be perthrmed.
As noted above as each digital comparison can be performed very quicidy the input value can be increased at a fhst rate as the need to hold the signal steady for a long time between steps is not required for the digital comparison. When the analogue comparison is performed each mcrement of the input value signal needs to be held, steady for some time wniic the analogue comparator settles in order for an accurate result to he achieved. Typical delay steps tbr the digital increments are of the order of 10 nanoseconds while for the analogue steps a delay of 500 nanoseconds is required.
Figure 3 schematically shows a master delay-locked loop DLL having a delay chain according to an embodiment of the present invention. Delay chain 30 in this embodiment has 16 stages and therefore multiplexer 35 has 16 inputs that it seects between. Each delay stage is a 9bit P\TT controlled delay stage, a 9bit input value being varied to adjust the delay of each stage. The 9-hit P\T values are used to give a 360" delay shift tbr an input frequency ranging from 400MHz to 1067MHz across PV'TA 16:1 multiplexer is used to select a signal from a different portion of the delay chain and therefore a signal having a different phase shift. The different stages should be closely matched for layout parasitics so that selecting a signal from say 1⁄4 of the way along the delay-chain should provide a phase delay of 90' if selecting the signal from the end provides a phase delay of $60".
There is a single-ended to differential converter before the input and there is a differential to single-ended converter befhre the output the uctay path. The bypass path 3a therefore also has these devices and a dummy multiplexer on U such that any difference in delays between the paths are only due to the delay chain 30.
The digital comparator 60 in this embodiment is a D-flip flop while the analogue comparator 70 is similar to the analogue comparator of the prior art and comprises anXOR. gate, averaging circuitry and a comparator. This diagram does not show the calibration control, circuitry that controls the PVT sitznais and the select signals of the multiplexer, hut this operates in the same way as for the circuit of Figure 2 controlling-the select signal of the multiplexers. which of the analogue or digital comparators they are sent to and the incrementing and deerementing of the PVT hits, which it does using a finite state machine.
Following calibration then the device operates as a delay locked loop DLL with the PVT bits set to the vatues determined during calibration to produce the required phase delay. This DLL is termed a master DLi_ as it has the calibration circuitry within it. The calibrated values for the ["IT bits call he used in slave fiLLs which arc formed of the same components hut have no calibration circuitry. In this way-the eahbrated result from one DLL can he used in other slave DELs. As noted previously rt is important that the delay stages are closely matched within a DLL and similarly if the calibrated values are to be calculated for one DLL. and used. in several, then it is important. that they the different DLILs are formed of the same components in the same way.
Figure 4 shows the circuitry of Figure 3 during the digital comparison stage of the calibration. During this time the output from the I 6 delay stage is selected by the multiplexer 35 and output to output I. This is input to the digital comparator the I)-flip-fEop 60 and the digital flag is monitored, The PVT hits are incremented by a finite state machine under control of the calibration control circuitry (not shown) and the delay of the delay stages gradually increases. Thus, the rising edge of outputl is delayed and gets closer to the rising edge of output2. When it gets close to the rising edge of output 2, that is within the set up time of the I)-flip-flop, the digital flag output by the flip4lop toggles from a I to a 0. As the digital comparator 60 can make comparisons very quickly the finite state machine can be incremented every Ions and a.s such incrementing in steps of 1 is acceptable. When the digital flag toggles this indicates that output] and outpui2 have become at least roughly aligned that is the rising edges of the two devices are within a predetermined time of each other. The finite state niaciune stops incrementing the PVT code at this point and thc delay chain is calibrated to an approximate delay of one period of the input clock Figure 5 shows the clock signals of the circuit of Figure 4 during the digital comparison. Initially they are almost aligned, the PVT codes are gradually increased and the clock signal of outputl is delayed, thus, the t-vo signals move out of phase with each other and when they get to more than i80 out of phase the digital flag goes to 1. Digital calibration is complete when the digital flag goes from I to 0 indicating that the two signals are moving back into phase and at this point the rising edges are aligned.
The result is not very accurate due to the setup time of the D-fiop. Figure 6 illustrates this issue, and shows how the D-flip-flop will have a phase error due to the uncertainty in the setup time for the flip flop. This error will he corrected by the analogue calibration wnch is perthrmed Later Another source of error may be due to jitter on one of the. signals. lIn order to avoid this producing a false result, rather than switching to analogue calibration immediately that the digital flag indicates alignment, in some embodiments, the input PVT values are increased by a set amount and a fitrther reading is taken to check tEat the digital flag slays at the 0 value and does not swItch. back to I -If it stas unchanged then the change was not due to jitter and one can proceed with the analogue calibration.
Figure 7 shows the circuitry of Figure 3 ciunng the analogue comparison, At this time multiplcxcr 35 selects the output from the twelfth stagc which is three quarters of th.e way along and is a stage where there should he a 2700 hase shift if the output has a 360° øhase shift.
This output is input to the anaLogue comparator 70 where the signal from three quarters of the way along the delay chain and the signal from the bynass path are compared. During analogue calibration, the finite state machine takes the VVT code that was obtained at the end of the digital calibration and increments it or decrements it until the analogu.e flag furs its output. As we an:. taldng the output at the 270' phase change point that is1⁄4 of the way along the delay chain, and we are incrementing the p\f values in this ease and increasing the delay we are looking 1br the comparator to flip its output from a 0 to a l,this is shown in Figure 8.
Figure 8 shows timing diagrams of the signals of Figure 7. The averaging circuitry within analogue comparator 70 averages the amount of time that the signals are different for output Y and the amount of time that they are the same for output YB. Thcrctbre initially a.s the sLg.n.a.is are out of phase in this example the average vah.e of Y is far greater than the average of YB. As the delay changes they are gradually brought together until the crossing point which is' LIe point that is the final calibration point.
It should be noted that if one has some idea of whether the error in the digital comparison may have caused the flag to be set too soon or too late, ti.en th.e input value from the digitaL calibration can he used and the PYT values adjusted in the desired direction. Alternatively, a PVT value that is close to the value detected during digital calibration hut is slightly larger or smaller can he used as the starting point in order to know in which direction the values should be changed.
It should be noted that when comparing the average value of V and the avenge value of the inverted Y. YB as in the diagrams shown Figure 8 and Figure lb there is a difference in the comparisons. This is because in both cases one is increasing the delay values and thus, in the 90° phase change of Figure Ib, the two S signals arc the same for most of the time moving to being different for most of thc time as one goes beyond 900. If one starts at 270° and then goes beyond it they are difibrent most of the time moving to being the same most of the time. However, if one were to perform the comparison going from beyond to 270° and decreasing the delay then one would move from being the same most of the time to being different most of thc time.
Figure 9 shows a flow diagram illustrating steps in a method according to an embodiment of the present invention. In a first step output signals from an end of the delay chain and the bypass signal are input to the digital comparator. The input value to the delay chain is then incremented and it is determined whether or not the output of the digital comparator has changed. If it has not then the input value to the delay chain is incremented again and the steps are repeated until the output of the digital comparator does change.
At this point the input value is increased by a predetermined amount and the output of the digital comparator is checked to see if it changes again. If it does then the input value to the delay change is incremented from this new value and the steps of determining when the output digital comparator switches value are performed again. This is because if the output of the digital comparator changes again in response to the increase by this predetermined amount then the original change was not due to the signals becoming aligned but was due to jitter on one of the signals.
Once a steady change in the digital comparator has been determined then the input value is set to the value that it had when the digital comparator changed. It should be noted that in some cases it may be set to a value that is slightly more or slightly less than the value when the digital comparator changed and this may be selected according to the system and to the digital comparator. Digital comparators may not switch at exactly the time that the signals are aligned but may have some skew so that they switch early or late. If this is known the input value that is then put into the analogue system can be adjusted accordingly to decrease the number of steps required for alignment lit the analogue comparison and to know whether to decrement or increment the input value.
The output signal from three quarters of the length of the delay chain is then input to thc analogue comparator along with the bypass signal and depending on the circumstances is either incremented or decremented until the output of the analogue comparator has changed value. Whether the value is incremented or decremented may S depend on the initial input value determined from the digital comparator.. As noted previously the digital comparator switches as about the time that the signals are 360° out of phase and are therefore aligned again. However, it may have some skew and thus, it may switch at some distance fmm this point, if it is known which side of the point it will be it can be determined whether to increment or decrement.
Once thc analogue comparator switchcs value then this indicates that thc two signals are out of phase by 270° three quarters of the way along the delay chain and therefore this is an indication that one has reached the calibration point. The analogue comparison is far more accurate than the digital comparison but each analogue comparison takes time to settle such that the rate of increase or decrease of the input value needs to be made more slowly. For this reason, an initial point close to the switching point is found with the digital comparator and the analogue comparator is used to produce an accurate result. The result determined by the analogue comparison is output as the calibrated value.
Although illustrative embodiments have been described in detail herein with reference to the accompanying drawings, it is to be understood that the claims are not limited to those precise embodiments, and that various changes and modifications can be effected therein by one skilled in the art without departing from the scope and spirit of the appended claims. For example, various combinations of the features of the following dcpcndcnt claints could be made with the features of the independent claims.

Claims (23)

  1. CLAIMS1. A calibratable delay chain comprising: a delay chain comprising a plurality of delay stages and adjustment circuitry S configured to vary a delay of each of said plurality of delay stages in response to an input value; and calibration circuitry confIgured to calibrate a delay of said delay chain, wherein said calibration circuitry comprises: calibration control circuitry for controlling said calibration and supplying said input value to said adjustment circuitry output selection circuitry configured to select an output from a predetermined point along said delay chain; a bypass path for bypassing said delay chain; a digital comparator configured to compare an output from said delay chain and an output from said bypass path; an analogue comparator configured to compare an output from said delay chain and an output from said bypass path; wherein said calibration control circuitry is configured to control said output selection circuitry to output a signal from one point on said delay chain to said digital comparator and to change said input value to said adjustment circuitry in a first direction at a first rate until a change in an output value of said digital comparator value is detected; said calibration control circuitry is configured to respond to said detected change in output value of said digital comparator to control said output selection circuitry to output a signal from a further point on said delay chain to said analogue comparator and to change said input value in a second direction at a second rate starting from a value determined by said input value at which said digital comparator's output value changed value, said second rate being slower than said first rate, a change in value output from said analogue comparator indicating an input value that provides a calibrated delay.
  2. 2. A calibratable delay chain according to claim 1, wherein said analogue comparator comprises circuitry for providing a signal indicating when said two outputs have a same value and a signal indicating when said two outputs have different values and averaging circuitry configured to avenge said two signals over time, said analogue comparator comparing said two avenged signaLs and detecting a point at which a larger of said two averaged signals becomes a smaller of said two averaged signal, such that said analogue comparator circuitry is configured to detect a S quarter phase difference between said output signals.
  3. 3. A calibratable delay chain according to claim 2, wherein said analogue comparator comprises: exclusive OR circuitry for exclusive ORing said two outputs together and an invcrtcr for gcncrating an inverted value of said cxclusivc OR output; avenging circuitry for generating an averaged value of said exclusive OR output and an averaged value of said inverted value of said exclusive OR output; and a comparator for comparing said two avenged values and indicating when one of said two averaged values that was smaller than another becomes larger.
  4. 4. A calibratable delay chain according to any one of claims 1 to 3, wherein said digital comparator is configured to determine when an output of said delay chain has a different value to an output of said bypass path, such that a change in output value of said digital comparator indicates a phase difference of 360 or a whole clock cycle between said two outputs.
  5. 5. A calibratable delay chain according to any one of claims 1 to 4, wherein said output selection circuitry is configured to output a signal fIxnn an end of said delay chain to said digital comparator and from a point thtvc quarters of thc way along said delay chain to said analogue comparator, said digital comparator changing value in response to said output signal being delayed by a whole clock cycle, and said analogue comparator changing value in response to said output signal being delayed by three quarters of a clock cycle, such that said calibrated delay for said delay chain is a whole clock cycle delay.
  6. 6. A calibratable delay chain according to any one of claims I to 5, wherein said digital comparator is a ifip flop.
  7. 7. A calibratable delay chain according to claim 6, wherein said digital comparator is a D ifip flop and calibration control circuitry is configured to detect said output of said D flip flop changing from a one to zero indicating that said two signals are moving into alignment.S
  8. 8. A calibratablc delay chain according to any one of claims I to 7, wherein said first direction and said second direction are the same direction.
  9. 9. A calibratable delay chain according to any one of claims 1 to 8, wherein said calibration control circuitry is configured to perform a vcrification step prior to controlling said output selection circuitry to output a value to said analogue comparator, said verification step verifring that said change in output value of said digital comparator is due to a difference in output signals and not to jitter on one of said output signals said verification step comprising: varying said input value fbrther in said first direction by a predetermined amount and detemfining whether said digital comparator continues to output said changed output value, if said digital comparator continues to output said changed output value said calibration control circuitry determines that said detected change in output values is due to a difference in output signals and proceeds to control said output selection circuitry to output a value to said analogue comparator.
  10. 10. A catibratable delay chain according to claim 9, wherein said calibration control circuitry is configured in response to said digital comparator not continuing to output said changed output value during said verification step to continue to increase said input value in said first direction until a thither change in output value is detected and to perform said verification step for said further change in output value.
  11. 11. A calibratable delay chain according to any one of claims 9 and 10, wherein said predetermined amount that said input value is increased by in said verification step is selected to change a delay in said delay chain by a time amount that is longer than a predicted jitter pulse.
  12. 12. A calibratable delay chain according to any one of claims I to 11, wherein said output selection circuitry comprises a multiplexer and said adjustment circuitry comprises binary weighted capacative load circuitry within each delay stage.
  13. 13. A calibratable delay chain according to any one of claims I to 12, comprising 4n delay stages where n is an integer, and wherein said digital comparator compares an output from said delay chain after 4n delay stages that is at an end of said delay chain and said analogue comparator compares an output from said delay chain after 3n delay stages.
  14. 14. A calibratable delay chain according to any one of claims 1 to 13, wherein said calibration contml signal is configured to change said input value in steps and to hold said input value at each value for at least ten times longer during Mid analogue comparison than during said digital comparison.
  15. 15. A delay locked loop comprising a calibratable delay chain according to any one of claims I to 14.
  16. 16. A method of calibrating a delay chain, said delay chain comprising a plurality of stages and adjustment circuitry configured to vary a delay of each of said plurality of delay stages in response to an input value; said method comprising the steps of outputting a signal from one point on said delay chain to a digital comparaton outputting a signal from a bypass path not passing through said delay chain to said digital comparator; varying an input value to said adjustment circuitry in a first direction at a first rate until a change in an output value of said digital comparator value is detected; outputting a signal from a further point on said delay chain to an analogue compantor outputting a signal from said bypass path to said analogue comparator; varying said input value in a second direction at a second rate starting from a value determined by said value at which said digital comparator's output value changed value, said second rate being slower than said first rate until a change in value output from said analogue comparator is detected; using said input value that generated said change in value output as a calibration value for said delay chain.
  17. 17. A method according to claim 16, comprising the further steps of: S prior to said step of outputting said value from a further point on said delay chain to said analogue comparator performing a verifying step of: varying said input value to said adjustment circuitry further in said first direction by a predetermined amount and determining whether said digital comparator continues to output said changed output value; whereupon if said digital comparator continues to output said changed output value performing said step of outputting said value from a further point on said delay chain to said analogue comparator; and if said digital comparator does not continue to output said changed value performing said step of varying an input value to said adjustment circuitry in a first direction at a first rate until a change in said output value of said digital comparator value is detected again.
  18. 18. A method according to claim 17, wherein following said digital comparator detecting a change in said output value again performing said verifying step again.
  19. 19. A method according to any one of claims 17 and 18, wherein said predetermined amount that said input value is increased by in said verifying step is selected to change a delay in said delay chain by a time amount that is longer than a predicted jitter pulse.
  20. 20. A calibratable delay chain comprising: a delay chain comprising a plurality of delay means and adjustment means for varying a delay of each of said plurality of delay means in response to an input value; and calibration means for calibrating a delay of said delay chain, wherein said calibration means comprises: calibration contml means for controlling said calibration and supplying said input value to said adjustment circuitry output selection means for selecting an output from a predetennined point along said delay chain; bypass means for bypassing said delay chain; digital comparing means for comparing an output from said delay chain and an S output of said bypass means; analogue comparing means for comparing two output signals, an output signal from said delay chain and an output signal from said bypass means; wherein said calibration control means is for controlling said output selection means to output a signal from one point on said delay chain to said digital comparing means and for changing said input value to said adjustmcnt means at a first rate until a change in an output value of said digital comparing means is detected; said calibration control means is for responding to said detected output of said digital comparing means to control said output selection means to output a signal from a further point on said delay chain to said analogue comparing means and to change said input value at a second rate starting from a value detemiined by said input value at which said digital comparing means output value changed value, said second rate being slower than said first rate, a change in value output from said analogue comparing means indicating an input value that provides a calibrated delay.
  21. 21. A calibratable delay chain substantially as herein before described with reference to Figures 2 to 9 of the accompanying drawings.
  22. 22. A delay locked loop substantially as herein before described with reference to Figures 2 to 9 of the accompanying drawings.
  23. 23. A method of calibrating a delay chain substantially as herein before described with reference to Figures 2 to 9 of the accompanying drawings.
GB1320392.2A 2012-11-20 2013-11-19 Signal phase delay chain with calibration, bypass and digital comparator circuits. Withdrawn GB2509595A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
US13/681,606 US8773185B2 (en) 2012-11-20 2012-11-20 Calibration of delay chains

Publications (2)

Publication Number Publication Date
GB201320392D0 GB201320392D0 (en) 2014-01-01
GB2509595A true GB2509595A (en) 2014-07-09

Family

ID=49883834

Family Applications (1)

Application Number Title Priority Date Filing Date
GB1320392.2A Withdrawn GB2509595A (en) 2012-11-20 2013-11-19 Signal phase delay chain with calibration, bypass and digital comparator circuits.

Country Status (3)

Country Link
US (1) US8773185B2 (en)
GB (1) GB2509595A (en)
TW (1) TWI575878B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140184243A1 (en) * 2012-12-31 2014-07-03 Advanced Micro Devices, Inc. Adaptive digital delay line for characterization of clock uncertainties

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9178685B1 (en) * 2013-12-27 2015-11-03 Altera Corporation Techniques to determine signal timing
US9148153B2 (en) * 2013-12-30 2015-09-29 Intel Corporation Systems and methods for frequency domain calibration and characterization
US10381055B2 (en) 2015-12-26 2019-08-13 Intel Corporation Flexible DLL (delay locked loop) calibration
US10250242B2 (en) * 2016-04-01 2019-04-02 Integrated Device Technology, Inc. Arbitrary delay buffer
US10922465B2 (en) * 2018-09-27 2021-02-16 Arm Limited Multi-input logic circuitry
TWI670939B (en) * 2018-12-03 2019-09-01 新唐科技股份有限公司 Delay line circuit with calibration function and calibration method thereof
TWI716975B (en) * 2019-08-21 2021-01-21 智原科技股份有限公司 Time detection circuit and time detection method thereof
US11275401B2 (en) * 2020-01-15 2022-03-15 Arm Limited Tamper monitoring circuitry
CN115167093B (en) * 2022-07-20 2024-02-20 星汉时空科技(长沙)有限公司 Time interval precise measurement method and system based on FPGA

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060022737A1 (en) * 2004-07-30 2006-02-02 Infineon Technologies Ag Device for the regulated delay of a clock signal
US20090267668A1 (en) * 2008-04-24 2009-10-29 Realtek Semiconductor Corp. Method and apparatus for calibrating a delay chain
US8237475B1 (en) * 2008-10-08 2012-08-07 Altera Corporation Techniques for generating PVT compensated phase offset to improve accuracy of a locked loop
US20130141149A1 (en) * 2011-10-17 2013-06-06 Mediatek Inc. Apparatus and method for duty cycle calibration

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5488641A (en) * 1992-12-10 1996-01-30 Northern Telecom Limited Digital phase-locked loop circuit
JP4093961B2 (en) * 2001-10-19 2008-06-04 株式会社アドバンテスト Phase lock loop circuit, delay lock loop circuit, timing generator, semiconductor test apparatus, and semiconductor integrated circuit
US6999547B2 (en) * 2002-11-25 2006-02-14 International Business Machines Corporation Delay-lock-loop with improved accuracy and range
US7602859B2 (en) * 2005-04-28 2009-10-13 Intel Corporation Calibrating integrating receivers for source synchronous protocol
US7855611B2 (en) * 2006-11-15 2010-12-21 Qualcomm Incorporated Delay line calibration

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060022737A1 (en) * 2004-07-30 2006-02-02 Infineon Technologies Ag Device for the regulated delay of a clock signal
US20090267668A1 (en) * 2008-04-24 2009-10-29 Realtek Semiconductor Corp. Method and apparatus for calibrating a delay chain
US8237475B1 (en) * 2008-10-08 2012-08-07 Altera Corporation Techniques for generating PVT compensated phase offset to improve accuracy of a locked loop
US20130141149A1 (en) * 2011-10-17 2013-06-06 Mediatek Inc. Apparatus and method for duty cycle calibration

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140184243A1 (en) * 2012-12-31 2014-07-03 Advanced Micro Devices, Inc. Adaptive digital delay line for characterization of clock uncertainties
US9494649B2 (en) * 2012-12-31 2016-11-15 Advanced Micro Devices, Inc. Adaptive digital delay line for characterization of clock uncertainties

Also Published As

Publication number Publication date
GB201320392D0 (en) 2014-01-01
US8773185B2 (en) 2014-07-08
TW201421908A (en) 2014-06-01
US20140139277A1 (en) 2014-05-22
TWI575878B (en) 2017-03-21

Similar Documents

Publication Publication Date Title
GB2509595A (en) Signal phase delay chain with calibration, bypass and digital comparator circuits.
US8207772B2 (en) Duty detection circuit and duty cycle correction circuit including the same
KR100863001B1 (en) Delayed Locked Loop Circuit with Duty Cycle Correction and Control Method of the same
US7990194B2 (en) Apparatus and method for correcting duty cycle of clock signal
US8674733B2 (en) Phase control circuit
US8154330B2 (en) Delay line calibration mechanism and related multi-clock signal generator
KR101097467B1 (en) Duty detecting circuit and duty cycle correcter including the same
US10411675B2 (en) Delay circuit and duty cycle controller including the same
US8878582B2 (en) Apparatus and method for duty cycle calibration
US8519759B2 (en) Shift register and synchronization circuit using the same
US11024350B2 (en) Semiconductor device including a calibration circuit capable of generating strobe signals and clock signals having accurate duty ratio and training method thereof
JP2008199573A5 (en)
US7977988B2 (en) Delay adjusting method, and delay circuit
KR101036922B1 (en) Quadrature phase correction circuit
JP4394788B2 (en) Delay time judgment device
US9194907B1 (en) Semiconductor apparatus
CN110534142B (en) Synchronization circuit and method related to same
US10483955B2 (en) Feedback system and method of operating the same
KR102047793B1 (en) Delay locked loop
JP5639740B2 (en) DLL circuit and control method thereof
US8004332B2 (en) Duty ratio control apparatus and duty ratio control method
KR20070117145A (en) Delay locked loop apparatus
JP2000231420A (en) Timing signal generating circuit

Legal Events

Date Code Title Description
WAP Application withdrawn, taken to be withdrawn or refused ** after publication under section 16(1)