METHOD FOR DESIGNING FAULT DETECTION CIRCUIT
20230394206 · 2023-12-07
Inventors
Cpc classification
G06F2119/02
PHYSICS
International classification
Abstract
A method for designing a fault detection circuit includes an extraction step of selecting a fixed signal value based on an index, and extracting, by using the fixed signal value selected, one or some but not all of three-signal implication relationships.
Claims
1. A method for designing a fault detection circuit configured to detect a fault in a target circuit for fault detection, the method comprising: an extraction step of selecting a fixed signal value based on an index, and extracting, by using the fixed signal value selected, one or some but not all of three-signal implication relationships that hold between nets in the target circuit; and a designing step of designing the fault detection circuit by selecting an implication relationship that is high in area efficiency from among the three-signal implication relationships extracted in the extraction step and a two-signal implication relationship that holds between the nets in the target circuit, wherein the extraction step includes at least one of: a first extraction step in which such ones of the three-signal implication relationships as have a fault-detection capability that is predictable from a number of faults detected by a two-signal implication relationship constitute a population for extraction, and the index is a first index which corresponds to a number of faults detected by three two-signal implication relationships; a second extraction step in which such ones of the three-signal implication relationships as have a fault-detection capability that is partly predictable from a number of faults detected by a two-signal implication relationship constitute a population for extraction, and the index is a second index which corresponds to a number of faults detected by one two-signal implication relationship; and a third extraction step in which such ones of the three-signal implication relationships as have a fault-detection capability that is unpredictable from a number of faults detected by a two-signal implication relationship constitute a population for extraction, and the index is a third index which corresponds to a number of implication relationships newly generated by the fixed signal value.
2. The method for designing a fault detection circuit according to claim 1, wherein the extraction step includes at least two of the first extraction step, the second extraction step, and the third extraction step.
3. The method for designing a fault detection circuit according to claim 2, wherein the extraction step includes all of the first extraction step, the second extraction step, and the third extraction step.
4. The method for designing a fault detection circuit according to claim 1, wherein the extraction step includes the first extraction step, and the first index is an index that corresponds to: a number of faults detected by a two-signal implication relationship between the fixed signal value and a value of a third port of a logic gate, the value of the third port of the logic gate serving as a condition for generating a new implication relationship between a first port and a second port of the logic gate; a maximum number of faults detected by a two-signal implication relationship of which a starting point is the first port; and a maximum number of faults detected by a two-signal implication relationship of which a starting point is the second port.
5. The method for designing a fault detection circuit according to claim 2, wherein the extraction step includes the first extraction step, and the first index is an index that corresponds to: a number of faults detected by a two-signal implication relationship between the fixed signal value and a value of a third port of a logic gate, the value of the third port of the logic gate serving as a condition for generating a new implication relationship between a first port and a second port of the logic gate; a maximum number of faults detected by a two-signal implication relationship of which a starting point is the first port; and a maximum number of faults detected by a two-signal implication relationship of which a starting point is the second port.
6. The method for designing a fault detection circuit according to claim 3, wherein the extraction step includes the first extraction step, and the first index is an index that corresponds to: a number of faults detected by a two-signal implication relationship between the fixed signal value and a value of a third port of a logic gate, the value of the third port of the logic gate serving as a condition for generating a new implication relationship between a first port and a second port of the logic gate; a maximum number of faults detected by a two-signal implication relationship of which a starting point is the first port; and a maximum number of faults detected by a two-signal implication relationship of which a starting point is the second port.
7. The method for designing a fault detection circuit according to claim 1, wherein the extraction step includes the second extraction step, and the second index is an index that corresponds to a number of faults detected by a two-signal implication relationship between the fixed signal value and a value of a third port of a logic gate, the value of the third port of the logic gate serving as a condition for generating a new implication relationship between a first port and a second port of the logic gate.
8. The method for designing a fault detection circuit according to claim 2, wherein the extraction step includes the second extraction step, and the second index is an index that corresponds to a number of faults detected by a two-signal implication relationship between the fixed signal value and a value of a third port of a logic gate, the value of the third port of the logic gate serving as a condition for generating a new implication relationship between a first port and a second port of the logic gate.
9. The method for designing a fault detection circuit according to claim 3, wherein the extraction step includes the second extraction step, and the second index is an index that corresponds to a number of faults detected by a two-signal implication relationship between the fixed signal value and a value of a third port of a logic gate, the value of the third port of the logic gate serving as a condition for generating a new implication relationship between a first port and a second port of the logic gate.
10. The method for designing a fault detection circuit according to claim 1, wherein the index is an index that corresponds to an occurrence probability of the fixed signal value.
11. The method for designing a fault detection circuit according to claim 2, wherein the index is an index that corresponds to an occurrence probability of the fixed signal value.
12. The method for designing a fault detection circuit according to claim 3, wherein the index is an index that corresponds to an occurrence probability of the fixed signal value.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0017]
[0018]
[0019]
[0020]
[0021]
[0022]
[0023]
[0024]
[0025]
[0026]
[0027]
[0028]
DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0029] First, a description will be given of a two-signal implication relationship. There are two methods for extracting a two-signal implication relationship that holds between nets in a circuit. One is a method that includes static learning of the configuration of a circuit, and the other is a method that uses a tool such as SAT Solver to confirm a relationship that holds in a simulation that is based on random input.
[0030] The method including the static learning of the configuration of a circuit is a method in which extraction of an implication relationship by means of direct implication and indirect implication is repeated until no more new implication relationship can be found.
[0031]
[0032] Direct implication is an implication obtained from input-output relationship of a logic gate and the transitive law. In the example shown in
a=0.fwdarw.b=0,a=0.fwdarw.c=0 (1)
b=0C∩c=0.fwdarw.d=0 (2)
a=0.fwdarw.d=0 (3)
[0033] Indirect implication is an implication that cannot be obtained from input-output relationship of a logic gate alone. For example, in the example shown in
d=1.fwdarw.a=1 (4)
[0034] The method that uses a tool such as SAT Solver to confirm a relationship that holds in a simulation that is based on random input is executed in the following steps (i), (ii), and (iii) in this order. [0035] (i) Perform a simulation with about 32000 random input patterns, for example, and record values of all nets in a circuit. [0036] (ii) Extract, with respect to all signal pairs, relationships that are equivalent or inverse to results of the simulation. [0037] (iii) Confirm whether the relationships extracted in the step (ii) are correct by using a tool such as SAT Solver. Only a relationship that is confirmed to be correct by using a tool such as SAT Solver is regarded as an implication relationship.
[0038]
[0039] Next, a description will be given of a three-signal implication relationship. By extracting, with respect to all signals in a target circuit for fault detection, a two-signal implication relationship that holds in a case where a value of each signal is 0 and a two-signal implication relationship that holds in a case where the value of each signal is 1, it is possible to extract all three-signal implication relationships.
[0040] However, a target circuit for fault detection having a larger circuit scale has a larger number of signals therein and thus it will require a longer period of time to extract implication relationships therefrom.
[0041] Thus, according to the present embodiment, in a method for designing a fault detection circuit, there is introduced an index for selecting a fixed signal value to be used in extracting a three-signal implication relationship. By extracting one or some but not all of three-signal implication relationships that hold between nets in a target circuit for fault detection by using a fixed signal value selected based on an appropriate index, it is possible to extract a three-signal implication relationship that is high in fault-detection capability. Thereby, without extracting all the three-signal implication relationships, it is possible to design a fault detection circuit that has high fault-detection capability.
[0042] The inventor of the present invention analyzed three-signal implication relationships, and found out that many three-signal implication relationships are attributable to a new implication relationship between input and output of a logic gate caused by a fixed signal value.
[0043] For example, between input and output ports of a two-input AND gate G11 shown in
[0044] As shown in
[0045] A three-input AND gate G12 shown in
[0046] A new implication relationship is generated not only between input and output ports, but also between two input ports. The two-input AND gate G11 shown in
[0047] Further, in complex logic gates such as the three-input AND-NOR gate G14 shown in
[0048] A signal value in a target circuit for fault detection that is determined by a fixed signal value will all be identified with information of a two-signal implication relationship. Thus, a new implication relationship generated between input and output of a logic gates in the target circuit for fault detection also will all be identified by referring to a rule that defines an implication relationship newly generated in each of the logic gates.
[0049] From combinations of fixed signal values and newly generated implication relationships, various three-signal implication relationships are generated. Three-signal implication relationships can be classified into three cases as shown in
[0050] A two-signal implication relationship IM1 is a two-signal implication relationship between a signal value (a fixed signal value) fixed in a net N1 in a target circuit for fault detection and a value of a third port P3 of a logic gate G21, the value of the third port P3 of the logic gate G21 serving as a condition for generating a new implication relationship between a first port P1 and a second port P2 of the logic gate G21. Note that the third port P3 may include a plurality of third ports P3. A two-signal implication relationship IM2 is a two-signal implication relationship of which a starting point is the first port P1 and of which an end point is a net N2 in the target circuit for fault detection. A two-signal implication relationship IM3 is a two-signal implication relationship of which a starting point is the second port P2 and of which an end point is a net N3 in the target circuit for fault detection.
[0051] A first case shown in
[0052] In the first case, a number of abnormalities detected by a three-signal implication relationship that holds between the nets N1 to N3 in the target circuit for fault detection is equal to a total of numbers of abnormalities detected by the two-signal implication relationships IM1 to IM3. And, a plurality of candidates exist for the net N2, and a plurality of candidates exist for the net N3 as well.
[0053] In the method for designing a fault detection circuit according to the present embodiment, a first extraction step is executed in which three-signal implication relationships corresponding to the first case constitute a population for extraction, a fixed signal value is selected based on a first index which corresponds to a number of faults detected by the three two-signal implication relationships IM1 to IM3, and by using the fixed signal selected, one or some but not all of the three-signal implication relationships are extracted.
[0054] Specifically, the first index is an index that corresponds to the number of faults detected by the two-signal implication relationship IM1, a maximum number of faults detected by the two-signal implication relationship IM2 of which the starting point is the first port P1, and a maximum number of faults detected by the two-signal implication relationship IM3 of which the starting point is the second port P2.
[0055] More specifically, the first index is a value obtained by multiplying a total value of the number of faults detected by the two-signal implication relationship IM1, the maximum number of faults detected by the two-signal implication relationship IM2 of which the starting point is the first port P1, and the maximum number of faults detected by the two-signal implication relationship IM3 of which the starting point is the second port P2 by an occurrence probability of the fixed signal value. Here, a occurrence probability of a fixed signal value is the probability of occurrence of the fixed signal value in the net N1 when the target circuit for fault detection is in operation.
[0056] In the first extraction step, by selecting such a fixed signal value as will cause the first index to be large, a three-signal implication relationship that is high in fault-detection capability is selected from among the three-signal implication relationships corresponding to the first case. In the first extraction step, with respect to the first index, by selecting about 5% of all fixed signal values, a three-signal implication relationship that is high in fault-detection capability can be efficiently selected from among the three-signal implication relationships corresponding to the first case.
[0057] A second case shown in
[0058] In the second case, the number of faults detected by the two-signal implication relationship IM1 is reflected in the number of abnormalities detected by the three-signal implication relationships that hold between the nets N1 to N3 in the target circuit for fault detection, but a number of detected abnormalities attributable to an implication relationship newly generated between the first port P1 and the second port P2 is unpredictable from a two-signal implication relationship.
[0059] In the method for designing a fault detection circuit according to the present embodiment, a second extraction step is executed in which three-signal implication relationships corresponding to the second case constitute a population for extraction, a fixed signal value is selected based on a second index which corresponds to the number of faults detected by the two-signal implication relationships IM1, and by using the fixed signal value selected, one or some but not all of the three-signal implication relationships are extracted.
[0060] Specifically, the second index is an index that corresponds to the number of faults detected by the two-signal implication relationship IM1.
[0061] More specifically, the second index is a value obtained by multiplying the number of faults detected by the two-signal implication relationship IM1 by the occurrence probability of the fixed signal value.
[0062] In the second extraction step, by selecting such a fixed signal value as will cause the second index to be large, a three-signal implication relationship that is high in fault-detection capability is selected from among the three-signal implication relationships corresponding to the second case. In the second extraction step, with respect to the second index, by selecting about 5% of all fixed signal values, a three-signal implication relationship that is high in fault-detection capability can be efficiently selected from among the three-signal implication relationships corresponding to the second case.
[0063] A third case shown in
[0064] In the method for designing a fault detection circuit according to the present embodiment, a third extraction step is executed in which three-signal implication relationships corresponding to the third case constitute a population for extraction, a fixed signal value is selected based on a third index which corresponds to a number of implication relationships newly generated by the fixed signal value, and by using the fixed signal value selected, one or some but not all of the three-signal implication relationships are extracted. Specifically, the third index is a value obtained by multiplying the number of newly generated implication relationships by the occurrence probability of the fixed signal value.
[0065] In the third extraction step, by selecting such a fixed signal value as will cause the third index to be large, a three-signal implication relationship that is high in fault-detection capability is selected from among the three-signal implication relationships corresponding to the third case. In the third extraction step, with respect to the third index, by selecting about 5% of all fixed signal values, a three-signal implication relationship that is high in fault-detection capability can be efficiently selected from among the three-signal implication relationships corresponding to the third case. Note that “about 5%” mentioned above is a mere example, and it can be thought that, depending on a target circuit, there may be a case where the percentage can be much smaller or larger than that.
[0066] Further, in the method for designing a fault detection circuit according to the present embodiment, a designing step is executed in which a fault detection circuit is designed by selecting such implication relations as are high in area efficiency from among the three-signal implication relationships extracted in the first to third extraction steps and a two-signal implication relationship that holds between the nets in a target circuit. Thereby, an implication checker (an abnormality detection circuit) is designed in which the three-signal implication relationships extracted in the first to third extraction steps are used. In the designing step, for example, selection is repeated, in order of area efficiency starting from an implication relationship with the highest area efficiency, until an area of the fault detection circuit reaches a predetermined value. Note that the area efficiency of an implication relationship is a rate of errors detected by the implication checker using the implication relationship with respect to a circuit area of the implication checker using the implication relationship.
[0067] The first to third extraction steps and the designing step are executed by an information processing device, for example.
[0068] In addition to the embodiments described above, the configuration of the present invention can be modified in many different forms without departing from the scope of the present disclosure. It should be understood that the foregoing embodiments are not limitative but illustrative in every respect, and that the technical scope of the present invention is not determined by the foregoing embodiments but by the claims, and should be construed to include all modifications equivalent in meaning and scope to the claims.
[0069] In the above embodiments, the first to third extraction steps are executed, but instead, only one of the first to third extraction steps may be executed, or only two of the first to third extraction steps may be executed. Note that, however, with more of the first to third extraction steps executed, more various types of target circuits can be dealt with.
[0070] The above-discussed method for designing a fault detection circuit is a method for designing a fault detection circuit configured to detect a fault in a target circuit for fault detection, the method including: an extraction step of selecting a fixed signal value based on an index, and extracting, by using the fixed signal value selected, one or some but not all of three-signal implication relationships that hold between nets in the target circuit; and a designing step of designing the fault detection circuit by selecting an implication relationship that is high in area efficiency from among the three-signal implication relationships extracted in the extraction step and a two-signal implication relationship that holds between the nets in the target circuit. Here, the extraction step includes at least one of: a first extraction step in which such ones of the three-signal implication relationships as have a fault-detection capability that is predictable from a number of faults detected by a two-signal implication relationship constitute a population for extraction, and the index is a first index which corresponds to a number of faults detected by three two-signal implication relationships; a second extraction step in which such ones of the three-signal implication relationships as have a fault-detection capability that is partly predictable from a number of faults detected by a two-signal implication relationship constitute a population for extraction, and the index is a second index which corresponds to a number of faults detected by one two-signal implication relationship; and a third extraction step in which such ones of the three-signal implication relationships as have a fault-detection capability that is unpredictable from a number of faults detected by a two-signal implication relationship constitute a population for extraction, and the index is a third index which corresponds to a number of implication relationships newly generated by the fixed signal value (a first configuration).
[0071] The method for designing a fault detection circuit according to the first configuration makes it possible to extract a three-signal implication relationship that is high in fault-detection capability.
[0072] In the method for designing a fault detection circuit according to the first configuration, the extraction step may include at least two of the first extraction step, the second extraction step, and the third extraction step (a second configuration).
[0073] The method for designing a fault detection circuit according to the second configuration is capable of dealing with a wide variety of target circuits.
[0074] In the method for designing a fault detection circuit according to the second configuration, the extraction step may include all of the first extraction step, the second extraction step, and the third extraction step (a third configuration).
[0075] The method for designing a fault detection circuit according to the third configuration is capable of dealing with a wider variety of target circuits.
[0076] In the method for designing a fault detection circuit according to any one of the first to third configurations, the extraction step may include the first extraction step, and the first index may be an index that corresponds to a number of faults detected by a two-signal implication relationship between the fixed signal value and a value of a third port (P3) of a logic gate (G21), the value of the third port P3 of the logic gate G21 serving as a condition for generating a new implication relationship between a first port (P1) and a second port (P2) of the logic gate (G21), a maximum number of faults detected by a two-signal implication relationship of which a starting point is the first port, and a maximum number of faults detected by a two-signal implication relationship of which a starting point is the second port (a fourth configuration).
[0077] In the method for designing a fault detection circuit according to any one of the first to fourth configurations, the extraction step may include the second extraction step, and the second index may be an index that corresponds to a number of faults detected by a two-signal implication relationship between the fixed signal value and a value of a third port (P3) of a logic gate, the value of the third port (P3) of the logic gate serving as a condition for generating a new implication relationship between a first port (P1) and a second port (P2) of the logic gate (G21) (a fifth configuration).
[0078] In the method for designing a fault detection circuit according to any one of the first to fifth configurations, the index may be an index corresponding to an occurrence probability of the fixed signal value (a sixth configuration).