1. Field of the Invention
The present invention relates to gated clock circuits and, more particularly, to a gated clock circuit with a substantially increased control signal delay.
2. Description of the Related Art
A gated clock circuit is used to generate a gated clock signal that has aperiodic pulses which can be switched on and off, depending upon the logic state of a control signal that is synchronous with (has a fixed time delay with respect to) the rising edges of a periodic master clock signal. Being aperiodic, the pulses of the gated clock signal occur less frequently than the pulses of the periodic master clock signal.
A critical factor in power sensitive applications, such as battery driven appliances, is the power dissipation of the CMOS logic blocks which, in turn, depends upon the frequency of the clock signal. Since the gated clock pulses occur less frequently than the master clock pulses, CMOS logic blocks that are driven by the gated clock pulses can dissipate significantly less power. As a result, gated clock pulses are ideal for power sensitive applications.
As further shown in
In addition, however, the gated clock signal GCLK also has a first short pulse P1, referred to as a glitch, where only the rising edge of the pulse is in phase with a master clock pulse. This glitch is highly undesirable because it represents an extra clock edge that can cause a system malfunction.
Further, the gated clock signal GCLK also has a second short pulse P2 where only the falling edge of the pulse is in phase with a master clock pulse. In most logic designs, gated clock signals with shortened pulses, such as shortened pulse P2, are highly undesirable because the shortened pulses can cause system timing errors and system logic errors.
In addition, a second “glitch” pulse of the gated clock signal GCLK is formed that has a pulse width PW2 that is shorter than the pulse width PW of a master clock pulse. As shown, the falling edge of the control signal CG follows a rising edge of the master clock signal MCLK by a delay D2, which is equal to delay D1, thereby forming the glitch pulse.
As noted above, both types of timing delays can lead to significant timing and logic issues. One approach to providing a gated clock signal that has a pulse width that is equal to the pulse width of, and in phase with, a master clock pulse is to use a flip-flop and a logic gate to form a glitchless gated clock circuit.
As further shown in
On the falling edge of the first master clock pulse, flop 510 receives the logic high of the control signal CG and, after a clock-to-Q delay D3, drives the signal QOUT high. The signal QOUT then falls after delay D4, which may or may not be equal to delay D3, after the falling edge of the second master clock pulse.
As further shown in
Although gated clock circuit 500 generates full-width, glitch-free clock pulses, circuit 500 imposes a highly undesirable timing constraint on the control signal CG. As previously described, the rising edge of the control signal CG has a delay D1 with respect to a rising edge of the master clock signal MCLK.
However, as shown in
Stating this in equation form:
D1MAX+TSETUP=PW, EQ. 1
where D1MAX is the maximum allowable delay for the rising edge of the control gate CG with respect to a rising edge of the master clock signal MCLK, TSETUP is the setup time of flop 510, and PW is the pulse width of the master clock signal MCLK.
Solving for D1MAX yields,
D1MAX=PW−TSETUP, EQ. 2
For most systems, the pulse width of the clock signal is equal to ½ of the clock period. In equation form, PW=TCLK/2, where TCLK represents a clock period.
Thus, EQ. 2 can be rewritten as:
D1MAX=TCLK/2−TSETUP. EQ. 3
The logic signals in a fully synchronous logic design usually have a full clock period (minus the flip-flop set up time) to become valid. However, as shown by EQ. 3, D1MAX is less than ½ of the clock period. As a result, the control signal CG must become valid in less than ½ of the clock period. In other words, the control signal CG must be twice as fast as the other logic signals. However, in many applications, especially in high speed logic applications, this condition is almost impossible to meet.
Gated clock circuit 700 is similar to gated clock circuit 500 and, as a result, utilizes the same reference numerals to designate the structures which are common to both circuits. As shown in
In addition, flop 510 receives the delayed clock signal CLKD instead of the master clock signal MCLK, while AND gate 512 continues to receive the master clock signal MCLK. Thus, AND gate 512 receives the periodic master clock signal MCLK before flop 510 receives the delayed clock signal CLKD.
When the control signal CG is asserted, the rising or falling edge of the control signal CG follows the rising edge of a first master clock pulse by a delay D1. The delay D1 can be any value as long as the edge of the control signal CG rises or falls a setup time TSETUP before the falling edge of the delayed clock signal CLKD.
The falling edge of the delayed clock signal CLKD, in turn, must fall a clock-to-Q delay Tcq before the rising edge of a second master clock pulse. When this occurs, flop 510 receives a logic high or low from the control signal CG and, after the clock-to-Q delay Tcq, outputs the signal QOUT as a logic high or logic low.
Following this, the rising and falling edges of the second master clock pulse clocks the logic state of the signal QOUT through AND gate 512 to form the gated clock signal GCLK. As shown in
In accordance with the present invention, as further shown in
Referring to
TCLK=D1MAX+TSETUP+Tcq EQ. 4
where Tcq is the clock-to-Q delay of flop 510.
Solving for D1MAX yields:
D1MAx=TCLK−TSETUP−Tcq EQ. 5
In most applications, the flip-flop set up time (TSETUP) and the flip-flop clock-to-Q delay (Tcq) are only a small fraction of the clock period (TCLK). Therefore, neglecting these parameters, EQ. 5 can be approximated by EQ. 6 as:
D1MAX˜TCLK, EQ. 6
while EQ. 3 can be approximated by EQ. 7 as:
D1MAX˜TCLK/2. EQ. 7
Comparing EQs. 6 and 7 shows that gated clock circuit 700 allows approximately twice as much delay D1 for the control signal CG to become valid with respect to the rising edge of the master clock signal MCLK. This additional delay time, in turn, is extremely advantageous, especially in high speed logic applications.
The maximum value of delay D5 (D5MAX) can be determined by first defining a clock period TCLK with terms that include the maximum value of delay D5 as shown in equation EQ. 8:
TCLK=D5MAX+TCLK/2+Tcq EQ. 8
Solving for D5MAX yields equation EQ. 9:
D5MAX=TCLK/2−Tcq. EQ. 9
Thus, the present invention provides a gated clock signal GCLK that has a phase and pulse width PW that match the phase and pulse width PW of the master clock signal MCLK, while at the same time allowing a substantially increased time delay D1 with respect to the rising edge of the master clock signal MCLK.
As shown in
As shown in
One of the advantages of using inverters to provide delay D5 is that delay D5 increases under slow process, voltage, and temperature (PVT) conditions, and decreases under fast PVT conditions. Under slow PVT conditions, the control signal CG arrives later in time than under normal PVT conditions. Thus, delay D5 under slow PVT conditions should be longer to accommodate the later arrival time of the control signal CG.
Similarly, delay D5 decreases under fast PVT conditions. Under fast PVT conditions, the control signal CG arrives earlier in time than under normal PVT conditions. Thus, delay D5 under fast PVT conditions should be shorter to accommodate the earlier arrival time of the control signal CS.
It should be understood that the above descriptions are examples of the present invention, and that various alternatives of the invention described herein may be employed in practicing the invention. For example, although the present example illustrates the invention with an edge-triggered flip-flop and a logic AND gate, other combinations of logic elements can alternately be used. Thus, it is intended that the following claims define the scope of the invention and that structures and methods within the scope of these claims and their equivalents be covered thereby.
Number | Name | Date | Kind |
---|---|---|---|
5475322 | MacDonald | Dec 1995 | A |
5886582 | Stansell | Mar 1999 | A |
5892373 | Tupuri et al. | Apr 1999 | A |
6242960 | Bae | Jun 2001 | B1 |
6320437 | Ma | Nov 2001 | B1 |
6496554 | Ahn | Dec 2002 | B1 |
6552572 | Cheung et al. | Apr 2003 | B1 |
6566924 | Lin et al. | May 2003 | B1 |