A DELAY LOCKED LOOP WITH HARMONIC LOCK DETECTION

Abstract: A delay locked loop comprising a chain (CHN) of at least two delay elements (DL1 - DLN), of which a first delay element (DL1) has an input for receiving a reference signal (phi0), and of which a last delay element (DLN) has an output for delivering an output signal (phiN); a phase comparator (PHCMP) having a first input (PH1) for receiving the reference signal (phi0), a second input (PH2) for receiving the output signal (phiN), and an output for delivering a binary control signal (Bcntrl); and a converter (CNV) for converting the binary control signal (Bcntrl) into an analog control signal (Acntrl) for controlling a delay time of at least one (DL1 - DLN) of said delay elements (DL1 - DLN). The phase comparator (PHCMP) comprises at least one additional input (Aip) for receiving an output signal (phi1 - phiN-1) of at least one of the delay elements (DL1 - DLN-1) preceding the last delay element (DLN). The state of the binary control (Bcntrl) signal supplied by the phase comparator (PHCMP) is not solely determined by the reference signal (phi0) and the output signal of the phase comparator (PHCMP), but also by the state of one or more output signals of the delay elements not being the first (DL1) or the last (DLN) delay element. Thus, the occurrences of subsequent active edges of the output signals of the delay elements (DL1 - DLN) are registered. These occurrences are in fact the additional information needed by the delay locked loop in order to determine the appropriate binary control signal (Bcntrl) from which the analog control signal (Acntrl) for controlling the delay time of the delay elements (DL1 - DLN) is derived.

