JPH07159499A - Judging method for fundamental undetected failure of logic circuit, and test pattern production method - Google Patents

Judging method for fundamental undetected failure of logic circuit, and test pattern production method

Info

Publication number
JPH07159499A
JPH07159499A JP5302799A JP30279993A JPH07159499A JP H07159499 A JPH07159499 A JP H07159499A JP 5302799 A JP5302799 A JP 5302799A JP 30279993 A JP30279993 A JP 30279993A JP H07159499 A JPH07159499 A JP H07159499A
Authority
JP
Japan
Prior art keywords
output
input
circuit
gate
signal line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP5302799A
Other languages
Japanese (ja)
Inventor
Miyako Tandai
三弥子 旦代
Takahiro Nakada
孝広 中田
Takao Niiya
隆夫 新舎
Takao Nishida
隆夫 西田
Jun Matsushima
潤 松嶋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP5302799A priority Critical patent/JPH07159499A/en
Publication of JPH07159499A publication Critical patent/JPH07159499A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To efficiently judge fundamental undetected failure of a logic circuit of an operator system and producing test patterns. CONSTITUTION:In failure diagnosis of a logic circuit of an operator system, whether the failure is an fundamental undetected failure or not is judged in the following procedure. First, the objective logic circuit is separated into some combined circuits and each separated circuit is converted into equivalent circuit consisting of a single kind of basic gates. Then, this equivalent circuit is converted into a single output circuits outputting true value only to an input pattern for detecting a failure. EOR, ENOR logics are recognized, EOR, ENOR logics are simplified and the single output circuit is simplified. Furthermore, in this simplified circuit, whether an input pattern making the circuit output 1 exists or not is judged. Based on the judgement result from each separation circuit, whether or not the objective failure is a fundamental undetected failure in the whole circuits is judged.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、論理回路の故障診断方
法に関し、特に組合せ回路からなる論理回路の原理的未
検出故障判定方法及びテストパターン生成方法に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method of diagnosing a failure in a logic circuit, and more particularly to a method for determining a principle undetected failure of a logic circuit composed of combinational circuits and a test pattern generating method.

【0002】[0002]

【従来の技術】近年、論理回路の大規模化が進むにつれ
て、論理回路の故障診断方式の主流は、論理回路全体を
対象に直接故障診断データを生成する方式から、論理回
路を複数の組合せ回路に分割し、各組合せ回路ごとに部
分的な故障診断データを生成し、それらを編集すること
により論理回路全体の故障診断データを生成するスキャ
ン設計方式へ移行しつつある。この移行に伴い、故障診
断の対象となる回路も順序回路から組合せ回路に変わ
り、組合せ回路用の故障診断データ生成方式、特にその
中核をなすテストパターン生成方法及び故障シミュレー
ション方法が重要な課題になっている。組合せ回路用の
テストパターン生成方法としては、現在までにブール微
分法、Dアルゴリズム、PODEM(Path Oriented DE
cision Making)、FAN(FANout-oriented test gene
ration algorithm)等が提案されており、検出率が高い
テストパターンを生成できるようになっている。FAN
アルゴリズムに基づいたテストパターン生成方法は、
「アイ・イー・イー・イー トランザクション オン
コンピュータ,1983年12月,NO.12,VOL.C-32,
第1137−1144頁(IEEE TRANSACTIONS ON COMPU
TERS,VOL.C-32,NO.12,DECEMBER 1983,pp.1137-1144)」
に記載されている。しかし、未検出故障に関しては、テ
ストパターンが存在していても、それを生成できなかっ
たのか、或いは、原理的にテストパターンが存在しない
ために未検出なのかが不明であることが多い。これは、
テストパターン生成問題がNP完全問題であり、最悪の
場合には回路規模の指数のオーダーの処理時間がかかる
ため、途中でテストパターン生成を諦めてしまうためで
ある。このような場合、テストパターンが存在する故障
に対してはテストパターンを効率良く生成し、原理的に
テストパターンの存在しない故障に対しては、原理的未
検出故障であると判定する方法がある。この方法につい
ては、現在までに、M.H.Schulz 等の方法が「アイ・イ
ー・イー・イー トランザクション オン コンピュー
タ−エイデッド デザイン,1989年7月,NO.7,VO
L.8,第811−816頁(IEEE TRANSACTIONS ON COMP
UTER-AIDED DESIGN,VOL.8,NO.7,JULY 1989,pp.811-81
6)」に、回路の簡約手法を用いた原理的未検出故障判
定方法が特開平5−5774号公報に記載されている。
M.H.Schulz等の提案した方法は、SOCRATESと呼
ばれるテストパターン生成システムに拡張含意操作と一
意活性化の機能を付加することにより、論理値が一意に
決まるのに従来の含意操作等では論理値を定めることが
できなかった信号線に論理値を設定している。これによ
り、バックトラックの必要性を早期に把握でき、全入力
パターンの空間における解(テストパターン)を探索す
る範囲を狭めることができるので、従来より効率的なテ
ストパターン生成と原理的未検出故障の摘出が可能であ
る。ゲートの入力信号線の論理値によりそのゲートの出
力信号線の論理値が一意的に定まる場合にその出力信号
線にその論理値を割当てる、或いはゲートの出力信号線
の論理値によりそのゲートの入力信号線の論理値が一意
的に定まる場合にその入力信号線にその論理値を割当て
るのが従来の含意操作である。これに対して、拡張含意
操作とは、それぞれが必ずしもあるゲートの入力信号線
と出力信号線という関係にない2組の信号線に対して、
一方の組の信号線の論理値により、もう一方の組の信号
線の論理値が一意的に定まる場合にその論理値を割当て
る操作のことである。図2は、拡張含意操作の一例を示
す図である。図2において、1m及び2mはANDゲー
ト、3m、4m、5m、及び6mは信号線を表す。図2
(a)において、信号線4mの論理値は0になってい
る。この場合、信号線5m及び6mの論理値は一意に定
まらないが、ANDゲート1mと2mは同じ論理を表現
しているため、信号線3mと4mは常に同じ論理値をと
らなければならない。したがって、図2(b)に示すよ
うに信号線3mの論理値に0を割当てる。一意活性化と
は、故障信号が必ず通るゲートを全て活性化することで
ある。すなわち、故障信号が必ず通るゲートの入力信号
線の内、故障信号の絶対到達しない入力信号線に信号値
を割当てる場合、そのゲートがANDまたはNANDな
らば1を、ORまたはNORならば0を割当てる。図3
は、一意活性化の一例を示す図である。図3において、
1n、2n、6n、7n、及び8nはANDゲート、3
n、4n、及び5nはORゲート、9nは仮定故障箇
所、10n、11n、及び12nは信号線を表す。図3
(a)において、9nの論理値は0/1(正常回路では
0、故障回路では1)である。テストパターンを生成す
るためには、この故障信号を出力エッジまで伝播しなけ
ればならない。図3(a)の回路ではゲート2n、5
n、及び8nは故障信号が出力エッジまで伝播するため
に必ず通らなければならないゲートである。図3(b)
は信号線10n、12nに1を、信号線11nに0を割
当て、ゲート2n、5n、及び8nを活性化した状態を
表す。一方、ゲート3nと4n及びゲート6nと7n
は、そのいずれかのゲートを信号が通過するか現在のと
ころ不明であるため、信号値の割当ては行わない。回路
の簡約手法を用いた方法は、原理的未検出故障判定問題
の問題「回路の出力は常に0か?」への変換と対象回路
の簡約により原理的未検出故障判定及びテストパターン
生成を困難にしている回路内の冗長性を除去することに
より効率的に原理的未検出故障判定及びテストパターン
生成を行う方法である。
2. Description of the Related Art In recent years, as the scale of logic circuits has increased, the mainstream of fault diagnosis methods for logic circuits is to directly generate fault diagnosis data for the entire logic circuit. The scan design method is being shifted to one in which partial fault diagnosis data is generated for each combinational circuit and is edited to generate fault diagnosis data for the entire logic circuit. With this transition, the circuit to be subjected to the fault diagnosis is also changed from the sequential circuit to the combinational circuit, and the fault diagnosis data generation method for the combinational circuit, particularly the test pattern generation method and the fault simulation method, which are the core of the method, becomes an important issue. ing. To date, test pattern generation methods for combinational circuits have included Boolean differentiation, D algorithm, and PODEM (Path Oriented DE).
cision making), FAN (FAN out-oriented test gene
ration algorithm) has been proposed so that a test pattern with high detection rate can be generated. Fan
The test pattern generation method based on the algorithm is
"I-E-E-Transaction On
Computer, December 1983, NO.12, VOL.C-32,
Pp. 1137-1144 (IEEE TRANSACTIONS ON COMPU
TERS, VOL.C-32, NO.12, DECEMBER 1983, pp.1137-1144) "
It is described in. However, regarding an undetected failure, it is often unclear whether the test pattern, even if it exists, could not be generated or is undetected because the test pattern does not exist in principle. this is,
This is because the test pattern generation problem is the NP perfection problem, and in the worst case, it takes a processing time of the order of the exponent of the circuit scale, so that the test pattern generation is given up midway. In such a case, there is a method of efficiently generating a test pattern for a fault in which a test pattern exists, and determining a fault not having a test pattern in principle as a principle undetected fault. . Regarding this method, up to now, MH Schulz et al.'S method has been described as “IEE transaction on computer-aid design, July 1989, NO.7, VO.
L.8, pp. 811-816 (IEEE TRANSACTIONS ON COMP
UTER-AIDED DESIGN, VOL.8, NO.7, JULY 1989, pp.811-81
6) ”, a principle undetected failure determination method using a circuit simplification method is described in JP-A-5-5774.
The method proposed by MH Schulz et al. Defines the logical value uniquely by the conventional implication operation, etc. by adding the function of extended implication operation and unique activation to the test pattern generation system called SOCRATES. The logic value is set to the signal line that could not be set. As a result, the need for backtracking can be grasped at an early stage, and the range of searching for a solution (test pattern) in the space of all input patterns can be narrowed, resulting in more efficient test pattern generation and theoretical undetected failure than in the past. Can be extracted. When the logical value of the output signal line of the gate is uniquely determined by the logical value of the input signal line of the gate, the logical value is assigned to the output signal line, or the input of the gate is input by the logical value of the output signal line of the gate A conventional implication operation is to assign a logical value to an input signal line when the logical value of the signal line is uniquely determined. On the other hand, the extended implication operation is performed on two sets of signal lines that are not necessarily in the relationship of the input signal line and the output signal line of a certain gate,
When the logical value of the signal line of one set uniquely determines the logical value of the signal line of the other set, it is an operation of assigning the logical value. FIG. 2 is a diagram showing an example of the extended implication operation. In FIG. 2, 1m and 2m are AND gates, 3m, 4m, 5m, and 6m are signal lines. Figure 2
In (a), the logical value of the signal line 4m is 0. In this case, the logical values of the signal lines 5m and 6m are not uniquely determined, but since the AND gates 1m and 2m represent the same logic, the signal lines 3m and 4m must always take the same logical value. Therefore, as shown in FIG. 2B, 0 is assigned to the logical value of the signal line 3m. Unique activation means activating all gates through which a failure signal must pass. That is, when assigning a signal value to an input signal line of a gate through which a failure signal always passes, to which the failure signal never reaches, assign 1 if the gate is AND or NAND, and assign 0 if the gate is OR or NOR. . Figure 3
FIG. 6 is a diagram showing an example of unique activation. In FIG.
1n, 2n, 6n, 7n, and 8n are AND gates, 3
n, 4n, and 5n are OR gates, 9n is a hypothetical failure point, 10n, 11n, and 12n are signal lines. Figure 3
In (a), the logic value of 9n is 0/1 (0 in a normal circuit, 1 in a faulty circuit). This fault signal must be propagated to the output edge in order to generate the test pattern. In the circuit of FIG. 3A, the gates 2n and 5
n and 8n are gates that must pass through in order for the fault signal to propagate to the output edge. Figure 3 (b)
Indicates that 1 is assigned to the signal lines 10n and 12n, 0 is assigned to the signal line 11n, and the gates 2n, 5n, and 8n are activated. On the other hand, gates 3n and 4n and gates 6n and 7n
Does not assign a signal value because it is currently unknown whether the signal passes through any of its gates. In the method using the circuit simplification method, it is difficult to determine the principle undetected failure and generate the test pattern by converting the problem of the principle undetected failure judgment problem to "Is the output of the circuit always 0?" And reducing the target circuit. This is a method for efficiently performing the principle of undetected failure determination and test pattern generation by removing the redundancy in the circuit.

【0003】[0003]

【発明が解決しようとする課題】上記従来技術で述べた
M.H.Schulz等の方法及び回路の簡約手法を用いた方法
は、テストパターン生成もしくは原理的未検出故障判定
の困難な故障に対して大きな効果を持つが、演算器系の
論理回路に対しては検出率向上が未だ十分でない、とい
う問題点がある。例えば、回路の簡約手法を用いた方法
では、回路をNORゲートと入力エッジのみで構成す
る。2入力ExclusiveOR論理(以下EOR論理と略す)
A+B及び3入力EOR論理A+B+CはNORゲート
によりそれぞれ図4(a)及び(b)のように構成され
る。又、EOR論理の結合(A+B)+C及びA+(B
+C)はNORゲートによりそれぞれ図4(c)及び
(d)のように構成される。EOR論理の性質により
(A+B)+C=A+(B+C)=A+B+Cである
が、回路の簡約手法を用いた方法では図4(b)、
(c)、及び(d)のNORゲート表現が互いに等価な
論理を表していることが認識できない。演算器系の論理
回路にはEOR論理が多数含まれるため、EOR論理の
性質に基づく回路内の情報を把握できないということ
は、演算器系のテストパターン生成及び原理的未検出故
障判定を効率的に行えないということを意味する。本発
明の目的は、このような問題点を改善し、回路内のEO
R論理を認識し、EOR論理の性質に基づく回路の冗長
性を統一的に把握し、冗長な部分を除去することによ
り、回路の簡約手法を用いた原理的未検出故障判定を効
率的に行うことが可能な論理回路の原理的未検出故障判
定方法及びテストパターン生成方法を提供することにあ
る。
DISCLOSURE OF THE INVENTION Problems to be Solved by the Invention
The method such as MHSchulz and the method using the circuit simplification method have a great effect on the faults for which it is difficult to generate test patterns or determine undetected faults in principle. There is a problem that the improvement is not yet sufficient. For example, in the method using the circuit simplification method, the circuit is composed of only NOR gates and input edges. 2-input Exclusive OR logic (abbreviated as EOR logic below)
A + B and 3-input EOR logic A + B + C are configured by NOR gates as shown in FIGS. 4 (a) and 4 (b), respectively. Also, the combination of EOR logic (A + B) + C and A + (B
+ C) is configured by NOR gates as shown in FIGS. 4C and 4D, respectively. Due to the nature of the EOR logic, (A + B) + C = A + (B + C) = A + B + C, but in the method using the circuit reduction method, as shown in FIG.
It cannot be recognized that the NOR gate expressions in (c) and (d) represent mutually equivalent logics. Since the logic circuit of the arithmetic unit system includes a large number of EOR logics, the inability to grasp the information in the circuit based on the property of the EOR logic means that the test pattern generation of the arithmetic unit system and the principle undetected failure judgment are efficient. It means that you cannot do it. The object of the present invention is to remedy such problems and to improve EO in a circuit.
Recognizing the R logic, grasping the redundancy of the circuit based on the property of the EOR logic in a unified manner, and removing the redundant part, the principle of undetected failure judgment using the circuit simplification method is efficiently performed. It is an object of the present invention to provide a theoretical undetected failure determination method and a test pattern generation method for a logic circuit.

【0004】[0004]

【課題を解決するための手段】上記目的を達成するた
め、本発明の論理回路の原理的未検出故障判定方法及び
テストパターン生成方法は、以下に述べるステップを実
行することに特徴がある。すなわち、対象となる論理回
路を分割した組合せ回路の内、対象となる未検出故障箇
所を含むものを全て抽出する第1ステップ、各分割回路
をNORゲートのみで表現した等価回路に変換する第2
ステップ、第2ステップで変換された等価回路において
対象未検出故障を検出する入力パターン(テストパター
ン)に対しては出力が1になり、それ以外の入力パター
ンに対しては出力が0になるような1出力回路にこの等
価回路を変換する第3ステップ、および第3ステップで
得られた1出力回路の出力が1になる入力パターンが存
在するか否かを判定する第4ステップを実行する。特に
第4ステップは、対象1出力回路内のEOR論理及びE
NOR論理の抽出・簡約を行う第1サブステップ、第1
サブステップで得られた回路内の同一論理を表す複数ゲ
ートを一つのゲートで置換させる第2サブステップ、第
2サブステップで得られた回路において互いに独立に0
又は1となる出力を制御できる回路内のゲートの組で、
このゲートの組より入力側に信号線の分岐点が存在する
ようなものを抽出することにより、その分岐点から到達
可能な回路領域とその分岐点から到達不可能な回路領域
の境界にある信号線(先頭信号線)を、抽出したゲート
の組より出力側に更新する第3サブステップ、第3サブ
ステップで得られた回路内の冗長な論理を簡約する第4
サブステップ、第4サブステップで得られた回路で信号
線の論理値割当てを試行することにより該1出力回路の
出力が1になる入力パターンが存在するか否かを判定す
る第5サブステップからなる。さらに、各分割回路にお
ける判定の結果、何れの分割回路に対してもテストパタ
ーンが存在しなければ、その故障はテストパターンが全
体回路に存在しない故障、すなわち、原理的未検出故障
であると判定し、何れかの分割回路においてテストパタ
ーンが存在すれば、このテストパターンを出力する第5
ステップを実行する。
In order to achieve the above object, the principle undetected failure determination method and test pattern generation method for logic circuits of the present invention are characterized by executing the following steps. That is, of the combinational circuits obtained by dividing the target logic circuit, the first step of extracting all those including the target undetected fault location, and the second step of converting each divided circuit into an equivalent circuit expressed only by NOR gates.
The output becomes 1 for the input pattern (test pattern) that detects the target undetected fault in the equivalent circuit converted in the step and the second step, and the output becomes 0 for the other input patterns. The third step of converting this equivalent circuit into a single output circuit, and the fourth step of determining whether or not there is an input pattern in which the output of the single output circuit obtained in the third step is 1. In particular, the fourth step involves EOR logic and E in the target 1 output circuit.
First sub-step of extracting and reducing NOR logic, first
A second substep in which a plurality of gates representing the same logic in the circuit obtained in the substep are replaced by one gate, and 0 is independently set in the circuit obtained in the second substep.
Or a set of gates in the circuit that can control the output to be 1,
Signals at the boundary between the circuit area reachable from the branch point and the circuit area unreachable from the branch point are extracted by extracting a signal line branch point on the input side from this set of gates. A third sub-step of updating the line (leading signal line) to the output side from the set of extracted gates, and a fourth sub-step of reducing the redundant logic in the circuit obtained in the third sub-step.
From the fifth sub-step, it is judged whether or not there is an input pattern in which the output of the one-output circuit is 1 by trying the logic value assignment of the signal line in the circuit obtained in the sub-step and the fourth sub-step. Become. Further, as a result of the judgment in each divided circuit, if the test pattern does not exist in any of the divided circuits, it is judged that the failure is a failure in which the test pattern does not exist in the whole circuit, that is, a principle undetected failure. If a test pattern exists in any of the divided circuits, the fifth test pattern is output.
Perform the step.

【0005】[0005]

【作用】本発明においては、対象論理回路をいくつかの
組合せ回路に分割し、各分割回路を一種類の基本ゲート
からなる等価回路に変換する。次に、その等価回路を、
故障を検出する入力パターンに対してのみ真値を出力す
る1出力回路に変換する。さらに、その1出力回路内の
EOR論理及びENOR論理を認識してそれらを簡約
し、得られた回路の出力が1になるような入力パターン
が存在するか否かを判定する。より具体的には、対象1
出力回路内のEOR論理及びENOR論理の抽出・簡約
を行い、得られた回路内の同一論理を表す複数ゲートを
一つのゲートで置換させ、こうして得られた回路におい
て、互いに独立に0又は1となる出力を制御できる回路
内のゲートの組で、このゲートの組より入力側に信号線
の分岐点が存在するようなものを抽出することにより、
その分岐点から到達可能な回路領域とその分岐点から到
達不可能な回路領域の境界にある先頭信号線を、抽出し
たゲートの組より出力側に更新し、こうして得られた回
路内の冗長な論理を簡約し、さらに、得られた回路で信
号線の論理値割当てを試行することにより前記1出力回
路の出力が1になる入力パターンが存在するか否かを判
定する。その結果、何れの分割回路に対してもテストパ
ターンが存在しなければ、原理的未検出故障と判定し、
何れかの分割回路においてテストパターンが存在すれ
ば、そのテストパターンを出力する。このように、回路
内のEOR論理及びENOR論理を認識し、EOR論理
及びENOR論理の性質に基づく回路内の冗長な論理を
簡約することにより、演算器系の論理回路の原理的未検
出故障判定を難しくしている回路の冗長性を統一的に捉
え、且つ、冗長な回路部分を除去し、効率的に原理的未
検出故障判定を行うことを可能にする。また、この判定
結果を用いて容易にテストパターンを生成することがで
きる。
In the present invention, the target logic circuit is divided into some combinational circuits, and each divided circuit is converted into an equivalent circuit composed of one kind of basic gate. Next, the equivalent circuit is
It is converted into a one-output circuit that outputs a true value only for an input pattern that detects a failure. Further, the EOR logic and the ENOR logic in the one-output circuit are recognized and reduced, and it is determined whether or not there is an input pattern such that the output of the obtained circuit becomes 1. More specifically, target 1
The EOR logic and the ENOR logic in the output circuit are extracted and reduced, and a plurality of gates representing the same logic in the obtained circuit are replaced by one gate. In the circuit thus obtained, 0 or 1 is independently provided. By extracting a set of gates in the circuit that can control the output, such that there is a branch point of the signal line on the input side from this set of gates,
The leading signal line at the boundary between the circuit area reachable from the branch point and the circuit area unreachable from the branch point is updated to the output side from the set of extracted gates, and the redundant circuit in the circuit thus obtained is updated. The logic is simplified, and further, the logic obtained is tried to assign the logic value of the signal line to determine whether or not there is an input pattern in which the output of the one-output circuit becomes 1. As a result, if there is no test pattern for any of the divided circuits, it is determined as a principle undetected failure,
If a test pattern exists in any of the divided circuits, the test pattern is output. In this way, by recognizing the EOR logic and the ENOR logic in the circuit and simplifying the redundant logic in the circuit based on the properties of the EOR logic and the ENOR logic, the principle of undetected failure determination of the logic circuit of the arithmetic unit system It is possible to uniformly grasp the redundancy of the circuit that makes it difficult, eliminate the redundant circuit portion, and efficiently perform the principle undetected failure determination. Moreover, a test pattern can be easily generated using this determination result.

【0006】[0006]

