1. Field of the Invention
This invention is related to the field of digital integrated circuits and, more particularly, to clock gating in integrated circuits.
2. Description of the Related Art
As electronic circuits, and particularly integrated circuits, increase in density, power consumption also increases. Power management circuitry is often implemented in integrated circuits to reduce power consumption. For example, power management circuitry can be used to selectively and/or temporarily remove power from a portion or all of an electronic circuit during times that the portion is inactive. Alternatively or in addition, power management circuitry can include conditional clocking circuitry (also known as clock gating circuitry or a clock gater).
Conditional clocking generally includes conditionally generating a clock to a functional circuit dependent on whether or not the functional circuit is active. If the circuit is active, the clock is generated (e.g. rising and falling edges are generated providing a high phase and a low phase of the clock signal). If the circuit is inactive, the clock is inhibited (e.g. held in a constant state, high or low, instead of toggling). Inhibiting the clock during idle times for the functional circuit results in power savings since the state of the circuit is held steady and thus the circuit experiences minimal switching activity. Typically, an enable input to the conditional clock circuitry controls whether the clock is generated or inhibited. The clock can also be inhibited even if the functional circuitry is active, in order to decrease power consumption.
The timing constraints on the enable input to the clock gater are often challenging. For example, an AND gate may be used to generate a conditional clock (with one input being the input clock and the other being the enable signal). In this case, the setup time for the enable signal is relatively short, but the hold time is approximately one half clock cycle (since the enable signal is required to remain valid, either high or low, for an entire phase of the input clock along with margin on each side to ensure glitch-free operation). As another example, an AND gate with a passgate latch on the enable signal input can be used. While the hold time may be shorter than the single AND gate (e.g. approximately the hold time of the passgate latch), the setup time is lengthened since the enable signal must propagate through the passgate latch prior to the rising edge of the input clock.
In one embodiment, a clock gater circuit comprises a plurality of transistors having source-drain connections forming a stack between a first node and a supply node. A given logical state on the first node causes a corresponding logical state on an output clock of the clock gater circuit. A first transistor of the plurality of transistors has a gate coupled to receive an enable input signal. A second transistor is connected in parallel with the first transistor, and the second transistor has a gate controlled responsive to a test input signal to ensure that the output clock is generated even if the enable input signal is not in an enabled state. An integrated circuit comprising one or more of the clock gater circuits is also contemplated.
In an embodiment, a clock gater circuit comprises a plurality of transistors having source-drain connections forming a stack between a first node and a supply node, wherein a given logical state on the first node causes a corresponding logical state on an output clock of the clock gater circuit. The plurality of transistors comprises a first transistor having a gate controlled responsive to a clock input of the clock gater circuit and a second transistor having a gate controlled responsive to an output of a delay circuit. The delay circuit comprises at least one inverter, wherein an input of the delay circuit is the clock input, and wherein a first inverter of the delay circuit is coupled to receive a test input signal and is configured to force a first logical state on an output of the first inverter responsive to an assertion of the test input signal. An integrated circuit comprising one or more of the clock gater circuits is also contemplated.
The following detailed description makes reference to the accompanying drawings, which are now briefly described.
While the invention is susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that the drawings and detailed description thereto are not intended to limit the invention to the particular form disclosed, but on the contrary, the intention is to cover all modifications, equivalents and alternatives falling within the spirit and scope of the present invention as defined by the appended claims.
Turning now to
A portion of the clock tree 14 is shown in
The LCKGs 18A-18D may generate the output clocks conditionally based on the enable input. The enable input may be generated by the enable generation logic 20A-20D, respectively, observing various activity in the corresponding subcircuit and/or other subcircuits 16A-16D, based on whether or not the corresponding subcircuit is to be in use in the next clock cycle. Some clocks may be unconditional, in some embodiments. In such cases, the enable signal may be tied to the asserted state. The LCKG circuitry is still used in this case to minimize delay differences between the unconditional clocks and the conditional local clocks. In other embodiments, the LCLK circuit may not be used for unconditional clocks.
In one embodiment, the enable signal is a logical one if clock generation is enabled and is a logical zero if clock generation is not enabled (e.g. the clock is to be “gated”, or “inhibited”). This example may be used in some of the figures described below. In other embodiments, the enable signal may be a logical zero if clock generation is enabled and a logical one if clock generation is not enabled. The enable signal may be referred to as “asserted” if it is in a state indicating that clock generation is enabled, and “deasserted” if it is in a state indicating that clock generation is not enabled. Similarly, various test signals may be referred to as asserted if the corresponding test function is being requested and deasserted if the corresponding test function is not being requested, where assertion and deassertion may be signified by either logical state, as desired. As used herein, a clock is “generated” if the clock oscillates in response to the source clock and is “not generated” or “inhibited” if the clock is held at a steady level (high or low) even though the source clock is toggling.
Furthermore, each LCKG 18A-18D has a test input (Tst) that may comprise one or more test signals. The Tst input may be used to control the LCKGs 18A-18D during testing of the integrated circuit 10. For example, the Tst input may be used to force a LCKG 18A-18D to generate a clock on the Clk_Out output, and/or to force an LCKG 18A-18D not to generate the clock (e.g. inhibit the clock). Different LCKGs 18A-18D may be forced to generate while others are forced to inhibit at the same time. Test control logic 22 is shown coupled to the Tst inputs of the LCKGs 18A-18D. The test control logic 22 may receive input signals from external to the integrated circuit 10 (e.g. arrow 24) and/or internal to the integrated circuit 10 (not shown in
The ability to force a given clock to be generated (i.e. toggling according to the clock input) during testing may simplify the testing of the integrated circuit, since the test patterns need not ensure that the enable is asserted if the clock is to be generated for the test. On the other hand, the ability to force a given clock to be inhibited (i.e. holding steady at a given level, which may be high or low as desired) may mitigate di/dt effects on the testing by limiting the switching in subcircuits 16A-16D that are not involved in the test.
The test control logic 22 may provide separate test signals to each LCKG 18A-18D, group two or more LCKGs 18A-18D to provide the same test signals (or logically the same signals, even if the physical wiring differs), or a combination of the above.
The clock generation circuit 12 is configured to generate the global clock from the external clock CLK_E for use by the circuitry illustrated in
The global clock is provided to the clock tree 14. The clock tree 14 buffers the global clock for distribution to the various loads in the integrated circuit 10 (e.g. the various subcircuits 16A-16D). In some embodiments, the LCKGs 18A-18D may not be the lowest level of the clock tree 14 (e.g. there may be buffering between the Clk_Out outputs of the LCKGs 18A-18D and the various loads in the corresponding subcircuits 16A-16D).
The subcircuits 16A-16D may generally provide the functionality that the integrated circuit 10 is designed to perform. For example, if the integrated circuit 10 includes a processor, subcircuits may include fetch logic, issue logic, and execution units of various types (e.g. integer, floating point, load/store, etc.). The integrated circuit 10 may include various interface circuits (e.g. network interfaces, standard I/O interfaces such as peripheral component interconnect (PCI), HyperTransport™, etc.); and each interface circuit may comprise one or more subcircuits. The integrated circuit 10 may include caches or cache controllers, which may comprise one or more subcircuits, and/or a memory controller which may comprise one or more subcircuits. Any functionality may be included in various embodiments.
Turning now to
The transistors shown in
The GClk input is coupled as an input to a delay circuit 30 that comprises inverters. Generally, the delay circuit 30 may comprise one or more inverters connected in series. The number of inverters is odd, in this embodiment. For example, three inverters are shown in
A plurality of transistors having source-drain connections forming a stack between a node and a supply node provide the clock gating in this embodiment, based on the state of the enable input signal. In the illustrated embodiment, the transistors T2, T3, and T4 form the stack. In general, the transistors that form the stack include a transistor with its drain coupled to the node (e.g. T2 with its drain connected to the node N1), and then respective source-drain connections of the transistors until the last transistor (e.g. T4) has its source coupled to the supply node. In this embodiment, the supply node is the ground reference. In other embodiments, the supply node may be the power supply node. Generally, a supply node may be any node that is designed to have a steady voltage during use (although there may be temporary variations in the voltage, such as ground bounce or power supply droop).
The node N1 controls the output clock Clk_Out in
The source of T2 is connected to the drain of T3, which has its source connected to the drain of T4. Accordingly, the stack (in the absence of operation of other transistors that may be connected to nodes of the stack) comprises a series connection. During the clock phase that the stack evaluates (in normal operation), other transistors connected to nodes in the stack may be inactive. For example, in the illustrated embodiment, the T2 to T4 stack may evaluate during the high phase of the GClk input. Specifically, T4 may activate in response to the rising edge of the GClk input (since the gate of T4 is connected to the GClk input). For a time period corresponding to the delay of the delay circuit 30, the GClk_L signal output from the delay circuit 30 is also high, before transitioning low in response to the rising edge of the GCIk input. The gate of T2 is connected to GCLK_L, and thus is active at the time T4 is activated. Accordingly, the delay of the delay circuit 30 may create a window of the high phase of the GCIk clock during which the enable signal En (connected to the gate of T3) can affect the output of the LCKG 18A. Specifically, if the En signal is asserted, the transistor T3 activates and the node N1 may be discharged. The Clk_Out may thus transition high. On the other hand, if the enable input is not asserted, the transistor T3 is not activated and the node N1 is not discharged. The node N1 remains at the high state (and the Clk_Out signal at the low state) until the enable is asserted. During the low phase of the GClk input, the transistor T1 (having its drain connected to node N1, source connected to the VDD supply, and gate connected to the GClk input) charges the node N1, creating the low phase of the Clk_Out signal.
Accordingly, the setup time of the enable input may be controlled by the delay circuit 30 and the amount of time needed to reliably discharge the node N1. Alternatively, the setup time may be based on the edge of the GCIk signal. The hold time may also be determined by the delay, and may be relatively small as compared to the length of a clock phase. Accordingly, a low setup time and hold time for the enable may be achieved.
To provide the testability feature of ensuring that the Clk_Out is generated if the TSTON_L signal is asserted, the transistor T5 is connected in parallel with T3. The gate of T5 is controlled responsive to the TSTON_L signal. In this embodiment, the gate of T5 is connected to the output of a NOR gate 42. The inputs to the NOR gate 42 are the enable input and the TSTON_L signal. If the enable input is deasserted and the TSTON_L signal is asserted, the output of the NOR gate 42 is a logical one and the transistor T5 activates, causing the stack to discharge the node N1 during the window even though the enable is not asserted. If the enable is asserted, the output of the NOR gate 42 is a logical zero and T5 is not activated. However, in this case, T3 is activated and thus the Clk_Out is still generated. Using the NOR gate to deactivate T5 if T3 is activated may ensure that test operation is approximately the same as normal (non-test) operation. That is, one of T3 or T5 may be activated, but not both. If T3 and T5 are sized the same, the test operation (e.g. speed of discharge) may be approximately the same as the normal operation. Accordingly, accuracy of “at speed” testing may be provided. In other embodiments, the T5 may be directly controlled by the TSTON signal.
The operation of the stack T2 to T4 may also vary a small amount based on the initial voltage of each internal node of the stack. To provide more consistent operation, a transistor may be connected to each internal node. For example, the transistor T6 connected to the node between T2 and T3, and the transistor T7 connected to the node between T3 and T4. The gates of T6-T7 may be controlled by the GClk input, and may precharge the nodes during the non-evaluation phase of the GClk input (e.g. the low phase in this embodiment). The transistors T6-T7 may not be included in other embodiments.
Since the stack T2 to T4 operates during a window of the high phase of the GClk, the LCKG 18A may include a storage circuit to capture the value of the node N1 and hold the value during the remainder of the high phase outside of the stack evaluation window. The storage circuit in
As mentioned previously, if the TSTOFF input is asserted, the Clk_Out is to be inhibited. In this embodiment, the Clk_Out clock may be held at a low state. Other embodiments may hold the output steady at the high state. In order to hold Clk_Out at a low state, the node N1 is held at a high state, via the transistor T1 in the low phase of the GClk input and T8-T9 during the high phase. Accordingly, the GClk_L signal is to be held low, independent of the GClk input. In this embodiment, the GClk_L signal is held low via the inverter 34 and the TSTOFF input.
Specifically, the transistors T12 and T13 are connected in an inverter configuration, with their gates connected to the output of the inverter 32 and their drains connected to the output node of the inverter 34 (which is also the input of the inverter 36). The transistors T14 and T11 are also provided, having their gates connected to the TSTOFF_L signal. The transistor T14 is in parallel with the transistor T13, and the transistor T11 is in series with the transistor T12. If the TSTOFF signal is deasserted (and thus the TSTOFF_L signal is high), the transistor T14 is inactive and the transistor T11 is active, and thus the inverter 34 operates as usual in response to the input to the inverter. If the TSTOFF signal is asserted (and thus the TSTOFF_L signal is low), the transistor T11 is inactive and thus blocks the transistor T12 from discharging the output node. The transistor T14 is active if the TSTOFF signal is asserted, pulling up the output of the inverter 34 (and thus holding the GClk_L signal low).
While the inverter 34 pulls up its output in response to assertion of the TSTOFF signal, other embodiments may use an inverter that pulls the output low (e.g. the inverter 32 or 36 could be designed in such fashion, in the embodiment of
It is noted that, in other embodiments, the stack T2 to T4 may be provided to conditionally charge the node N1 (e.g. the stack may be PMOS transistors connected between the node N1 and the power supply node). In such an embodiment, the transistor T1 would be an NMOS transistor that “precharges” the node N1 to ground.
It is further noted that, while the illustrated embodiment is a non-inverting LCKG 18A in which the high phase of the GClk corresponds to a high phase of Clk_Out (and vice versa), inverting LCKGs are also contemplated. Inverting LCKGs may comprise an additional inverter on the input of the LCKG (producing the GClk as shown in
Numerous variations and modifications will become apparent to those skilled in the art once the above disclosure is fully appreciated. It is intended that the following claims be interpreted to embrace all such variations and modifications.
This application is a divisional of U.S. application Ser. No. 11/627,646, filed on Jan. 26, 2007 now U.S. Pat. No. 7,779,372.
Number | Name | Date | Kind |
---|---|---|---|
3982138 | Luisi et al. | Sep 1976 | A |
4061933 | Schroeder et al. | Dec 1977 | A |
5459736 | Nakamura | Oct 1995 | A |
5689517 | Ruparel | Nov 1997 | A |
5748015 | Tam | May 1998 | A |
5815725 | Feierbach | Sep 1998 | A |
5831462 | Witt et al. | Nov 1998 | A |
5838179 | Schmidt | Nov 1998 | A |
6223282 | Kang | Apr 2001 | B1 |
6247134 | Sproch et al. | Jun 2001 | B1 |
6272667 | Minami et al. | Aug 2001 | B1 |
6297670 | Chao et al. | Oct 2001 | B1 |
6318911 | Kitahara | Nov 2001 | B1 |
6411152 | Dobberpuhl | Jun 2002 | B1 |
6529044 | Bailey | Mar 2003 | B2 |
6535036 | Dobberpuhl | Mar 2003 | B1 |
6618283 | Lin | Sep 2003 | B2 |
6625242 | Yoo et al. | Sep 2003 | B1 |
6784715 | Campbell | Aug 2004 | B2 |
Number | Date | Country |
---|---|---|
522413 | Jan 1993 | EP |
Number | Date | Country | |
---|---|---|---|
20100277219 A1 | Nov 2010 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 11627646 | Jan 2007 | US |
Child | 12836141 | US |