Description: A DELAY LOCKED LOOP WITH HARMONIC LOCK DETECTION The invention relates to a delay locked loop comprising a chain of at least two delay elements, of which a first delay element has an input for receiving a reference signal, and of which a last delay element has an output for delivering an output signal; a phase comparator having a first input for receiving the reference signal, a second input for receiving the output signal, and an output for delivering a binary control signal; and a converter for converting the binary control signal into an analog control signal for controlling a delay time of at least one of said delay elements. Such a delay locked loop is known from the general state of the art. A purpose of the known delay locked loop is to create multiple output signals taken from the outputs of the delay elements, which output signals have a well-defined phase relationship with the reference signal. This well-defined phase relationship is accomplished that the phase comparator compares the phase of the output signal with the phase of the reference signal. The delay locked loop then controls the delay time of the delay elements in such a way that at the end the phase difference between the output signal and the reference signal substantially equals an integral multiple of 360 degrees. A problem of the known delay locked loop is that it can easily happen that the delay locked loop locks at an undesired integral multiple of 360 degrees. Let it be assumed for example, that the desired phase difference between the output signal and the reference signal is 360 degrees (the multiple = 1) and that for example, the desired phases of the output signals of the delay elements are 90 degrees, 180 degrees, and 270 degrees, respectively. If, however, the delay locked loop locks at a wrong integral multiple of 360 degrees, for example 720 degrees (the multiple = 2), the afore-mentioned phases of the output signals of the delay elements are 180 degrees, 360 degrees, and 540 degrees, respectively which are not the desired phases. It is an object of the invention to provide an improved delay locked loop which eliminates the above-mentioned disadvantage. To this end, according to the invention, the delay locked loop of the type defined in the opening paragraph is characterized in that the phase comparator comprises at least one additional input for receiving an output signal of at least one of the delay elements preceding the last delay element. The invention is based on the insight that the problem of the known delay locked loop is caused by the fact that the phase comparator only receives information from the reference signal and the output signal and does not receive additional information from one or more of the output signals of the delay elements not being the last delay element. Since the phase comparator of the delay locked loop according to the invention does receive additional information from one or more of the output signals of the delay elements not being the last delay element, it has become possible for the delay locked loop to lock in order to obtain the appropriate integral multiple of 360 degrees. The delay locked loop is further characterized in that the phase comparator comprises a first basic flip-flop having a clock input coupled to the first input of the phase comparator, a data input, an output, and a reset input; a second basic flip-flop having a clock input coupled to the second input of the phase comparator, a data input, an output, and a reset input; an initialization flip-flop having a clock input coupled to the first input of the phase comparator, a data input for receiving a fixed data input state, an output coupled to the data input of the first basic flip-flop, and a reset input; a chain of flip-flops in which each flip-flop has a clock input forming the at least one additional input, which is coupled to an output of a corresponding delay element, an output, a data input coupled to the output of the preceding flip-flop, except for the data input of the first flip-flop, which data input is coupled to the output of the initialization flip-flop, and a reset input, and in which the output of the last flip- flop is coupled to the data input of the second basic flip-flop; and resetting means for supplying under command of signals on the outputs of the first and the second basic flip-flop, at least one reset signal to the reset inputs of the first and the second basic flip-flop, to the initialization flip-flop, and to the chain of flip-flops. In this embodiment of the invention the state of the delay locked loop is initialized during a clock cycle of the reference signal by applying a reset signal to the reset inputs of the initialization flip-flop, the first and the second basic flip-flops, and the chain of flip-flops. The state of the binary control signal delivered by the phase comparator is not solely determined by the reference signal and the output signal of the phase comparator, but also by the state of one or more output signals of the chain of flip-flops. This is accomplished by coupling the clock inputs of the chain of flip-flops to the outputs of corresponding delay elements. Thus the occurrences of subsequent active edges of the output signals of the delay elements are registered in the chain of flip-flops. These occurrences are in fact the additional information needed by the delay locked loop in order to determine the appropriate binary control signal from which the analog control signal for controlling the delay time of the delay elements is derived. The delay locked loop is further characterized in that the number of flip-flops in the chain of flip-flops is equal to the number of delay elements minus one. Thus the above- mentioned occurrences of all the output signals of the delay elements are registered in the chain of flip-flops. This provides maximum robustness (i.e. reliability of the desired operation). The required number of occurrences to be registered may be compromised with the potential robustness. This requires a trade-off with the number of required flip-flops in the chain of flip-flops. The delay locked loop is further characterized in that the chain of flip-flops has been replaced by a single flip-flop. The advantage of this is that the required number of flip- flops, and thus the required chip-area when the invention is used in an integrated circuit, is hardly larger than in the case of a delay locked loop according to the prior art, while the robustness is still improved. The invention will be described in more detail with reference to the accompanying drawings, in which: Figure 1 is circuit diagram of a known delay locked loop; Figure 2 is a circuit diagram of a known phase comparator for use in the known delay locked loop; Figure 3 is an example of a novel phase comparator suitable for use in a delay locked loop according to the invention. Figure 4 is another example of a novel phase comparator suitable for use in a delay locked loop according to the invention. Figures 5 and 6 are signal diagrams for explaining the normal operation and a problem of the known delay locked loop; and Figures 7 and 8 are signal diagrams for explaining the operation of embodiments of a delay locked loop according to the invention. In these Figures parts or elements having like functions or purposes bear the same reference symbols. Figure 1 shows a circuit diagram of a known delay locked loop comprising a number of N delay elements DL I -DLN, a phase comparator PHCMP, and a converter CNV. An input of the first delay element DLi receives a reference signal phiO. The reference signal phiO is also available at a first input PH., of the phase comparator PHCMP. An output of the last delay element DL N delivers an output signal phiN to a second input PH 2 of the phase comparator PHCMP. The phase comparator PHCMP delivers a binary control signal B cntr i which is dependent on the phase difference between the reference signal phiO and the output signal phiN. The converter CNV converts the binary control signal B cntr ι into an analog control signal A cntr i for controlling a delay time of at least one delay element DLI-DL N . Figure 2 is a circuit diagram of the known phase comparator PHCMP. The phase comparator PHCMP comprises a first basic flip-flop BFF] having a clock input which forms the first input PHj of the phase comparator PHCMP, a data input, an output, and a reset input; and a second basic flip-flop BFF 2 having a clock input, which forms the second input of the phase comparator PHCMP, a data input, an output, and a reset input. The phase comparator PHCMP also comprises resetting means RMNS, which by way of example is formed by a nand-gate which has a first input connected to the output of the first basic flip- flop BFFi, and a second input connected to the output of the second basic flip-flop BFF 2 . The output of the nand-gate is connected to the reset inputs of the first and the second basic flip- flop BFF 1; BFF 2 . The output signals DD and ID which are delivered by the outputs of the first and the second basic flip-flops BFF] , BFF ? in fact together form the binary control signal B cntr i- By way of example the data inputs of the first and the second basic flip-flops BFFi, BFF 2 receive a logical "1". In the present example , resetting occurs on the negative edge of the reset signal RST delivered by the nand-gate. Also by way of example, the first and the second basic flip-flops BFF!, BFF 2 are so called positive edge triggered flip-flops. By way of example it is assumed that the analog control signal A cntr ι reduces the delay time of the chain CHN if the output signal DD (DD is considered an abbreviation for "Decrease Delay") is logical "1" while the output signal LD (LD is considered an abbreviation for "Increase Delay") is logical "0". Similarly, the analog control signal A cntr ι increases the delay time of the chain CHN if the output signal LD is logical "1" while the output signal DD is logical "0". In the situation that the output signals DD and ID are both logical "1" or logical "0", the analog control signal A cπtr i does not change the delay time of the chain CHN. For a better understanding of the invention firstly the normal operation of the known delay locked loop will be explained in conjunction with the signal diagrams I - IX of Figure 5, and secondly a problem of the known delay locked loop will be explained in conjunction with the signal diagrams I - IX of Figure 6. In Figure 5 diagram I shows the reference signal phiO. The repetition period of the reference signal phiO is referenced T. By way of example, the number N of delay elements DL N is chosen to be four. Also by way of example, it is assumed that the delay elements DLi - DL 4 are identical. Therefore, the signals phil - phi4 represent the output signals of the delay elements DLi - DL 4 , respectively. In this example the output signals phil, phi2, and phi3 should have a phase delay with respect to the reference signal of 90 degrees, 180 degrees, and 270 degrees, respectively. However, shortly after the delay locked loop has been turned on the output signals phil, phi2, and phi3 do not have the required phases. The output signal phil should be 90 degrees delayed with respect to the reference signal phiO, i.e. the time difference of the positive edges, as indicated by vertical arrows in Figure 5, should be T/4 (a quarter of the time of the repetition period T). However, as is shown in diagram II, the delay of the first delay element DLi is exceeded by an amount of time ti as indicated in diagram II. In the same way the delays of the second until the fourth delay elements DL 2 - DL 4 are exceeded by amounts of time t 2 - 1 4 , respectively as indicated in diagrams LTI - V. The delay locked loop will adapt the analog control signal A cnt ri in order to bring the fourth output signal phi4 in phase with the reference signal phiO. Therefore, t 4 will be substantially equal to zero after the delay locked loop has reached a steady state. Since the analog control signal A cntr ι controls all the identical delay elements DL] - DL , ti, t 2 , and t 3 will then also be zero. Therefore, the output signals phil - phi3 will have the required phases (90 degrees, 180 degrees, and 270 degrees respectively) as indicated in diagrams VI - LX. So far, the operation of the known delay locked loop seems to be correct. However, a problem with the known delay locked loop is that the operation can easily turn out to be incorrect if the initial states of the output signals phil - phi4 are different just after the known delay locked loop has been switched on. To demonstrate this problem, reference is made to the diagrams I - IX of Figure 6. It is now assumed that the delays of the first to the fourth delay elements DLi - DL 4 are exceeded by amounts of time of tι+T/4, t +T/2, t 3 +3*T/4, and t +T, respectively. In order to obtain the correct output signals phil - phi3 when the delay locked loop has reached a steady state, the delay locked loop haves to adapt the analog control signal A cntr ι in order to reduce the delay of the output signal phi4 by an amount of time t +T. However, the delay locked loop will already stop adapting the analog control signal A cntr ι after the delay time of the output signal phi4 has been reduced by the amount t , because then the output signal phi4 is in phase with the reference signal phiO. This means that the delay locked loop locks at a wrong integral multiple of 360 degrees, which is caused by the fact that the delay locked loop cannot differentiate between the amount of time t 4 and the amount of time t +T. In other words, the delay locked loop "thinks" that the excess delay to be reduced is t 4 while it should be t +T. As a consequence, after the delay locked loop has reached a steady state, the phases of the output signals phil -phi3 of the delay elements DLi - DL 3 are 180 degrees, 0 degrees, and 180 degrees, respectively (as indicated in diagrams VI - VIII) with respect to the reference signal phiO, which are completely different from the desired phases: 90 degrees, 180 degrees, and 270 degrees respectively. In other words the known delay locked loop malfunctions, for example under the circumstances just described for the initial states of the delay elements DL ! - DL . Figure 3 shows a novel phase comparator PHCMP which is suitable for use in a delay locked loop so as to form a novel delay locked loop which eliminates the aforementioned disadvantage of the known delay locked loop. For this reason the phase comparator PHCMP as shown in Figure 2 is supplemented with an initialization flip-flop IFF having a clock input connected to the first input PHi of the phase comparator PHCMP, a data input, an output Qo connected to the data input of the first basic flip-flop BFFi, and a reset input connected to the output of the nand-gate. The phase comparator PHCMP further comprises a chain CHNFFS of four flip-flops FFi - FF 3 . The flip-flops FFi - FF 3 each have a clock input forming an at least one additional input A ιp , which is connected to an output of a corresponding delay element DLi - DL 3 . (See also Figure 1.) The respective data inputs of the flip- flops FF 2 - FF 3 are connected to the respective outputs of the preceding flip-flops FF] - FF 2 . The data input of the first flip-flop FF] is connected to the output Q 0 of the initialization flip- flop IFF. The output of the last flip-flop FF 3 is connected to the data input of the second basic flip-flop BFF . The reset inputs of the basic flip-flops BFFi - BFF 2 , the initialization flip-flop IFF, and of the flip-flops FFi - FF 3 of the chain CHNFFS are connected to each other. The principle of operation of the novel delay locked loop will be explained in conjunction with diagrams I - XII of Figure 7 and with diagrams I - XII of Figure 8. In Figures 7 and 8 it has been assumed that the delay locked loop is reset by a negative edge of the reset signal RST. In Figure 7 the reference signal phiO and the output signals phil - phi4 as indicated in diagrams I - V correspond to those in diagrams I - V of Figure 5. The data input of the initialization flip-flop LFF receives a fixed data input state. In the present example (see Figure 3) the fixed data input state is a logical "1". Diagrams I and VI of Figure 7 show that the output signal Qo changes from logical "0" to logical "1" when, after resetting of the delay locked loop, the first positive edge of the reference signal phiO occurs. Since the data input of the initialization flip-flop IFF receives the fixed logical "1" the output signal Q 0 will remain logical "1", at least until a following reset occurs. As a consequence, the output signal DD of the output of the first basic flip-flop BFFi changes from logical "0" to logical "1" when the second positive edge of the reference signal phiO occurs, see diagram X. The data input of the first flip-flop FF] of the chain CHNFFS is also logical "1" from the instant of the first positive edge of the reference signal phiO. However, the output signal Qi of flip-flop FF] does not change from logical "0" to logical "1" on the first positive edge of the reference signal phiO because on that instant the output signal phil is logical "0". The output signal Qi changes from logical "0" to logical "1" on the first positive edge of the output signal phil after the first posi- tive edge of the reference signal phiO. In a similar way the output signal Q 2 changes from logical "0" to logical "1" on the first positive edge of the output signal phi2 after the first positive edge of the output signal phil, and the output signal Q 3 changes from logical "0" to logical "1" on the first positive edge of the output signal phi3 after the first positive edge of the output signal phi2. The output signal ID of the output of the second basic flip-flop BFF 2 changes from logical "0" to logical " 1 " on the first positive edge of the output signal phi4 after the first positive edge of output signal phi3. At this instant both output signals DD and ID have become logical "1" and, as a consequence, the output of the nand-gate changes from logical "1" to logical "0" and the reset signal RST resets the first and the second basic flip-flop BFF] - BFF 2 , the initialization flip-flop IFF, and the chain of flip-flops CHNFFS. In response to the reset signal RST the output signals DD and ID becomes logical "0" and, as a consequence, the reset signal RST becomes logical "1" again. Thus the reset signal RST is only logical "0" for a short time referenced "R t " in diagram XII. During the time, referenced "T DD ", that the output signal DD is logical "1" while the output signal LD is logical "0", the analog control signal A cntr i controls the chain CHN of delay elements DL] - DL 4 (see Figure 1 ; N=4) in order to reduce the delay of the chain CHN. In Figure 8 the reference signal phiO and the output signals phil - phi4 as indicated in diagrams I - V correspond to those in diagrams I - V of Figure 6. From the reference signal phiO and the output signals phil - phi4 the signals Qo - Q 3 , DD, ED, and RST are derived (see diagrams VI - XII) in a similar way as described in conjunction with Figure 7. An important different with Figure 7 is that the amount of time T DD is much larger. This is caused by the much larger delay in the output signals phil - phi4 with respect to the reference signal phiO as compared with the situation of Figure 7. As a consequence, the delay locked loop will adapt the analog control signal A cn tri in order to reduce the delay of the output signal phi4 by an amount of time t +T. Thus, the delay locked loop will not stop adapting the analog control signal A cntr i after the delay time of the output signal phi4 has been reduced by the amount t . This means that the delay locked loop locks at the correct integral multiple of 360 degrees, which is because the delay locked loop can now differentiate between the time amount t 4 and the time amount t 4 +T through the different amount of time T DD . As a consequence, after the delay locked loop has reached the steady state, the output signals phil - phi3 of the delay elements DLi - DL 3 have the desired phases: 90 degrees, 180 degrees, and 270 degrees, respectively. For other initial delays of the output signals phil - phi3 the delay locked loop according to the invention will also generate the correct output signals phil - phi3 after the delay locked loop has reached a steady state. If, for example, the initial delays of the output signals phil - phi3 of the delay locked loop are such that the known delay locked loop would lock at the wrong integral multiple of 360 degrees, for example an integral multiple equal to three, the delay locked loop according to the invention will generate an even longer time T DD as compared with the case of Figure 8, and will thus lock at the desired integral multiple of 360 degrees, so that in this case the integral multiple is one. Figure 4 shows a more economical version of the phase comparator PHCMP to be used in a so called four-phase (phiO - phi3) delay locked loop. The chain of flip-flops CHNFFS (see Figure 3) is replaced by a single Flip-Flop FFi. Even in this case not all active edges of the output signals phil - phi3 are registered (in Figure 4 the output signal phil is not used) a comparatively reliable delay locked loop is obtained with the additional advantage of a small number of flip-flops. The analog control signal A cn tri may be a voltage or a current which controls the delay times of the delay elements DL]-DL N . Figure 1 shows that all the delay elements DL I - DL N are controlled by a single analog control signal A cn tri- This is, however, not strictly necessary. It is, for example, also possible that the converter CNV supplies several analog control signals for separately controlling the delay times of the delay elements DLι-DL N . For some applications it might be sufficient to control only some of the delay times of the delay elements DL I -DL N .