【実施例】以下、本発明の一実施例を図面により説明す
る。図5は、本発明の論理回路の原理的未検出故障判定
方法及びテストパターン生成方法を適用する計算機シス
テムの構成図である。図5において、処理装置10に
は、本実施例の処理プログラムである原理的未検出故障
判定プログラム20が格納されており、外部記憶装置に
は、本実施例の故障判定の対象となる論理回路データ3
0、回路中の故障に関する仮定故障テーブル40、4
5、及び出力結果であるテストパターン・データ50が
格納されている。この論理回路データ30を図6に示
し、出力仮定故障テーブル40、入力仮定故障テーブル
45、及びテストパターン・データ50の構成をそれぞ
れ図7の(a1)、(a2)、及び(b)に示す。図6
に示す論理回路データ30は、故障判定の対象となる論
理回路を各ゲート間の接続関係として表したものであ
り、データはテーブル形式で格納されている。各ゲート
に対応したデータは、以下に述べるようなフィールドか
ら構成されている。項番(No.)31は各ゲートに対
応したテーブルのエントリを示す番号である。要素(E
LEMENT)32は、各ゲートを識別するID32a
とそのゲートの種類(KIND)32bから構成されて
いる。出力ゲート(OUTPUT GATE)33のフ
ィールドには、要素32の出力値33a、要素32の出
力側に接続されているゲートの個数(OUT NU
M.)33b及びそれらゲートのID33c、33dが
格納されている。入力ゲート(INPUT GATE)
34のフィールドには、要素32の入力側に接続されて
いるゲートの個数(IN NUM.)34a、それらゲ
ートのID(I1、I2・・・)34b、34d及び入
力値(V1、V2・・・)34c、34eが格納されて
いる。制御データ(CONTROL DATA)35の
フィールドには、要素32の出力信号線が束縛信号線、
先頭信号線、或いは先頭信号線以外の非束縛信号線のい
ずれかを示す情報35aが登録される。出力段数(PO
LEVEL)35bのフィールドには、要素32の回
路の出力ゲートからのゲート段数が登録される。また、
図6の各エントリには、一例として、後述の図13の
(a)に示す論理回路に対応したデータが格納されてい
る。なお、図6に示すように、論理回路データ30には
入出力エッジも登録される。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 5 is a configuration diagram of a computer system to which the principle undetected failure determination method of logic circuit and test pattern generation method of the present invention is applied. In FIG. 5, a processing device 10 stores a principle undetected failure determination program 20 which is a processing program of the present embodiment, and an external storage device includes a logic circuit which is a target of the failure determination of the present embodiment. Data 3
0, hypothetical failure table 40, 4 regarding failures in the circuit
5 and the test pattern data 50 which is the output result are stored. The logic circuit data 30 is shown in FIG. 6, and the configurations of the output assumptive failure table 40, the input assumptive failure table 45, and the test pattern data 50 are shown in (a1), (a2), and (b) of FIG. 7, respectively. . Figure 6
The logic circuit data 30 shown in (1) represents the logic circuit to be subjected to the failure determination as the connection relationship between the gates, and the data is stored in a table format. The data corresponding to each gate is composed of fields as described below. The item number (No.) 31 is a number indicating an entry in the table corresponding to each gate. Element (E
LEMENT) 32 is an ID 32a for identifying each gate
And its gate type (KIND) 32b. In the field of the output gate (OUTPUT GATE) 33, the output value 33a of the element 32 and the number of gates connected to the output side of the element 32 (OUT NU
M. ) 33b and IDs 33c and 33d of these gates are stored. Input gate
In the field 34, the number of gates (IN NUM.) 34a connected to the input side of the element 32, IDs (I1, I2 ...) 34b, 34d of these gates, and input values (V1, V2 ...・) 34c and 34e are stored. In the field of control data (CONTROL DATA) 35, the output signal line of the element 32 is a bound signal line,
Information 35a indicating either the head signal line or an unbound signal line other than the head signal line is registered. Number of output stages (PO
The number of gate stages from the output gate of the circuit of the element 32 is registered in the field of LEVEL) 35b. Also,
As an example, each entry in FIG. 6 stores data corresponding to the logic circuit shown in FIG. As shown in FIG. 6, input / output edges are also registered in the logic circuit data 30.

【0007】図7の(a1)、(a2)に示す出力仮定
故障テーブル40と入力仮定故障テーブル45には、論
理回路を診断するために仮定した故障に関する情報テー
ブルがテーブル形式で格納されている。この図7(a
1)の出力仮定故障テーブル40において、各出力故障
に対応したデータは、以下に述べるようなフィールドか
ら構成されている。項番(No.)41は各出力故障に
対応したテーブルのエントリを示す番号である。故障
(FAULT)42は、各出力故障がどのゲートの出力
信号線上に仮定されているのかを識別するID42aと
その故障の種類(KIND)42bから構成されてい
る。関連領域(RELATED REGION)43の
フィールドには、故障42を含む関連領域の出力ゲート
のID43a、及びそのID43aを出力ゲートとする
関連領域において故障42が原理的未検出故障と判定さ
れたか、テストパターンが存在すると判定されたか、或
いは、まだ判定処理が行われていないかのいずれの状態
にあるかを示す情報が格納されている。また、図7(a
2)の入力仮定故障テーブル45において、各入力故障
に対応したデータは、以下に述べるようなフィールドか
ら構成されている。項番(No.)46は各入力故障に
対応したテーブルのエントリを示す番号である。故障
(FAULT)47は、各入力故障がどのゲートの入力
信号線上に仮定されているのかを識別するID47a、
要素47aの仮定故障入力信号線がどの入力ゲートに接
続されているかを識別するINPUT ID47b、及
びその故障の種類(KIND)47cから構成されてい
る。関連領域(RELATED REGION)48の
フィールドには、故障47を含む関連領域の出力ゲート
のID48a、及びそのID48aを出力ゲートとする
関連領域において故障47が原理的未検出故障と判定さ
れたか、テストパターンが存在すると判定されたか、或
いは、まだ判定処理が行われていないかのいずれの状態
にあるかを示す情報48bが格納されている。また、図
7(a1)のエントリには、一例として、後述の図13
(a)に示す論理回路に含まれている故障を出力故障
(ゲート6bの出力信号線の0縮退故障)とみなした場
合のデータが格納されている。図7(a2)のエントリ
には、一例として、上記の故障を入力故障(ゲート5b
の入力信号線12bの0縮退故障)とみなした場合のデ
ータが格納されている。また、図7(b)に示したテス
トパターン・データ50には、本実施例の故障判定の結
果得られるテストパターン・データ、すなわち入力エッ
ジに入力すべきデータがテーブル形式で格納されてい
る。各入力エッジに対応したデータは、以下に述べるよ
うなフィールドから構成されている。項番(No.)5
1は各入力エッジに対応したテーブルのエントリを示す
番号である。ID52は各入力エッジの識別子である。
設定値(VALUE)53は入力エッジに設定すべき値
である。ケースNo.(TEST CASE No.)
54は種々のテストパターンを識別するための番号であ
る。故障(FAULT)55には、ケースNo.(TE
ST CASE No.)54のテストパターンがどの
仮定故障に対して生成されたかを示す仮定故障テーブル
中のエントリ番号41が格納されている。図7(b)の
エントリには、一例として、後述の図13(a)に示す
論理回路の入力エッジに対応したデータが格納されてい
る。
Information output tables relating to faults assumed for diagnosing logic circuits are stored in a table format in the output hypothetical fault table 40 and the input hypothetical fault table 45 shown in (a1) and (a2) of FIG. . This FIG.
In the output assumed failure table 40 of 1), the data corresponding to each output failure is composed of the fields described below. The item number (No.) 41 is a number indicating the entry of the table corresponding to each output failure. The fault (FAULT) 42 is composed of an ID 42a for identifying the output signal line of which gate each output fault is supposed to be and a fault type (KIND) 42b. In the field of the related area (RELATED REGION) 43, the ID 43a of the output gate of the related area including the failure 42, and whether the failure 42 is determined to be a principle undetected failure in the related area having the ID 43a as an output gate, or a test pattern Is stored, or information indicating whether it is in a state in which it is determined that there is an item or whether the determination process has not been performed is stored. In addition, FIG.
In the input assumed failure table 45 of 2), the data corresponding to each input failure is composed of the fields described below. The item number (No.) 46 is a number indicating the entry of the table corresponding to each input failure. The fault (FAULT) 47 is an ID 47a for identifying on which input signal line of each gate each input fault is supposed.
It is composed of an INPUT ID 47b for identifying which input gate the hypothetical fault input signal line of the element 47a is connected to, and a fault type (KIND) 47c thereof. In the field of the related area (RELATED REGION) 48, the ID 48a of the output gate of the related area including the failure 47, and whether the failure 47 is determined to be a principle undetected failure in the related area having the output gate of the ID 48a, or a test pattern Is stored, or information 48b indicating whether or not the state is present, or whether the determination process is not yet performed is stored. Further, the entry of FIG. 7 (a1) has an example of FIG.
Data is stored when the fault included in the logic circuit shown in (a) is regarded as an output fault (0 stuck-at fault of the output signal line of the gate 6b). In the entry of FIG. 7 (a2), as an example, the above failure is input failure (gate 5b
The data is stored when it is regarded as a 0 stuck-at fault of the input signal line 12b. Further, in the test pattern data 50 shown in FIG. 7B, test pattern data obtained as a result of the failure determination of this embodiment, that is, data to be input to the input edge is stored in a table format. The data corresponding to each input edge is composed of fields as described below. Item number (No.) 5
1 is a number indicating the entry of the table corresponding to each input edge. ID52 is an identifier of each input edge.
The set value (VALUE) 53 is a value to be set at the input edge. Case No. (TEST CASE No.)
54 is a number for identifying various test patterns. For the failure (FAULT) 55, the case No. (TE
ST CASE No. ) The entry number 41 in the contingency fault table indicating for which contingency the test pattern 54 is generated is stored. In the entry of FIG. 7B, as an example, data corresponding to the input edge of the logic circuit shown in FIG. 13A described later is stored.

【0008】先ず、本発明の第1の実施例を説明する。
図1は、本発明第1の実施例における論理回路の原理的
未検出故障判定処理の各部の流れを表す図である。1は
対象組合せ回路Xと対象未検出故障fを表している。1
に対して、問題1「故障fは回路Xで原理的未検出故障
か?」を考える。2は1の対象組合せ回路Xに対して故
障fに関する変換を行って得られた1出力組合せ回路Y
を表す。2に対して、問題2「回路Yの出力は常に0か
?」を考えると、問題1と問題2は等価な問題になる。
2’はNORゲート、EORゲート、ENORゲート、
及び入力エッジのみから構成される2の回路Yの等価回
路Y’を表す。2’に対して、問題2’「回路Y’の出
力は常に0か?」を考えると、問題1と問題2’は等価
な問題になる。4は簡約処理等により回路を簡単にする
過程を表す。5は簡約処理後の回路における論理値割当
て試行による回路の出力が1になる入力パターンの探索
を表す。この探索により問題2’の答が得られる。問題
2’の答がYESであれば、問題2と問題1の答もYE
Sであり、問題2’の答がNOであれば、問題2と問題
1の答もNOである。
First, a first embodiment of the present invention will be described.
FIG. 1 is a diagram showing the flow of each part of the principle undetected failure determination processing of the logic circuit in the first embodiment of the present invention. 1 represents the target combination circuit X and the target undetected failure f. 1
On the other hand, consider Problem 1 "Is the failure f a principle undetected failure in the circuit X?" 2 is a 1-output combination circuit Y obtained by performing a conversion on the fault f for the 1-target combination circuit X.
Represents On the other hand, considering Problem 2 “Is the output of circuit Y always 0?”, Problem 1 and Problem 2 are equivalent.
2'is a NOR gate, an EOR gate, an ENOR gate,
And an equivalent circuit Y ′ of the two circuits Y composed only of input edges. Considering the problem 2 ′ “Is the output of the circuit Y ′ always 0?” With respect to the 2 ′, the problem 1 and the problem 2 ′ are equivalent problems. Reference numeral 4 represents a process for simplifying the circuit by a reduction process or the like. Reference numeral 5 represents a search for an input pattern in which the output of the circuit becomes 1 due to the logic value assignment trial in the circuit after the reduction processing. This search gives the answer to question 2 '. If the answer to question 2'is YES, the answers to questions 2 and 1 are also YE
If S and the answer to question 2'is NO, then the answers to questions 2 and 1 are also NO.

【0009】図8は、本発明の第1の実施例における論
理回路の原理的未検出故障判定処理及びテストパターン
生成処理の概要を表すフローチャートである。なお、こ
の処理は図5の原理的未検出故障判定プログラム20に
よる。ステップ100では、全ての未検出故障に対して
関連領域を調査する。ステップ200では、まだ原理的
未検出故障判定の対象になっていない関連領域が存在す
るかどうかを調べ、存在すればステップ300へ、存在
しなければステップ1100へ分岐する。ステップ30
0では、まだ原理的未検出故障判定の対象になっていな
い関連領域を一つ選択する。ステップ400では、ステ
ップ300で選択した関連領域をNORゲートと入力エ
ッジのみで構成される等価回路に変換する。ステップ5
00では、ステップ400で変換した関連領域が未検出
故障を持つような関連領域であって、その関連領域に対
してまだ原理的未検出故障判定を行っていない故障があ
るかどうかを調べ、あればステップ600ヘ、なければ
ステップ200へ分岐する。ステップ600では、ステ
ップ400で変換した関連領域に含まれる未検出故障の
内、この関連領域に対してまだ原理的未検出故障判定を
行っていないものを一つ選択する。ステップ700で
は、ステップ600で選択した対象未検出故障がステッ
プ400で変換した関連領域において原理的未検出故障
であるかどうかを判定する。ステップ700のサブステ
ップ700aでは、ステップ400でNORゲート変換
された関連領域を、その対象未検出故障の関連領域にお
けるテストパターンに対しては出力が1になり、それ以
外の入力パターンに対しては出力が0になるような1出
力回路に変換する。ステップ700のサブステップ70
0bでは、サブステップ700aで得られた1出力回路
の出力がどんな入力パターンに対しても0になるか否か
を判定する。ステップ900では、ステップ700で対
象未検出故障を含む関連領域においてテストパターンの
生成が可能と判定されたかどうかを調べ、判定されたな
らばステップ1000へ、判定されなかったならばステ
ップ500へ分岐する。ステップ1000では、対象未
検出故障に対するテストパターンを生成する。ステップ
1100では、各未検出故障の各関連領域での判定結果
を編集し、各未検出故障が全体回路で原理的未検出故障
かどうかを判定する。
FIG. 8 is a flow chart showing the outline of the principle undetected failure judgment processing and test pattern generation processing of the logic circuit in the first embodiment of the present invention. Note that this processing is based on the principle undetected failure determination program 20 of FIG. In step 100, the relevant area is examined for all undetected faults. In step 200, it is checked whether or not there is a related area which is not yet the target of the principle undetected failure determination. If it exists, the processing branches to step 300, and if not, the processing branches to step 1100. Step 30
In 0, one related area which is not yet the target of the principle undetected failure determination is selected. In step 400, the related area selected in step 300 is converted into an equivalent circuit composed of only NOR gates and input edges. Step 5
In 00, it is checked whether or not the related area converted in step 400 is a related area having an undetected failure, and the related area is not yet subjected to the principle undetected failure determination. If so, the process branches to step 600, and if not, the process branches to step 200. In step 600, one of the undetected faults included in the related region converted in step 400, which has not been subjected to the principle undetected fault determination for this related region, is selected. In step 700, it is determined whether the target undetected fault selected in step 600 is a theoretical undetected fault in the relevant region converted in step 400. In sub-step 700a of step 700, the output becomes 1 for the test area in the relevant area of the target undetected fault of the related area subjected to the NOR gate conversion in step 400, and for the other input patterns. Convert to a 1-output circuit so that the output becomes 0. Substep 70 of step 700
At 0b, it is determined whether or not the output of the 1-output circuit obtained at sub-step 700a becomes 0 for any input pattern. In step 900, it is checked whether or not it is determined in step 700 that a test pattern can be generated in the relevant area including the target undetected failure. If yes, the process branches to step 1000, and if not, the process branches to step 500. . In step 1000, a test pattern for the target undetected fault is generated. In step 1100, the determination result of each undetected fault in each related area is edited to determine whether each undetected fault is a theoretical undetected fault in the entire circuit.

【0010】以下、図8の各ステップを詳細に説明す
る。図9は、図8のステップ100に示した関連領域調
査の詳細なフローチャートである。ステップ101で
は、未検出故障の内、未検出故障箇所を含む関連領域が
どのような範囲になるかを調査していないものが存在す
るかどうかを調べ、存在すればステップ102へ分岐
し、存在しなければ処理を終了する。ステップ102で
は、未検出故障の内、未検出故障を含む関連領域がどの
ような範囲になるかを調査していないものを一つ選択す
る。ステップ103では、ステップ102で選択した未
検出故障に関して関連領域調査を行っていないコーンが
存在するかどうかを調べ、存在すればステップ104
へ、存在しなければステップ101へ分岐する。ここ
で、コーンとは、スキャン設計方式を前提として分割さ
れた部分回路(組合せ回路)の1出力部分回路のことで
ある。ステップ104では、ステップ102で選択した
未検出故障に関して関連領域調査を行っていないコーン
を一つ選択する。ステップ105では、ステップ102
で選択した未検出故障箇所からステップ104で選択し
たコーンの出力エッジに到る全ての経路が通るようなゲ
ートの内、最も入力側にあるものをDMとし、DMを出
力とする領域RGを関連領域の候補とする。ステップ1
06から109は、この関連領域の候補が最終的に関連
領域として確定できるか否かを判定する処理である。ス
テップ106では、ゲートDMの出力先にステップ10
4で選択したコーンの出力エッジが存在するかどうかを
調べ、存在すれば領域RGは明らかに関連領域であるた
め、ステップ110へ分岐し、存在しなければステップ
107へ分岐する。ステップ107では、ゲートDMの
出力信号線の0縮退故障もしくは1縮退故障のどちらか
のテストパターンが生成済みであるかどうかを調べ、テ
ストパターンが生成済みならばステップ108へ分岐
し、0縮退故障或いは1縮退故障のいずれに対してもテ
ストパターンが生成されていないならばステップ109
へ分岐する。ステップ108では、部分回路RG内のゲ
ートDM以外の全てのゲートの該コーンにおけるファン
アウト先ゲートが全ての部分回路RGに含まれるかどう
かを調べ、含まれていればステップ110ヘ分岐し、含
まれていなければステップ109へ分岐する。ステップ
109では、ゲートDMから該コーンの出力エッジに到
る全ての経路が通るようなゲートの内、最も入力側にあ
るものを新たにDMとし、このDMを出力とする新たな
関連領域候補をRGとする。ステップ110では、関連
領域をRGに確定する。
The steps of FIG. 8 will be described in detail below. FIG. 9 is a detailed flowchart of the related area investigation shown in step 100 of FIG. In step 101, it is checked whether or not there is an undetected failure in which the range of the related area including the undetected failure part has not been checked. If not, the process ends. In step 102, one of the undetected faults, for which the range of the related region including the undetected fault has not been investigated, is selected. In step 103, it is checked whether or not there is a cone that has not been subjected to the related area check for the undetected fault selected in step 102, and if it exists, step 104
If not, the process branches to step 101. Here, the cone is a one-output partial circuit of a partial circuit (combinational circuit) divided on the premise of the scan design method. In step 104, one cone that has not been subjected to the relevant area investigation for the undetected fault selected in step 102 is selected. In step 105, step 102
The gate on the most input side among the gates through which all the paths from the undetected fault location selected in step 4 to the output edge of the cone pass is defined as DM, and the region RG that outputs DM is related. It is a candidate for the area. Step 1
Steps 06 to 109 are processes for determining whether or not the related area candidate can be finally determined as the related area. In step 106, the output destination of the gate DM is sent to step 10
It is checked whether or not the output edge of the cone selected in 4 exists, and if it exists, the region RG is obviously a related region, and therefore the process branches to step 110, and if it does not exist, the process branches to step 107. In step 107, it is checked whether or not the test pattern of the stuck-at-0 fault or the stuck-at-1 fault of the output signal line of the gate DM has been generated. If the test pattern has been generated, the process branches to step 108, and the stuck-at-0 fault occurs. Alternatively, if the test pattern has not been generated for any one stuck-at fault, step 109 is performed.
Branch to. In step 108, it is checked whether or not the fan-out destination gates in the cones of all gates other than the gate DM in the partial circuit RG are included in all the partial circuits RG. If not, the process branches to step 109. In step 109, among the gates through which all the paths from the gate DM to the output edge of the cone pass, the one on the most input side is newly set as DM, and a new related region candidate that outputs this DM is selected. RG. In step 110, the relevant area is determined to be RG.

【0011】図10は、本発明の第1の実施例における
関連領域を表す図である。1a、2a、及び3aは未検
出故障を含むコーンを、4aは未検出故障の仮定故障箇
所を表す。5a及び6aは、信号線を表し、信号線5a
及び6aにおける0縮退故障もしくは1縮退故障は検出
済みであるとする。7aは未検出故障のコーン1a及び
2aに対する関連領域、8aはコーン3aに対する関連
領域を表す。コーン1aにおいて、関連領域が確定した
時点でのDM及びRGはそれぞれ9a及び7aである。
また、図11に、図8のステップ400において使用さ
れるAND、NAND、OR、NORゲートのNORゲ
ートによる等価表現の変換例を示す。
FIG. 10 is a diagram showing a related area in the first embodiment of the present invention. 1a, 2a, and 3a represent cones including undetected faults, and 4a represents hypothetical failure locations of undetected faults. 5a and 6a represent signal lines, and the signal lines 5a
It is assumed that the 0 stuck-at fault or the 1 stuck-at fault in 6a has been detected. Reference numeral 7a represents a relevant area for the undetected cones 1a and 2a, and 8a represents a relevant area for the cone 3a. In the cone 1a, DM and RG are 9a and 7a, respectively, when the relevant region is determined.
Further, FIG. 11 shows an example of conversion of the equivalent expression of the AND gate, the NAND gate, the OR gate, and the NOR gate used in step 400 of FIG. 8 by the NOR gate.

【0012】図12は、図8のステップ700に示した
対象未検出故障の関連領域における原理的未検出故障判
定の詳細なフローチャートである。ステップ701は、
図8のステップ700aに対応し、同じくステップ70
2から706は図8のステップ700bに対応する。ス
テップ701では、図8のステップ400でNORゲー
トに変換された関連領域を、対象未検出故障のその関連
領域におけるテストパターンに対しては出力が1にな
り、それ以外の入力パターンに対しては出力が0になる
ような1出力回路に変換する。ステップ707では、ス
テップ701で得られた回路内のEOR論理及びENO
R論理を認識し、回路をNORゲートとEORゲートと
ENORゲートと入力エッジで構成される等価回路に変
換し、回路内のEORゲート及びENORゲートの簡約
を行なう。ステップ702では、ステップ701で変換
した回路内に入力の集合が全く同じ2つ以上のゲートが
存在するかどうかを調べ、存在すればそれらのゲートを
一つのゲートで置換する。ステップ703では、先頭信
号線の更新を行う。ここで、非束縛信号線の内、束縛信
号線と隣接しているものを先頭信号線と呼ぶ。非束縛信
号線とは、回路内のどの分岐点から出力側に辿っていっ
ても辿りつけない信号線のことであり、束縛信号線と
は、回路内の適当な分岐点から出力側に辿っていくと到
達可能な信号線のことである。ステップ704では、回
路内の複雑な部分を簡単にする回路の簡約処理を行う。
ステップ705では、ステップ704の簡約処理中に対
象未検出故障がその関連領域において原理的未検出故障
であると判定されたか、或いは、テストパターンの生成
が可能であると判定されたかどうかを調べ、いずれかの
判定がなされたならば処理を終了し、いずれの判定もな
されていなければステップ706へ分岐する。ステップ
706では、ステップ705で簡約処理を行った回路に
対して論理値の割当てをいろいろ試行することにより、
その関連領域において対象未検出故障が原理的未検出故
障であるか否かを判定する。
FIG. 12 is a detailed flowchart of the principle undetected failure determination in the relevant area of the target undetected failure shown in step 700 of FIG. Step 701 is
Corresponding to step 700a in FIG.
2 to 706 correspond to step 700b in FIG. In step 701, the related area converted into the NOR gate in step 400 of FIG. 8 has an output of 1 for the test pattern in the related area of the target undetected fault, and for the other input patterns. Convert to a 1-output circuit so that the output becomes 0. In step 707, EOR logic and ENO in the circuit obtained in step 701
Recognizing the R logic, converting the circuit to an equivalent circuit composed of NOR gate, EOR gate, ENOR gate and input edge, and reducing the EOR gate and ENOR gate in the circuit. In step 702, it is checked whether or not there are two or more gates having the same set of inputs in the circuit converted in step 701, and if they exist, those gates are replaced by one gate. In step 703, the head signal line is updated. Here, among the unbounded signal lines, the one adjacent to the bounded signal line is called a head signal line. An unbound signal line is a signal line that cannot be reached from any branch point in the circuit to the output side.A bound signal line is an output line that is traced from an appropriate branch point in the circuit. A signal line that can be reached as you go. In step 704, circuit simplification processing is performed to simplify complicated parts in the circuit.
In step 705, it is checked during the reduction process of step 704 whether the target undetected fault is determined to be a principle undetected fault in the relevant area, or whether it is determined that a test pattern can be generated. If any determination is made, the process is terminated, and if no determination is made, the process branches to step 706. In step 706, various logic value assignments are made to the circuit subjected to the reduction processing in step 705,
It is determined whether the target undetected failure is a theoretical undetected failure in the relevant area.

【0013】図13は、図12のステップ701に示し
た仮定故障に対する回路変換例を表す図である。図13
(a)は変換の対象となる関連領域の回路図を示したも
のである。1b、2b、3b、4b、5b、及び6bは
関連領域を構成するNORゲートを表し、7b、8b、
9b、10b、及び11bは関連領域の入力エッジを表
し、12bは対象未検出故障の仮定故障箇所を表し、故
障の種類は1縮退故障であるとする。図13(b)は仮
定故障箇所12bに関する変換後の回路図で、13bは
新しく追加した回路の出力NORゲートを表す。図13
(b)では、NORゲート6bと5bとの間の結線を切
り離し、NORゲート6bと13bとの間に新たに結線
を繋いである。図13(b)で表される回路は、図13
(a)で仮定故障箇所12bに故障信号がセットされる
ような入力パターンに対してはNORゲート13bの出
力が1になり、それ以外の入力パターンに対してはNO
Rゲート13bの出力が0になるという性質を持つ。図
13(c)は仮定故障箇所12bから最初の分岐点まで
の部分を変換した後の回路図であり、14bは仮定故障
箇所12bから出力側に辿って最初の分岐点を示す。図
13(c)では、入力エッジ9bとNORゲート5bと
の間の結線を切り離し、入力エッジ9bとNORゲート
13bとの間に新たに結線を繋いである。図13(c)
で表される回路では、図13(a)で仮定故障箇所12
bに故障信号がセットされ、且つ仮定故障箇所12bか
ら分岐点14bまで故障信号が伝播されるような入力パ
ターンに対してはNORゲート13bの出力が1にな
り、それ以外の入力パターンに対してはNORゲート1
3bの出力が0になるという性質を持つ。
FIG. 13 is a diagram showing an example of circuit conversion for the assumed fault shown in step 701 of FIG. FIG.
(A) is a circuit diagram of a related area to be converted. Reference numerals 1b, 2b, 3b, 4b, 5b, and 6b denote NOR gates forming a related region, and 7b, 8b,
It is assumed that 9b, 10b, and 11b represent input edges of the related area, 12b represents a hypothetical fault location of the target undetected fault, and the type of fault is a 1 stuck-at fault. FIG. 13B is a circuit diagram after the conversion regarding the assumed failure location 12b, and 13b represents an output NOR gate of the newly added circuit. FIG.
In (b), the connection between the NOR gates 6b and 5b is separated, and the connection is newly connected between the NOR gates 6b and 13b. The circuit shown in FIG.
In (a), the output of the NOR gate 13b becomes 1 for an input pattern in which a failure signal is set at the assumed failure location 12b, and NO for other input patterns.
It has the property that the output of the R gate 13b becomes zero. FIG. 13C is a circuit diagram after the portion from the assumed failure point 12b to the first branch point is converted, and 14b shows the first branch point from the assumed failure point 12b to the output side. In FIG. 13C, the connection between the input edge 9b and the NOR gate 5b is separated, and the connection is newly connected between the input edge 9b and the NOR gate 13b. FIG. 13 (c)
In the circuit represented by
The output of the NOR gate 13b becomes 1 for an input pattern in which the failure signal is set in b and the failure signal is propagated from the assumed failure location 12b to the branch point 14b, and for other input patterns. Is NOR gate 1
It has the property that the output of 3b becomes 0.

【0014】図13(d)は分岐点14bから関連領域
の出力までの部分を複写した後の回路図である。15
b、16b、17b、18b、及び19bはそれぞれN
ORゲート1b、2b、3b、4b、及び5bをコピー
したゲートを表す。ここで、例えば被複写部分(NOR
ゲート1b、2b、3b、4b、及び5bで構成された
部分回路)は故障が存在しない場合の論理値をとる正常
回路を、複写部分(NORゲート15b、16b、17
b、18b、及び19bで構成された部分回路)は故障
が存在する場合の論理値をとる故障回路を表す。(逆
に、被複写部分を故障回路、複写部分を正常回路とみな
してもよい。)又、20bの部分は排他論理和を構成し
ている。図13(d)において、NORゲート5b(正
常回路の入力側切り口)の出力論理値を0に設定し、N
ORゲート19b(故障回路の入力側切り口)の出力論
理値を1に設定して前方含意を行う。論理値が0又は1
になった信号線の結線(ゲート5bと19bの出力線)
と出力論理値が0且つ入力論理値に1が存在するような
ゲート(入力論理値が1のゲート17bと18b)に接
続されている全ての入力結線を切り離し、それに伴い生
じた出力が浮きのゲートを削除すると、図13(e)の
回路が得られる。図13(e)で表される回路では、図
13(a)で仮定故障箇所12bに故障信号がセットさ
れ、且つ、仮定故障箇所12bから関連領域の出力まで
故障信号が伝播されるような入力パターン、すなわち対
象仮定故障のその関連領域におけるテストパターンに対
してはNORゲート13bの出力が1になり、それ以外
の入力パターンに対してはNORゲート13bの出力が
0になるという性質を持つ。
FIG. 13D is a circuit diagram after copying the portion from the branch point 14b to the output of the related area. 15
b, 16b, 17b, 18b, and 19b are each N
The gates are copies of the OR gates 1b, 2b, 3b, 4b, and 5b. Here, for example, the copied portion (NOR
The partial circuit composed of the gates 1b, 2b, 3b, 4b, and 5b) is a copy of the normal circuit (NOR gates 15b, 16b, 17) that takes a logical value when there is no failure.
b), 18b, and 19b) represents a fault circuit that takes a logical value when a fault exists. (Conversely, the copied portion may be regarded as a defective circuit and the copied portion as a normal circuit.) Further, the portion 20b constitutes an exclusive OR. In FIG. 13D, the output logical value of the NOR gate 5b (the input side cut of the normal circuit) is set to 0, and N
The output implication value of the OR gate 19b (the input side cut of the faulty circuit) is set to 1 to perform the forward implication. Logical value is 0 or 1
Signal line connection (output lines of gates 5b and 19b)
And all the input connections connected to the gates (the gates 17b and 18b having the input logical value of 1) having the output logical value of 0 and the input logical value of 1 are present, and the resulting output is floated. When the gate is deleted, the circuit shown in FIG. 13 (e) is obtained. In the circuit shown in FIG. 13 (e), a failure signal is set in the assumed failure point 12b in FIG. 13 (a), and an input in which the failure signal is propagated from the assumed failure point 12b to the output of the related area. The output of the NOR gate 13b becomes 1 for the pattern, that is, the test pattern in the related area of the target assumed fault, and the output of the NOR gate 13b becomes 0 for the other input patterns.

