Phase shifter for use in a quadrature clock generator

Abstract: A phase shifting circuit that may be used as part of a quadrature clock generator. The phase shifting circuit comprises a triangle wave generator coupled to receive an input reference signal. The triangle wave generator outputs a pair of complementary triangle wave signals in response to the input reference signal. A comparator having a pair of inputs is coupled to receive the pair of complementary triangle wave signals. The comparator outputs and output signal having a predetermined phase relationship with the input reference signal in response to a comparison between the pair of complementary triangle wave signals.

Description: FIELD OF THE INVENTION The present invention relates generally to phase shifting circuits and more particularly to a phase shifting circuit that may be used in quadrature clock generator for for providing quadrature output signals. BACKGROUND OF THE INVENTION A quadrature clock generator may be used in a delay locked loop (DLL) to provide two clock signals that are 90 degrees out of phase with one another. Typically, a first output clock signal (the "I" output clock signal) is in phase with the input reference clock signal, and a second output clock signal (the quadrature or "Q" output clock signal) is 90 degrees out of phase with the input reference clock signal. Both output clock signals of the quadrature clock generator have the reference frequency. The output clock signals are phase mixed to provide a desired phase difference or delay between the output clock signal of the DLL and the input reference clock. Cyclic variations from the desired phase difference between the output clock signals of the quadrature clock generator result in "jitter." For DLL purposes, the jitter of the quadrature clock generator affects the timing margins of the DLL, increasing lock acquisition time for the DLL. Therefore, reduced jitter is desirable. According to one prior art method, a quadrature clock generator first divides the frequency of the input reference clock signal by two and then operates on the reduced frequency signal to produce two clock signals that are 90 degrees out of phase with one another. A DLL using a frequency dividing quadrature clock generator then must double the frequency of the clock signals to produce the desired output clock signals of the original frequency. According to an alternative prior art method, a quadrature clock generator operates "at frequency" to provide quadrature clock signals without the intermediate steps of frequency dividing and doubling. A fixed delay element is typically used to provide the desired phase relationship. When compared to frequency dividing quadrature clock generators, at frequency quadrature clock generators have the advantages of reduced circuit complexity, reduced die area, and reduced power consumption. Generally, frequency dividing quadrature clock generators are able to maintain the desired phase relationship between the output clock signals over a wider range of input reference clock frequencies than at frequency quadrature clock generators. Furthermore, when compared to at frequency quadrature clock generators, frequency dividing quadrature clock generators are better able to maintain the desired phase relationship in view of process variations, supply variations, and temperature variations. Wherein frequency dividing quadrature clock generators are capable of providing adequate jitter performance, a DLL that uses a frequency dividing quadrature clock generators may exhibit bi-modal jitter (and therefore worse timing margins) due to the mismatching of components used in the frequency doubling. Thus, the components of frequency dividing quadrature clock generator must be closely matched to reduce jitter, further increasing the cost of manufacturing a frequency dividing quadrature clock generator. SUMMARY AND OBJECTS OF THE INVENTION Therefore, an object of the invention is to provide a DLL having improved jitter performance. These and other objects are provided by a delay lock loop circuit comprising: a current switch circuit to generate complementary voltage waveforms that alternate between falling and rising voltage transitions in response to transitions of complementary input reference signals, crossing points of the complementary voltage waveforms being phase offset with respect to the transitions of the complementary input reference signals; a first comparator circuit to compare the complementary voltage waveforms to one another and generate a first clock signal that transitions in response to detection of crossing points of the complementary voltage waveforms; a phase mixer circuit to generate a second clock signal by phase mixing the first clock signal and a clock signal generated using one of the complementary input reference signals; and a phase detector circuit to generate the control signal based on a phase difference between a first input reference signal of the complementary input reference signals and the second clock signal. BRIEF DESCRIPTION OF THE DRAWINGS The present invention is illustrated by way of example and not limitation in the figures of the accompanying drawings, in which like references indicate similar elements, and in which: FIGURE 1 shows a delay locked loop that includes a quadrature clock generator and phase shifting circuit according to one embodiment. FIGURE 2 shows a quadrature clock generator as including a phase shifting circuit according to one embodiment. FIGURE 3 shows a triangle wave generator of the phase shifting circuit according in more detail. FIGURE 4 illustrates the operation of a quadrature clock generator and phase shifting circuit according to one embodiment. FIGURE 5 shows a quadrature clock generator as including a phase shifting circuit with duty cycle error correction. FIGURE 6 shows a duty cycle error correction circuit of one embodiment. FIGURE 7 shows a filter according to one embodiment. DETAILED DESCRIPTION A phase shifting circuit that operates at frequency and may be incorporated as part of a quadrature clock generator is described herein. The phase shifting circuit generally comprises a triangle wave generator coupled in series with a comparator. The triangle wave generator receives a periodic input signal and outputs two complementary triangle wave signals. The comparator compares the value of the first triangle wave to the value of the second triangle wave, outputting a logic high value when the first triangle wave is greater than the second triangle wave and a logic low value when the first triangle wave is less than the second triangle wave. The output of the comparator transitions between logic high and logic low values when the first and second triangle waves are equal. Assuming that the input signal has a 50% duty cycle, the output signal of the comparator transitions approximately 90 degrees out of phase with the transitions of the input signal. The phase shift circuit may be used to provide the Q output clock signal of a quadrature clock generator, wherein a second comparator having approximately the same delay as the comparator of the phase shift circuit is coupled to the input signal for providing the I output clock signal of the quadrature clock generator. Figure 1 is a simplified block diagram of delay locked loop (DLL) 100 that includes quadrature clock generator 105, variable delay 110, clock buffers 115, phase detector 120, and charge pump 125. A reference clock signal having a 50% duty cycle is provided as an input to the quadrature clock generator 105. Quadrature clock generator 105 uses the input reference clock signal to generate a first output clock signal "I" that is in phase with the input reference clock signal and a second output clock signal "Q" that is 90 degrees out of phase with the I output clock signal. The I and Q output clock signals are said to be in quadrature with one another. Variable delay 110 receives the quadrature signals from quadrature clock generator 105 and phase mixes the quadrature signals to produce a variable delay in order to generate a DLL clock output signal having the desired phase relationship to the input reference clock signal. Clock buffers 115 receive the output of variable delay 110 and buffer it to drive the large wiring capacitance load at the output of DLL 100. As shown, the output signal of DLL 100 is fed back to phase detector 120, which also receives the input reference clock signal. Phase detector 120 compares the input reference clock signal to the output signal of the DLL and outputs a control signal that causes phase shifter 110 to adjust the relative phase of the output signal of DLL 100 by adjusting the phase mixing of the I output clock signal and the Q output clock signal. The control signal may be an analog voltage or a digital signal such as a control digital word. Figure 2 shows a quadrature clock generator according to one embodiment. Quadrature clock generator 105 is shown as generally including a phase shift circuit 200 and a comparator 210 wherein phase shift circuit 200 provides the Q output signal and comparator 210 outputs the I output signal. The input reference clock signal is labeled "CLK" and is provided to the inputs of phase shift circuit 200 and comparator 210 along with a complementary reference clock signal "CLKB." The I output signal of quadrature clock generator 105 is approximately in phase with the input clock signal CLK, and the Q output signal is 90 degrees out of phase with the I output signal. Phase shift circuit 200 is shown as including triangle wave generator 201 and comparator 205. Triangle wave generator 201 outputs a first triangle wave signal VOUT to the positive input of comparator 205 and a second complementary triangle wave signal VOUTB to the negative input of comparator 205. The complementary triangle wave signals are output in response to the complementary input reference clock signals. According to one embodiment, VOUT is the integral of input reference clock signal CLK, and VOUTB is the integral of complementary input reference clock signal CLKB. Comparator 205 outputs a square wave signal that transitions between logic high and logic low values at zero differential crossing points wherein the values of signals VOUT and VOUTB are equal. The zero differential crossing points are approximately 90 degrees out of phase with transitions in the input reference clock signals. The delay of comparator 205 results in additional phase difference, and comparator 210 is selected to have a matching delay such that the I and Q output signals are in quadrature with one another. Thus, the delay of comparator 210 causes the I output signal to be slightly out of phase with the input reference clock signal CLK, exactly canceling the phase difference caused by the delay of comparator 205. According to one embodiment, triangle wave generator 201 comprises a current switch 202 and a filter 203. Current switch 202 includes a pair of inputs coupled to receive CLK and CLKB and a pair of output terminals A and B for outputting an output current I out . Filter 203 is coupled across the output terminals of current switch 202. Current switch 202 changes the direction of flow for output current I out in response to complementary input clock signals CLK and CLKB. For example, wherein input clock signal CLK is logic high, the output current I out flows from output terminal A, through filter 203, and into output terminal B such that VOUT increases and VOUTB decreases. Wherein CLK is logic low, the output current I out flows from the B output terminal, through filter 203, and into output terminal A such that VOUTB increases and VOUT decreases. Filter 203 is shown as comprising resistor 215 and capacitor 220, each of which are coupled across the output terminals of current switch 202. The values of resistor 215 and capacitor 220 are selected such that the RC time constant of filter 203 limits the slew rate of the voltages VOUT and VOUTB, preventing VOUT and VOUTB from achieving the supply voltages VCC and VSS and resulting in complementary triangle wave signals. The values of resistor 215 and capacitor 220 are also selected such that the amplitude of the triangle wave signals is as large as possible. Wherein CLK has a frequency of 250 MHz, exemplary values of resistor 215 and capacitor 220 are 4 kΩ and 0.4 pF, respectively. Resistor 215 of filter 203 may be provided by two half-value resistors and two double-value capacitors coupled in a manner such as that shown by Figure 7. Figure 3 shows a current switch 202 of one embodiment as generally comprising a differential pair of matched NMOS transistors 302 and 304 and current sources 305, 306, and 308. Transistor 302 has its gate coupled to receive the CLK signal and its drain coupled to the supply voltage VCC via current source 306. Similarly, transistor 304 has its gate coupled to receive the CLKB signal and its drain coupled to VCC via current source 308. The sources of transistors 302 and 304 are commonly coupled to system ground VSS via current source 305. Current sources 306 and 308 each source a current I 1 , and current source 305 sinks a current having twice the value of I 1 . As shown, output terminal A of current switch 202 is coupled to the drain of transistor 304, and output terminal B is coupled to the drain of transistor 302. Therefore, the drains of transistor 302 and 304 are coupled to one another via filter 203 such that filter 203 provides a conducting path to system ground VSS. Wherein transistor 302 is switched off and transistor 304 is switched on, the current provided by current source 306 is diverted through filter 203 and transistor 304 to system ground VSS such that the voltage VOUTB at output terminal B increases relative to the voltage VOUT at output terminal A. Similarly, wherein transistor 302 is switched on and transistor 304 is switched off, the current provided by current source 308 is diverted through filter 203 and transistor 302 to system ground VSS such that the voltage VOUT increases relative to the voltage VOUTB. Because NMOS transistors 302 and 304 are matched and current sources 306 and 308 are matched, the amplitudes of VOUT and VOUTB are equal. Figure 4 shows several waveforms that illustrate the operation of current switch 202 and quadrature clock generator 105. Specifically, Figure 4 shows complementary input reference clock signals CLK and CLKB, complementary triangle wave signals VOUT and VOUTB, and quadrature output signals Q and I. At time T0, CLK transitions from a logic low value to a logic high value, complementary clock signal CLKB transitions from a logic high value to a logic low value, and voltages VOUTB and VOUT are at their maximum and minimum values, respectively. While CLK is logic high and CLKB is logic low, transistor 302 is switched on and transistor 304 is switched off such that current source 308 provides a current I 1 that flows from output terminal A, through filter 203, and to system ground VSS via output terminal B and transistor 302. Thus, at time T0, VOUT begins to increase, and VOUTB begins to decrease. Because the components of current switch generator 202 are matched, the time rate of change for VOUT and VOUTB are of equal magnitude and opposite polarity. Further, the RC time constant of filter 203 limits the slew rate of VOUT and VOUTB such that both signals are triangle wave signals that swing between a maximum value, V max , that is less than VCC and a minimum value, V min , that is greater than VSS. For these reasons, the values of VOUT and VOUTB are equal half way between times T0 and T1, when CLK transitions from high to low. Thus, the differential crossing points of the triangle wave signals VOUT and VOUTB occur 90 degrees out of phase with transitions of input reference clock signal CLK. Comparator 205 (shown in Figure 2) detects the differential crossing point and causes the Q output signal to transition from logic low to logic high. The transition time of comparator 205 introduces a delay T D in the Q output signal of quadrature clock generator 200 such that the Q output signal is actually (90 + ø) degrees out of phase with CLK, wherein ø is the phase difference corresponding to the delay T D . The delay of comparator 210 is selected such that the I output signal also includes a delay T D . Thus, the Q output signal is exactly 90 degrees out of phase with the I output signal. At time T1, CLK transitions from high to low, CLKB transitions from low to high, and voltages VOUT and VOUTB are at their maximum and minimum values, respectively. While CLK is logic low and CLKB is logic high, transistor 304 is switched on and transistor 302 is switched off such that current source 306 provides a current I 1 that flows from output terminal B, through filter 203, and to system ground VSS via output terminal A and transistor 304. Thus, at time T1, VOUTB begins to increase, and VOUT begins to decrease. Another zero differential crossing point occurs halfway between times T1 and T2. Comparator 205 detects the zero differential crossing point and causes the Q output signal to transition from logic high to logic low. At time T2, CLK transitions from low to high. Thus far, it has been assumed that the Q output signal has a 50% duty cycle. If the input reference clock signal CLK does not have a 50% duty cycle, or if there are component mismatches, the rising and falling edges of the triangle waves may not be centered around the same voltage, and the Q output signal therefore may not have a 50% duty cycle. For the purposes of DLL 100, it is desirable that the Q output signal have a 50% duty cycle. Therefore, the quadrature clock generator 105 shown in Figure 5 includes additional circuitry for correcting duty cycle errors. Specifically, the embodiment of quadrature clock generator 105 shown in Figure 5 includes a duty cycle error measurement circuit 515 coupled in series with a duty cycle correction circuit 520. Duty cycle error measurement circuit 515 and duty cycle correction circuit 520 are coupled in a feedback configuration between the output of comparator 505 of phase shift circuit 200 and the output of current switch 202 of triangle wave generator 201. As shown, comparator 505 includes a complementary output that outputs a QB output signal that is 180 degrees out of phase with the Q output signal. The Q and QB output signals are provided as inputs to duty cycle error measurement circuit 515, which may be manufactured in accordance with the disclosure of the following patent application, which is hereby incorporated by reference: U.S. application serial no. 08/196,711, entitled "Amplifier With Active Duty Cycle Correction", and commonly assigned to Rambus, Inc. of Mountain View, California. Duty cycle error measurement circuit 515 outputs differential error voltages V Δ+ and V Δ- in response to detecting a difference between the duty cycle of the Q output signal and a 50% duty cycle. Duty cycle error measurement circuit 515 includes a filter (not shown) that results in error voltage V Δ being a slowly changing, near DC voltage having a magnitude that is proportional to the magnitude of the error in duty cycle. In order to ensure the stability of this second-order feedback loop, the pole of the filter for the duty cycle measurement circuit 515 is selected to be the dominant pole of the duty cycle correction feedback loop. Duty cycle correction circuit 520 receives the differential error voltage V Δ and provides a correction current I Δ via output terminals C and D in response to the differential error voltage V Δ such that the Q output signal has a 50% duty cycle. As shown, output terminals C and D are coupled to output terminals A and B of current switch 202, respectively. The direction in which the correction current I Δ flows depends on whether the duty cycle of the Q output signal is less than or more than 50%. The correction current I Δ flows from output terminal C when the Q output signal has a duty cycle that is less than 50%. The correction current I Δ (as shown in parentheses) flows from output terminal D when the Q output signal has a duty cycle that is more than 50%. The correction current I Δ is summed with the output current I out of current switch 202 before being fed into filter 203. The correction current therefore causes one of the triangle wave signals to increase in voltage wherein the other triangle wave signal decreases in voltage such that the zero differential crossing points occur halfway between the rising and falling edges of the input reference clock signal CLK. According to one embodiment, duty cycle correction circuit 520 is a current switch that switches the correction current I Δ . Figure 6 shows duty cycle correction circuit 520 as being a current switch that generally comprises a differential pair of matched NMOS transistors 602 and 604 and current sources 605, 606, and 608. Transistor 602 has its gate coupled to receive the V Δ+ error voltage and its drain coupled to the supply voltage VCC via current source 606. Similarly, transistor 604 has its gate coupled to receive the V Δ- error voltage and its drain coupled to VCC via current source 608. The sources of transistors 602 and 604 are commonly coupled to system ground VSS via current source 605. Current sources 606 and 608 each source a current I 2 , and current source 605 sinks a current of 2I 2 . The current I 2 is chosen to be much less than the current I 1 used in current switch 202. Figure 7 shows resistor 215 and capacitor 220 of filter 203 according to one embodiment. Resistor 215 is shown as including a first half-value resistor 705 coupled between output terminal A of current switch 202 and a common mode voltage V CM , and a second half-value resistor 710 coupled between a common mode voltage V CM and output terminal B of current switch 202. Capacitor 220 is shown as including a first double-value capacitor 715 coupled between output terminal A of current switch 202 and system ground VSS, and a second double-value capacitor 720 coupled between output terminal B and VSS. In the foregoing specification the invention has been described with reference to specific exemplary embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention as set forth in the appended claims. The specification and drawings are, accordingly, to be regarded in an illustrative rather than restrictive sense.