Claims: CLAIMS: 1. A delay locked loop comprising a chain (CHN) of at least two delay elements (DLi - DL N ), of which a first delay element (DLi) has an input for receiving a reference signal (phiO), and of which a last delay element (DL N ) has an output for delivering an output signal (phiN); a phase comparator (PHCMP) having a first input (PHj) for receiving the reference signal (phiO), a second input (PH 2 ) for receiving the output signal (phiN), and an output for delivering a binary control signal (B cntr i); and a converter (CNV) for converting the binary control signal (B cntr i) into an analog control signal (A cntr ι) for controlling a delay time of at least one (DLi - DL N ) of said delay elements (DL] - DL N ), characterized in that the phase comparator (PHCMP) comprises at least one additional input (A ιp ) for receiving an output signal (phil - phiN-1) of at least one of the delay elements (DL] - DL N - I ) preceding the last delay element (DL N ). 2. A delay locked loop as claimed in claim 1, characterized in that the phase comparator (PHCMP) comprises a first basic flip-flop (BFFj) having a clock input coupled to the first input (PHj) of the phase comparator (PHCMP), a data input, an output, and a reset input; a second basic flip-flop (BFF 2 ) having a clock input coupled to the second input (PH 2 ) of the phase comparator (PHCMP), a data input, an output, and a reset input; an initialization flip-flop (LFF) having a clock input coupled to the first input (PH]) of the phase comparator (PHCMP), a data input for receiving a fixed data input state, an output coupled to the data input of the first basic flip-flop (BFF]), and a reset input; a chain of flip-flops (CHNFFS) in which each flip-flop (FF] - FF 3 ) has a clock input forming the at least one additional input (Ai P ), which is coupled to an output of a corresponding delay element (DL] - DL 3 ), an output, a data input coupled to the output of the preceding flip-flop, except for the data input of the first flip-flop (FFi), which data input is coupled to the output of the initialization flip-flop (LFF), and a reset input, and in which the output of the last flip-flop (FF 3 ) is coupled to the data input of the second basic flip-flop (BFF 2 ); and resetting means (RMNS) for supplying under command of signals (DD , ED) on the outputs of the first (BFFi) and second (BFF 2 ) basic flip- flops, at least one reset signal (RST) to the reset inputs (R) of the first (BFFi) and the second (BFF 2 ) basic flip-flop, to the initialization flip-flop (EFF), and to the chain of flip-flops (CHNFFS). 3. A delay locked loop as claimed in claim 2, characterized in that the number of flip-flops in the chain of flip-flops (CHNFFS) is equal to the number of delay elements minus one. 4. A delay locked loop as claimed in claim 2, characterized in that the chain of flip-flops (CHNFFS) has been replaced by a single flip-flop (FFi).

Inventors: DAGNACHEW BIRRU M, DAGNACHEW, BIRRU, M.
Applicants: KONINKL PHILIPS ELECTRONICS NV, KONINKLIJKE PHILIPS ELECTRONICS N.V.
Application year: 1999
Main classification: H03K5
IPC codes: H03K5, H03L7