【0015】図14は、図12のステップ707に示し
たEOR論理抽出・簡約処理におけるEOR論理抽出の
詳細なフローチャートである。ステップ851では、出
力論理がEOR論理もしくはENOR論理か否かを判定
したいNORゲートEを選択する。ステップ852で
は、NORゲートEの出力論理値を1として後方含意を
行なう。後方含意の結果、出力論理値が0且つ入力論理
値に1の存在しないNORゲートをI1、I2、・・・、
mとおき、論理値を全てXに戻しておく。ステップ8
53では、Iiの全ての入力論理値を0として後方含意
を行なう(i=1、2、・・・、m)。但し、この後方
含意は論理値がXの入力の数が1個のゲートに対しての
み行なう。後方含意の結果、出力論理値が0又は1且つ
入力論理値にXの存在するNORゲートもしくは入力エ
ッジをJi1、Ji2、・・・、Jin(i)とおき、1回後方
含意を行なう毎に論理値を全てXに戻しておく。ステッ
プ854では、m個の集合{Ji1、Ji2、・・・、J
in(i)}(i=1、2、・・・、m)が互いに同じ集合
であるか否かを調べ、同じであるならばJ1=J11=J
21=・・・=Jm1、J2=J12=J22=・・・=Jm2
・・・、Jn=J1n(1)=J2n(2)=・・・=Jmn(m)とし
てステップ855へ分岐し、同じでなければ処理を終了
する。ステップ855では、ステップ853のm回の後
方含意でゲートJ1、J2、・・・、Jnにセットされた
論理値の組(V1、V2、・・・、Vn)の集合GVを調
べ、GV={(U1、U2、・・・、Un)|Ui=1とな
るiの個数は偶数個}ならばNORゲートEの出力はJ
1、J2、・・・、Jnの出力のEOR論理であると判定
し、GV={(U1、U2、・・・、Un)|Ui=1とな
るiの個数は奇数個}ならばNORゲートEの出力はJ
1、J2、・・・、Jnの出力のENOR論理であると判
定する。ステップ856では、ステップ855でNOR
ゲートEの出力はJ1、J2、・・・、Jnの出力のEO
R論理であると判定したならばステップ857へ分岐
し、NORゲートEの出力はJ1、J2、・・・、Jn
出力のENOR論理であると判定したならばステップ8
58へ分岐し、それ以外ならば処理を終了する。ステッ
プ857では、NORゲートEからJ1、J2、・・・、
nまでの論理をEORゲートで置き換える。ステップ
858では、NORゲートEからJ1、J2、・・・、J
nまでの論理をENORゲートで置き換える。
FIG. 14 is a detailed flow chart of the EOR logic extraction in the EOR logic extraction / reduction processing shown in step 707 of FIG. In step 851, the NOR gate E for which it is desired to determine whether the output logic is the EOR logic or the ENOR logic is selected. In step 852, the output logical value of the NOR gate E is set to 1 and the backward implication is performed. As a result of the backward implication, NOR gates whose output logical value is 0 and whose input logical value is 1 do not exist are I 1 , I 2 , ...
I m , and all logical values are returned to X. Step 8
At 53, backward implication is performed with all input logical values of I i set to 0 (i = 1, 2, ..., M). However, this rearward implication is performed only for a gate having one logic value X. As a result of the backward implication, the NOR gate or the input edge where the output logical value is 0 or 1 and X exists in the input logical value is set as J i1 , J i2 , ..., J in (i) , and the backward implication is performed once. Every time it is performed, all the logical values are returned to X. In step 854, m sets {J i1 , J i2 , ..., J
It is checked whether or not in (i) } (i = 1, 2, ..., M) is the same set, and if they are the same, J 1 = J 11 = J
21 = ··· = J m1, J 2 = J 12 = J 22 = ··· = J m2,
.., J n = J 1n (1) = J 2n (2) = ... = J mn (m) , the process branches to step 855, and if not the same, the process ends. In step 855, a set of sets of logical values (V 1 , V 2 , ..., V n ) set in the gates J 1 , J 2 , ..., J n by the backward implication of m times in step 853. The GV is examined, and if GV = {(U 1 , U 2 , ..., U n ) | U i = 1 the number of i is an even number}, the output of the NOR gate E is J
It is determined that the output of 1 , J 2 , ..., J n is EOR logic, and the number of i for which GV = {(U 1 , U 2 , ..., U n ) | U i = 1 is If the number is an odd number}, the output of the NOR gate E is J
It is determined that the output of 1 , J 2 , ..., J n is ENOR logic. In step 856, NOR in step 855
The output of the gate E is EO of the output of J 1 , J 2 , ..., J n.
If it is determined to be the R logic, the process branches to step 857, and if it is determined that the output of the NOR gate E is the ENOR logic of the outputs of J 1 , J 2 , ..., J n , the step 8 is performed.
The process branches to 58, and if not, the process ends. At step 857, the NOR gate E is used for J 1 , J 2 , ...
Replace the logic up to J n with an EOR gate. At step 858, the NOR gate E is used for J 1 , J 2 , ..., J.
Replace the logic up to n with ENOR gates.

【0016】図15は、図12のステップ707に示し
たEOR論理抽出・簡約処理におけるEOR論理抽出処
理の具体例を表す図である。図15において、1s、2
s、3s、4s、5s、6s、7s、8s、9s、10
s、11s、12s、及び13sはNORゲートを表
す。ここで、EOR論理判定対象ゲートはNORゲート
3sである。図15(a)は、NORゲート3sの出力
論理値を1に設定して後方含意を行った状態を表す(図
14のステップ852)。ここで、図14のステップ8
52におけるI1、I2、I3、I4はそれぞれNORゲー
ト4s、5s、6s、7sである。図15(b)は、N
ORゲート4s(=I1)の出力論理値を1に設定して
後方含意を行った状態を表す(ステップ853)。ここ
で、図14のステップ853におけるJ11、J12、J13
はそれぞれNORゲート11s、12s、13sであ
る。図15(c)は、NORゲート5s(=I2)の出
力論理値を1に設定して後方含意を行った状態を表す
(ステップ853)。ここで、図14のステップ853
におけるJ21、J22、J23はそれぞれNORゲート11
s、12s、13sである。図15(d)は、NORゲ
ート6s(=I3)の出力論理値を1に設定して後方含
意を行った状態を表す(ステップ853)。ここで、図
14のステップ853におけるJ31、J32、J33はそれ
ぞれNORゲート11s、12s、13sである。図1
5(e)は、NORゲート7s(=I4)の出力論理値
を1に設定して後方含意を行った状態を表す(ステップ
853)。ここで、図14のステップ853におけるJ
41、J42、J43はそれぞれNORゲート11s、12
s、13sである。ここで、{J11、J12、J13}=
{J21、J22、J23}={J31、J32、J33}=
{J41、J42、J43}={11s、12s、13s}で
あることがわかる(ステップ854)。又、図15
(b)、(c)、(d)、(e)での4回の後方含意で
NORゲート11s、12s、13sの出力に設定され
た論理値の組の集合は{(0、0、0)、(0、1、
1)、(1、0、1)、(1、1、0)}でこれは
{(U1、U2、U3)|Ui=1となるiの個数は偶数
個}と同じ集合である。よって、NORゲート3sの出
力はNORゲート11s、12s、13sのEOR論理
と等価であると判定される(ステップ856)。図15
(f)は、NORゲート3sからNORゲート11s、
12s、13sまでの論理をEORゲート14sで置き
換えた回路を表す(ステップ857)。
FIG. 15 is a diagram showing a specific example of the EOR logic extraction processing in the EOR logic extraction / reduction processing shown in step 707 of FIG. In FIG. 15, 1s, 2
s, 3s, 4s, 5s, 6s, 7s, 8s, 9s, 10
s, 11s, 12s, and 13s represent NOR gates. Here, the EOR logic determination target gate is the NOR gate 3s. FIG. 15A shows a state in which the output logical value of the NOR gate 3s is set to 1 and the backward implication is performed (step 852 in FIG. 14). Here, step 8 in FIG.
I 1 , I 2 , I 3 , and I 4 in 52 are NOR gates 4s, 5s, 6s, and 7s, respectively. FIG. 15B shows N
The output logical value of the OR gate 4s (= I 1 ) is set to 1 to represent the state in which the backward implication is performed (step 853). Here, J 11 , J 12 , and J 13 in step 853 of FIG.
Are NOR gates 11s, 12s, and 13s, respectively. FIG. 15C shows a state in which the output implication value of the NOR gate 5s (= I 2 ) is set to 1 and the backward implication is performed (step 853). Here, step 853 of FIG.
J 21 , J 22 , and J 23 in FIG.
s, 12s, 13s. FIG. 15D shows a state in which the output implication value of the NOR gate 6s (= I 3 ) is set to 1 and backward implication is performed (step 853). Here, J 31 , J 32 , and J 33 in step 853 of FIG. 14 are NOR gates 11s, 12s, and 13s, respectively. Figure 1
5 (e) represents a state in which the output implication value of the NOR gate 7s (= I 4 ) is set to 1 and backward implication is performed (step 853). Here, J in step 853 of FIG.
41 , J 42 and J 43 are NOR gates 11s and 12 respectively.
s and 13s. Where {J 11 , J 12 , J 13 } =
{J 21, J 22, J 23} = {J 31, J 32, J 33} =
It can be seen that {J 41 , J 42 , J 43 } = {11s, 12s, 13s} (step 854). Also, FIG.
The set of logical value sets set at the outputs of the NOR gates 11s, 12s, and 13s by the four backward implications in (b), (c), (d), and (e) is {(0, 0, 0). ), (0, 1,
1), (1, 0, 1), (1, 1, 0)}, which is the same set as {(U 1 , U 2 , U 3 ) | U i = 1 is an even number} Is. Therefore, the output of the NOR gate 3s is determined to be equivalent to the EOR logic of the NOR gates 11s, 12s and 13s (step 856). Figure 15
(F) shows NOR gate 3s to NOR gate 11s,
This shows a circuit in which the logic up to 12s and 13s is replaced by the EOR gate 14s (step 857).

【0017】図16に、図12のステップ707に示し
たEOR論理抽出・簡約処理におけるEORゲート及び
ENORゲートの簡約例を示す。また、図17に、図1
2のステップ702に示した共通論理をまとめる処理の
具体例を表す。図17(a)において、1c、2c、3
c、4c、5c、6c、及び7cはNORゲートを表
す。ここで、NORゲート4cと5cはどちらもNOR
ゲート6cと7cをファンイン先ゲートとして持つ。従
って、NORゲート4cと5cはそれぞれ同じ入力関係
を持つので、NORゲート4cと5cを一つにまとめる
ことが可能である。図17(b)は、NORゲート6
c、7cと5cとの間の結線とNORゲート5cと2
c、3cとの間の結線を切り離し、NORゲート4cと
2c、3cとの間に結線を繋いで、図17(a)のNO
Rゲート5cを4cで置換した回路を表す。
FIG. 16 shows a reduction example of the EOR gate and the ENOR gate in the EOR logic extraction / reduction processing shown in step 707 of FIG. In addition, in FIG.
A specific example of the process of putting together the common logic shown in step 702 of FIG. In FIG. 17A, 1c, 2c, 3
c, 4c, 5c, 6c, and 7c represent NOR gates. Here, both NOR gates 4c and 5c are NOR
It has gates 6c and 7c as fan-in destination gates. Therefore, since the NOR gates 4c and 5c have the same input relationship, the NOR gates 4c and 5c can be integrated into one. FIG. 17B shows the NOR gate 6
c, 7c and 5c and NOR gates 5c and 2
17c is disconnected from the NOR gates 4c and 2c and 3c.
This shows a circuit in which the R gate 5c is replaced with 4c.

【0018】図18は、図12のステップ703に示し
た先頭信号線の更新の詳細なフローチャートである。こ
こで、非束縛信号線の内、束縛信号線と隣接しているも
のを先頭信号線と呼ぶ。非束縛信号線とは、回路内のど
の分岐点から出力側に辿っていっても辿りつけない信号
線のことであり、束縛信号線とは、回路内の適当な分岐
点から出力側に辿っていくと到達可能な信号線のことで
ある。ステップ711では、分岐を持つ先頭信号線の中
でまだ先頭信号線の更新の可能性について調査を行って
いないものが存在するかどうかを調べ、存在すればステ
ップ712へ分岐し、存在しなければ処理を終了する。
ステップ712では、分岐を持つ先頭信号線の中で先頭
信号線の更新の可能性について調査を行っていないもの
を一つ選択し、この先頭信号線をHとする。ステップ7
13では、先頭信号線Hの論理値を0にして前方含意を
行う。ステップ714では、前方含意ができなくなった
箇所の出力論理値Xのゲート(前方含意で入力論理値は
変化したのに、出力論理値はXのままで変化しなかった
ゲート)の全てが互いに独立に出力信号線の論理値を0
又は1に制御できるゲートであるかどうか、すなわち、
分岐点を持たない出力論理値Xのゲートを通って入力エ
ッジまで辿れるかどうかを調べ、辿れればステップ71
5へ分岐し、辿れなければステップ718へ分岐する。
ステップ715では、論理値が0又は1の信号線の結線
を切り離す。ステップ716では、ステップ715の処
理の最中に出力が浮きになった束縛信号線に接続された
ゲートを削除する。ステップ717では、先頭信号線H
の論理値を正当化する。ここで、正当化とは、その信号
線を出力信号線として持つゲートの論理演算結果がその
信号線の論理値と一致するように入力エッジまで辿りな
がら順次論理値を決めていくことである。ステップ71
8では、先頭信号線Hの論理値が1かどうかを調べ、1
ならばステップ719へ分岐し、1でなければステップ
720へ分岐する。ステップ719では、先頭信号線H
の論理値をXに設定して前方含意を行う。ステップ72
0では、先頭信号線Hの論理値をXに設定して前方含意
を行う。ステップ721では、先頭信号線Hの論理値を
1に設定して前方含意を行う。その後、ステップ714
からの処理を繰り返す。
FIG. 18 is a detailed flowchart for updating the head signal line shown in step 703 of FIG. Here, among the unbounded signal lines, the one adjacent to the bounded signal line is called a head signal line. An unbound signal line is a signal line that cannot be reached from any branch point in the circuit to the output side.A bound signal line is an output line that is traced from an appropriate branch point in the circuit. A signal line that can be reached as you go. In step 711, it is checked whether or not there is a head signal line having a branch that has not been checked for the possibility of updating the head signal line. If it exists, the process branches to step 712. The process ends.
In step 712, one of the head signal lines having a branch that has not been investigated for the possibility of updating the head signal line is selected, and this head signal line is set to H. Step 7
In 13, the forward implication is performed by setting the logical value of the head signal line H to 0. In step 714, all the gates of the output logical value X (where the input logical value has changed but the output logical value has not changed to X) due to the forward implication are all independent of each other. The logical value of the output signal line to 0
Or whether the gate can be controlled to 1, that is,
It is checked whether the input edge can be traced through the gate of the output logical value X having no branch point, and if traced, step 71
If not, the process branches to step 718.
In step 715, the connection of the signal line having a logical value of 0 or 1 is disconnected. In step 716, the gate connected to the bound signal line whose output floated during the process of step 715 is deleted. In step 717, the head signal line H
Justify the logical value of. Here, the justification is to sequentially determine the logical value while tracing to the input edge so that the logical operation result of the gate having the signal line as the output signal line matches the logical value of the signal line. Step 71
At 8, it is checked whether the logical value of the head signal line H is 1, and 1
If so, the process branches to step 719, and if not 1, the process branches to step 720. In step 719, the top signal line H
Perform a forward implication by setting the logical value of X to X. Step 72
At 0, the logical value of the head signal line H is set to X to perform forward implication. In step 721, the logical value of the head signal line H is set to 1 to perform forward implication. Then step 714
Repeat the process from.

【0019】図19は、図12のステップ703に示し
た先頭信号線の更新例を示す図である。図19(a)に
おいて、1d、2d、3d、4d、5d、6d、7d、
及び8dはNORゲートを、9d、10d、11d、1
2d、及び13dは入力エッジを、14d、15d、1
6d、17d、及び18dは信号線を表す。ここで、先
頭信号線は信号線14d、15d、16d、及び17d
で、信号線14dは分岐を持ち、信号線15d、16
d、及び17dは分岐を持たない。図19(b)は分岐
を持つ先頭信号線14dの出力論理値を0とし、前方含
意を行った状態を表す(図18のステップ713)。こ
こで、前方含意ができなくなり、且つ、出力論理値がX
となるNORゲート2d、3d、及び4dは、2dから
入力エッジ9d、3dから入力エッジ10d、4dから
入力エッジ11dのように分岐を持たず、出力論理値が
Xとなるゲートを通って入力エッジまで辿ることができ
るので、NORゲート2d、3d、及び4dの出力は互
いに独立に0又は1に制御可能である。図19(c)
は、図19(b)で論理値が0又は1の信号線の結線を
切り離し(ステップ715)、信号線14dの正当化に
より入力エッジ12dの出力論理値を1とした状態を表
す。すなわち、図19(b)において、信号線12d、
13dの論理値のNOR演算結果が信号線14dの論理
値0と等しくなるように、例えば図19(c)のよう
に、信号線12dの論理値に1を割当てる。なお、図1
9(c)において、先頭信号線は信号線18dのみで、
先頭信号線が図19(a)の信号線14d、15d、1
6d、及び17dから出力側の信号線18dに更新され
ている。
FIG. 19 is a diagram showing an example of updating the head signal line shown in step 703 of FIG. In FIG. 19A, 1d, 2d, 3d, 4d, 5d, 6d, 7d,
And 8d are NOR gates, 9d, 10d, 11d, 1
2d and 13d are the input edges, 14d, 15d, 1
6d, 17d, and 18d represent signal lines. Here, the leading signal lines are the signal lines 14d, 15d, 16d, and 17d.
Therefore, the signal line 14d has a branch, and the signal lines 15d and 16
d and 17d have no branch. FIG. 19B shows a state in which the output logical value of the head signal line 14d having a branch is set to 0 and the forward implication is performed (step 713 in FIG. 18). Here, forward implication becomes impossible, and the output logical value is X.
NOR gates 2d, 3d, and 4d do not have branches from 2d to input edge 9d, 3d to input edge 10d, and 4d to input edge 11d, and the input edge passes through the gate whose output logical value is X. The outputs of the NOR gates 2d, 3d, and 4d can be controlled to 0 or 1 independently of each other. FIG. 19 (c)
19B shows a state in which the connection of the signal line having a logical value of 0 or 1 in FIG. That is, in FIG. 19B, the signal lines 12d,
19 is assigned to the logical value of the signal line 12d so that the NOR operation result of the logical value of 13d becomes equal to the logical value 0 of the signal line 14d, for example, as shown in FIG. Note that FIG.
In FIG. 9 (c), the first signal line is only the signal line 18d,
The top signal lines are the signal lines 14d, 15d, 1 of FIG.
The signal lines 18d on the output side are updated from 6d and 17d.