Claims: A delay lock loop circuit comprising: a current switch circuit to generate complementary voltage waveforms that alternate between falling and rising voltage transitions in response to transitions of complementary input reference signals, crossing points of the complementary voltage waveforms being phase offset with respect to the transitions of the complementary input reference signals; a first comparator circuit to compare the complementary voltage waveforms to one another and generate a first clock signal that transitions in response to detection of crossing points of the complementary voltage waveforms; a phase mixer circuit to generate a second clock signal by phase mixing the first clock signal and a clock signal generated using one of the complementary input reference signals; and a phase detector circuit to generate the control signal based on a phase difference between a first input reference signal of the complementary input reference signals and the second clock signal. The delayed-lock loop of claim 1 wherein the control signal is a digital value. The delayed-lock loop of claim 1 wherein the control signal is an analog voltage. The delayed-lock loop of claim 1 further comprising a duty cycle adjustment circuit coupled to the current switch circuit to adjust a duty cycle of the complementary voltage waveforms. The delayed-lock loop of claim 1 wherein the current switch circuit comprises: a first transistor to steer a first current of a pair of currents from a first node to a third node in response to a first state of the complementary input reference signals, and from the first node to a second node via a resistive element in response to a second state of the complementary input reference signals; and a second transistor to steer a second current of the pair of currents from the second node to the first node via a resistive element in response to the first state of the complementary input reference signals, and from the second node to the third node in response to the second state of the complementary input reference signals; and a third current source to sink a third current from the third node, the third current being at least the sum of the first and second currents. The delayed-lock loop of claim 5 wherein a direction of current flow through the resistive element is reversed when the complementary input reference signals change states. The delayed-lock loop of claim 1 further comprising a second comparator circuit to compare the complementary input reference signals to one another and output the clock signal, the second comparator circuit being delay matched to the first comparator circuit. A method of operation in a delay-locked loop circuit comprising: generating a first clock signal using complementary input reference signals; generating complementary voltage waveforms that alternate between falling and rising voltage transitions in response to transitions of the complementary input reference signals, crossing points of the complementary voltage waveforms being phase offset with respect to the transitions of the complementary input reference signals; generating a second clock signal that transitions in response to the crossing points of the complementary voltage waveforms; generating a third clock signal by phase mixing the first and second clock signals in response to a control signal; and generating the control signal based on a phase difference between one of the complementary input reference clock signals and the third clock signal. The method of claim 8 wherein the control signal is a digital value. The method of claim 8 wherein the control signal is an analog voltage. The method of claim 8 further comprising adjusting a duty cycle of the complementary voltage waveforms based on feedback derived from the second clock signal. The method of claim 8 wherein the second clock signal is quadrature phase offset with respect to the first clock signal. The method of claim 8 wherein generating complementary voltage waveforms further comprises: generating first and second currents using respective first and second current sources that source current from a supply potential to respective first and second nodes; steering the first current from the first node to a third node in response to a first state of the complementary input reference signals; and steering the second current from the second node to the first node via a resistive element, the first and second currents producing a first voltage transition at the first node. The method of claim 13 further comprising: sourcing a third current from the third node, the third current being at least the sum of the first and second currents; and reversing a direction of current flow through the resistive element when the complementary input reference signals change logic states.

Inventors: CHAU PAK SHING, DONNELLY KEVIN S, CHAU, PAK SHING, DONNELLY, KEVIN S.
Applicants: RAMBUS INC, RAMBUS INC.
Application year: 1996
Main classification: H03H11
IPC codes: H03K5, H03L7, H03H11