Background of the Invention
1. Field of the Invention
The present invention relates to the testing of complex integrated circuits and, in particular, to a set/reset scan flip-flop circuit that normally inhibits active set/reset during scan shift, but allows a set/reset occurring in the last shift cycle to pass through. The circuit may be used in both synchronous and asynchronous scan chain operation. A clock controlled embodiment of the invention also inhibits spurious signals occurring at the beginning of a parallel load cycle.
2. Discussion of the Related Art
FIGS. 1A and 1B show a conventional scan storage element (SSE) and a corresponding scan chain, respectively. When the integrated circuit under test is operating in its normal mode, i.e., the Test Enable (TE) signal is inactive (TE=0), data are loaded into the individual scan storage elements from a data input line D. When in the scan test mode, i.e., the Test Enable signal is active high (TE=1), data are loaded from a scan input line S.sub.i. The scan chain shifts serially when TE=1 and loads data in parallel when TE=0. Loading data into a scan chain from the scan input line S.sub.i when TE=1 is referred to as a scan-in operation. Reading data out of the scan chain from serial output line S.sub.out is referred to as a scan-out operation.
FIG. 2 shows a typical scan flip-flop circuit utilizable in implementing a scan chain. As shown in FIG. 2, because the scan element has both a normal data input D and a scan input S.sub.i, the appropriate input can be selected using a multiplexer controlled by the Test Enable (TE) select signal.
Circuits having set/reset capability, both asynchronous and synchronous, have presented a special challenge to scan operation. The problem is that, when Test Enable is active and shifting is taking place, the set/reset signals must be inhibited to prevent interruption of the serial scan stream.
Summary of the Invention
The present invention provides set/reset scan flip-flop circuits that normally inhibit set/reset when in the scan mode, but allow a set/reset occurring in the last scan shift cycle to pass through in some unique circumstances. In one embodiment of the invention, the scan circuit includes a multiplexer that receives a data input signal and the scan input signal. The scan input is selected as the multiplexer output when scan Test Enable, which serves as the multiplexer select signal, is active. An OR gate receives the Test Enable signal and the set/reset signal as inputs. Thus, when Test Enable is active high, the OR gate output is also high. The OR gate output is connected to the set/reset pin of the clock edge-triggered scan flip-flop. The multiplexer output drives the data input of the flip-flop. Therefore, assuming that the serf reset signal is active low, when in the scan mode, i.e., Test Enable is active high, the OR gate normally blocks the set/reset signal from the flip-flop. However, when set/reset goes active low in the last scan cycle, the low-going Test Enable allows the set/reset to pass through the OR gate.
In an alternative embodiment of the invention, the clock signal that drives the scan flip-flop circuit of the first embodiment is also provided to the circuit's OR gate. In this way, spurious signals occurring at the beginning of a parallel load cycle are inhibited, thus providing better glitch immunity.
Other features and advantages of the present invention will become apparent and be appreciated by reference to the following detailed description which should be considered in conjunction with the accompanying drawings.
Brief Description of the Drawings
FIG. 1A is a simple block diagram illustrating a conventional scan storage element.
FIG. 1B is a block diagram illustrating a conventional scan register.
FIG. 2 is a simple block diagram illustrating a conventional scan storage element implemented utilizing an input multiplexer and a clock edge-triggered flip-flop.
FIG. 3 is a block diagram illustrating an embodiment of a reset scan flip-flop circuit in accordance with the present invention.
FIG. 4 is a timing diagram illustrating the operation of the FIG. 3 reset scan flip-flop with asynchronous reset and synchronous Test Enable.
FIG. 5 is a timing diagram illustrating operation of the FIG. 3 reset scan flip-flop with synchronous reset and synchronous Test Enable.
FIG. 6 is a timing diagram illustrating operation of the FIG. 3 reset scan flip-flop with synchronous reset and asynchronous Test Enable.
FIG. 7 is a timing diagram illustrating operation of the FIG. 3 reset scan flip-flop with asynchronous reset and asynchronous Test Enable.
FIG. 8 is a block diagram illustrating an alternative embodiment of a reset scan flip-flop in accordance with the present invention.
FIG. 9 is a timing diagram illustrating operation of the FIG. 8 reset scan flip-flop with asynchronous reset and synchronous Test Enable.
FIG. 10. is a timing diagram illustrating operation of the FIG. 8 reset scan flip-flop with synchronous reset and synchronous Test Enable.
FIG. 11 is a timing diagram illustrating operation of the FIG. 8 reset scan flip-flop with synchronous reset and asynchronous Test Enable.
FIG. 12 is a timing diagram illustrating operation of the FIG. 8 reset scan flip-flop with asynchronous reset and asynchronous Test Enable.
FIG. 13 is a timing diagram illustrating operation of the FIG. 3 reset scan flip-flop with either synchronous or asynchronous Test Enable, and with a glitch in the synchronous reset signal.
FIG. 14 is a timing diagram illustrating operation of the FIG. 8 reset scan flip-flop with either synchronous or asynchronous Test Enable, and with a glitch in the synchronous reset signal.
Detailed Description of the Invention
FIG. 3 shows a reset scan flip-flop circuit 10 in accordance with the present invention. The scan circuit 10 includes a 2:1 multiplexer 12 that receives a data input signal D and a scan input signal S.sub.i. The multiplexer 12 responds to a Test Enable select signal TE by providing the data input signal D as the multiplexer output when Test Enable is inactive (i.e., TE=0) and by providing the scan input signal S.sub.i as the multiplexer output signal when Test Enable TE is active (i.e., TE=1). The Test Enable signal TE and a reset signal are provided as inputs to an OR gate 14. Thus, OR gate 14 provides a logical high output when Test Enable TE is active. In this manner, even if the reset signal is active (i.e., logic low) during a scan shift operation, it is blocked from the OR gate output. As further shown in FIG. 3, the reset scan circuit 10 also includes a flip-flop 16 that receives the multiplexer output signal at its data input. The flip-flop 16 responds to the OR gate output signal applied to its reset pin by providing the multiplexer output signal as a flip-flop output when the OR gate output is high and by providing a logic low output signal when the OR gate output is logic low.
As shown in the FIG. 4 timing diagram, although the FIG. 3 circuit functions to inhibit reset during normal scan shift operation, when the low going Test Enable signal for a parallel data load cycle is synchronous, but an asynchronous reset operation is presented to the FIG. 3 circuit in the last scan shift cycle, the reset operation also occurs synchronously. As shown in the FIG. 5 timing diagram, when the low going Test Enable and the reset operation are both synchronous, the FIG. 3 circuit allows the reset operation to drive the flip-flop output. Note, however, that, as shown in the FIG. 6 timing diagram, when the low-going Test Enable is asynchronous, and a synchronous reset operation occurs in the last shift cycle, the FIG. 3 circuit still allows the shift-based reset to pass through to the flip-flop. The FIG. 7 timing diagram shows a similar result in the case where both the low going Test Enable and the reset operation are shift-based asynchronous.
Those skilled in the art will appreciate that the reset scan flip-flop shown in FIG. 3 can also be implemented as a set scan flip-flop circuit with results identical to those described above in conjunction with the FIGS. 4-7 timing diagrams.
FIG. 8 shows an alternative embodiment of a reset scan flip-flop circuit 10' in accordance with the present invention. The elements of the FIG. 8 circuit 10' are the same as those of the FIG. 3 circuit with the exception that the FIG. 8 circuit 10' utilizes a 3-input OR gate 14' to provide clock control to the reset operation, thereby increasing glitch immunity. Those skilled in the art will appreciate that the reset scan flip-flop shown in FIG. 8 can also be implemented as a set scan flip-flop.
As shown in the FIG. 9 timing diagram, in the case of the clock controlled FIG. 8 circuit 10', when the low going Test Enable signal is synchronous and an asynchronous reset operation is presented in the last scan shift cycle, the clock signal inhibits the reset operation until the low-going clock edge in the parallel load cycle. The FIG. 10 timing diagram shows that when the low going Test Enable and the reset operation are both synchronous, the flip-flop output of the FIG. 8 circuit 10' is also controlled by the low-going edge of the clock signal. As in the case of the FIG. 3 circuit, as shown in timing diagrams of FIGS. 11 and 12, when low going Test Enable is asynchronous, the FIG. 8 circuit 10' allows a reset operation presented in the last scan shift cycle to pass through to the flip-flop output.
As can be seen from the timing diagrams of FIGS. 13 and 14, the FIG. 8 circuit 10' has better "glitch" immunity than does the FIG. 3 circuit. As shown in the FIG. 13 timing diagram, spurious signals occurring at the beginning of the load cycle pass through the OR gate 14 in the FIG. 3 circuit. However, in the FIG. 8 circuit 10', the same glitch is blocked by the clock-controlled OR gate 14', allowing parallel input data to settle to steady state before the low-going clock edge.
It should be understood that various alternatives to the embodiments of the invention described herein may be employed in practicing the invention. It is intended that the following claims define the scope of the invention and that circuits and methods within the scope of these claims and their equivalents be covered thereby.