【0020】図20は、図12のステップ704に示し
た回路の簡約処理の詳細なフローチャートである。本実
施例における回路の簡約処理には、簡約処理A1、簡約
処理A、簡約処理Bの3種類の簡約処理がある。簡約処
理A1では、回路の出力ゲートの入力側にある冗長な論
理を簡約する。簡約処理Aでは、回路の多入力ゲート
(回路の出力ゲートを除く)の入力側にある冗長な論理
を簡約する。簡約処理Bでは、先頭信号線の論理値が回
路の出力論理値に与える影響を調べ、先頭信号線の論理
値が0の時にその論理値が回路の出力を1にしようとす
る影響しか持たないならば、先頭信号線の論理値に0を
割当てて固定し、先頭信号線の論理値が1の時にその論
理値が回路の出力を1にしようとする影響しか持たない
ならば、先頭信号線の論理値に1を割当てて固定する。
図20のステップ731では、簡約処理Aが可能な多入
力ゲートが存在するかどうかを調べ、存在すればステッ
プ732へ分岐し、存在しなければステップ737へ分
岐する。ステップ732では、簡約処理Aが可能な多入
力ゲートRを選択する。ステップ733では、多入力ゲ
ートRが回路の出力ゲートかどうかを調べ、そうならば
ステップ734へ分岐し、そうでなければステップ73
5へ分岐する。ステップ734では、多入力ゲートRを
対象に簡約処理A1を行う。ステップ735では、多入
力ゲートRを対象に簡約処理Aを行う。ステップ736
では、簡約処理A1又は簡約処理Aの途中で、対象未検
出故障がその関連領域において原理的未検出故障であ
る、或いは、テストパターンの生成が可能であるのいず
れかであると判定されたかどうかを調べ、いずれかに判
定されたならば処理を終了し、いずれにも判定されなか
ったならばステップ731へ分岐する。ステップ737
では、簡約処理Bが可能な先頭信号線が存在するかどう
かを調べ、存在すればステップ738へ分岐し、存在し
なければ処理を終了する。なお、非束縛信号線の内、束
縛信号線と隣接しているものを先頭信号線と呼ぶ。非束
縛信号線とは、回路内のどの分岐点から出力側に辿って
いっても辿りつけない信号線のことであリ、束縛信号線
とは、回路内の適当な分岐点から出力側に辿っていくと
到達可能な信号線のことである。ステップ738では、
簡約処理Bが可能な先頭信号線Hを選択する。ステップ
739では、先頭信号線Hを対象に簡約処理Bを行う。
ステップ740では、簡約処理Bの途中で、対象未検出
故障がその関連領域において原理的未検出故障である、
或いは、テストパターンの生成が可能であるかのいずれ
かであると判定されたかどうかを調べ、いずれかに判定
されたならば処理を終了し、いずれにも判定されなかっ
たならばステップ741へ分岐する。ステップ741で
は、簡約処理Bが可能な新たな先頭信号線が存在するか
どうかを調べ、存在すればステップ738へ分岐し、存
在しなければステップ742へ分岐する。ステップ74
2では、簡約処理Aが可能な多入力ゲートが存在するか
どうかを調べ、存在すればステップ732へ分岐し、存
在しなければ処理を終了する。
FIG. 20 is a detailed flowchart of the reduction processing of the circuit shown in step 704 of FIG. The reduction processing of the circuit in this embodiment includes three types of reduction processing, that is, reduction processing A1, reduction processing A, and reduction processing B. In the reduction process A1, redundant logic on the input side of the output gate of the circuit is reduced. In the reduction process A, the redundant logic on the input side of the multi-input gate (excluding the output gate of the circuit) of the circuit is reduced. In the reduction process B, the influence of the logical value of the head signal line on the output logical value of the circuit is examined, and when the logical value of the head signal line is 0, the logical value has only the influence of trying to set the output of the circuit to 1. Then, if the logic value of the head signal line is fixed by assigning 0, and the logic value of the head signal line is 1, the logic value has only the effect of trying to set the output of the circuit to 1. It is fixed by assigning 1 to the logical value of.
In step 731 of FIG. 20, it is checked whether or not there is a multi-input gate capable of performing the reduction processing A. If it exists, the process branches to step 732, and if it does not exist, the process branches to step 737. In step 732, the multi-input gate R capable of the reduction processing A is selected. In step 733, it is checked whether the multi-input gate R is the output gate of the circuit, and if so, the process branches to step 734, and if not, step 73.
Branch to 5. In step 734, the reduction process A1 is performed for the multi-input gate R. In step 735, the reduction process A is performed for the multi-input gate R. Step 736
Then, in the middle of the reduction process A1 or the reduction process A, is it determined whether the target undetected fault is a theoretical undetected fault in the relevant area or a test pattern can be generated? Is checked, and if any of them is determined, the process is ended, and if none of them is determined, the process branches to step 731. Step 737
Then, it is checked whether or not there is a leading signal line that can be subjected to the reduction processing B. If it exists, the process branches to step 738, and if it does not exist, the processing ends. Among the unbound signal lines, the one that is adjacent to the bound signal line is called the head signal line. An unbound signal line is a signal line that cannot be reached from any branch point in the circuit to the output side.A bound signal line is an output line from an appropriate branch point in the circuit. A signal line that can be reached by following it. In step 738,
A leading signal line H capable of the reduction processing B is selected. In step 739, the reduction process B is performed on the head signal line H.
In step 740, in the middle of the reduction process B, the target undetected fault is a theoretical undetected fault in the relevant region,
Alternatively, it is checked whether or not it is possible to generate a test pattern, and if either is determined, the process is ended, and if neither is determined, the process branches to step 741. To do. In step 741, it is checked whether or not there is a new head signal line that can be subjected to the reduction processing B. If it exists, the process branches to step 738, and if it does not exist, the process branches to step 742. Step 74
In step 2, it is checked whether or not there is a multi-input gate capable of the reduction processing A. If it exists, the process branches to step 732, and if it does not exist, the processing ends.

【0021】図21は、図20のステップ734に示し
た簡約処理A1の詳細なフローチャートである。ステッ
プ751では、多入力ゲートRの出力論理値を1にして
含意操作を行う。但し、非束縛信号線に対しては含意操
作を行わない。ステップ752では、含意操作中に矛盾
(含意操作中にそれぞれ異なる経路を介して0と1の2
つの値が同一信号線に設定されようとする状況)が生じ
たかどうかを調べ、生じたならばステップ758へ分岐
し、生じなかったならばステップ753へ分岐する。ス
テップ753では、出力論理値が0で入力論理値が0又
はXであるゲートと、論理値が0又は1の先頭信号線を
出力信号線として持つゲートを終端ゲート(入力エッジ
を含む)として登録する。ステップ754では、論理値
が0又は1の信号線の結線を切り離す。ステップ755
では、各終端ゲートに対して、その出力信号線が先頭信
号線ならば出力論理値を入力エッジまで正当化し、その
出力信号線が束縛信号線であって、且つ、入力数が1以
上ならばその終端ゲートと多入力ゲートRとの間に結線
を繋ぐ。ここで、正当化とは、対象となる信号線を出力
信号線として持つゲートの論理演算結果がその信号線の
論理値と一致するように入力エッジまで辿りながら順次
論理値を決めていくことである。ステップ756では、
多入力ゲートRの入力数が0かどうかを調べ、0ならば
ステップ757へ、0でなければステップ759へ分岐
する。ステップ757では、対象未検出故障はその関連
領域においてテストパターンの生成が可能であるとす
る。ステップ758では、対象未検出故障はその関連領
域において原理的未検出故障であると判定する。ステッ
プ759では、処理中に出力数が0となった浮きゲート
の削除を行う。ステップ760では、論理値が0又は1
の信号線の論理値を全てXに戻す。
FIG. 21 is a detailed flowchart of the reduction process A1 shown in step 734 of FIG. In step 751, the output logical value of the multi-input gate R is set to 1 and an implication operation is performed. However, the implication operation is not performed on the unbound signal line. In step 752, a contradiction occurs during the implication operation (2 of 0 and 1 via different paths during the implication operation).
It is checked whether or not a situation in which two values are about to be set in the same signal line) has occurred. If so, the process branches to step 758, and if not, the process branches to step 753. In step 753, a gate having an output logical value of 0 and an input logical value of 0 or X and a gate having a leading signal line having a logical value of 0 or 1 as an output signal line are registered as termination gates (including input edges). To do. In step 754, the connection of the signal line whose logical value is 0 or 1 is disconnected. Step 755
Then, for each terminal gate, if the output signal line is the head signal line, the output logical value is justified up to the input edge, and if the output signal line is a bound signal line and the number of inputs is 1 or more. A wire is connected between the terminal gate and the multi-input gate R. Here, justification is to sequentially determine the logical value while tracing to the input edge so that the logical operation result of the gate having the target signal line as the output signal line matches the logical value of the signal line. is there. In step 756,
Whether or not the number of inputs of the multi-input gate R is 0 is checked. If 0, the process branches to step 757, and if not 0, the process branches to step 759. In step 757, it is assumed that the target undetected fault can generate a test pattern in its related area. In step 758, the subject undetected fault is determined to be a theoretical undetected fault in its associated area. In step 759, the floating gate whose number of outputs becomes 0 during processing is deleted. In step 760, the logical value is 0 or 1.
All logic values of the signal line of are returned to X.

【0022】図22は、図20のステップ734に示し
た簡約処理A1の例を示す図である。図22(a)にお
いて、1e、2e、3e、4e、5e、6e、7e、8
e、及び9eはNORゲートを、10e、11e、12
e、13e、及び14eは入力エッジを表す。ここで、
簡約処理A1の対象となっている多入力ゲートはNOR
ゲート1eである。図22(b)は、NORゲート1e
の出力論理値を1に設定して含意を行った状態を表す
(図21のステップ751)。ここで、NORゲート8
e、9e、及び入力エッジ10eが終端ゲートとなって
いる(ステップ753)。図22(c)は、論理値0又
は1の信号線の結線(1eと2e、1eと3e、1eと
4e、2eと8e、2eと6e、3eと5e、4eと6
e、5eと8e、5eと10e、6eと9e、及び6e
と10eとの間の結線)を切り離し(ステップ75
4)、終端ゲート8e及び9eの結線処理(ステップ7
55)と浮きゲート2e、7e、及び11eの削除(ス
テップ759)を行った状態を表す。
FIG. 22 is a diagram showing an example of the reduction processing A1 shown in step 734 of FIG. In FIG. 22A, 1e, 2e, 3e, 4e, 5e, 6e, 7e, 8
e and 9e are NOR gates, 10e, 11e, 12
e, 13e, and 14e represent input edges. here,
The multi-input gate that is the target of the reduction process A1 is NOR
It is the gate 1e. FIG. 22B shows the NOR gate 1e.
The output logical value of 1 is set to 1 to represent the implication (step 751 in FIG. 21). Here, NOR gate 8
e, 9e, and the input edge 10e are termination gates (step 753). FIG. 22C shows connection of signal lines having logical values of 0 or 1 (1e and 2e, 1e and 3e, 1e and 4e, 2e and 8e, 2e and 6e, 3e and 5e, 4e and 6).
e, 5e and 8e, 5e and 10e, 6e and 9e, and 6e
And 10e) is disconnected (step 75
4), connection processing of the termination gates 8e and 9e (step 7)
55) and the floating gates 2e, 7e, and 11e are deleted (step 759).

【0023】図23は、図20のステップ735に示し
た簡約処理Aの詳細なフローチャートである。ステップ
771では、多入力ゲートRの出力論理値を1にして後
方含意を行う。但し、非束縛信号線に対しては含意を行
わない。ステップ772では、含意中に矛盾(含意操作
中にそれぞれ異なる経路を介して0と1の2つの値が同
一信号線に設定されようとする状況)が生じたかどうか
を調べ、生じたならばステップ779へ分岐し、生じな
かったならばステップ773へ分岐する。ステップ77
3では、出力論理値が0であって、且つ、入力論理値が
0又はXであるゲートと、論理値が0又は1の先頭信号
線を出力信号線として持つゲートを終端ゲートとして登
録する。ステップ774では、終端ゲートから出力側の
回路を多入力ゲートRに収斂する部分と収斂しない部分
とに分離する。ステップ775では、終端ゲートから多
入力ゲートRに収斂する部分において、終端ゲートから
前方含意を行う。但し、多入力ゲートRより出力側での
含意は行わない。ステップ776では、前方含意中に矛
盾が生じたかどうかを調べ、生じたならばステップ77
9へ分岐し、生じなかったならばステップ777へ分岐
する。ステップ777では、論理値が0又は1の信号線
の結線と、出力論理値が0であって、且つ、入力論理値
に1が存在するゲートの全ての入力結線を切り離す。ス
テップ778では、各終端ゲートに対して、この終端ゲ
ートが出力論理値が0であって且つ入力数が1以上、或
いは、この終端ゲートの出力信号線が論理値0の先頭信
号線ならば、その終端ゲートと多入力ゲートRとの間に
結線を繋ぐ。又、この終端ゲートが出力論理値が1であ
って且つ入力数が1以上、或いは、この終端ゲートの出
力信号線が論理値1の先頭信号線ならば、新たにNOR
ゲートNを追加し、その終端ゲートとNORゲートNの
間、及びNORゲートNと多入力ゲートRとの間に結線
を繋ぐ。ステップ779では、多入力ゲートRの出力論
理値に0を設定して前方含意を行う。ステップ780で
は、多入力ゲートRより出力側にある信号線の内、その
論理値が0又は1の信号線の結線を切り離す。ステップ
781では、上記の処理中に出力数が0となった浮きゲ
ートを削除する。ステップ782では、回路の出力論理
値を調べ、0ならばステップ783へ、1ならばステッ
プ784へ、Xならばステップ785へそれぞれ分岐す
る。ステップ783では、対象未検出故障はその関連領
域において原理的未検出故障であると判定する。ステッ
プ784では、対象未検出故障はその関連領域において
テストパターンの生成が可能であると判定する。ステッ
プ785では、論理値が0又は1の信号線の論理値を全
てXに戻す。
FIG. 23 is a detailed flowchart of the reduction process A shown in step 735 of FIG. In step 771, the output logical value of the multi-input gate R is set to 1 to perform backward implication. However, no implication is applied to the unbound signal line. In step 772, it is checked whether or not an inconsistency (a situation in which two values of 0 and 1 are set to the same signal line via different paths during implication operation) occurs during implication. If not, the process branches to step 773. Step 77
In 3, the gate having the output logical value of 0 and the input logical value of 0 or X and the gate having the leading signal line of the logical value of 0 or 1 as the output signal line are registered as the termination gates. In step 774, the circuit on the output side from the termination gate is separated into a part that converges on the multi-input gate R and a part that does not converge. In step 775, forward implication is performed from the termination gate in the part where the termination gate converges to the multi-input gate R. However, no implication is made on the output side of the multi-input gate R. In step 776, it is checked whether a contradiction occurs during the forward implication, and if so, step 77.
9; otherwise, to step 777. In step 777, the connection of the signal line having a logical value of 0 or 1 is disconnected from all the input connection of the gate having an output logical value of 0 and having an input logical value of 1 exists. In step 778, for each termination gate, if this termination gate has an output logic value of 0 and the number of inputs is 1 or more, or if the output signal line of this termination gate is a leading signal line with a logic value of 0, A wire is connected between the terminal gate and the multi-input gate R. Further, if this termination gate has an output logical value of 1 and the number of inputs is 1 or more, or if the output signal line of this termination gate is a leading signal line with a logical value of 1, then NOR is newly added.
A gate N is added, and wiring is connected between the termination gate and the NOR gate N and between the NOR gate N and the multi-input gate R. In step 779, the output logical value of the multi-input gate R is set to 0 to perform the forward implication. In step 780, among the signal lines on the output side of the multi-input gate R, the connection of the signal line whose logical value is 0 or 1 is disconnected. In step 781, the floating gate whose output number is 0 during the above processing is deleted. In step 782, the output logical value of the circuit is checked, and if 0, it branches to step 783, if 1 branches to step 784, and if X branches to step 785. In step 783, the target undetected fault is determined to be a theoretical undetected fault in its associated area. In step 784, it is determined that the target undetected fault can generate a test pattern in its related area. In step 785, all the logical values of the signal line whose logical value is 0 or 1 are returned to X.

【0024】図24は、図20のステップ735に示し
た簡約処理Aの例を示す図である。図24(a)におい
て、1f、2f、3f、4f、5f、6f、7f、8
f、及び9fはNORゲートを表す。ここで、簡約処理
Aの対象となっている多入力ゲートRはNORゲート2
fである。図24(b)は、NORゲート2fの出力論
理値に1を設定して後方含意を行った状態を表す(図2
3のステップ771)。ここで、終端ゲートはNORゲ
ート4f、7f、及び8fである(ステップ773)。
図24(c)は、NORゲート4f、7f、及び8fか
ら出力側に到る回路をNORゲート2fに収斂する部分
と収斂しない部分に分離した状態を表す(ステップ77
4)。図24(c)では、回路を分離するために、新た
にNORゲート10f及び11fを追加した。図24
(d)は、NORゲート4f、7f、及び8fからNO
Rゲート2fに収斂する部分において、NORゲート4
f、7f、及び8fから前方含意を行った状態を表す
(ステップ775)。図24(e)は、論理値が0又は
1の信号線の結線と、出力論理値が0であって、且つ、
入力論理値に1が存在するゲートの全ての入力結線を切
り離し(ステップ777)、終端ゲートの処理(ステッ
プ778)と浮きゲートの削除(ステップ781)を行
った状態を示す。
FIG. 24 is a diagram showing an example of the reduction processing A shown in step 735 of FIG. In FIG. 24A, 1f, 2f, 3f, 4f, 5f, 6f, 7f, 8
f and 9f represent NOR gates. Here, the multi-input gate R that is the target of the reduction process A is the NOR gate 2
f. FIG. 24 (b) shows a state in which the output logical value of the NOR gate 2f is set to 1 and the backward implication is performed (FIG. 2).
3 step 771). Here, the termination gates are NOR gates 4f, 7f, and 8f (step 773).
FIG. 24C shows a state in which the circuits from the NOR gates 4f, 7f, and 8f to the output side are separated into a portion that converges on the NOR gate 2f and a portion that does not converge (step 77).
4). In FIG. 24C, NOR gates 10f and 11f are newly added to separate the circuit. Figure 24
(D) shows the NO gates from the NOR gates 4f, 7f, and 8f.
In the portion that converges on the R gate 2f, the NOR gate 4
It represents a state in which the forward implication is performed from f, 7f, and 8f (step 775). In FIG. 24 (e), the connection of signal lines whose logical value is 0 or 1 and the output logical value are 0, and
This shows a state in which all the input connections of the gate having an input logical value of 1 are disconnected (step 777), the processing of the termination gate (step 778) and the removal of the floating gate (step 781) are performed.

【0025】図25は、図20のステップ739に示し
た簡約処理Bの詳細なフローチャートである。ステップ
801では、先頭信号線Hから回路の出力に到るどの経
路にもEORゲート及びENORゲートが含まれていな
いかどうかを調べ、いずれの経路にも含まれていなけれ
ばステップ791へ分岐し、いずれかの経路に含まれて
いれば処理を終了する。ステップ791では、先頭信号
線Hから回路の出力に到る全ての経路が偶数個のゲート
(入力エッジを含む)から構成されているかどうかを調
べ、構成されていればステップ792へ分岐し、構成さ
れていなければステップ793へ分岐する。ステップ7
92では、先頭信号線Hの出力論理値に0を設定して前
方含意を行う。ステップ793では、先頭信号線Hから
回路の出力に到る全ての経路が奇数個のゲート(入力エ
ッジを含む)から構成されているかどうかを調べ、構成
されていればステップ794へ分岐し、構成されていな
ければ処理を終了する。ステップ794では、先頭信号
線Hの論理値に1を設定して前方含意を行う。ステップ
795では、論理値が0又は1である信号線の結線を切
り離す。ステップ796では、先頭信号線Hの論理値の
正当化を行う。ここで、正当化とは、対象となっている
信号線を出力信号線として持つゲートの論理演算結果が
その信号線の論理値と一致するように入力エッジまで辿
りながら順次論理値を決めていくことである。ステップ
797では、処理中に出力数が0となった浮きゲートを
削除する。ステップ798では、回路の出力論理値が0
ならばステップ799へ分岐し、1ならばステップ80
0へ分岐し、Xならば処理を終了する。ステップ799
では、対象未検出故障はその関連領域において原理的未
検出故障であると判定する。ステップ800では、対象
未検出故障はその関連領域においてテストパターンの生
成が可能であると判定する。
FIG. 25 is a detailed flowchart of the reduction process B shown in step 739 of FIG. In step 801, it is checked whether or not the EOR gate and the ENOR gate are included in any of the paths from the head signal line H to the output of the circuit. If they are not included in any of the paths, the process branches to step 791. If it is included in any of the routes, the process ends. In step 791, it is checked whether or not all paths from the head signal line H to the output of the circuit are composed of an even number of gates (including input edges), and if they are, branch to step 792 to configure. If not, the process branches to step 793. Step 7
At 92, the output logical value of the head signal line H is set to 0 to perform the forward implication. In step 793, it is checked whether or not all the paths from the head signal line H to the output of the circuit are composed of an odd number of gates (including input edges), and if they are structured, the process branches to step 794 to configure. If not, the process ends. In step 794, the logical value of the head signal line H is set to 1 to perform forward implication. In step 795, the connection of the signal line whose logical value is 0 or 1 is disconnected. In step 796, the logical value of the head signal line H is justified. Here, the justification is to sequentially determine the logical value while tracing to the input edge so that the logical operation result of the gate having the target signal line as the output signal line matches the logical value of the signal line. That is. In step 797, the floating gate whose output number is 0 during the processing is deleted. At step 798, the output logical value of the circuit is 0.
If so, branch to step 799; if 1 then step 80
The process branches to 0, and if X, the process ends. Step 799
Then, the target undetected failure is determined to be a principle undetected failure in the relevant area. In step 800, the target undetected fault is determined to be capable of generating a test pattern in its related area.

【0026】図26は、図20のステップ739に示し
た簡約処理Bの例を示す図である。図26(a)におい
て、1g、2g、3g、4g、及び5gはNORゲート
を表し、6g及び7gは入力エッジを表し、8gは信号
線を表す。ここで、簡約処理Bの対象となっている先頭
信号線Hは信号線8gであり、信号線8gから回路の出
力に到る2つの経路、すなわち、入力エッジ7g−>N
ORゲート4g−>NORゲート2g−>NORゲート
1g及び入力エッジ7g−>NORゲート5g−>NO
Rゲート3g−>NORゲート1gはどちらも入力エッ
ジ7gも含めて4個のゲートから構成されている。先頭
信号線8gの論理値を0とした場合には、NORゲート
4g、2gの出力論理値はそれぞれ1、0になろうと
し、NORゲート5g、3gの出力論理値はそれぞれ
1、0になろうとするため、NORゲート1gの論理値
は1になろうとする。逆に信号線8gの論理値を1とし
た場合にはNORゲート1gの論理値は0になろうとす
る。NORゲート1gの出力論理値すなわち回路の出力
論理値を1にするように信号線8gの論理値を固定して
得られた回路の出力が常に0ならば元の回路の出力も常
に0という性質を持つ。図26(b)は、信号線8gの
論理値を0に設定して前方含意を行った状態を表す(ス
テップ792)。図26(c)は、図26(b)で論理
値が0又は1となった信号線の結線を切り離し(図25
のステップ795)、浮きゲート(ゲート2gと4g)
を削除(ステップ797)した状態を表す。
FIG. 26 is a diagram showing an example of the reduction processing B shown in step 739 of FIG. In FIG. 26A, 1g, 2g, 3g, 4g, and 5g represent NOR gates, 6g and 7g represent input edges, and 8g represents signal lines. Here, the head signal line H that is the target of the reduction processing B is the signal line 8g, and there are two paths from the signal line 8g to the output of the circuit, that is, the input edge 7g-> N.
OR gate 4g-> NOR gate 2g-> NOR gate 1g and input edge 7g-> NOR gate 5g-> NO
Each of the R gate 3g-> NOR gate 1g is composed of four gates including the input edge 7g. When the logical value of the head signal line 8g is 0, the output logical values of the NOR gates 4g and 2g tend to be 1 and 0, respectively, and the output logical values of the NOR gates 5g and 3g are 1 and 0, respectively. Therefore, the logical value of the NOR gate 1g tends to be 1. On the contrary, when the logic value of the signal line 8g is set to 1, the logic value of the NOR gate 1g tends to become 0. If the output of the circuit obtained by fixing the logic value of the signal line 8g so that the output logic value of the NOR gate 1g, that is, the output logic value of the circuit is 1, is always 0, the output of the original circuit is always 0. have. FIG. 26B shows a state in which the logical value of the signal line 8g is set to 0 and the forward implication is performed (step 792). In FIG. 26C, the connection of the signal line whose logical value is 0 or 1 in FIG.
Step 795), floating gates (gates 2g and 4g)
Is deleted (step 797).

【0027】図27は、図12のステップ706に示し
た論理値割当て試行による判定の詳細なフローチャート
である。ステップ811aでは、図12のステップ70
4で得られた回路の出力論理値に1を設定して含意操作
を行う。含意操作中に含意操作の対象となった各ゲート
の出力信号線が未正当化信号線か否かがそのつどチェッ
クされ、未正当化信号線ならばその出力信号線を登録し
ておく。ここで、未正当化信号線とは、入力論理値の演
算結果が出力論理値と一致しないようなゲートの出力信
号線のことである。ステップ812aでは、ステップ8
11aの含意操作で生じた未正当化信号線を先頭信号線
まで正当化し、全ての未正当化信号線が正当化されたな
らば、対象未検出故障のテストパターンが存在すると判
断する。一方、どのように論理値を割当てても正当化が
うまくゆかなかったならば、対象未検出故障はその関連
領域において原理的未検出故障であると判断する。ここ
で、正当化とは、対象信号線を出力信号線として持つゲ
ートの論理演算結果が対象信号線の論理値と一致するよ
うに先頭信号線まで論理値を決めていくことである。ス
テップ813aでは、ステップ812aでテストパター
ンが存在すると判定されたならばステップ814aへ分
岐し、判定されなかったならば処理を終了する。ステッ
プ814aでは、論理値が0又は1のいずれかに定まっ
た先頭信号線を入力エッジまで正当化する。ここで、正
当化とは、対象信号線を出力信号線として持つゲートの
論理演算結果が対象信号線の論理値と一致するように入
力エッジまで辿りながら順次論理値を決めていくことで
ある。
FIG. 27 is a detailed flowchart of the judgment by the logical value allocation trial shown in step 706 of FIG. In step 811a, step 70 in FIG.
The implication operation is performed by setting 1 to the output logical value of the circuit obtained in 4. During the implication operation, it is checked each time whether the output signal line of each gate that is the target of the implication operation is an unjustified signal line, and if it is an unjustified signal line, the output signal line is registered. Here, the unjustified signal line is an output signal line of a gate such that the operation result of the input logical value does not match the output logical value. In Step 812a, Step 8
The unjustified signal lines generated by the implication operation of 11a are justified up to the head signal line, and if all the unjustified signal lines are justified, it is determined that the test pattern of the target undetected failure exists. On the other hand, if the justification is not successful no matter how the logical value is assigned, it is judged that the target undetected fault is a theoretical undetected fault in the relevant area. Here, the justification is to determine the logical value up to the head signal line so that the logical operation result of the gate having the target signal line as the output signal line matches the logical value of the target signal line. In step 813a, if it is determined in step 812a that the test pattern exists, the process branches to step 814a, and if not determined, the process ends. In step 814a, the leading signal line whose logical value is set to either 0 or 1 is justified up to the input edge. Here, the justification is to sequentially determine the logical value while tracing to the input edge so that the logical operation result of the gate having the target signal line as the output signal line matches the logical value of the target signal line.

【0028】図28は、図27のステップ812aに示
した未正当化信号線に対する正当化の詳細なフローチャ
ートである。ステップ821aでは、矛盾フラグに0を
設定する。矛盾フラグとは、ステップ826a及びステ
ップ830aの含意操作において、矛盾(含意操作中に
それぞれ異なる経路を介して0と1の2つの値が同一信
号線上に設定されようとする状況)が生じたかどうかを
表すフラグであり、矛盾フラグが0であるとは矛盾が無
い状態を表し、矛盾フラグが1であるとは矛盾が生じた
状態を表す。ステップ822aでは、矛盾フラグが0な
らばステップ823aへ分岐し、1ならばステップ82
8aへ分岐する。ステップ823aでは、回路内に未正
当化信号線があればステップ824aへ分岐し、無けれ
ばステップ827aへ分岐する。ステップ824aで
は、登録されている未正当化信号線の中から1つを選択
する。ステップ825aでは、ステップ824aで選択
した未正当化信号線を出発点として後方追跡を行う。後
方追跡では、出発点となった信号線から入力側に向かっ
て論理値がXの信号線で構成される経路を辿っていき、
追跡を打ち切った箇所の信号線に論理値を設定する。ス
テップ826aでは、ステップ825aで設定した論理
値を元に含意操作を行う。ステップ827aでは、対象
未検出故障のその関連領域におけるテストパターンが存
在すると判定する。ステップ828aでは、矛盾解消の
ためのバックトラックを行う。ステップ829aでは、
ステップ828aにおいて対象未検出故障が原理的未検
出故障であると判定されたならば処理を終了し、判定さ
れなかったんらばステップ830aへ分岐する。ステッ
プ830aでは、バックトラック828aの過程で変更
した信号線の論理値を元に含意操作を行う。
FIG. 28 is a detailed flowchart of the justification for the unjustified signal line shown in step 812a of FIG. In step 821a, 0 is set to the contradiction flag. The contradiction flag indicates whether or not a contradiction (a situation in which two values of 0 and 1 are about to be set on the same signal line via different routes during the implication operation) in the implication operation of steps 826a and 830a. The contradiction flag is 0, which means that there is no contradiction, and the contradiction flag is 1, which means that the contradiction has occurred. In step 822a, if the contradiction flag is 0, the process branches to step 823a.
Branch to 8a. In step 823a, if there is an unjustified signal line in the circuit, the process branches to step 824a; otherwise, the process branches to step 827a. At step 824a, one is selected from the registered unjustified signal lines. In step 825a, backward tracing is performed using the unjustified signal line selected in step 824a as a starting point. In the backward tracing, the signal line having the logical value X is traced from the signal line which is the starting point toward the input side,
Set a logical value in the signal line at the location where the tracking was terminated. In step 826a, an implication operation is performed based on the logical value set in step 825a. In step 827a, it is determined that there is a test pattern in the relevant area of the target undetected failure. In step 828a, backtracking for resolving the contradiction is performed. In step 829a,
If it is determined in step 828a that the target undetected failure is a principle undetected failure, the process ends. If not, the process branches to step 830a. In step 830a, an implication operation is performed based on the logical value of the signal line changed in the process of the back track 828a.

【0029】図29は、図28のステップ825aに示
した後方追跡の詳細なフローチャートである。ステップ
831aでは、その出力信号線が未正当化信号線である
ゲートを後方追跡の目標ゲートUIOBJNとし、目標
値UIOBJLに未正当化信号線の論理値を設定する。
ステップ832aでは、UIOBJNの出力信号線が先
頭信号線ならばステップ834aへ分岐し、先頭信号線
でなければステップ833aへ分岐する。ステップ83
3aでは、UIOBJNに対する入力ゲートであって、
且つ、出力論理値がXであるゲートを1つ選択し、選択
した入力ゲートをUIOBJNとし、UIOBJNを更
新する。又、更新前のUIOBJNがNORゲートの場
合には、UIOBJLの値を反転(0−>1、1−>
0)させることによって、UIOBJLの値を更新し、
更新前のUIOBJNがEORゲートもしくはENOR
ゲートの場合には、更新後のUIOBJNの出力が1よ
り0に制御しやすければUIOBJLに0を、そうでな
ければUIOBJLに1を設定することによってUIO
BJLの値を更新する。但し、更新前のUIOBJNが
EORゲート且つ論理値がXの入力数が1個の場合に
は、更新前のUIOBJNのXでない入力論理値全てと
UIOBJLをEOR演算した値にUIOBJLを更新
し、更新前のUIOBJNがENORゲート且つ論理値
がXの入力数が1個の場合には、更新前のUIOBJN
のXでない入力論理値全てとUIOBJLをENOR演
算した値にUIOBJLを更新する。ステップ834a
では、UIOBJNの出力論理値にUIOBJLの値を
設定する。ステップ835aでは、処理装置10内に設
けた所定のスタックにUIOBJNのIDを積む。
FIG. 29 is a detailed flowchart of the backward tracking shown in step 825a of FIG. In step 831a, a gate whose output signal line is an unjustified signal line is set as a target gate UIOBJN for backward tracing, and a logical value of the unjustified signal line is set to a target value UIOBJL.
In step 832a, if the output signal line of UIOBJN is the head signal line, the process branches to step 834a, and if it is not the head signal line, the process branches to step 833a. Step 83
In 3a, the input gate for UIOBJN,
In addition, one gate whose output logic value is X is selected, the selected input gate is set as UIOBJN, and UIOBJN is updated. If the UIOBJN before update is a NOR gate, the value of UIOBJL is inverted (0-> 1, 1->).
0) to update the value of UIOBJL,
UIOBJN before update is EOR gate or ENOR
In the case of a gate, if it is easier to control the output of the updated UIOBJN from 1 to 0, UIOBJL is set to 0, otherwise UIOBJL is set to 1
Update the value of BJL. However, when the UIOBJN before update has an EOR gate and the number of inputs having a logical value of X is one, the UIOBJL is updated to a value obtained by EORing all the input logical values of the UIOBJN before update that are not X and UIOBJL. If the previous UIOBJN is an ENOR gate and the number of inputs whose logical value is X is 1, the UIOBJN before update is
UIOBJL is updated to a value obtained by performing an OR operation on all input logical values other than X and UIOBJL. Step 834a
Then, the value of UIOBJL is set to the output logical value of UIOBJN. In step 835a, the ID of UIOBJN is stacked on a predetermined stack provided in the processing device 10.

【0030】図30は、図28のステップ828aに示
したバックトラックの詳細なフローチャートである。ス
テップ841aでは、スタックが空か否かを調べ、スタ
ックが空ならばステップ847aへ分岐し、空でなけれ
ばステップ842aへ分岐する。ステップ842aで
は、スタックの1番上に積んであるIDに対応したゲー
トの論理値が反転済みであるか否かを調べ、反転済みな
らばステップ843aへ分岐し、未反転ならばステップ
846aへ分岐する。ステップ843aでは、スタック
の1番上に積まれたIDに対応するゲートの出力論理値
をXに戻す。ステップ844aでは、含意操作を行う。
ステップ845aでは、ゲートをスタックから除去す
る、すなわち、スタックの1番上に積まれたIDを除去
する。ステップ846aでは、スタックの1番上に積ま
れたIDに対応するゲートの出力論理値を反転(0−>
1、1−>0)する。ステップ847aでは、その関連
領域において対象未検出故障は原理的未検出故障である
と判定する。
FIG. 30 is a detailed flowchart of the backtrack shown in step 828a of FIG. In step 841a, it is checked whether or not the stack is empty. If the stack is empty, the process branches to step 847a, and if not, the process branches to step 842a. In step 842a, it is checked whether or not the logic value of the gate corresponding to the ID stacked on the top of the stack has been inverted, and if inverted, the process branches to step 843a. To do. In step 843a, the output logic value of the gate corresponding to the ID stacked on the top of the stack is returned to X. In step 844a, an implication operation is performed.
In step 845a, the gate is removed from the stack, i.e., the ID stacked on top of the stack is removed. In step 846a, the output logical value of the gate corresponding to the ID stacked on the top of the stack is inverted (0->
1, 1-> 0). In step 847a, it is determined that the target undetected failure in the relevant area is the principle undetected failure.

【0031】図31は、図12のステップ706に示し
た論理値割当て試行による判定処理の例を示す図であ
る。図31において、1r、2r、3r、4r、5r、
6r、及び7rはいずれもNORゲートを表し、8rは
入力エッジを表し、9r、10r、11r、12r、1
3r、14r、及び15rはいずれも信号線を表す。図
31(a)は、図12に示した簡約処理704で得られ
た回路の出力論理値に1を設定し、含意操作を行った回
路を表す(図27のステップ811a)。ここで、信号
線9rと10rをそれぞれ出力信号線とするNORゲー
ト2rと3rの出力論理値が0であり、入力論理値が全
てXであるため、信号線9rと10rはいずれも未正当
化信号線である。図31(b)は、図31(a)に示し
た回路に含まれる未正当化信号線の中から9rを選択し
て後方追跡を行った図である(図28のステップ824
a、ステップ825a)。ここで、(後方追跡の目標ゲ
ート、目標値)は(2r、0)−>(4r、1)−>
(6r、0)−>(8r、1)と順次更新される(図2
9のステップ833a)。図31(c)は、後方追跡の
最終目標ゲート8rに最終目標値1を設定し(ステップ
834a)、含意操作826aを行った結果を示した図
である。ここで、論理値を設定したゲート8rはスタッ
クに積まれる(ステップ835a)。ここで、NORゲ
ート3rの出力論理値は0であるのに、入力論理値0と
0のNOR演算結果は1であり、論理値に矛盾が生じて
いる。図31(d)は、図31(c)に示した回路に対
してバックトラックおよび含意操作を行った結果を示し
た図である(図28のステップ828a、ステップ82
9a)。スタックの1番上に積まれたゲート8rの論理
値を1から0に反転して(図30のステップ846
a)、含意操作を行うと今度はNORゲート2rで矛盾
が生じる。図31(e)は、図31(d)の回路に対し
て更にバックトラックを行った結果を示した図である。
スタックの1番上に積まれたゲート8rは既に論理値反
転済みのため、論理値をXに戻し(ステップ843
a)、含意操作を行い(ステップ844a)、次のバッ
クトラックの対象となるゲートを探索するが、スタック
が空のため、その関連領域において対象未検出故障は原
理的未検出故障であると判定する(ステップ847
a)。
FIG. 31 is a diagram showing an example of determination processing by the logical value allocation trial shown in step 706 of FIG. In FIG. 31, 1r, 2r, 3r, 4r, 5r,
6r and 7r each represent a NOR gate, 8r represents an input edge, and 9r, 10r, 11r, 12r, 1
3r, 14r, and 15r all represent signal lines. 31A shows a circuit in which the output logical value of the circuit obtained in the reduction processing 704 shown in FIG. 12 is set to 1 and the implication operation is performed (step 811a in FIG. 27). Here, since the output logical values of the NOR gates 2r and 3r whose output signal lines are the signal lines 9r and 10r are 0 and the input logical values are all X, the signal lines 9r and 10r are both unjustified. It is a signal line. 31B is a diagram in which 9r is selected from the unjustified signal lines included in the circuit shown in FIG. 31A to perform the backward tracking (step 824 of FIG. 28).
a, step 825a). Here, (rear tracking target gate, target value) is (2r, 0)-> (4r, 1)->
(6r, 0)-> (8r, 1) are sequentially updated (Fig. 2
Step 833a of 9). FIG. 31C is a diagram showing the result of performing the implication operation 826a by setting the final target value 1 in the final target gate 8r for backward tracking (step 834a). Here, the gate 8r for which the logical value is set is stacked on the stack (step 835a). Here, the output logical value of the NOR gate 3r is 0, but the NOR operation result of the input logical values 0 and 0 is 1, and thus the logical values are inconsistent. 31D is a diagram showing a result of backtracking and implication operations performed on the circuit shown in FIG. 31C (steps 828a and 82 in FIG. 28).
9a). The logical value of the gate 8r stacked on the top of the stack is inverted from 1 to 0 (step 846 in FIG. 30).
a) When the implication operation is performed, a contradiction occurs in the NOR gate 2r this time. FIG. 31 (e) is a diagram showing a result of backtracking further performed on the circuit of FIG. 31 (d).
Since the gate 8r stacked on the top of the stack has already undergone the logic value inversion, the logic value is returned to X (step 843).
a), the implication operation is performed (step 844a), and the target gate for the next backtrack is searched. However, since the stack is empty, the target undetected fault is determined to be a theoretical undetected fault in the relevant area. Yes (step 847)
a).

【0032】図32は、図28のステップ825aに示
した後方追跡の別法を示す詳細なフローチャートであ
る。図32に示すステップ831b、833b、834
b、及び835bは図29に示したステップ831a、
833a、834a、及び835aと同一のものであ
る。本実施例では、目標ゲート(UIOBJN)および
目標値(UIOBJL)の更新を1回行っただけで後方
追跡を打ち切る。
FIG. 32 is a detailed flowchart showing an alternative method of backward tracking shown in step 825a of FIG. Steps 831b, 833b, 834 shown in FIG.
b and 835b are steps 831a and 831a shown in FIG.
It is the same as 833a, 834a, and 835a. In this embodiment, the backward tracking is terminated by updating the target gate (UIOBJN) and the target value (UIOBJL) only once.

【0033】図33は、図8のステップ1000に示し
たテストパターン生成の詳細なフローチャートである。
ステップ1008では、図8のステップ700の処理中
に出力論理値が0又は1となった先頭信号線を入力エッ
ジまで正当化する。ここで、正当化とは、対象となって
いる信号線を出力信号線として持つゲートの論理演算結
果がその信号線の論理値と一致するように入力エッジま
で辿りながら順次論理値を決めていくことである。ステ
ップ1009では、その関連領域の入力には生成した対
象未検出故障のその関連領域におけるテストパターンを
割当て、全体論理回路の中のその関連領域外の入力に対
しては関連領域の出力ゲートの出力信号線の0縮退故障
或いは1縮退故障の全体回路におけるテストパターン
(既に生成済み)を割当ててマージする。
FIG. 33 is a detailed flowchart of the test pattern generation shown in step 1000 of FIG.
In step 1008, the leading signal line whose output logical value becomes 0 or 1 during the processing in step 700 of FIG. 8 is justified up to the input edge. Here, the justification is to sequentially determine the logical value while tracing to the input edge so that the logical operation result of the gate having the target signal line as the output signal line matches the logical value of the signal line. That is. In step 1009, the test pattern in the relevant area of the generated target undetected fault is assigned to the input of the relevant area, and the output of the output gate of the relevant area to the input outside the relevant area in the entire logic circuit. A test pattern (already generated) in the entire circuit with 0 stuck-at fault or 1 stuck-at fault of the signal line is assigned and merged.

【0034】図34は、図8のステップ1100に示し
た判定結果の編集の詳細なフローチャートである。ステ
ップ1101では、まだ判定結果の編集を行っていない
未検出故障が存在するかどうかを調べ、存在すればステ
ップ1102へ分岐し、存在しなければ処理を終了す
る。ステップ1102では、まだ判定結果の編集を行っ
ていない未検出故障を1つ選択する。ステップ1103
では、ステップ1102で選択した未検出故障を含む全
ての関連領域でこの未検出故障が原理的未検出故障であ
ると判定されたかどうかを調べ、判定されたならばステ
ップ1104へ分岐し、判定されなかったならばステッ
プ1105へ分岐する。ステップ1104では、ステッ
プ1102で選択した未検出故障は全体回路で原理的未
検出故障であると判定する。ステップ1105では、ス
テップ1102で選択した未検出故障のテストパターン
が生成されたかどうかを調べ、生成されたならばステッ
プ1106へ分岐し、生成されなかったならばステップ
1107へ分岐する。ステップ1106では、ステップ
1102で選択した未検出故障はテストパターンの生成
に成功したと判定する。ステップ1107では、ステッ
プ1102で選択した未検出故障が原理的未検出故障で
あるかという判定ができなかったと判定する。
FIG. 34 is a detailed flowchart for editing the judgment result shown in step 1100 of FIG. In step 1101, it is checked whether or not there is an undetected fault for which the determination result has not been edited. If it exists, the process branches to step 1102. If not, the process ends. In step 1102, one undetected fault for which the determination result has not been edited is selected. Step 1103
Then, it is checked whether or not the undetected fault is determined to be the principle undetected fault in all the relevant areas including the undetected fault selected in step 1102, and if it is determined, the process branches to step 1104 to determine If not, the process branches to step 1105. In step 1104, the undetected fault selected in step 1102 is determined to be a theoretical undetected fault in the entire circuit. In step 1105, it is checked whether or not the test pattern of the undetected fault selected in step 1102 is generated. If it is generated, the process branches to step 1106, and if it is not generated, the process branches to step 1107. In step 1106, it is determined that the undetected fault selected in step 1102 has successfully generated the test pattern. In step 1107, it is determined that it has not been possible to determine whether the undetected failure selected in step 1102 is a theoretical undetected failure.

