TEST CIRCUIT AND TEST METHOD
20200081063 ยท 2020-03-12
Inventors
Cpc classification
G01R31/31727
PHYSICS
International classification
Abstract
A test circuit includes flip-flops operating in synchronization with a clock signal, a timing adjustment circuit to generate a first set signal that provides a command that sets output signals from the flip-flops at a predetermined logic, and a second set signal that provides a command that detects a fault in the output signals from the flip-flops, and to set timing for cancellation of the command of the second set signal, the timing being delayed by n cycles of the clock signal from timing for cancellation of the command of the first set signal, and a fault detection circuit to output a fault detection signal during a period of time from the cancellation of the command of the first set signal to the cancellation of the command of the second set signal, if there is an output signal having a different logic in the output signals from the flip-flops.
Claims
1. A test circuit comprising: a plurality of flip-flops operating in synchronization with a clock signal; a timing adjustment circuit to generate a first set signal that provides a command that sets output signals from the flip-flops at a predetermined logic, and a second set signal that provides a command that detects a fault in the output signals from the flip-flops, and to set timing for cancellation of the command of the second set signal, the timing being delayed by n cycles of the clock signal from timing for cancellation of the command of the first set signal, n being an even number; and a fault detection circuit to output a fault detection signal during a period of time from the cancellation of the command of the first set signal to the cancellation of the command of the second set signal, if there is an output signal having a different logic in the output signals from the flip-flops.
2. The test circuit according to claim 1, wherein the fault detection circuit is to detect, at different timings, a fault in which an output signal of at least one of the flip-flops is stuck at a first logic and a fault in which an output signal of at least one of the flip-flops is stuck at a second logic during a period of time after the command of the first set signal is executed and until the command of the second set signal is cancelled, and to output the fault detection signal when at least one fault is detected.
3. The test circuit according to claim 1, further comprising toggle circuits to invert the output signals from the flip-flops and to input inverted signals to corresponding flip-flops in synchronization with the clock signal during a period of time from the cancellation of the command of the first set signal to the cancellation of the command of the second set signal.
4. The test circuit according to claim 3, wherein: at least one of the flip-flops comprises a set signal terminal to which the first set signal is inputted; and the at least one of the flip-flops comprising the set signal terminal outputs the output signal having the predetermined logic while the first set signal is being inputted to the set signal terminal, and performs a logic inverting operation in synchronization with the clock signal in accordance with the corresponding toggle circuit after the input of the first set signal to the set signal generation circuit is stopped and before the cancellation of the command of the second set signal.
5. The test circuit according to claim 3, further comprising a set signal generation circuit connected to a signal input terminal of at least one of the flip-flops, to generate a signal to be inputted to the signal input terminal so that the output signal having the predetermined logic is outputted from the at least one of the flip-flops when the command of the first set signal is executed, wherein the at least one of the flip-flops having the signal input terminal to which the set signal generation circuit is connected outputs the output signal having the predetermined logic while the first set signal is being inputted to the set signal generation circuit, and performs a logic inverting operation in synchronization with the clock signal in accordance with the corresponding toggle circuit after the input of the first set signal to the set signal generation circuit is stopped and before the cancellation of the command of the second set signal.
6. The test circuit according to claim 1, wherein the fault detection circuit outputs the fault detection signal based on an exclusive OR of the output signals from the flip-flops.
7. The test circuit according to claim 1, wherein the timing adjustment circuit generates the first set signal by synchronizing an initialization signal with the clock signal, and the second set signal, the command of which is executed at the same time as the command of the first set signal is executed, and cancelled by being delayed by n cycles of the clock signal after the command of the first set signal is cancelled.
8. A test method comprising: generating a first set signal that provides a command that output signals from flip-flops operating in synchronization of a clock signal be set at a predetermined logic, and a second set signal that provides a command that a fault in the output signals from the flip-flops be detected, and setting timing for cancellation of the command of the second set signal, which is delayed by n cycles of the clock signal from timing for cancellation of the command of the first set signal, ne being an even number; and outputting a fault detection signal during a period of time from the cancellation of the command of the first set signal to the cancellation of the command of the second set signal, if there is an output signal having a different logic in the output signals from the flip-flops.
9. The test method according to claim 8, wherein the fault detection circuit is to detect, at different timings, a fault in which an output signal of at least one of the flip-flops is stuck at a first logic and a fault in which an output signal of at least one of the flip-flops is stuck at a second logic during a period of time after the command of the first set signal is executed and until the command of the second set signal is cancelled, and to output the fault detection signal when at least one fault is detected.
10. The test method according to claim 8, wherein toggle circuits is provided to invert the output signals from the flip-flops and to input inverted signals to corresponding flip-flops in synchronization with the clock signal during a period of time from the cancellation of the command of the first set signal to the cancellation of the command of the second set signal.
11. The test method according to claim 10, wherein: at least one of the flip-flops is provided with a set signal terminal to which the first set signal is inputted; and the at least one of the flip-flops comprising the set signal terminal outputs the output signal having the predetermined logic while the first set signal is being inputted to the set signal terminal, and performs a logic inverting operation in synchronization with the clock signal in accordance with the corresponding toggle circuit after the input of the first set signal to the set signal generation circuit is stopped and before the cancellation of the command of the second set signal.
12. The test method according to claim 10, wherein: a set signal generation circuit connected to a signal input terminal of at least one of the flip-flops is provided, to generate a signal to be inputted to the signal input terminal so that the output signal having the predetermined logic is outputted from the at least one of the flip-flops when the command of the first set signal is executed, the at least one of the flip-flops having the signal input terminal to which the set signal generation circuit is connected outputs the output signal having the predetermined logic while the first set signal is being inputted to the set signal generation circuit, and performs a logic inverting operation in synchronization with the clock signal in accordance with the corresponding toggle circuit after the input of the first set signal to the set signal generation circuit is stopped and before the cancellation of the command of the second set signal.
13. The test method according to claim 8, wherein the fault detection circuit outputs the fault detection signal based on an exclusive OR of the output signals from the flip-flops.
14. The test method according to claim 8, wherein the timing adjustment circuit generates the first set signal by synchronizing an initialization signal with the clock signal, and the second set signal, the command of which is executed at the same time as the command of the first set signal is executed, and cancelled by being delayed by n cycles of the clock signal after the command of the first set signal is cancelled.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0006]
[0007]
[0008]
[0009]
[0010]
[0011]
DETAILED DESCRIPTION
[0012] According to one embodiment, a test circuit is provided, which includes a plurality of flip-flops operating in synchronization with a clock signal, a timing adjustment circuit to generate a first set signal that provides a command that sets output signals from the flip-flops at a predetermined logic, and a second set signal that provides a command that detects a fault in the output signals from the flip-flops, and to set timing for cancellation of the command of the second set signal, the timing being delayed by n cycles of the clock signal from timing for cancellation of the command of the first set signal, n being an even number, and a fault detection circuit to output a fault detection signal during a period of time from the cancellation of the command of the first set signal to the cancellation of the command of the second set signal, if there is an output signal having a different logic in the output signals from the flip-flops.
[0013] Embodiments of the present invention will be described below by referring to the accompanying drawings. Characteristic configurations and operations of the test circuits according to the embodiments will be mainly described below. However, the test circuits may have other configurations or carries out other operations, which are not described herein.
First Embodiment
[0014]
[0015] The test circuit 1 shown in
[0016] Thin solid lines in
[0017] The timing adjustment circuit 4 generates a first set signal for commanding that output signals of the flip-flops 2 be set to a predetermined logic, and a second set signal for commanding detection of whether the output signals of the flip-flops 2 have a fault. The timing adjustment circuit 4 also sets the timing of the cancellation of the command provided by the second set signal, which timing is delayed by even number of cycles of the clock signal from the timing for the cancellation of the command provided by the first set signal. The first set signal, for example, resets a first reset signal Reset1, and the second set signal, for example, resets a second reset signal Reset2. In a more specific example, the first set signal represents a case where the first reset signal Reset1 is in a Low state, and the second set signal represents a case where the second reset signal Reset2 is in a Low state.
[0018]
[0019] The second flip-flop 7 generates a signal obtained by delaying the first reset signal Reset1 outputted from the first flip-flop 6, by one cycle of the clock signal CLK. The third flip-flop 8 generates a signal obtained by delaying the output signal from the second flip-flop 7 by one cycle of the clock signal CLK. The AND gate 9 generates the second reset signal
[0020] Reset2 that is a logical product signal obtained from the output signals of the first to third flip-flops 6 to 8.
[0021] The fault detection circuit 5 outputs a fault detection signal during a period of time from the cancellation of the command provided by the first set signal to the cancellation of the command provided by the second set signal if there is an output signal with a different logic among the output signals from the flip-flops 2. In more detail, the fault detection circuit 5 detects a fault in which at least one of the output signals from the flip-flops 2 is stuck at the first logic and a fault in which at least one of the output signals is stuck at the second logic with different timings during a period of time from the cancellation of the command provided by the first set signal to the cancellation of the command provided by the second set signal. If at least one of the faults is detected, the fault detection circuit 5 outputs the fault detection signal.
[0022] Toggle circuits 11 are connected to the register circuit 3 shown in
[0023] One toggle circuit 11 is provided to each flip-flop 2. Specifically, the toggle circuit 11 includes a first selector 12, an inverter 13, and a second selector 14.
[0024] The first selector 12 selects either the first logic (for example High) signal or the output signal from the flip-flop 2 based on the logic of the second reset signal Reset2. Specifically, the first selector 12 selects the first logic signal when the second reset signal Reset2 is High, and selects the output signal from the flip-flop 2 when the second reset signal Reset2 is Low. The logic of the output signal from the first selector 12 is inverted by the inverter 13, and the then the output signal is inputted to the second selector 14.
[0025] The second selector 14 selects either the output signal from the third selector 15 or the output signal from the inverter 13 (the signal obtained by inverting the output of the first selector 12) based on the logic of the second reset signal Reset2. Specifically, the second selector 14 selects the output signal from the third selector 15 when the second reset signal Reset2 is High, and selects the signal obtained by inverting the output of the first selector 12 when the second reset signal Reset2 is Low.
[0026] Each of the flip-flops 2 shown in
[0027] Each of the flip-flops 2 shown in
[0028] The third selector 15 selects either the input data or the output signal from the fourth selector 16 based on the logic of a write enable signal. Specifically, the third selector 15 selects the input data when the write enable signal is High, and selects the output signal from the fourth selector 16 when the write enable signal is Low.
[0029] The fourth selector 16 selects either the output signal from the corresponding flip-flop 2 or the second logic (for example Low) signal based on the logic of the second reset signal Reset2. Specifically, the fourth selector 16 selects the output signal from the corresponding flip-flop 2 when the second reset signal Reset2 is High, and selects the second logic signal when the second reset signal Reset2 is Low. The fourth selector 16 is disposed to set the logic inputted to a circuit connected after the register circuit 3 to conform to the logic of the output from the corresponding flip-flop 2 when the second reset signal Reset2 is in the Low (reset) state. Since all of the flip-flops 2 included in the register circuit 3 shown in
[0030] For the sake of simplicity, three flip-flops 2 are shown in
[0031] The fault detection circuit 5 includes, for example, an EXOR gate 17 for calculating exclusive OR, and a fifth selector 18. The output signals from the flip-flops 2 are inputted to the EXOR gate 17. The EXOR gate 17 outputs the first logic (for example High) signal when the output signals from the flip-flops 2 include an output signal having a logic that differs from the logic of the output signals from the other flip-flops 2. Thus, the EXOR gate 17 outputs the Low signal when the logic of the output signals from all of the flip-flops 2 is the same, and outputs the High signal when an output signal with a different logic is included in the output signals from all of the flip-flops 2.
[0032] The fifth selector 18 selects either the second logic (for example Low) signal or the output signal from the EXOR gate 17 based on the logic of the second reset signal Reset2. Specifically, the fifth selector 18 selects the second logic signal when the second reset signal Reset2 is High, and selects the output signal from the EXOR gate 17 when the second reset signal Reset2 is Low. The output signal from the fifth selector 18 is the fault detection signal. When the fault detection signal is High, at least one of the output signals from the flip-flops 2 has a stuck-at fault and tied to a logic.
[0033]
[0034] Thereafter, at the rising edge of the clock signal CLK inputted at time t2, the first reset signal Reset1 is in the reset state (Low) and therefore the outputs from the flip-flops 2 are still fixed to Low. However, the output of the first flip-flop 6 included in the timing adjustment circuit 4 shown in
[0035] When the rising edge of the clock signal CLK is inputted at time t3, the outputs of the flip-flops 2 change from Low to High since the reset state of the flip-flops 2 has been cancelled. At this time, the second reset signal Reset2 is still Low. Therefore, the first selector 12 selects the output (High signal) of the corresponding flip-flops 2. The output signal from the first selector 12 is inverted by the inverter 13, and inputted to the corresponding flip-flop 2 via the second selector 14. This changes the input to each flip-flop 2 from High to Low.
[0036] At time t2 when the rising edge of the clock signal CLK is inputted, the output of each flip-flop 2 is fixed to Low unless there is a fault. Therefore, the output of the EXOR gate 17 is expected to be Low. If any of the outputs from the flip-flops 2 is stuck at High, the output of the EXOR gate 17 is High. Therefore, a fault in which any of the outputs from the flip-flops 2 is stuck at High can be detected during the period of time from t2 to t3. If the outputs of two or more flip-flops 2 are stuck at High, the output of the EXOR gate 17 is also High. Therefore a fault in which two or more outputs from the flip-flops 2 are stuck at High can be detected. If, however, the outputs from all of the flip-flops 2 are stuck at High, the output of the EXOR gate 17 is kept to Low, and the stuck-at-high fault cannot be detected. However, in practice, the fault in which the outputs from all of the flip-flops 2 are stuck at High cannot happen. Therefore, it would not be necessary to consider the fault in which the outputs from all of the flip-flops 2 are stuck at High.
[0037] Thereafter, when a rising edge of the clock signal CLK is inputted at time t3, the outputs of the flip-flops 2 are fixed to High if there is no fault. Therefore, the output of the EXOR gate 17 is expected to be Low. If the output of any of the flip-flops 2 is stuck at Low, the output of the EXOR gate 17 becomes High. Thus, during a period of time from time t3 to the input of the next rising edge of the clock signal CLK (time t4), a fault in which the output of any of the flip-flops 2 is stuck at Low can be detected.
[0038] When the rising edge of the clock signal CLK is inputted at time t4, the second reset signal Reset2 outputted from the AND gate 10 included in the timing adjustment circuit shown in
[0039]
[0040] Thus, when the external reset signal Reset is inputted to the test circuit 1 shown in
[0041] The flip-flops 2 included in the test circuit 1 shown in
[0042] While the first reset signal Reset1 at the Low level is inputted to the reset terminal or the set terminal, the flip-flops 2 of the test circuit 1 shown in
[0043]
[0044] As shown in
[0045] The reset terminal and the set terminal of the flip-flops 2 may be called set signal terminals herein. The flip-flop 2 having the set signal terminal provides an output signal with a predetermined logic while the first set signal is inputted to the set signal terminal, and performs a logic inverting operation in synchronization with the clock signal and in accordance with the toggle circuit after the input of the first set signal to the set signal terminal is stopped and until the timing adjustment circuit outputs the second set signal.
[0046] As described above, the test circuits 1 shown in
Second Embodiment
[0047] In the example of the first embodiment, a fault of the flip-flop 2 with the reset terminal or the set terminal is detected. However, a fault of a flip-flop 2 without having the reset terminal or the set terminal may also be possible.
[0048]
[0049] The circuit configurations of the timing adjustment circuit 4 and the fault detection circuit 5 are the same as those in the test circuit 1 shown in
[0050] Specifically, the set signal generation circuit 21 has a sixth selector 22. The sixth selector 22 selects either a first logic (for example High) signal or the output signal from the second selector 14 based on the logic of the first reset signal Reset1. In more detail, the sixth selector 22 selects the first logic signal when the first reset signal Reset1 is Low, and selects the output signal from the second selector 14 when the first reset signal Reset1 is High.
[0051]
[0052] Thus, according to the second embodiment, a fault in which the output of any of the flip-flops 2 is stuck at High or Low may be detected by a simple and fast manner as in the first embodiment, even if the flip-flops 2 do not have the reset terminal or the set terminal, by connecting the set signal generation circuits 21 to the input terminals of the flip-flops 2.
Third Embodiment
[0053] The test circuits 1 in the first and second embodiments detect the faults of the flip-flops 2 included in the register circuits 3. However, the present invention may be used for the test circuit 1 that detects a fault of a plurality of flip-flops 2 included in a shift register 23, as shown in
[0054] Thin solid lines in
[0055] Also in the test circuit 1 shown in
[0056] While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel methods and systems described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the methods and systems described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions.