This application relates to the following commonly assigned co-pending applications entitled: “Digital Storage Element Architecture Comprising Dual Scan Clocks And Gated Scan Output,” Ser. No. 11/171,537, filed Jun. 30, 2005, “Digital Storage Element With Dual Behavior,” Ser. No. 11/171,612, filed Jun. 30, 2005, “Digital Storage Element Architecture Comprising Dual Scan Clocks And Preset Functionality,” Ser. No. 11/172,242, filed Jun. 30, 2005, “Digital Storage Element Architecture Comprising Dual Scan Clocks And Reset Functionality,” Ser. No. 11/171,174, filed Jun. 30, 2005, “Digital Storage Element With Enable Signal Gating,” Ser. No. 11/171,528, filed Jun. 30, 2005, “Digital Storage Element Architecture Comprising Integrated 4-To-1 Multiplexer Functionality,” Ser. No. 11/171,535, filed Jun. 30, 2005, “Digital Storage Element Architecture Comprising Integrated 2-To-1 Multiplexer Functionality,” Ser. No. 11/172,534, filed Jun. 30, 2005, all of which are incorporated by reference herein.
Integrated circuits (ICs) generally include numerous digital storage elements (e.g., flip-flops, latches) as at least some of the constituent components. Scan-based techniques (e.g., Automatic Test Pattern Generation (ATPG) techniques) are often employed to test the integrity of the IC. The integrity of the IC is tested by sending a predetermined sequence of bits forming a test pattern into the IC, shifting the sequence of bits through the digital storage elements of the IC, shifting result bits out of the IC, and then comparing the result bits with expected bits to verify whether the IC operates in a desired manner. Issues of set-up time violations, hold-time violations, and unnecessary power consumption characterize the quality of the design.
In accordance with at least one embodiment of the invention, a digital storage element comprises a master transparent latch that receives functional data signals from data input ports and scan data signals from a scan input port, the data input ports coupled to a four-input, one-output multiplexer that receives the functional data signals and selectively outputs one of the functional data signals. The element comprises a slave transparent latch coupled to the master transparent latch and comprising dedicated functional and scan data output ports. While operating in a scan mode, a first clock signal is used by the slave transparent latch and a second clock signal is used by the master transparent latch, wherein the first and second clock signals are non-overlapping. A first transistor is coupled to the master transparent latch and a second transistor is coupled to the slave transparent latch. When activated, the first or second transistor resets the element.
In another embodiment, an integrated circuit comprises a plurality of digital storage elements, each digital storage element comprising a master transparent latch coupled to a slave transparent latch, the master transparent latch coupled to a first transistor and the slave transparent latch coupled to a second transistor. Each of the first and second transistors is coupled to a voltage source and adapted to reset a corresponding digital storage element. The master transparent latch comprises a four-input, one-output multiplexer that receives functional data signals and selectively outputs one of the functional data signals.
In accordance with yet another embodiment, a digital, transparent latch comprises multiple clock input ports adapted to receive a plurality of clock signals, a scan input port coupled to one of the clock input ports and adapted to receive scan data signals, data input ports coupled to another one of the clock input ports and adapted to receive functional data signals, a single transistor coupled to the data input port. The latch also comprises multiple enable signal ports coupled to the another one of the clock input ports and adapted to receive enable signals. The data input port comprises two multiple-input, single-output multiplexers, both multiplexers adapted to receive a plurality of functional data signals and to selectively output one of the plurality of functional data signals based on a status of a first enable signal. The output of each multiplexer is passed through a different transmission gate logic, each transmission gate logic activated or deactivated by a second enable signal. When activated, the single transistor resets the digital, transparent latch.
For a detailed description of exemplary embodiments of the invention, reference will now be made to the accompanying drawings in which:
Certain terms are used throughout the following description and claims to refer to particular system components. As one skilled in the art will appreciate, companies may refer to a component by different names. This document does not intend to distinguish between components that differ in name but not function. In the following discussion and in the claims, the terms “including” and “comprising” are used in an open-ended fashion, and thus should be interpreted to mean “including, but not limited to. . . . ” Also, the term “couple” or “couples” is intended to mean either an indirect or direct electrical connection. Thus, if a first device couples to a second device, that connection may be through a direct electrical connection, or through an indirect electrical connection via other devices and connections. Further, when referring to signals (e.g., enable signals), the terms “high,” “1,” and “asserted” are interchangeable. Similarly, the terms “low,” “0,” and “unasserted” also are interchangeable. When referring to transistors or pass gates, the terms “open” and “off” are interchangeable. Similarly, the terms “closed” and “on” are interchangeable. Also, in some cases, an inverter followed by a transmission gate may be considered equivalent to a “tri-state buffer.” The term “digital storage element” refers to such elements as a flip-flop and a latch. The term “transmission gate” is interchangeable with the term “pass gate.”
The following discussion is directed to various embodiments of the invention. Although one or more of these embodiments may be preferred, the embodiments disclosed should not be interpreted, or otherwise used, as limiting the scope of the disclosure, including the claims. In addition, one skilled in the art will understand that the following description has broad application, and the discussion of any embodiment is meant only to be exemplary of that embodiment, and not intended to intimate that the scope of the disclosure, including the claims, is limited to that embodiment.
Each flip-flop shown in
Whether the flip-flops are in operational mode or scan mode is determined by the state of the scan enable (SE) signal. When the SE signal is low, the IC is not in the scan mode (i.e., when in the IC's normal functional mode), and when SE is high, the IC is in the scan mode. The state of the SE signal causes each flip-flop to use the appropriate input signal (DI or SI).
The clock generator 18 receives a system clock and produces at least two output clocks. One output clock signal provides two different multiplexed clocks labeled as functional clock and scan clock 1 (FCLK/SCK1). The FCLK/SCK1 clock functions as the flip-flop's clock while the IC 10 or at least one of the flip-flops 12A-C is in a functional mode. While the IC 10 is in a scan mode, the FCLK/SCK1 clock functions as one of a pair of scan clocks. The other member of the scan clock pair is the SCK2 clock also provided by the clock generator 18. The SE enable signal is also provided to the clock generator for purposes as described below.
The master latch 50 receives the FCLK/SCK1 and SCK2 clocks, as well as the SE, DI and SI input signals. The DO and SO output signals are provided as outputs of the slave latch. The NOR gate 52 receives the FCLK/SCK1 and SE signals as inputs and provides its output to inverter 54. The outputs of NOR gate 52 and inverter 54 couple to the enables 58a and 58b of pass gate 58. The DI input is provided through inverter 56 to pass gate 58. The output of pass gate 58 is provided through inverter 66 to the slave latch 52. Pass gate 68 functions as a feedback loop to retain the output at node 69 of the master latch 50 when needed for proper flip-flop operation as explained herein. The SI input is provided through inverter 60 to pass gate 64. The right-hand side outputs of pass gates 58 and 64 couple together and are provided through inverter 66 to slave latch 52. The enables 64a and 64b of pass gate 64 are provided by the SCK2 clock and its inverted form (SCK2X) via inverter 62.
The slave latch 52 receives the output (node 69) of the master latch 50 and provides that signal to the pass gate 78 which is controlled by the FCLK/SCK1 signal and its inverted form (PX1X) via inverter 70. The right-hand side of pass gate 78 couples to inverters 72 and 74 as well as pass gate 82. The output of inverter 74 is fed back through inverter 76 to pass gate 82. The output of inverter 74 is provided as an input to the NAND gate 80 as is the SE signal. The DO and SO output signals are provided by the inverter 72 and NAND gate 80, respectively.
The flip-flop 48 functions as follows. Each latch 50, 52 functions as a transparent latch in which data passes through the latch while the clock is in a first state. When the clock transitions to another state, the output of the latch is retained. In functional mode (i.e., not in scan mode), master latch 50 functions as a negative level sense latch and slave latch 52 functions a positive level sense latch. That is, when the SE signal is low, indicative of functional mode, the pass gate 58 of the master latch 50 permits input signals DI to pass through (i.e., closes) to node 69 as long as the functional clock (FCLK) is low. However, when the FCLK transitions to a high state, the pass gate 58 opens thereby precluding DI from influencing the output of the master latch. When FCLK becomes high and pass gate 58 opens, the feed back pass gate 68, comprising switches 68a-68f configured as shown, closes thereby causing the output at node 69 of the master latch to feedback on itself via inverter 66. Pass gate 68 also inverts the feedback signal. The action of pass gate 68 causes the output of the master latch 50 at 69 to be retained despite changes in DI when the FCLK becomes high.
The slave latch 52 operates in an opposite “polarity” from the master latch 50. Whereas the master latch 50 comprises a negative level latch, the slave latch 52 comprises a positive level latch in functional mode. That is, the slave latch in functional mode is transparent to incoming data at node 69 when FCLK is high. When FCLK is low, pass gate 78 opens thereby permitting the input of the pass gate 78 to pass through to inverter 72 and out the slave latch as the DO output. The DO and SO outputs of the slave latch are retained by the feedback loop formed by inverter 76 and pass gate 82, which is controlled by the FCLK/SCK1 and PH1X signals as shown in
In functional mode (SE low), the SCK 2 signal is gated off (low) via circuitry external to flip-flop 48. The only active clock signal provided to the flip-flop is the FCLK signal on the signal labeled FCLK/SCK1. With SE low, the flip-flop functions to clock input data (DI) through to the output terminal DO.
In scan mode (SE high), the flip-flop operates using two active clocks—SCK1 (on the FCLK/SCK1 signal) and SCK2. In accordance with preferred embodiments of the invention, the SCK1 and SCK2 clocks are non-overlapping clocks meaning that the two clocks are not both high at the same time and that there is some time during each clock's cycle that both clock signals are low. Exemplary SCK1 and SCK2 clocks are illustrated in
The use of dual, non-overlapping clocks in scan mode advantageously avoids hold violations. A hold violation is a race condition that constitutes a violation of the hold time requirement of a flip-flop or latch. The hold time is the minimum amount of time that a data signal should be held steady after a clock event so that the data is reliably sampled by the clock event. In the case of two, serially-connected flip-flops, the output of the first flip-flop may be coupled to the input of the second flip-flop. The first flip-flop might clock and change its output from the original signal to a new signal before the second flip-flop is able to clock the original signal. In this situation, the second flip-flop will clock the wrong signal, that is, the new signal instead of the original signal. The problem is that the input to the second flip-flop is not held steady long enough to satisfy its hold time requirement. In some IC systems, this hold violation problem is addressed by adding delay logic (e.g., a buffer designed to provide extra time delay) between the first and second flip-flops to prevent the input to the second flip-flop from changing too quickly relative to the requisite amount of hold time.
The preferred embodiment of flip-flop 48, however, avoids the need for such external delay buffers because the flip-flop uses an SCK2 clock pulse to clock the master latch 50 and a later, non-overlapping SCK1 clock pulse to clock the slave latch 52. In this manner, the master latch 50 captures the logic value present on the scan input (SI) port of the master latch before the slave latch 52 has a chance to launch the new input signal present on the node 69. Alternatively stated, the master latch 50 of each flip-flop captures or samples the current SI signal and retains this value on node 69 before the slave latch 52 is allowed to update the DO output.
When the SE signal is low (functional mode), the output of the NAND gate 112 remains high despite the state of the other input from flip-flop 110. With the output of NAND gate 112 being high, only the integrated clock gating cell 116 is active and the system clock is provided through integrated clock gating cell 116 as the FCLK. When the SE signal is high (scan mode), the NAND gate 112 functions logically as an inverter thereby passing the system clock via flip-flop 110 through to the integrated clock gating cell and, via inverter 114, to integrated clock gating cell 118. The system clock is used to clock flip-flop 110. The output of flip-flop 110 is inverted, via inverter 111, and fed back into the flip-flop. The flip-flop's output thus changes state in synchronization with the clock pulses of the system clock. Because integrated clock gating cell 116 receives the NAND gate's output in uninverted form and integrated clock gating cell 118 receives the NAND gate's output in inverted form (via inverter 114), the two integrated clock gating cells are not active at the same time and thus can produce non-overlapping SCK1 and SCK2 clocks as described above. Moreover, the clock generator 18 of the preferred embodiment of
Referring again to
Referring still to
In functional mode (with SE low), the NAND gate 168 functions logically as an inverter with respect to the clock input. Thus, when FCLK is low, the output of the NAND gate is high thereby causing pass gate 170 to be open. Accordingly, when FCLK is low, the master latch is not transparent. For the slave latch 154, in functional mode (SE low) the XNOR gate 180 also functions as an inverter for the clock input. Thus, when FCLK is low in functional mode the output of the XNOR gate 180 is high, thereby causing the slave latch 154 to be transparent.
Still assuming functional mode (SE low), when FCLK is high, the master latch's pass gate 170 closes thereby causing the master latch 152 to be transparent. Further, with FCLK high, the slave latch's pass gate 190 opens thereby causing the slave latch 154 not to be transparent.
In scan mode (SE high), the output of the master latch's NAND gate 168 is high and remains high thereby opening pass gate 170 and effectively disabling the data input (DI) port of the flip-flop 150. The SCK2 clock, which becomes active in scan mode, is used to operate the master latch 152. The SCK1 clock is used to operate the slave latch 154. Both the master and slave latches are transparent while the flip-flop is in scan mode and when their respective clocks are high. Both latches are not transparent when their respective clocks are low.
The master latch in
The dual, non-overlapping clocks used in the positive level latch 200 of
In accordance with the embodiments of the positive and negative edge flip-flops 48 and 150 discussed above and shown in
Because the master and slave latches are of opposite polarities, a problem occurs when attempting to connect a positive edge flip-flop to a negative edge flip-flop. In that scenario, the positive flip-flop's slave latch will be of the same polarity as the master latch of the negative edge flip-flop. Thus, two transparent latches of the same polarity will be connected serially together and race conditions leading to hold violations may occur. A solution to this problem is to include an external “lockup” latch of the opposite polarity between the positive edge and negative edge flip-flops. For example, if the slave latch of a positive edge flip-flop is of polarity X and a connection is desired to a master latch of a negative edge flip-flop that also is of polarity X, a polarity Y lockup latch is inserted therebetween to solve the aforementioned problem.
In scan mode, however, the master and slave latches are of the same polarity as illustrated in
In some embodiments, the flip-flops 48, 150 described above may be modified to comprise additional circuitry that enables the flip-flops 48, 150 to be reset and/or preset. Flip-flops may need to be reset or preset when, for instance, the IC 10 is started up and the flip-flops in the IC 10 are to be cleared of any pre-existing values stored in the flip-flops. Flip-flops generally are reset or preset in functional mode. When a flip-flop is reset, the state of the flip-flop is set to low. When a flip-flop is preset, the state of the flip-flop is set to high. Reset and preset functionality may be implemented in various embodiments of both flip-flops 48, 150, at least some of which are now discussed in turn.
One end of transistor 65, which preferably is a PMOS transistor, is coupled to the input of inverter 66. The other end is coupled to the aforementioned voltage source. When a low signal is applied to the input of the transistor 65, the transistor 65 turns on and provides voltage from the voltage source to the input of the inverter 66. When a high signal is applied to the input of the transistor 65, the transistor 65 opens and does not conduct an amount of electricity significant enough to affect the operation of the rest of the flip-flop 48. Thus, transistor 65 also may be recognized as an “active-low” transistor.
Transistor 61, preferably an NMOS transistor, is coupled to an NMOS transistor 59, which NMOS transistor 59 is in turn coupled to a PMOS transistor 55. The transistors 55, 59 together comprise the inverter 56 of
The transistors 61, 65, 77 each receive an input signal “RESET.” The RESET signal is low when the status of the flip-flop 48 is to be reset. The RESET signal is high when the status of the flip-flop 48 is not to be reset. The state of the flip-flop 48 generally is dictated by the state of the slave latch 52. For example, when the status of the slave latch 52 is low, the status of the flip-flop 48 is considered to be low. Likewise, when the status of the slave latch 52 is high, the status of the flip-flop 48 is considered to be high. Thus, the transistors 61, 65, 77 are implemented in the flip-flop 48 such that, when the RESET signal is low, the status of the slave latch 52 is driven low. In this way, the status of the flip-flop 48 also is driven low, thus resetting the flip-flop 48.
The reset functionality implemented in the flip-flop 48 is known as “asynchronous,” because the reset functionality is not synchronous with any clock provided to the flip-flop 48. That is, the reset functionality may be used regardless of the state of any of the clocks FCLK/SCK1, SCK2 because the reset functionality is independent of the status of these clocks. Asynchronous reset functionality is made possible in the flip-flop 48 with the implementation of the transistors 65, 77. When the FCLK/SCK1 signal is low, the transistor 77 is used to reset the status of the slave latch 52, thus resetting the flip-flop 48. When the FCLK/SCK1 signal is high, the transistor 77 cannot be used to reset the status of the slave latch 52, for reasons described further below. Accordingly, when the FCLK/SCK1 signal is high, the transistor 65 is used to reset the status of the slave latch 52, thus resetting the flip-flop 48.
More specifically, when the FCLK/SCK1 signal is low, the status of the slave latch 52 (and thus the flip-flop 48) is reset by the transistor 77. A low FCLK/SCK1 signal causes the pass gate 78 to open, thus isolating the status of the slave latch 52 from the master latch 50. To reset the status of the slave latch 52, the status of node 71 must be reset (i.e., to “0”). To reset node 71, a low RESET signal is applied to the input of the transistor 77. Applying a low RESET signal to the transistor 77 causes the transistor 77 to turn on, thus supplying voltage from the voltage source to node 73. Thus, the status of node 73 is “pulled high” (i.e., to a “1”). Because the FCLK/SCK1 signal is low, the pass gate 82 is closed. The high signal at node 73 is inverted by inverter 76 to a low signal, which low signal passes through the pass gate 82 and to the node 71, thereby resetting the status of the slave latch 52 (and the flip-flop 48). The low state of the node 71 is maintained by the feedback loop 75, wherein the low state is inverted by the inverter 74 into a high state, which high state is again inverted by inverter 76 to a low state. In this way, the transistor 77 is used to reset the status of the slave latch 52, and the reset status of the slave latch 52 is maintained by the feedback loop 75. Thus, the flip-flop 48 is reset.
The above process may be used to reset the flip-flop 48 when the FCLK/SCK1 signal is low. However, when the FCLK/SCK1 signal is high, the transistor 77 cannot be used to reset the status of the slave latch 52 (and thus the flip-flop 48). This is because when the FCLK/SCK1 signal is high, the pass gate 82 is open. Thus, while the transistor 77 may pull high the node 73, no voltage passes by the pass gate 82, and so the node 71 cannot be set to “0.” For this reason, the flip-flop 48 cannot be reset using the transistor 77 when the FCLK/SCK1 signal is high. Thus, in such a case, the transistor 65 may be used to reset the flip-flop 48. To reset node 71 of the slave latch 52, a low RESET signal is applied to the input of the transistor 65. This causes the transistor 65 to turn on and pass voltage from the voltage source to the inverter 66. Because the input to the inverter 66 is high, the voltage of the node 69 is low. When the FCLK/SCK1 signal is high, the pass gate 78 closes. Thus, the low signal at node 69 passes through the pass gate 78 and to the node 71. In this way, the status of the slave latch 52 is reset, thereby resetting the flip-flop 48. The status of node 71, as set by the transistor 65, is not molested by transistor 77 because the pass gate 82 is off.
In some cases, a problem may arise when using transistor 77 to reset the flip-flop 48. As previously mentioned, the transistor 77 preferably is used when the FCLK/SCK1 signal is high. When the FCLK/SCK1 signal is high, the pass gate 58 closes. Further, the RESET signal applied to the input of the transistor 77 is the same signal that is applied to the transistor 65. Thus, transistor 65 closes and pulls high the input to the inverter 66. This high voltage passes through the pass gate 58, which is closed, to the inverter 56. In the case that the data input DI to the inverter 56 is high, the PMOS transistor 55 is off and the NMOS transistor 59 is on. The NMOS of the inverter 56 in
An asynchronous preset functionality may be implemented in the flip-flop 48 of
The PMOS transistor 65 of
The PMOS transistor 81 is coupled to the inverter 56. Like the NMOS transistor 61, the transistor 81 protects the flip-flop 48 from short circuits. Specifically, when the signal FCLK/SCK1 is low, the pass gate 58 closes. If the PRESET signal is high, the transistor 83 is on, thereby directly coupling ground to the inverter 56. If the input DI to the inverter 56 is low, then the PMOS transistor 55 is turned on. Were it not for the active-low PMOS transistor 81 between the transistor 55 and a voltage source, a short circuit would exist between the ground coupled to transistor 83 and the voltage source coupled to the inverter 56. However, the transistor 81 prevents such a short circuit. When the PRESET signal is high, the transistor 81 turns off. Thus, while a high PRESET signal may activate the transistor 83, the transistor 81 is deactivated, thus eliminating the risk of a short circuit.
Asynchronous reset and preset functionality also may be implemented in the flip-flop 150 of
When the signal FCLK/SCK1 is low, the output of the XNOR gate 180 is a high, since the flip-flop 150 is in functional mode. The high signal is inverted by inverter 182, thus closing the pass gate 190 and opening the pass gate 192. Similarly, when the FCLK/SCK1 signal is low, the pass gate 170 is opened. In this case, the transistor 185 cannot be used to drive node 191 low, since pass gate 192 is open. Transistor 171 is used instead. The transistor 171 preferably is a PMOS transistor, which transistor has one end coupled to a voltage source and another end coupled to the input of inverter 166. When a low RESET signal is applied to the input of the transistor 171, the transistor 171 turns on and provides a high signal to the input of the inverter 166, which inverter 166 outputs a low signal. Because the pass gate 190 is closed, the low signal passes through the pass gate 190 and drives the node 191 to a low state. In this way, the slave latch 154 is reset, and thus the flip-flop 150 is reset.
When the FCLK/SCK1 signal is high, the pass gate 170 is closed, the pass gate 190 is open, and the pass gate 192 is closed. Although the transistor 185 is used to reset the flip-flop 150 when the FCLK/SCK1 signal is high, applying a low RESET signal to the input of the transistor 185 also causes a low RESET signal to be applied to the input of the transistor 171, thus turning on the transistor 171. Because transistor 171 is on, and because pass gate 170 is closed, current may flow directly from the voltage source coupled to the transistor 171 to the inverter 160. The inverter 160 is composed of PMOS transistor 167 and NMOS transistor 169. If the DI input to the inverter 160 is high, then the NMOS transistor 169 turns on. Without the presence of the transistor 175, the NMOS transistor 169 would be directly coupled to ground, thus causing a short circuit between the ground coupled to the NMOS transistor 169, and the voltage source coupled to the transistor 171. However, the presence of the transistor 175 prevents this short circuit. Specifically, transistor 171 is on when a low RESET signal is applied thereto. If the RESET signal is low, then the signal applied to the input of the transistor 175 is low, thus turning off the transistor 175 and preventing a short circuit from occurring.
An asynchronous preset functionality may be implemented in the flip-flop 150 in a manner similar to that with which the reset functionality is implemented.
In the case that the FCLK/SCK1 signal is low, the pass gate 190 is closed and the pass gate 192 is open. Because the pass gate 192 is open, the transistor 187 cannot be used to preset the flip-flop 150. Accordingly, the PMOS transistor 173 is used instead. One end of the transistor 173 is coupled to ground, and the other end is coupled to the input of the inverter 166. When a high PRESET signal is applied to the input of the transistor 173, the transistor 173 turns on and provides a low signal to the inverter 166. The inverter 166 produces a high signal, which high signal passes through the pass gate 190 and to the node 191. In this way, the slave latch 154 and the flip-flop 150 are preset.
The PMOS transistor 165 is inserted between a voltage source and the inverter 160 to prevent short circuit situations like those described above. Specifically, when the FCLK/SCK1 signal is high, the pass gate 170 is closed, the pass gate 190 is open, and the pass gate 192 is closed. Although the transistor 187 is used to preset the flip-flop 150 when the FCLK/SCK1 signal is high, a high PRESET signal is applied to the transistor 187 so that the transistor 187 is turned on. This same high PRESET signal also is applied to the input of transistor 173, thus turning on the transistor 173, even though the transistor 173 is not being used to preset the flip-flop 150. Since the pass gate 170 is closed, were it not for the presence of the PMOS transistor 165 between the voltage source and the inverter 160, a short circuit would be present between the voltage source and the ground coupled to the transistor 173. However, because a high PRESET signal must be applied to transistor 173 to turn on transistor 173, and further because a low PRESET signal must be applied to transistor 165 to turn on transistor 165, transistors 165 and 173 cannot both be on at the same time. Thus, when transistor 173 is on, the transistor 165 is off and prevents a short circuit from occurring.
Asynchronous reset and preset functionality also may be implemented in the latches 200, 250 of
Although the transistor 121 may be used to reset the latch 200 regardless of the status of the clock signal RCLK/SCK1, when the signal RCLK/SCK1 is high, the pass gate 224 closes. If the input to the inverter 210 (i.e., comprising transistors 125, 127) is asserted, then the transistor 127 turns on, thus providing a clear path from the voltage source coupled to the transistor 121, to the transistor 123 coupled to the inverter 210. One end of the transistor 123 is coupled to ground, whereas the other end of the transistor 123 is coupled to the inverter 210. The input to the NMOS transistor 123 is the signal RESET. If the transistor 123 were absent, a short circuit would occur between the ground of transistor 123 and the voltage source of transistor 121. However, both transistors 121, 123 are turned on or off depending on the status of the RESET signal. Transistor 121 turns on when the RESET signal is low, and transistor 121 turns on when the RESET signal is high. Thus, when the transistor 121 is on, transistor 123 is off, thus preventing the short circuit from occurring.
Preset functionality is implemented in the latch 200 as shown in
Reset functionality is implemented in the latch 250 of
Preset functionality is implemented in the latch 250 of
In at least some ICs, the functional clock to each flip-flop may be gated on and off by logic external to the flip-flops. An enable signal is provided to such external clock gating circuitry and, in some embodiments, gated by way of a NAND gate with the clock signal. If the enable signal is set to a certain state (e.g., low), the output clock signal from the external clock gating circuitry is held high, thus precluding normal clock oscillations. While generally effective, such external clock gating circuitry imposes a burden on the timing of the enable signal. Specifically, assertion of the enable signal to the external clock gating circuitry must satisfy the timing required by the setup time of the flip-flops as well as the time delay imposed by the gating circuitry itself.
The enable signal is generated by logic external to the flip-flop 48. When the enable signal is a logic high, the NAND gate 270 functions as an inverter and permits normal flip-flop operation as described above. When enable is low, however, the output of the NAND gate 270 is high thereby opening the slave latch's pass gates 78 and 82 which, in turn, freezes the DO output of the slave latch and thus the flip-flop 48.
Freezing the output state of the flip-flop when enable is low is a desired behavior even for the external clock circuitry noted above. In accordance with the preferred embodiments of the invention, however, by including the NAND gate 270 inside the slave latch 52 of the flip-flop, rather than in the external clock gating circuitry, only the slave latch 52 is affected by the delay caused by the NAND gate 270 itself. The timing of the master latch 50 is unaffected by the delay of the NAND gate 270. Consequently, setup and hold time requirements are not exacerbated by the inclusion of the NAND enable gate 270 in the flip-flop, which would be the case if the NAND gate 270 was in the external clock gating circuitry.
The embodiment of
Although a multiplexer 321 is shown in place of the inverter 56, other logic (preferably inverting logic) also may be used to replace the inverter 56. For instance, an AND gate on the data path outside the flip-flop 48 may be moved inside the flip-flop 48 and converted to a NAND gate, which NAND gate is used to replace the inverter 56. Similarly, an OR gate on the data path outside the flip-flop 48 may be moved inside the flip-flop 48 and converted to a NOR gate, which NOR gate is used to replace the inverter 56. Such replacement of the inverter 56 provides for a more efficient use of space on the IC 10 and also enhances the performance efficiency of the IC 10 by eliminating the delay associated with at least one gate from the IC 10. The scope of disclosure is not limited to replacing the inverter 56 with any particular type of circuit logic.
Another embodiment of the flip-flop 48 comprising a 2-to-1 multiplexer is shown in
In another embodiment, the 2-to-1 multiplexer implementation shown in the flip-flop 48 of
In some embodiments, the flip-flop 48 shown in
When the clock signal FCLK/SCK1 is high, the pass gate 78 is closed and the pass gate 82 is open. Because the pass gate 82 is open, the transistor 347 cannot be used to reset the flip-flop 48. Instead, PMOS transistor 345 is used to reset the flip-flop 48. One end of the transistor 345 is coupled to a voltage source, while the other end is coupled to the input of the inverter 66. The input to the transistor 345 is the RESET signal. When the RESET signal is low, the transistor 345 turns on, thereby providing a high signal to the inverter 66. In turn, the inverter 66 outputs a low signal, which low signal passes through the pass gate 78 and to the input of the inverter 72. In this way, the slave latch 52 and the flip-flop 48 are reset. NMOS transistor 343 is used to prevent short circuits in the same manner as the transistor 61 of
The above discussion is meant to be illustrative of the principles and various embodiments of the present invention. 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.
Number | Name | Date | Kind |
---|---|---|---|
5015875 | Giles et al. | May 1991 | A |
5726990 | Shimada et al. | Mar 1998 | A |
5812561 | Giles et al. | Sep 1998 | A |
6389566 | Wagner et al. | May 2002 | B1 |
6501315 | Nguyen | Dec 2002 | B1 |
7109772 | Tohsche | Sep 2006 | B2 |
20040075479 | Gupta | Apr 2004 | A1 |
20050091562 | Krishnamoorthy et al. | Apr 2005 | A1 |
Number | Date | Country | |
---|---|---|---|
20070001731 A1 | Jan 2007 | US |