【0035】次に、本発明の第2の実施例を説明する。
本実施例では、第1の実施例と同様のシステム構成で論
理回路の原理的未検出故障判定処理及びテストパターン
生成処理を行なう。これらの処理は図8に示した手順に
準ずるが、図8のステップ400において、関連領域の
NOR変換を行う代わりに関連領域のNAND変換を行
う。以下では、NAND変換に伴う処理の変更部(第1
の実施例と異なる部分)のみについて説明する。図35
は、本発明の第2の実施例における関連領域のNAND
変換で使用される等価表現の変換を示す図である。図3
5は、図8のステップ400に示した関連領域のNAN
D変換において使用される等価表現の変換例であり、A
ND、NAND、OR、及びNORゲートをそれぞれN
ANDゲートの組合せで表現したものである。また、図
12(図8のステップ700の詳細)に示したステップ
701において、NANDゲート変換された関連領域
を、対象未検出故障のその関連領域におけるテストパタ
ーンに対しては出力が0になり、それ以外の入力パター
ンに対しては出力が1になるような1出力回路に変換す
る。なお、図12のステップ703に示した先頭信号線
の更新の詳細は図18に、ステップ704に示した回路
の簡約処理の詳細は図20に、それぞれ示したものと同
様である。また、非束縛信号線の内、束縛信号線と隣接
しているものを先頭信号線と呼ぶ。非束縛信号線とは、
回路内のどの分岐点から出力側に辿っていっても辿りつ
けない信号線のことであり、束縛信号線とは、回路内の
適当な分岐点から出力側に辿っていくと到達可能な信号
線のことである。また、図14(図12のステップ70
7の詳細)に示したステップ852において、Eの出力
論理値に1を設定して後方含意を行なう代わりにEの出
力論理値に0を設定して後方含意を行う。又、ステップ
853において、Iの全ての入力論理値に0を設定して
後方含意を行う代わりにIの全ての入力論理値に1を設
定して後方含意を行う。また、図21(図20のステッ
プ734の詳細)のステップ751において、Rの論理
値に1を設定して含意を行う代わりにRの論理値に0を
設定して含意を行う。また、図23(図20のステップ
735の詳細)のステップ771において、Rの論理値
に1を設定して後方含意を行う代わりにRの論理値に0
を設定して後方含意を行い、ステップ779において、
Rの論理値に0を設定して前方含意を行う代わりにRの
論理値に1を設定して前方含意を行う。更に、ステップ
783において、対象未検出故障がその関連領域におい
て原理的未検出故障であると判定する代わりにテストパ
ターンの生成が可能であると判定し、ステップ784に
おいて、対象未検出故障がテストパターンの生成が可能
であると判定する代わりに原理的未検出故障であると判
定する。また、図25(図20のステップ739の詳
細)のステップ792において、Hの論理値に0を設定
して前方含意を行う代わりにHの論理値に1を設定して
前方含意を行い、ステップ794においてHの論理値に
1を設定して前方含意を行う代わりにHの論理値に0を
設定して前方含意を行う。更に、ステップ799におい
て、対象未検出故障がその関連領域において原理的未検
出故障であると判定する代わりにテストパターンの生成
が可能であると判定し、ステップ800において、対象
未検出故障がテストパターンの生成が可能であると判定
する代わりにその関連領域において原理的未検出故障で
あると判定する。また、図27(図12のステップ70
6の詳細)のステップ811aにおいて、回路の出力ゲ
ートの出力論理値に1を設定して含意操作を行う代わり
に回路の出力ゲートの出力論理値に0を設定して含意操
作を行う。なお、第1の実施例を示した図28、図2
9、図30、図32、図33、図34等については、本
実施例でもこれらと同様の処理を行なうものとする。
Next, a second embodiment of the present invention will be described.
In this embodiment, the principle undetected failure determination process and test pattern generation process of a logic circuit are performed with the same system configuration as that of the first embodiment. Although these processes are based on the procedure shown in FIG. 8, in step 400 of FIG. 8, NAND conversion of the related area is performed instead of NOR conversion of the related area. In the following, a change unit (first
Only the part different from the embodiment of FIG. Fig. 35
Is the NAND of the related area in the second embodiment of the present invention.
It is a figure which shows the conversion of the equivalent expression used by conversion. Figure 3
5 is the NAN of the related area shown in step 400 of FIG.
It is a conversion example of an equivalent expression used in D conversion, and
N, ND, NAND, OR, and NOR gates
It is expressed by a combination of AND gates. Further, in step 701 shown in FIG. 12 (details of step 700 in FIG. 8), the output becomes 0 for the test pattern in the relevant area of the target undetected fault in the relevant area that has undergone the NAND gate conversion, For other input patterns, the output pattern is converted into a one-output circuit that outputs 1. The details of the updating of the head signal line shown in step 703 of FIG. 12 are the same as those shown in FIG. 18, and the details of the circuit simplification processing shown in step 704 are the same as those shown in FIG. 20, respectively. Further, among the unbound signal lines, the one adjacent to the bound signal line is called a head signal line. What is an unbounded signal line?
A signal line that can not be reached from any branch point in the circuit to the output side, and a bound signal line is a signal that can be reached by tracing from the appropriate branch point in the circuit to the output side. It is a line. In addition, FIG. 14 (step 70 in FIG. 12)
In step 852 shown in (Details of 7), instead of setting the output logical value of E to 1 and performing the backward implication, setting the output logical value of E to 0 and performing the backward implication. Also, in step 853, instead of setting all input logical values of I to 0 and performing backward implication, set all input logical values of I to 1 and performing backward implication. Further, in step 751 of FIG. 21 (details of step 734 in FIG. 20), the implication is performed by setting the logical value of R to 0 instead of setting 1 to the logical value of R and performing implication. Also, in step 771 of FIG. 23 (details of step 735 in FIG. 20), instead of setting the logical value of R to 1 and performing backward implication, the logical value of R is set to 0.
Is set to perform implication backwards, and in step 779,
Instead of setting the logical value of R to 0 and performing forward implication, setting the logical value of R to 1 and performing forward implication. Further, in step 783, it is determined that a test pattern can be generated instead of determining that the target undetected fault is a principle undetected fault in the relevant area, and in step 784, the target undetected fault is the test pattern. Is determined to be a principle undetected failure, instead of determining that generation is possible. Further, in step 792 of FIG. 25 (details of step 739 of FIG. 20), instead of setting the logical value of H to 0 and performing forward implication, setting the logical value of H to 1 and performing forward implication, In 794, instead of setting the logical value of H to 1 and performing the forward implication, setting the logical value of H to 0 and performing the forward implication. Further, in step 799, it is determined that a test pattern can be generated instead of determining that the target undetected fault is a principle undetected fault in the relevant area, and in step 800, the target undetected fault is the test pattern. Is determined to be a principle undetected fault in the relevant area instead of being determined to be possible. 27 (step 70 in FIG. 12).
In step 811a (details of 6), instead of setting the output logic value of the output gate of the circuit to 1 and performing the implication operation, the output logic value of the output gate of the circuit is set to 0 and the implication operation is performed. 28 and 2 showing the first embodiment.
Regarding FIG. 9, FIG. 30, FIG. 32, FIG. 33, FIG. 34, etc., the same processing as these is performed in this embodiment.

【0036】次に、本発明の第3の実施例を説明する。
図36は、本発明の第3の実施例における不確定入力エ
ッジを含む論理回路の原理的未検出故障判定処理の概要
を表す図である。なお、21以外は図1に示したものと
同一である。1に対して、問題1「故障fは回路Xで原
理的未検出故障か?」を考える。2は1の対象となる組
合せ回路Xをfに関して変換して得られた1出力組合せ
回路Yを表す。2に対して、問題2「回路Yの出力は常
に0か?」を考えると、問題1と問題2は等価な問題に
なる。21は2の1出力組合せ回路を変換して得られた
不確定入力エッジを全く含まない1出力組合せ回路Y’
を表す。21に対して、問題3「回路Y’の出力は常に
0か?」を考えると、問題2と問題3は等価になる。3
は、NORゲート、EORゲート、ENORゲート、及
び入力エッジのみから構成される21の回路Y’の等価
回路Y’’を表す。3に対して問題3’「回路Y’’の
出力は常に0か?」を考えると、問題3と問題3’は等
価な問題になる。4は簡約処理等により回路を簡単にす
る過程を表す。5は簡約処理後の回路における論理値割
当て試行による回路の出力が1になる入力パターンの探
索を表す。この探索により問題3’の答が得られる。問
題3’の答がYESであれば問題3と問題2と問題1の
答もYESであり、問題3’の答がNOであれば問題3
と問題2と問題1の答もNOである。
Next, a third embodiment of the present invention will be described.
FIG. 36 is a diagram showing an outline of the principle undetected failure determination processing of the logic circuit including the uncertain input edge according to the third embodiment of the present invention. Other than 21, it is the same as that shown in FIG. For Problem 1, consider Problem 1 "Is the failure f a principle undetected failure in the circuit X?" Reference numeral 2 represents a one-output combination circuit Y obtained by converting the combination circuit X, which is the target of 1, with respect to f. On the other hand, considering Problem 2 “Is the output of circuit Y always 0?”, Problem 1 and Problem 2 are equivalent. Reference numeral 21 is a 1-output combination circuit Y ′ that does not include any uncertain input edges obtained by converting the 2-output 1-output combination circuit.
Represents Considering the problem 3, “Is the output of the circuit Y ′ always 0?”, The problems 2 and 3 are equivalent. Three
Represents an equivalent circuit Y ″ of 21 circuits Y ′ composed of NOR gates, EOR gates, ENOR gates, and input edges only. Considering the problem 3 ′ “Is the output of the circuit Y ″ always 0?” With respect to 3, the problems 3 and 3 ′ are equivalent problems. Reference numeral 4 represents a process for simplifying the circuit by a reduction process or the like. Reference numeral 5 represents a search for an input pattern in which the output of the circuit becomes 1 due to the logic value assignment trial in the circuit after the reduction processing. This search gives the answer to question 3 '. If the answer to question 3'is YES, the answers to questions 3, 2 and 1 are also YES, and if the answer to question 3'is NO, then question 3
The answer to question 2 and question 1 is also NO.

【0037】本実施例では、論理回路における原理的未
検出故障判定処理の流れは第1の実施例に示した図8の
フローチャートと同一である。図37は、図8のステッ
プ700に示した対象未検出故障の関連領域における原
理的未検出故障判定の詳細なフローチャートである。図
37において、ステップ720以外の処理は図12と同
一である。すなわち、ステップ720では、ステップ7
01で得られた回路を不確定入力エッジを含まない回路
に変換する。不確定入力エッジとは、0、1のどちらに
も確定できない入力エッジの事を表し、以下U入力エッ
ジと呼ぶ。
In the present embodiment, the flow of the principle undetected failure determination processing in the logic circuit is the same as the flow chart of FIG. 8 shown in the first embodiment. FIG. 37 is a detailed flowchart of the principle undetected failure determination in the relevant area of the target undetected failure shown in step 700 of FIG. 37, the processes other than step 720 are the same as those in FIG. That is, in step 720, in step 7
The circuit obtained in 01 is converted into a circuit that does not include an uncertain input edge. The uncertain input edge refers to an input edge that cannot be determined to be 0 or 1, and is hereinafter referred to as a U input edge.

【0038】図38は、図37のステップ720のU入
力エッジ除去のための回路変換の詳細なフローチャート
である。本実施例では、U入力エッジを除去するために
は2種類の回路変換A2、B1を行う。原理的未検出故
障判定及びテストパターン生成の処理とは無関係に出力
先ゲートに0又は1を設定できる(すなわち、0又は1
を設定した回路に対して原理的未検出故障判定を行って
も正しい判定結果が得られ、テストパターン生成を行っ
ても正しいテストパターンが得られる。)。U入力エッ
ジを除去する回路変換を回路変換A2とする。更に、回
路変換A2で除去できなかったU入力エッジに対してU
入力エッジに0を設定した場合の回路と1を設定した場
合の回路を合成することによりこれらのU入力エッジを
除去する回路変換を回路変換B1とする。ステップ72
1では取り扱う回路にU入力エッジが存在するかどうか
判定し、存在すればステップ722へ、存在しなければ
処理を終了する。なお、U入力エッジの有無は、図6に
示した論理回路データの中にゲートの種類32bが入力
エッジで出力論理値33aが不確定値であるようなゲー
トの有無を調べることにより、調べることができる。ス
テップ722では、U入力エッジで回路変換A2を実行
していないものが存在するかを調べ、存在すればステッ
プ723へ分岐し、存在しなければステップ724へ分
岐する。ステップ723ではそのU入力エッジの回路変
換A2を行う。ステップ724では、U入力エッジが存
在するかどうかを調べ、存在すればステップ725へ分
岐し、存在しなければ処理を終了する。ステップ725
では、そのU入力エッジの回路変換B1を行う。
FIG. 38 is a detailed flowchart of the circuit conversion for removing the U input edge in step 720 of FIG. In this embodiment, two types of circuit conversions A2 and B1 are performed to remove the U input edge. The output destination gate can be set to 0 or 1 regardless of the principle of undetected failure determination and test pattern generation processing (that is, 0 or 1).
A correct judgment result can be obtained even if the principle undetected failure judgment is performed on the circuit for which the setting is made, and a correct test pattern can be obtained even if the test pattern is generated. ). The circuit conversion for removing the U input edge is called circuit conversion A2. Furthermore, for the U input edge that could not be removed by the circuit conversion A2, U
A circuit conversion B1 is a circuit conversion for removing these U input edges by synthesizing a circuit in which 0 is set in the input edge and a circuit in which 1 is set. Step 72
In step 1, it is determined whether or not there is a U input edge in the circuit to be handled, and if it exists, the process proceeds to step 722. It should be noted that the presence or absence of the U input edge can be checked by checking the presence or absence of a gate in the logic circuit data shown in FIG. 6 in which the gate type 32b is the input edge and the output logical value 33a is an uncertain value. You can In step 722, it is checked whether or not there is a U input edge for which the circuit conversion A2 is not executed. If it exists, the process branches to step 723, and if it does not exist, the process branches to step 724. In step 723, circuit conversion A2 of the U input edge is performed. In step 724, it is checked whether or not the U input edge exists, and if it exists, the process branches to step 725, and if it does not exist, the processing ends. Step 725
Then, the circuit conversion B1 of the U input edge is performed.

【0039】図39は、図38のステップ723に示し
た回路変換A2の詳細なフローチャートである。ステッ
プ723aでは、対象U入力エッジの出力ゲートでまだ
調べていないものがあるかどうかを調べ、あればステッ
プ723bへ分岐し、なければ処理を終了する。ステッ
プ723bでは、U入力エッジの出力ゲートでまだ調べ
ていないものを1つ選択する。ステップ723cでは、
ステップ723bで選択した出力ゲートの入力ゲートで
U入力エッジ以外ののものが存在するかどうかを調べ、
存在すればステップ723dへ分岐し、存在しなければ
ステップ723hへ分岐する。ステップ723dでは、
ステップ723bで選択した出力ゲートの入力ゲートで
U入力エッジ以外のものを1つ選択する。ステップ72
3eでは、ステップ723dで選択した入力ゲートの論
理値がXであって、且つ、その入力ゲートが非束縛信号
線であるか、或いは、分岐を持たない先頭信号線である
かどうかを調べ、条件を満たすならばステップ723f
へ分岐し、条件を満たさなければステップ723cへ分
岐する。ステップ723fでは、ステップ723dで選
択した入力ゲートに論理値を設定する。ステップ723
fにおいて、回路がNORゲートと入力エッジで構成さ
れている場合には、論理値として1を設定し、回路がN
ANDゲートと入力エッジで構成されている場合には、
論理値として0を設定する。ステップ723gでは、選
択された入力ゲートに設定した論理値を入力エッジまで
正当化する。ここで、正当化とは、対象信号線を出力信
号線として持つゲートの論理演算結果が対象信号線の論
理値と一致するように入力エッジまで辿りながら順次論
理値を決めていくことである。一方、ステップ723h
では、ステップ723fで設定した論理値をもとに含意
操作を行う。ステップ723iでは、論理値が0又は1
のいずれかに定まった信号線の結線を切り離す。ステッ
プ723jでは、出力が浮きになったゲートを削除す
る。
FIG. 39 is a detailed flowchart of the circuit conversion A2 shown in step 723 of FIG. In step 723a, it is checked whether or not there is any output gate of the target U input edge which has not been checked yet. In step 723b, one of the output gates of the U input edge that has not been examined is selected. In step 723c,
Check whether there is any input gate other than the U input edge in the output gate selected in step 723b,
If it exists, the process branches to step 723d, and if it does not exist, the process branches to step 723h. In step 723d,
One of the input gates of the output gates selected in step 723b other than the U input edge is selected. Step 72
In 3e, it is checked whether the logic value of the input gate selected in step 723d is X and whether the input gate is an unbounded signal line or a leading signal line having no branch, and the condition is satisfied. If yes, step 723f
If the condition is not satisfied, the process branches to step 723c. In step 723f, a logical value is set in the input gate selected in step 723d. Step 723
In f, if the circuit is composed of a NOR gate and an input edge, the logical value is set to 1, and the circuit is set to N.
If it consists of AND gate and input edge,
Set 0 as a logical value. In step 723g, the logic value set in the selected input gate is justified up to the input edge. Here, the justification is to sequentially determine the logical value while tracing to the input edge so that the logical operation result of the gate having the target signal line as the output signal line matches the logical value of the target signal line. On the other hand, step 723h
Then, the implication operation is performed based on the logical value set in step 723f. In step 723i, the logical value is 0 or 1.
Disconnect the connection of the signal line that is set to either of. At step 723j, the gate whose output is floating is deleted.

【0040】図40は、本発明の第3の実施例における
回路変換A2を示す図である。図40(a)において、
U1はU入力エッジを表し、I1及びG1はNORゲー
トを表す。また、I1の論理値を1に設定することによ
り、U1の出力先ゲートG1の論理値を0に制御でき
る。更に、I1は非束縛信号線であるため、I1の論理
値を1に設定すると、G1の論理値が0に制御されるだ
けで、他の回路部分への影響はない。図40(b)は、
図40(a)において、I1の論理値に1を設定して前
方含意操作を行い、I1の論理値を入力エッジまで正当
化し(図39のステップ723f、ステップ723g、
ステップ723h)、0又は1のいずれかの値に定まっ
た信号線の結線を切り離し(ステップ723i)、出力
が浮きになったゲートを削除して(ステップ723j)
得られた回路を表す。図40(b)においてU入力エッ
ジU1は除去されている。図40(c)に回路変換A2
ができないU入力エッジの具体例を示す。図40(c)
において、U2はU入力エッジを表し、I2、G2、及
びG3はNORゲートを表す。また、I2の論理値を1
に設定することによりU2の出力先ゲートG2の論理値
を0に制御できる。しかし、I2の論理値を1に設定す
ると、G2以外のNORゲートG3の論理値に影響が及
ぶため、U2に対する回路変換A2は不可能である。
FIG. 40 is a diagram showing a circuit conversion A2 in the third embodiment of the present invention. In FIG. 40 (a),
U1 represents the U input edge and I1 and G1 represent the NOR gate. Further, by setting the logical value of I1 to 1, the logical value of the output destination gate G1 of U1 can be controlled to 0. Further, since I1 is an unbounded signal line, setting the logic value of I1 to 1 only controls the logic value of G1 to 0, and does not affect other circuit parts. FIG. 40 (b) shows
In FIG. 40A, the logical value of I1 is set to 1 and the forward implication operation is performed to justify the logical value of I1 up to the input edge (step 723f, step 723g of FIG. 39,
(Step 723h), the connection of the signal line which is set to a value of 0 or 1 is disconnected (Step 723i), and the gate whose output is floating is deleted (Step 723j).
The obtained circuit is shown. In FIG. 40B, the U input edge U1 has been removed. The circuit conversion A2 is shown in FIG.
A specific example of a U input edge that cannot be used is shown below. Fig. 40 (c)
At, U2 represents the U input edge and I2, G2, and G3 represent the NOR gates. Also, set the logical value of I2 to 1
Setting the output destination gate G2 of U2 to 0. However, if the logical value of I2 is set to 1, the logical value of the NOR gate G3 other than G2 is affected, so that the circuit conversion A2 for U2 is impossible.

【0041】図41は、図38はステップ725に示し
た回路変換B1の詳細なフローチャートである。ステッ
プ725aでは、U入力エッジが存在するかどうかを調
べ、存在すればステップ725bへ分岐し、存在しなけ
れば処理を終了する。ステップ725bでは、U入力エ
ッジを1つ選択する。ステップ725cでは、ステップ
725bで選択した対象U入力エッジから見て出力側に
ある回路をコピーする。コピーの操作は次の様に行う。
まず、ステップ725bで選択した対象U入力エッジか
ら辿ることができるゲートであって、且つ、回路の出力
ゲートを除く全てのゲートの各々に対して1つずつコピ
ーゲートを作る。更に、以下に述べるように、各コピー
ゲートの入力信号線を接続する。ゲートAのコピーゲー
トA’に対し、Aの全ての入力ゲートもしくは入力ゲー
トのコピーゲートとの間に入力信号線を繋ぐ。ここで、
Aの入力ゲートBがコピーゲートを持つならば(すなわ
ち、Bが対象U入力エッジから到達可能ならば)、Bの
コピーゲートB’とA’との間に信号線を繋ぎ、Bがコ
ピーゲートを持たないならば(すなわち、Bが対象U入
力エッジから到達不可能ならば)、BとA’との間に信
号線を繋ぐ。最後に、回路の出力ゲートに接続されてい
る入力ゲートのコピーゲートと回路の出力ゲートとの間
に信号線を繋ぐ。ステップ725dでは、対象U入力エ
ッジUE1に論理値0を設定し、UE1のコピーゲート
UE2に論理値1を設定する。ここで、逆にUE1に論
理値1を設定し、UE2に論理値0を設定しても構わな
い。ステップ725eでは、含意操作を行う。ステップ
725fでは、論理値が0又は1のいずれかに定まった
信号線の結線を切り離す。ステップ725gでは、出力
が浮きになったゲートを削除する。
FIG. 41 is a detailed flowchart of the circuit conversion B1 shown in step 725 of FIG. In step 725a, it is checked whether or not the U input edge exists, and if it exists, the process branches to step 725b, and if it does not exist, the processing ends. At step 725b, one U input edge is selected. In step 725c, the circuit on the output side as viewed from the target U input edge selected in step 725b is copied. The copy operation is performed as follows.
First, one copy gate is created for each of all the gates that can be traced from the target U input edge selected in step 725b and except the output gate of the circuit. Further, as described below, the input signal line of each copy gate is connected. An input signal line is connected between the copy gate A ′ of the gate A and all the input gates of A or the copy gates of the input gates. here,
If A's input gate B has a copy gate (ie, B is reachable from the target U input edge), connect a signal line between B's copy gates B'and A ', where B is a copy gate. If (i.e., B is unreachable from the target U input edge), then connect a signal line between B and A '. Finally, a signal line is connected between the copy gate of the input gate connected to the output gate of the circuit and the output gate of the circuit. In step 725d, a logical value 0 is set in the target U input edge UE1 and a logical value 1 is set in the copy gate UE2 of UE1. Here, conversely, the logical value 1 may be set to UE1 and the logical value 0 may be set to UE2. In step 725e, an implication operation is performed. In step 725f, the connection of the signal line whose logical value is set to 0 or 1 is disconnected. In step 725g, the gate whose output is floating is deleted.

【0042】図42は、本発明の第3の実施例における
回路変換B1を示す図である。図42(a)において、
U3はU入力エッジを表し、R1、R2、R3、R4、
R5、R6、R7、及びR8はNORゲートを表し、O
1は回路の出力NORゲートを表す。U3は回路変換A
2が不可能なU入力エッジである。図42(b)は、図
42(a)に示した回路でU3より出力側を複写した後
の回路を表す。図42(b)において、U3’はU3を
コピーしたU入力エッジを表し、C4、C5、C7、及
びC8はそれぞれR4、R5、R7、及びR8をコピー
したNORゲートを表す(図41のステップ725
c)。図42(c)は、図42(b)に示したU3に論
理値0を、U3’に論理値1を設定して含意操作を行
い、論理値が0又は1となった信号線を切り離し、出力
が浮きになったゲートを削除した回路である(ステップ
725d、ステップ725e、ステップ725f、ステ
ップ725g)。図42(c)では、対象U入力エッジ
U3は除去されている。
FIG. 42 is a diagram showing a circuit conversion B1 in the third embodiment of the present invention. In FIG. 42 (a),
U3 represents the U input edge, R1, R2, R3, R4,
R5, R6, R7, and R8 represent NOR gates, and
1 represents the output NOR gate of the circuit. U3 is circuit conversion A
2 is an impossible U input edge. FIG. 42B shows the circuit after copying the output side from U3 in the circuit shown in FIG. In FIG. 42 (b), U3 ′ represents a U input edge obtained by copying U3, and C4, C5, C7, and C8 represent NOR gates obtained by copying R4, R5, R7, and R8, respectively (step of FIG. 41). 725
c). 42 (c), the logical value 0 is set to U3 and the logical value 1 is set to U3 ′ shown in FIG. 42 (b) to perform the implication operation, and the signal line having the logical value 0 or 1 is disconnected. , A circuit in which a gate whose output is floated is deleted (step 725d, step 725e, step 725f, step 725g). In FIG. 42C, the target U input edge U3 has been removed.

【0043】[0043]

【発明の効果】本発明によれば、必要な回路領域のみを
切り出し、回路の冗長性を除去することにより、演算器
系論理回路の原理的未検出故障判定が効率的にできる。
また、この原理的未検出故障判定の結果を用いることに
より、テストパターンを容易に生成できる。
According to the present invention, by cutting out only the necessary circuit area and removing the redundancy of the circuit, the principle undetected failure determination of the arithmetic unit logic circuit can be efficiently performed.
Moreover, a test pattern can be easily generated by using the result of this principle undetected failure determination.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の第1の実施例における論理回路の原理
的未検出故障判定処理の概要を表す図である。
FIG. 1 is a diagram illustrating an outline of a principle undetected failure determination process of a logic circuit according to a first embodiment of the present invention.

【図2】拡張含意操作の一例を示す図である。FIG. 2 is a diagram showing an example of an extended implication operation.

【図3】一意活性化の一例を示す図である。FIG. 3 is a diagram showing an example of unique activation.

【図4】従来の簡約手法の一例を示す図である。FIG. 4 is a diagram showing an example of a conventional reduction method.

【図5】本発明の論理回路の原理的未検出故障判定方法
及びテストパターン生成方法を適用する計算機システム
の構成図である。
FIG. 5 is a configuration diagram of a computer system to which the principle undetected failure determination method of logic circuit and the test pattern generation method of the present invention are applied.

【図6】図5の論理回路データ30の構成を示す図であ
る。
6 is a diagram showing a configuration of logic circuit data 30 of FIG.

【図7】図5の出力仮定故障テーブル40、入力仮定故
障テーブル45、及びテストパターン・データ50の構
成を示す図である。
FIG. 7 is a diagram showing the configurations of an output hypothetical failure table 40, an input hypothetical failure table 45, and test pattern data 50 shown in FIG.

【図8】本発明の第1の実施例における論理回路の原理
的未検出故障判定処理及びテストパターン生成処理の概
要を表すフローチャートである。
FIG. 8 is a flow chart showing an outline of the principle undetected failure determination processing and test pattern generation processing of the logic circuit in the first embodiment of the present invention.

【図9】図8のステップ100に示した関連領域調査の
詳細なフローチャートである。
FIG. 9 is a detailed flowchart of the related area investigation shown in step 100 of FIG.

【図10】本発明の第1の実施例における関連領域を表
す図である。
FIG. 10 is a diagram showing a related area in the first exemplary embodiment of the present invention.

【図11】図8のステップ400において使用されるA
ND、NAND、OR、NORゲートのNORゲートに
よる等価表現の変換例を示す図である。
FIG. 11: A used in step 400 of FIG.
It is a figure which shows the conversion example of the equivalent expression by the NOR gate of ND, NAND, OR, and NOR gate.

【図12】図8のステップ700に示した対象未検出故
障の関連領域における原理的未検出故障判定の詳細なフ
ローチャートである。
12 is a detailed flowchart of the principle undetected failure determination in the relevant area of the target undetected failure shown in step 700 of FIG.

【図13】図12のステップ701に示した仮定故障に
対する回路変換例を表す図である。
FIG. 13 is a diagram showing an example of circuit conversion for the assumed failure shown in step 701 of FIG.

【図14】図12のステップ707に示したEOR論理
抽出・簡約処理におけるEOR論理抽出の詳細なフロー
チャートである。
FIG. 14 is a detailed flowchart of EOR logic extraction in the EOR logic extraction / reduction processing shown in step 707 of FIG.

【図15】図12のステップ707に示したEOR論理
抽出・簡約処理におけるEOR論理抽出処理の具体例を
表す図である。
15 is a diagram showing a specific example of EOR logic extraction processing in the EOR logic extraction / reduction processing shown in step 707 of FIG.

【図16】図12のステップ707に示したEOR論理
抽出・簡約処理におけるEORゲート及びENORゲー
トの簡約例を示す図である。
16 is a diagram showing a reduction example of the EOR gate and the ENOR gate in the EOR logic extraction / reduction processing shown in step 707 of FIG.

【図17】図12のステップ702に示した共通論理を
まとめる処理の具体例を表す図である。
FIG. 17 is a diagram showing a specific example of a process of putting together the common logic shown in step 702 of FIG.

【図18】図12のステップ703に示した先頭信号線
の更新の詳細なフローチャートである。
FIG. 18 is a detailed flowchart of updating the head signal line shown in step 703 of FIG.

【図19】図12のステップ703に示した先頭信号線
の更新例を示す図である。
FIG. 19 is a diagram showing an example of updating the head signal line shown in step 703 of FIG.

【図20】図12のステップ704に示した回路の簡約
処理の詳細なフローチャートである。
20 is a detailed flowchart of the reduction processing of the circuit shown in step 704 of FIG.

【図21】図20のステップ734に示した簡約処理A
1の詳細なフローチャートである。
FIG. 21 is a reduction process A shown in step 734 of FIG. 20.
It is a detailed flowchart of 1.

【図22】図20のステップ734に示した簡約処理A
1の例を示す図である。
22 is a reduction process A shown in step 734 of FIG.
It is a figure which shows the example of 1.

【図23】図20のステップ735に示した簡約処理A
の詳細なフローチャートである。
FIG. 23 is a reduction process A shown in step 735 of FIG. 20.
2 is a detailed flowchart of FIG.

【図24】図20のステップ735に示した簡約処理A
の例を示す図である。
FIG. 24 is a reduction process A shown in step 735 of FIG. 20.
It is a figure which shows the example of.

【図25】図20のステップ739に示した簡約処理B
の詳細なフローチャートである。
FIG. 25 is a reduction process B shown in step 739 of FIG. 20.
2 is a detailed flowchart of FIG.

【図26】図20のステップ739に示した簡約処理B
の例を示す図である。
FIG. 26 is a reduction process B shown in step 739 of FIG. 20.
It is a figure which shows the example of.

【図27】図12のステップ706に示した論理値割当
て試行による判定の詳細なフローチャートである。
27 is a detailed flowchart of the determination by the logical value allocation trial shown in step 706 of FIG.

【図28】図27のステップ812aに示した未正当化
信号線に対する正当化の詳細なフローチャートである。
28 is a detailed flowchart of justification for the unjustified signal line shown in step 812a of FIG. 27. FIG.

【図29】図28のステップ825aに示した後方追跡
の詳細なフローチャートである。
FIG. 29 is a detailed flowchart of the backward tracking shown in step 825a of FIG. 28.

【図30】図28のステップ828aに示したバックト
ラックの詳細なフローチャートである。
FIG. 30 is a detailed flowchart of the backtrack shown in step 828a of FIG. 28.

【図31】図12のステップ706に示した論理値割当
て試行による判定処理の例を示す図である。
FIG. 31 is a diagram showing an example of determination processing by the logical value allocation trial shown in step 706 of FIG.

【図32】図28のステップ825aに示した後方追跡
の別法を示す詳細なフローチャートである。
32 is a detailed flowchart showing an alternative method of backward tracking shown in step 825a of FIG. 28. FIG.

【図33】図8のステップ1000に示したテストパタ
ーン生成の詳細なフローチャートである。
FIG. 33 is a detailed flowchart of test pattern generation shown in step 1000 of FIG.

【図34】図8のステップ1100に示した判定結果の
編集の詳細なフローチャートである。
34 is a detailed flowchart of editing the determination result shown in step 1100 of FIG.

【図35】本発明の第2の実施例における関連領域のN
AND変換で使用される等価表現の変換を示す図であ
る。
FIG. 35 is an N of the related area in the second embodiment of the present invention.
It is a figure which shows the conversion of the equivalent expression used by AND conversion.

【図36】本発明の第3の実施例における不確定入力エ
ッジを含む論理回路の原理的未検出故障判定処理の概要
を表す図である。
FIG. 36 is a diagram showing an outline of a principle undetected failure determination process of a logic circuit including an uncertain input edge according to the third example of the present invention.

【図37】図8のステップ700に示した対象未検出故
障の関連領域における原理的未検出故障判定の詳細なフ
ローチャートである。
37 is a detailed flowchart of the principle undetected failure determination in the relevant area of the target undetected failure shown in step 700 of FIG. 8. FIG.

【図38】図37のステップ720のU入力エッジ除去
のための回路変換の詳細なフローチャートである。
38 is a detailed flowchart of the circuit conversion for U input edge removal in step 720 of FIG. 37. FIG.

【図39】図38のステップ723に示した回路変換A
2の詳細なフローチャートである。
FIG. 39 is the circuit conversion A shown in step 723 of FIG. 38.
2 is a detailed flowchart of 2.

【図40】本発明の第3の実施例における回路変換A2
を示す図である。
FIG. 40 is a circuit conversion A2 in the third embodiment of the present invention.
FIG.

【図41】図38のステップ725に示した回路変換B
1の詳細なフローチャートである。
41 is a circuit conversion B shown in step 725 of FIG.
It is a detailed flowchart of 1.

【図42】本発明の第3の実施例における回路変換B1
を示す図である。
FIG. 42 is a circuit conversion B1 in the third embodiment of the present invention.
FIG.

【符号の説明】[Explanation of symbols]

1 対象組合せ回路Xと対象未検出故障f 2 対象組合せ回路Xに対象未検出故障fに関する変換
を行って得られた1出力回路Y 2’ NORゲート、EORゲート、ENORゲート、
及び入力エッジで構成された1出力回路Yと等価な1出
力回路Y’ 4 簡約処理 5 論理値割当て試行 10 処理装置 20 原理的未検出故障判定プログラム 30 論理回路データ 40 出力仮定故障テーブル 45 入力仮定故障テーブル 50 テストパターン・データ
1 target combination circuit X and target undetected fault f 2 1 output circuit Y 2 ′ obtained by performing conversion on target undetected fault f to target combination circuit X 2 NOR gate, EOR gate, ENOR gate,
1 output circuit Y'4 equivalent to one output circuit Y composed of and input edges 4 Reduction process 5 Logical value assignment trial 10 Processor 20 Principle undetected failure judgment program 30 Logic circuit data 40 Output assumption failure table 45 Input assumption Failure table 50 Test pattern data

───────────────────────────────────────────────────── フロントページの続き (72)発明者 西田 隆夫 神奈川県秦野市堀山下1番地 株式会社日 立製作所汎用コンピュータ事業部内 (72)発明者 松嶋 潤 神奈川県秦野市堀山下1番地 株式会社日 立製作所汎用コンピュータ事業部内 ─────────────────────────────────────────────────── ─── Continuation of front page (72) Inventor Takao Nishida 1 Horiyamashita, Hinoyama, Hadano, Kanagawa Pref., General Computer Division, Hitachi, Ltd. (72) Inventor Jun Matsushima 1 Horiyamashita, Hadano, Kanagawa Factory General Computer Division

Claims (19)

【特許請求の範囲】[Claims] 【請求項1】 スキャン設計方式の論理回路の故障診断
方法において、フリップフロップ及び入出力エッジで分
割して得られる組合せ回路からなる分割回路の内の対象
未検出故障を含むものを全て抽出する第1のステップ
と、該分割回路を一種類の基本ゲートのみで構成した等
価回路に変換する第2のステップと、該等価回路におい
て該未検出故障を検出する入力パターンに対しては真値
を出力し、それ以外の入力パターンに対しては偽値を出
力する1出力回路に該等価回路を変換する第3のステッ
プと、該1出力回路の出力が真値になる入力パターンが
存在するか否かを判定する第4のステップと、各分割回
路における判定結果が全て該入力パターンが存在しない
場合に前記未検出故障のテストパターンが全体回路に存
在しない故障であると判定する第5のステップとを備
え、前記第4ステップには、前記第3ステップで得られ
た1出力回路においてEOR論理とENOR論理を抽出
・簡約する第1のサブステップと、該第1サブステップ
で得られた回路内の同一論理を表す複数ゲートを1ゲー
トにまとめる第2のサブステップと、該第2サブステッ
プで得られた回路において互いに独立に真値又は偽値に
出力を制御できる該回路内のゲートの組であって該ゲー
トの組より入力側に信号線の分岐点が存在するものを認
識することにより該分岐点から到達可能な回路領域と該
分岐点から到達不可能な回路領域の境界にある信号線を
該ゲートの組より出力側に更新する第3のサブステップ
と、該第3サブステップで得られた回路内の冗長な論理
を簡約する第4のサブステップと、該第4サブステップ
で得られた回路で信号線の論理値割当てを試行すること
により前記1出力回路の出力が真値になる入力パターン
が存在するか否かを判定する第5のサブステップとを備
えたことを特徴とする論理回路の原理的未検出故障判定
方法。
1. A fault diagnosing method for a logic circuit according to a scan design method, wherein all of the division circuits including a combinational circuit obtained by division at a flip-flop and an input / output edge, including target undetected faults, are extracted. 1 step, a second step of converting the divided circuit into an equivalent circuit composed of only one kind of basic gate, and outputting a true value for an input pattern for detecting the undetected fault in the equivalent circuit However, for other input patterns, there is a third step of converting the equivalent circuit into a one-output circuit that outputs a false value, and whether there is an input pattern in which the output of the one-output circuit becomes a true value. A fourth step of determining whether or not the test result of the undetected fault is a fault that does not exist in the entire circuit when the determination result in each divided circuit does not include all the input patterns. A fifth sub-step for making a decision, the fourth sub-step including a first sub-step for extracting and reducing EOR logic and ENOR logic in the one-output circuit obtained in the third step, and the first sub-step. In the second substep of combining a plurality of gates representing the same logic in the circuit obtained in the step into one gate, and in the circuit obtained in the second substep, the output can be controlled to a true value or a false value independently of each other. By recognizing a set of gates in the circuit in which a branch point of a signal line exists on the input side of the set of gates, a circuit area reachable from the branch point and an unreachable point from the branch point A third sub-step for updating a signal line at the boundary of the circuit region to the output side from the set of gates, and a fourth sub-step for reducing the redundant logic in the circuit obtained in the third sub-step. , The fourth And a fifth sub-step for determining whether or not there is an input pattern in which the output of the one-output circuit is a true value by trying the logical value assignment of the signal line in the circuit obtained in the step. Principle of undetected failure judgment method of logic circuit characterized by.
【請求項2】 請求項1記載の論理回路の原理的未検出
故障判定方法を用いたテストパターン作成方法におい
て、上記第4ステップにおいて該入力パターンが存在す
ると判定された該未検出故障に対し、値の定まった入力
エッジの論理値情報からテストパターンを生成すること
を特徴とする論理回路のテストパターン生成方法。
2. The test pattern creation method using the principle undetected failure determination method for a logic circuit according to claim 1, wherein the undetected failure determined to have the input pattern in the fourth step is: A test pattern generation method for a logic circuit, which is characterized in that a test pattern is generated from logic value information of an input edge having a fixed value.
【請求項3】 請求項1記載の論理回路の原理的未検出
故障判定方法において、上記第1ステップには、未検出
故障箇所を含む全ての1出力分割回路を抽出する第1の
サブステップと、各該1出力分割回路について該1出力
分割回路と該1出力分割回路の入力エッジと該1出力分
割回路内の0縮退故障か1縮退故障の何れかが既に検出
済みである出力信号線で囲まれ、該未検出故障箇所を含
む1出力回路の内、回路規模が最小なものを原理的未検
出故障判定に必要な関連領域として認識する第2のサブ
ステップと、重複する関連領域を除去する第3のサブス
テップとを備え、有効な関連領域に限定して原理的未検
出故障判定を行うことを特徴とする論理回路の原理的未
検出故障判定方法。
3. The method for determining a principle undetected failure of a logic circuit according to claim 1, wherein the first step includes a first substep of extracting all one-output divided circuits including an undetected failure part. , For each of the one-output dividing circuits, an input edge of the one-output dividing circuit, and an output signal line in which either a stuck-at-0 fault or a stuck-at-1 fault in the one-output dividing circuit has already been detected. A second sub-step of recognizing the one having the smallest circuit scale among the one-output circuits surrounded by the undetected failure location as a related area necessary for the principle undetected failure determination, and the overlapping related areas are removed. And a third sub-step for performing the principle undetected failure determination method for a logic circuit, which is characterized in that the principle undetected failure determination is performed only in an effective related area.
【請求項4】 請求項1記載の論理回路の原理的未検出
故障判定方法において、上記第3ステップには、未検出
故障箇所に故障信号をセットするような入力パターンに
対しては回路の出力論理値が真値になり、それ以外の入
力パターンに対しては回路の出力論理値が偽値となる回
路に上記等価回路を変換する第1のサブステップと、前
記未検出故障箇所に故障信号をセットし、該未検出故障
箇所より最初の信号線の分岐点まで故障信号を伝播させ
るような入力パターンに対しては回路の出力論理値が真
値になり、それ以外の入力パターンに対しては回路の出
力論理値が偽値となる回路に前記第1サブステップで得
られた回路を変換する第2のサブステップと、前記未検
出故障箇所に故障信号をセットし、該未検出故障箇所よ
り最初の信号線の分岐点まで故障信号を伝播させ、該分
岐点より前記該等価回路の出力まで故障信号を伝播させ
る入力パターンに対しては回路の出力論理値が真値とな
り、それ以外の入力パターンに対しては回路の出力論理
値が偽値となる回路に前記第2サブステップで得られた
回路を変換する第3のサブステップとを備えることを特
徴とする論理回路の原理的未検出故障判定方法。
4. The logical undetected failure determination method for a logic circuit according to claim 1, wherein in the third step, the circuit output is applied to an input pattern for setting a failure signal at an undetected failure location. A first sub-step of converting the equivalent circuit into a circuit in which the logical value becomes a true value and the output logical value of the circuit becomes a false value for other input patterns, and a failure signal at the undetected failure point For an input pattern that propagates a fault signal from the undetected fault point to the branch point of the first signal line, the output logical value of the circuit becomes a true value, and for other input patterns Is a second sub-step for converting the circuit obtained in the first sub-step into a circuit in which the output logical value of the circuit is a false value, and a failure signal is set to the undetected failure point, and the undetected failure point is set. The first signal line For an input pattern that propagates a fault signal to a branch point and propagates the fault signal from the branch point to the output of the equivalent circuit, the output logical value of the circuit becomes a true value, and for other input patterns And a third sub-step for converting the circuit obtained in the second sub-step into a circuit whose output logical value is a false value.
【請求項5】 請求項4記載の論理回路の原理的未検出
故障判定方法において、上記第1サブステップでは、未
検出故障が偽値を出力値として持つ縮退故障ならば、未
検出故障信号線を出力信号線として持つ基本ゲートと新
しく設けた出力基本ゲートとの間に、論理値を反転させ
る1入力基本ゲートをはさんで結線を繋ぎ、該未検出故
障信号線の結線を切り離し、前記未検出故障が真値を出
力値として持つ縮退故障ならば、未検出故障信号線を出
力信号線として持つ基本ゲートと新しく設けた出力基本
ゲートとの間に結線を繋ぎ、該未検出故障信号線の結線
を切り離すことを特徴とする論理回路の原理的未検出故
障判定方法。
5. The method for determining an undetected failure of a logic circuit according to claim 4, wherein in the first sub-step, if the undetected failure is a stuck-at failure having a false value as an output value, the undetected failure signal line. Is connected between the basic gate having the output signal line and the newly provided output basic gate by interposing a 1-input basic gate that inverts the logical value, and the undetected fault signal line is disconnected. If the detected fault is a stuck-at fault having a true value as an output value, a connection is connected between a basic gate having an undetected fault signal line as an output signal line and a newly provided output basic gate, and the undetected fault signal line A principle of undetected failure determination method of a logic circuit characterized by disconnecting the wiring.
【請求項6】 請求項4記載の論理回路の原理的未検出
故障判定方法において、上記第1サブステップでは、未
検出故障が偽値を出力値として持つ縮退故障ならば、未
検出故障信号線を出力信号線として持つ基本ゲートと新
しく設けた出力基本ゲートとの間に、論理値を反転させ
る1入力基本ゲートをはさんで結線を繋ぎ、該未検出故
障信号線の結線を切り離し、前記未検出故障が真値を出
力値として持つ縮退故障ならば、未検出故障信号線を出
力信号線として持つ基本ゲートと新しく設けた出力基本
ゲートとの間に結線を繋ぎ、該未検出故障信号線の結線
を切り離し、上記第2サブステップでは、前記第1サブ
ステップで得られた回路内の未検出故障箇所から最初の
信号線の分岐点までの経路上の各基本ゲートに対して、
該基本ゲートに対する入力基本ゲートであって該経路上
にないものの出力に、新しく設けた出力基本ゲートを繋
ぎ、該基本ゲートと該基本ゲートに対する全ての入力基
本ゲートとの間の結線を切り離すことを特徴とする論理
回路の原理的未検出故障判定方法。
6. The logic undetected failure determination method according to claim 4, wherein in the first sub-step, if the undetected failure is a stuck-at failure having a false value as an output value, the undetected failure signal line. Is connected between the basic gate having the output signal line and the newly provided output basic gate by interposing a 1-input basic gate that inverts the logical value, and the undetected fault signal line is disconnected. If the detected fault is a stuck-at fault having a true value as an output value, a connection is connected between a basic gate having an undetected fault signal line as an output signal line and a newly provided output basic gate, and the undetected fault signal line The connection is separated, and in the second sub-step, for each basic gate on the path from the undetected fault location in the circuit obtained in the first sub-step to the branch point of the first signal line,
A new output basic gate is connected to the output of an input basic gate to the basic gate which is not on the path, and the connection between the basic gate and all input basic gates to the basic gate is disconnected. A principle of undetected failure determination method for a characteristic logic circuit.
【請求項7】 請求項4記載の論理回路の原理的未検出
故障判定方法において、上記第1サブステップでは、未
検出故障が偽値を出力値として持つ縮退故障ならば、未
検出故障信号線を出力信号線として持つ基本ゲートと新
しく設けた出力基本ゲートとの間に、論理値を反転させ
る1入力基本ゲートをはさんで結線を繋ぎ、該未検出故
障信号線の結線を切り離し、前記未検出故障が真値を出
力値として持つ縮退故障ならば、未検出故障信号線を出
力信号線として持つ基本ゲートと新しく設けた出力基本
ゲートとの間に結線を繋ぎ、該未検出故障信号線の結線
を切り離し、上記第2サブステップでは、前記第1サブ
ステップで得られた回路内の未検出故障箇所から最初の
信号線の分岐点までの経路上の各基本ゲートに対して、
該基本ゲートに対する入力基本ゲートであって該経路上
にないものの出力に、新しく設けた出力基本ゲートを繋
ぎ、該基本ゲートと該基本ゲートに対する全ての入力基
本ゲートとの間の結線を切り離し、上記第3サブステッ
プでは、前記第2サブステップで得られた回路内の故障
信号の伝播しうる回路領域を、未検出故障を含まない正
常回路と未検出故障を含む故障回路に分離し、新たに基
本ゲートで構成される2入力排他論理和を設け、該2入
力排他論理和の入力と前記正常回路及び故障回路の各出
力とを繋ぎ、該2入力排他論理和の出力と第1サブステ
ップで新しく設けた出力基本ゲートとの間に、論理値を
反転する1入力基本ゲートをはさんで結線を繋ぐことを
特徴とする論理回路の原理的未検出故障判定方法。
7. The principle undetected failure determination method for a logic circuit according to claim 4, wherein in the first substep, if the undetected failure is a stuck-at failure having a false value as an output value, the undetected failure signal line. Between the basic gate having an output signal line and a newly provided output basic gate with a 1-input basic gate for inverting the logic value connected to disconnect the undetected fault signal line. If the detected fault is a stuck-at fault having a true value as an output value, a connection is connected between a basic gate having an undetected fault signal line as an output signal line and a newly provided output basic gate, and the undetected fault signal line The connection is separated, and in the second sub-step, for each basic gate on the path from the undetected fault location in the circuit obtained in the first sub-step to the branch point of the first signal line,
A newly provided output basic gate is connected to the output of the input basic gate to the basic gate which is not on the path, and the connection between the basic gate and all the input basic gates to the basic gate is disconnected, In the third sub-step, the circuit area in the circuit obtained in the second sub-step in which the fault signal can propagate is separated into a normal circuit not including an undetected fault and a fault circuit including an undetected fault, and newly A two-input exclusive OR composed of basic gates is provided, the input of the two-input exclusive OR is connected to each output of the normal circuit and the failure circuit, and the output of the two-input exclusive OR and the first substep A principle undetected failure determination method for a logic circuit, characterized in that a connection is connected between a newly provided output basic gate and a one-input basic gate that inverts a logical value.
【請求項8】 請求項1記載の論理回路の原理的未検出
故障判定方法において、上記第1サブステップには、回
路内のEOR論理及びENOR論理を認識してEORゲ
ート及びENORゲートで表現する第1のサブステップ
と、回路内のm入力EORゲートの入力ゲートにn入力
EORゲートがある場合(m,n:整数)には両該ゲー
トを(m+n−1)入力EORゲートで置き換え、m入
力EORゲートの入力ゲートにn入力ENORゲートが
ある場合には両該ゲートを(m+n−1)入力ENOR
ゲートで置き換え、m入力ENORゲートの入力ゲート
にn入力EORゲートがある場合には両該ゲートを(m
+n−1)入力ENORゲートで置き換え、m入力EN
ORゲートの入力ゲートにn入力ENORゲートがある
場合には両該ゲートを(m+n−1)入力EORゲート
で置き換える第2のサブステップと、回路内のEORゲ
ートの入力ゲートに1入力基本ゲートが偶数個存在する
場合には該1入力基本ゲートの入力ゲート全てと該EO
Rゲートを直接繋ぎ該1入力基本ゲートを全て削除し、
EORゲートの入力ゲートに1入力基本ゲートが奇数個
存在する場合には該1入力基本ゲートの入力ゲート全て
と該EORゲートを直接繋ぎ該1入力基本ゲートを全て
削除し該EORゲートをENORゲートに置き換え、E
NORゲートの入力ゲートに1入力基本ゲートが偶数個
存在する場合には該1入力基本ゲートの入力ゲート全て
と該ENORゲートを直接繋ぎ該1入力基本ゲートを全
て削除し、ENORゲートの入力ゲートに1入力基本ゲ
ートが奇数個存在する場合には該1入力基本ゲートの入
力ゲート全てと該ENORゲートを直接繋ぎ該1入力基
本ゲートを全て削除し該ENORゲートをEORゲート
に置き換える第3のサブステップとを備えることを特徴
とする論理回路の原理的未検出故障判定方法。
8. The method for determining a principle undetected failure of a logic circuit according to claim 1, wherein in the first substep, EOR logic and ENOR logic in the circuit are recognized and expressed by an EOR gate and an ENOR gate. If there is an n-input EOR gate in the input gate of the first substep and the m-input EOR gate in the circuit (m, n: integer), replace both gates with (m + n-1) -input EOR gate, and m If the input gates of the input EOR gates have n-input ENOR gates, both gates are (m + n-1) input ENORs.
If there is an n-input EOR gate in the input gate of the m-input ENOR gate, replace both gates with (m
+ N-1) Replaced with input ENOR gate, m input EN
If the input gates of the OR gates have n-input ENOR gates, the second sub-step of replacing both the gates with (m + n-1) -input EOR gates, and the input gates of the EOR gates in the circuit have 1-input basic gates. If an even number exists, all the input gates of the one-input basic gate and the EO
R gate is directly connected and the 1 input basic gate is deleted.
If there is an odd number of 1-input basic gates in the input gates of the EOR gate, all the input gates of the 1-input basic gates are directly connected to the EOR gates, and the 1-input basic gates are all deleted to convert the EOR gates into ENOR gates. Replace, E
When there is an even number of 1-input basic gates in the input gates of the NOR gates, all the input gates of the 1-input basic gates are directly connected to the ENOR gates, and the 1-input basic gates are all deleted, and the input gates of the ENOR gates are deleted. If there is an odd number of one-input basic gates, all the input gates of the one-input basic gates are directly connected to the ENOR gates, all the one-input basic gates are deleted, and the ENOR gates are replaced with EOR gates. A method for determining undetected failure in principle of a logic circuit, comprising:
【請求項9】 請求項8記載の論理回路の原理的未検出
故障判定方法において、上記第1サブステップには、回
路内の多入力基本ゲートの出力論理値を1として後方含
意を行い、含意停止ゲートを登録する第1のサブステッ
プと、該第1サブステップで登録された各含意停止ゲー
トの出力論理値を1として後方含意を行い、含意停止ゲ
ートを登録する第2のサブステップと、前記多入力基本
ゲートの出力が該第2サブステップで登録された含意停
止ゲートの出力のEOR論理もしくはENOR論理と等
価であるかどうかを調べる第3のサブステップと、該第
3サブステップで該多入力基本ゲートがEOR論理と等
価であると判定された場合、該多入力ゲートから前記第
2サブステップで登録された含意停止ゲートまでをEO
Rゲートで置き換え、前記第3サブステップで該多入力
基本ゲートがENOR論理と等価であると判定された場
合、該多入力ゲートから前記第2サブステップで登録さ
れた含意停止ゲートまでをENORゲートで置き換える
第4のサブステップとを備えることを特徴とする論理回
路の原理的未検出故障判定方法。
9. The principle undetected failure determination method for a logic circuit according to claim 8, wherein in the first substep, the output implication value of the multi-input basic gate in the circuit is set to 1 and the implication is performed backward. A first substep of registering a stop gate, a second substep of performing an implication backward by setting the output logical value of each implication stop gate registered in the first substep to 1, and registering an implication stop gate; A third substep of checking whether the output of the multi-input basic gate is equivalent to the EOR logic or the ENOR logic of the output of the implication stop gate registered in the second substep, and the third substep When it is determined that the multi-input basic gate is equivalent to the EOR logic, the multi-input gate to the implication stop gate registered in the second substep are EO.
If the multi-input basic gate is determined to be equivalent to ENOR logic in the third sub-step, the multi-input gate to the implication stop gate registered in the second sub-step are ENOR gates. And a fourth sub-step of replacing with.
【請求項10】 請求項1記載の論理回路の原理的未検
出故障判定方法において、上記第3サブステップには、
分岐を持つ先頭信号線に論理値0又は1をセットし、前
方含意を行い、含意の止まった基本ゲートを登録する第
1のサブステップと、該登録基本ゲートの入力側にある
論理値Xの先頭信号線の論理値を0又は1に制御するこ
とにより、該登録基本ゲートの出力論理値を独立に0又
は1に制御できるか否かを判定する第2のサブステップ
と、該第2サブステップにおいて該登録基本ゲートの該
出力論理値を独立に0又は1に制御できると判定された
場合に、前記第1サブステップにおいて論理値が0又は
1に確定した信号線の結線を切り離すことにより、該先
頭信号線を該登録基本ゲートより出力側に更新する第3
のサブステップとを備えることを特徴とする論理回路の
原理的未検出故障判定方法。
10. The method for determining a principle undetected failure of a logic circuit according to claim 1, wherein the third sub-step comprises:
A first sub-step of setting a logical value 0 or 1 in the head signal line having a branch, performing a forward implication, and registering a basic gate whose implication has stopped, and a logical value X on the input side of the registered basic gate A second sub-step of determining whether or not the output logical value of the registered basic gate can be independently controlled to 0 or 1 by controlling the logical value of the head signal line to 0 or 1, and the second sub-step. By disconnecting the connection of the signal line whose logical value is set to 0 or 1 in the first sub-step, when it is determined in the step that the output logical value of the registered basic gate can be independently controlled to 0 or 1 , A third updating the leading signal line from the registered basic gate to the output side
And a sub-step of (4).
【請求項11】 請求項1記載の論理回路の原理的未検
出故障判定方法において、上記第4サブステップには、
上記第3サブステップで得られた回路内の多入力基本ゲ
ートの入力側にある冗長な部分回路を簡約する第1のサ
ブステップと、該第1サブステップで得られた回路の出
力基本ゲートまでの何れの経路も偶数個の基本ゲートで
構成されるような先頭信号線に対しては該先頭信号線の
論理値を偽値にして前方含意を行い、論理値が0又は1
に確定した信号線の結線を切り離し、前記第1サブステ
ップで得られた回路の出力基本ゲートまでの何れの経路
も奇数個の基本ゲートで構成されるような先頭信号線に
対しては該先頭信号線の論理値を真値にして前方含意を
行い、論理値が0又は1に確定した信号線の結線を切り
離す第2のサブステップとを備えることを特徴とする論
理回路の原理的未検出故障判定方法。
11. The method for determining a principle undetected failure of a logic circuit according to claim 1, wherein the fourth sub-step comprises:
A first substep for reducing a redundant partial circuit on the input side of a multi-input basic gate in the circuit obtained in the third substep, and an output basic gate of the circuit obtained in the first substep. For a leading signal line in which any of the paths is composed of an even number of basic gates, the logical value of the leading signal line is set to a false value for forward implication, and the logical value is 0 or 1.
For the head signal line in which the connection of the signal line established in step 1 is cut off and any path to the output basic gate of the circuit obtained in the first substep is composed of an odd number of basic gates, A second substep of performing a forward implication by setting the logical value of the signal line to a true value and disconnecting the connection of the signal line whose logical value is set to 0 or 1; Failure determination method.
【請求項12】 請求項12記載の論理回路の原理的未
検出故障判定方法において、上記第1サブステップに
は、該多入力基本ゲートの論理値を真値として後方含意
を行い、後方含意の止まったところの基本ゲートを登録
する第1のサブステップと、該多入力基本ゲートと該登
録基本ゲートとの間の不要な論理回路を除去する第2の
サブステップと、該登録基本ゲートの論理値が偽値なら
ば該登録基本ゲートと該多入力基本ゲートとの間に結線
を繋ぎ、該登録基本ゲートの論理値が真値ならば該登録
基本ゲートと該多入力基本ゲートとの間に論理値を反転
する1入力基本ゲートをはさんで結線を繋ぐ第3のサブ
ステップとを備えることを特徴とする論理回路の原理的
未検出故障判定方法。
12. The principle undetected failure determination method for a logic circuit according to claim 12, wherein in the first substep, backward implication is performed by using the logical value of the multi-input basic gate as a true value, and the backward implication is performed. A first sub-step of registering the basic gate at the stop, a second sub-step of removing an unnecessary logic circuit between the multi-input basic gate and the registered basic gate, and logic of the registered basic gate. If the value is a false value, a wire is connected between the registered basic gate and the multi-input basic gate, and if the logical value of the registered basic gate is a true value, it is connected between the registered basic gate and the multi-input basic gate. And a third sub-step of connecting the wires by interposing a 1-input basic gate that inverts the logic value.
【請求項13】 請求項1記載の論理回路の原理的未検
出故障判定方法において、上記第5サブステップには、
上記第4サブステップで得られた回路の出力論理値に真
値を設定し、含意操作を行う第1のサブステップと、該
第1サブステップで生じた未正当化信号線を正当化し、
正当化が成功した場合には該1出力回路の出力が真値に
なる入力パターンが存在すると判定し、どのように論理
値を割当てても正当化ができない場合には該1出力回路
の出力が真値になるような入力パターンが存在しないと
判定する第2のサブステップと、該第2サブステップで
該1出力回路の出力が真値になる入力パターンが存在す
ると判定した場合には、論理値が0又は1に定まった先
頭信号線を入力エッジまで正当化する第3のサブステッ
プとを備えることを特徴とする論理回路の原理的未検出
故障判定方法。
13. The method for determining a principle undetected failure of a logic circuit according to claim 1, wherein the fifth sub-step comprises:
A first substep of setting a true value to the output logical value of the circuit obtained in the fourth substep and performing an implication operation, and the unjustified signal line generated in the first substep are justified;
If the justification is successful, it is determined that there is an input pattern in which the output of the one-output circuit is a true value, and if the justification cannot be done no matter how the logical value is assigned, the output of the one-output circuit is If it is determined in the second substep that there is no input pattern that makes a true value and in the second substep that there is an input pattern that makes the output of the one output circuit a true value, a logical And a third sub-step that justifies a leading signal line whose value is set to 0 or 1 up to an input edge.
【請求項14】 請求項13記載の論理回路の原理的未
検出故障判定方法において、上記第2サブステップに
は、含意操作による矛盾が生じない間は、未正当化信号
線の有無を調べ、未正当化信号線が無ければ該1出力回
路の出力が真値になる入力パターンが存在すると判定
し、有れば未正当化信号線を一つ選択し、該未正当化信
号線からの後方追跡と含意操作を行う第1のサブステッ
プと、該含意操作による矛盾が生じた場合にバックトラ
ックと含意操作を行う第2のサブステップとを備えるこ
とを特徴とする論理回路の原理的未検出故障判定方法。
14. The method for determining a principle undetected failure of a logic circuit according to claim 13, wherein in the second sub-step, the presence or absence of an unjustified signal line is checked while no contradiction occurs due to an implication operation. If there is no unjustified signal line, it is determined that there is an input pattern in which the output of the one output circuit is a true value, and if there is, one unjustified signal line is selected and A theoretical undetection of a logic circuit, comprising a first substep of performing tracking and implication operation, and a second substep of performing backtracking and implication operation when a contradiction occurs due to the implication operation. Failure determination method.
【請求項15】 請求項14記載の論理回路の原理的未
検出故障判定方法において、上記第1サブステップで
は、未正当化信号線の有無を調べ、未正当化信号線が無
ければ該1出力回路の出力が真値になる入力パターンが
存在すると判定し、有れば未正当化信号線を1つ選択
し、該未正当化信号線を出力信号線とするゲートを後方
追跡目標ゲートとして、該未正当化信号線の論理値を目
標値とし、後方追跡目標ゲートが先頭信号線を出力とす
るゲートになるまで、後方追跡目標ゲートを後方追跡目
標ゲートの論理値未定の入力ゲートの一つに更新し、目
標値を更新することを繰り返し、最終後方追跡目標ゲー
トの出力信号線に最終目標値を設定し、含意操作を行う
ことを特徴とする論理回路の原理的未検出故障判定方
法。
15. The method for determining a principle undetected failure of a logic circuit according to claim 14, wherein in the first sub-step, the presence or absence of an unjustified signal line is checked, and if there is no unjustified signal line, the one output is output. It is determined that there is an input pattern in which the output of the circuit becomes a true value, and if there is, an unvalidated signal line is selected, and a gate having the unvalidated signal line as an output signal line is used as a backward tracking target gate. The backward tracking target gate is one of the input gates whose logical value is undetermined until the backward tracking target gate becomes a gate whose output is the first signal line, with the logical value of the unjustified signal line as the target value. And a target value is repeatedly updated, the final target value is set to the output signal line of the final back-tracking target gate, and an implication operation is performed.
【請求項16】 請求項14記載の論理回路の原理的未
検出故障判定方法において、上記第2サブステップで
は、上記第1サブステップの後方追跡で論理値を設定し
た信号線が全て既に論理値を反転済みならば、該1出力
回路の出力が真値になるような入力パターンは存在しな
いと判定し、反転済みでなければ、論理値が未反転の信
号線の内、最も最後に論理値を設定したものを選択し、
該信号線よりも後に論理値を設定した信号線の論理値を
全て未定に戻し、該信号線の論理値を反転し、含意操作
を行うことを特徴とする論理回路の原理的未検出故障判
定方法。
16. The method for determining a principle undetected failure of a logic circuit according to claim 14, wherein in the second sub-step, all the signal lines for which logical values have been set in the backward tracing of the first sub-step have already been logical values. If it has been inverted, it is determined that there is no input pattern such that the output of the one output circuit becomes a true value. If it has not been inverted, the logic value is the last logical value among the signal lines whose logic value is not inverted. Select the one with
The principle of undetected failure determination of a logic circuit characterized in that all logical values of a signal line whose logical value is set after the signal line are returned to undetermined, the logical value of the signal line is inverted, and implication operation is performed. Method.
【請求項17】 請求項14記載の論理回路の原理的未
検出故障判定方法において、上記第1サブステップで
は、未正当化信号線の有無を調べ、未正当化信号線が無
ければ該1出力回路の出力が真値になる入力パターンが
存在すると判定し、有れば未正当化信号線を一つ選択
し、該未正当化信号線を出力信号線とするゲートを後方
追跡目標ゲートとして、該未正当化信号線の論理値を目
標値とし、後方追跡目標ゲートを後方追跡目標ゲートの
論理値Xの入力ゲートの一つに更新し、目標値を更新
し、後方追跡目標ゲートの出力信号線に目標値を設定
し、含意操作を行うことを特徴とする論理回路の原理的
未検出故障判定方法。
17. The method for determining a principle undetected failure of a logic circuit according to claim 14, wherein in the first sub-step, the presence or absence of an unjustified signal line is checked, and if there is no unjustified signal line, the one output is output. It is determined that there is an input pattern in which the output of the circuit becomes a true value, and if there is, an unvalidated signal line is selected, and a gate having the unvalidated signal line as an output signal line is used as a backward tracking target gate. With the logical value of the unjustified signal line as the target value, the backward tracking target gate is updated to one of the input gates of the logical value X of the backward tracking target gate, the target value is updated, and the output signal of the backward tracking target gate is updated. A theoretical undetected failure determination method for a logic circuit characterized by setting a target value on a line and performing an implication operation.
【請求項18】 請求項1記載の論理回路の原理的未検
出故障判定方法において、上記第4ステップには、上記
第3ステップで得られた1出力回路内の不確定入力エッ
ジを除去することにより、該1出力回路を不確定入力エ
ッジを含まない1出力回路に変換する第1のサブステッ
プと、該第1サブステップで得られた回路においてEO
R論理及びENOR論理を抽出・簡約する第2のサブス
テップと、該第2サブステップで得られた1出力回路内
の同一論理を表す複数ゲートを一つのゲートにまとめる
第3のサブステップと、該第3サブステップで得られた
回路において互いに独立に真値又は偽値に出力を制御で
きる該回路内のゲートの組であってこのゲートの組より
入力側に信号線の分岐点が存在するものを認識すること
により該分岐点から到達可能の回路領域と該分岐点から
到達不可能な回路領域の境界にある信号線を該ゲートの
組より出力側に更新する第4のサブステップと、該第4
サブステップで得られた回路内の冗長な論理を簡約する
第5のサブステップと、該第5サブステップで得られた
回路で信号線の論理値割当てを試行することにより該1
出力回路の出力が真値になる入力パターンが存在するか
否かを判定する第6のサブステップとを備えることを特
徴とする論理回路の原理的未検出故障判定方法。
18. The method for determining a principle undetected failure of a logic circuit according to claim 1, wherein in the fourth step, an uncertain input edge in the one-output circuit obtained in the third step is removed. In the first sub-step for converting the one-output circuit into a one-output circuit not including an uncertain input edge, and in the circuit obtained in the first sub-step, EO
A second sub-step of extracting and reducing the R logic and the ENOR logic, and a third sub-step of combining a plurality of gates representing the same logic in one output circuit obtained in the second sub-step into one gate, A set of gates in the circuit that can control the output to a true value or a false value independently of each other in the circuit obtained in the third substep, and a branch point of the signal line exists on the input side of this gate set. A fourth sub-step of updating the signal line at the boundary between the circuit area reachable from the branch point and the circuit area unreachable from the branch point by recognizing the object from the set of gates to the output side; The fourth
The fifth sub-step for reducing redundant logic in the circuit obtained in the sub-step, and the circuit obtained in the fifth sub-step by trying the logic value assignment of the signal line
And a sixth sub-step for determining whether or not there is an input pattern in which the output of the output circuit becomes a true value.
【請求項19】 請求項18記載の論理回路の原理的未
検出故障判定方法において、上記第1サブステップに
は、出力先ゲートの出力値を原理的未検出故障判定に影
響を与えることなく0又は1に制御可能な不確定入力エ
ッジの出力ゲートの出力論理値の制御を行うことにより
不確定入力エッジを除去する第1のサブステップと、該
第1サブステップに示した制御が不可能な不確定入力エ
ッジを、不確定入力エッジに0を入力した場合の回路と
1を入力した場合の回路を合成することにより除去する
第2のサブステップとを備えることを特徴とする論理回
路の原理的未検出故障判定方法。
19. The theoretical undetected failure determination method for a logic circuit according to claim 18, wherein the output value of the output destination gate is set to 0 in the first substep without affecting the theoretical undetected failure determination. Alternatively, the first substep of removing the uncertain input edge by controlling the output logical value of the output gate of the uncertain input edge that can be controlled to 1 and the control shown in the first substep are impossible. A second sub-step of removing an uncertain input edge by synthesizing a circuit in the case of inputting 0 and a circuit in the case of inputting 1 to the uncertain input edge Undetected failure determination method.
JP5302799A 1993-12-02 1993-12-02 Judging method for fundamental undetected failure of logic circuit, and test pattern production method Pending JPH07159499A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5302799A JPH07159499A (en) 1993-12-02 1993-12-02 Judging method for fundamental undetected failure of logic circuit, and test pattern production method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5302799A JPH07159499A (en) 1993-12-02 1993-12-02 Judging method for fundamental undetected failure of logic circuit, and test pattern production method

Publications (1)

Publication Number Publication Date
JPH07159499A true JPH07159499A (en) 1995-06-23

Family

ID=17913257

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5302799A Pending JPH07159499A (en) 1993-12-02 1993-12-02 Judging method for fundamental undetected failure of logic circuit, and test pattern production method

Country Status (1)

Country Link
JP (1) JPH07159499A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001153932A (en) * 1999-11-29 2001-06-08 Matsushita Electric Ind Co Ltd Test pattern producing method for semiconductor integrated circuit and its inspecting method
WO2009051193A1 (en) * 2007-10-19 2009-04-23 Kyushu Institute Of Technology Logical value determination method and logical value determination program
CN111507862A (en) * 2020-04-08 2020-08-07 国网湖南省电力有限公司 State fault analysis method for extra-high voltage important secondary data stream

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001153932A (en) * 1999-11-29 2001-06-08 Matsushita Electric Ind Co Ltd Test pattern producing method for semiconductor integrated circuit and its inspecting method
WO2009051193A1 (en) * 2007-10-19 2009-04-23 Kyushu Institute Of Technology Logical value determination method and logical value determination program
JP5141989B2 (en) * 2007-10-19 2013-02-13 株式会社Lptex Logical value determination method and logical value determination program
US8453023B2 (en) 2007-10-19 2013-05-28 Lptex Corporation Target logic value determination method for unspecified bit in test vector for combinational circuit and non-transitory computer-readable medium
CN111507862A (en) * 2020-04-08 2020-08-07 国网湖南省电力有限公司 State fault analysis method for extra-high voltage important secondary data stream
CN111507862B (en) * 2020-04-08 2023-08-15 国网湖南省电力有限公司 State fault analysis method for extra-high voltage important secondary data stream

Similar Documents

Publication Publication Date Title
Chang et al. Perturb and simplify: Multilevel boolean network optimizer
Entrena et al. Combinational and sequential logic optimization by redundancy addition and removal
US7734973B2 (en) Testing apparatus and testing method for an integrated circuit, and integrated circuit
Chang et al. Circuit optimization by rewiring
US5291495A (en) Method for designing a scan path for a logic circuit and testing of the same
US5640403A (en) Fault diagnosis method for a sequential circuit
US5390193A (en) Test pattern generation
Chang et al. Postlayout logic restructuring using alternative wires
JPH07159499A (en) Judging method for fundamental undetected failure of logic circuit, and test pattern production method
JPS63191077A (en) Test pattern generator, test pattern generating method and testing method of integrated circuit
JPH0894720A (en) Method for specifying test impossibility flaw in logic circuit
Entrena et al. Timing optimization by an improved redundancy addition and removal technique
JPH055774A (en) Method for judging theoretical undetected trouble of logical circuit
Chang et al. LAMP: Controllability, observability, and maintenance engineering technique (COMET)
US7120829B2 (en) Failure propagation path estimate system
JP2669968B2 (en) Circuit failure pseudo test apparatus and circuit failure pseudo test method
JPH08184647A (en) Design of semiconductor integrated circuit
JPS63140969A (en) Test facilitation system
Chen et al. Physical-aware diagnosis of multiple interconnect defects
US20070038910A1 (en) Semiconductor integrated circuit design apparatus and semiconductor integrated circuit design method
JP2872216B1 (en) Macro design method
Wu et al. SAT-Controlled redundancy addition and removal—a novel circuit restructuring technique
JP3805298B2 (en) Integrated circuit testability design method and apparatus
JPH09181590A (en) Logic circuit and data processor using same
JPH05233749A (en) Logical equivalence verifying method

Legal Events

Date Code Title Description
A977 Report on retrieval

Effective date: 20040105

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Effective date: 20040331

Free format text: JAPANESE INTERMEDIATE CODE: A131

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040629

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040712

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080730

Year of fee payment: 4

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080730

Year of fee payment: 4

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 5

Free format text: PAYMENT UNTIL: 20090730

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 5

Free format text: PAYMENT UNTIL: 20090730

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100730

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110730

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110730

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 8

Free format text: PAYMENT UNTIL: 20120730

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 9

Free format text: PAYMENT UNTIL: 20130730