JPH06201791A - Generating device for inspection data of combinatorial logic circuit - Google Patents

Generating device for inspection data of combinatorial logic circuit

Info

Publication number
JPH06201791A
JPH06201791A JP4360139A JP36013992A JPH06201791A JP H06201791 A JPH06201791 A JP H06201791A JP 4360139 A JP4360139 A JP 4360139A JP 36013992 A JP36013992 A JP 36013992A JP H06201791 A JPH06201791 A JP H06201791A
Authority
JP
Japan
Prior art keywords
input
node
detected
logic circuit
input vector
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
JP4360139A
Other languages
Japanese (ja)
Inventor
Tsutomu Fukatsu
勉 普勝
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP4360139A priority Critical patent/JPH06201791A/en
Publication of JPH06201791A publication Critical patent/JPH06201791A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To provide a combinatorial logic circuit inspection data generating device being simple in operation process. CONSTITUTION:An operation section 2 defines circuit formation and fixed logical expression, and an input vector extracting section 1 selects such a first test vector that the failure state of a detectable node becomes maximum. After the failure state of the node detected by the test vector is removed, a second test vector is further extracted so that number of the failure states of detectable nodes becomes maximum and until the whole failure states of the all nodes are detected, after the failure states of the nodes detected by the test vectors from the first to the (n-1)th are removed, a process for extracting the (n)th test vector where the number of the failure states of the detectable nodes becomes maximum is further repeated to generate test data where the failure states of the whole nodes are detected, and the test data are supplied to an inspecting device 3.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、組合せ組合せ論理回
路、及び組合せ論理回路で構成された集積回路に適当な
データの組合せを入力して、その論理回路の構成が所望
の通りになっているか否かを検査する検査装置に供給す
るデータの発生装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention inputs a proper combination of data to a combinational combination logic circuit and an integrated circuit composed of the combinational logic circuit so that the structure of the logic circuit is as desired. The present invention relates to a data generator for supplying data to an inspection device for inspecting whether or not the data is generated.

【0002】[0002]

【従来の技術】組合せ論理回路で構成された回路及び集
積回路においては、誤配線、未配線、素子の不具合、電
源電圧変動による雑音余裕の変化などにより、様々な故
障が生じる可能性がある。これらの論理回路の故障は以
下のように分類されている。
2. Description of the Related Art Various failures may occur in circuits and integrated circuits composed of combinational logic circuits due to miswiring, unwiring, element failure, noise margin change due to power supply voltage fluctuation, and the like. Faults in these logic circuits are classified as follows.

【0003】単一縮退故障(stack at high/low )・・
・論理回路内の論理素子の入出力端子の1箇所が“H”
または“L”に固定されて故障が生じる。 多重故障・・・複数の単一故障が同時に発生する。 線間短絡故障・・・論理素子は全て正常であって誤配
線、ブリッジ等によって生じる。論理回路のfunctionそ
のものが変化する場合もある。 間欠故障・・・雑音余裕が小さくなったときに生じる。
再現性に乏しい。
Single stuck-at fault (stack at high / low)
・ One input / output terminal of the logic element in the logic circuit is "H"
Alternatively, it is fixed to "L" and a failure occurs. Multiple failures ... Multiple single failures occur simultaneously. Short-circuit failure between lines: All logic elements are normal and are caused by incorrect wiring, bridges, etc. The function itself of the logic circuit may change. Intermittent failure: This occurs when the noise margin becomes small.
Poor reproducibility.

【0004】上記のような故障があるが、多重故障、短
絡故障の数は、回路規模に対して指数関数的に増大す
る。このため、充分小さい回路以外は、処理に非現実的
な数になってしまう。回路に多重故障が生じたとして
も、その大部分が単一縮退故障と同一の検出方法で検出
可能である。また、間欠故障は、主に集積回路内部のト
ランジスタレベル及び、集積回路が実装された基盤の状
態等に起因する。以上の理由から論理回路の故障は、全
て単一縮退故障であるとして仮定され、様々の故障検出
方法が提案されている。
Although there are such failures as described above, the number of multiple failures and short-circuit failures increases exponentially with respect to the circuit scale. Therefore, the number of circuits is unrealistic except for the sufficiently small circuits. Even if multiple failures occur in the circuit, most of them can be detected by the same detection method as the single stuck-at failure. The intermittent failure mainly results from the transistor level inside the integrated circuit and the state of the board on which the integrated circuit is mounted. For the above reasons, it is assumed that all logic circuit failures are single stuck-at failures, and various failure detection methods have been proposed.

【0005】組合せ論理回路では、1つの入力系列が決
定すると一意に出力系列が決定する。そこで故障が生じ
ていない回路と、故障が生じた回路の入出力関係を比較
することにより故障検出を行うことが可能である。回路
の入出力関係から回路の故障を検出するための条件は以
下の通りである。 1)故障箇所の故障状態と反対の状態になるような入力
パターンであること。 2)故障箇所の故障状態が回路の出力部まで伝播するこ
と。
In the combinational logic circuit, when one input sequence is determined, the output sequence is uniquely determined. Therefore, it is possible to detect a failure by comparing the input / output relationship between the circuit in which no failure has occurred and the circuit in which the failure has occurred. The conditions for detecting a circuit failure from the circuit input / output relationship are as follows. 1) The input pattern should be the opposite of the fault condition at the fault location. 2) Propagation of the fault condition at the fault location to the output of the circuit.

【0006】図5は、組合せ論理回路におけるノードd
において“L”縮退故障(stack atlow)が生じた場合
を模式的に表す図である。上記故障を検出するために
は、上記条件1)からdが“H”であるための(A,
B)=(H,H)である入力パターンが必要である。ま
た条件2)からノードeは“L”すなわちC=“H”で
ある必要がある。したがって、ノードdのstack at low
を検出するためには、次のようなベクトルによるテスト
を試行する。 (A,B,C,Y)=(H,H,H,H) 上記ベクトルによる試行が成功しないとき、回路内のノ
ードdにおいてstackat low故障が生じている可能性が
ある。
FIG. 5 shows a node d in a combinational logic circuit.
FIG. 6 is a diagram schematically showing a case where an “L” stuck-at fault occurs in FIG. In order to detect the above failure, since d is “H” from the above condition 1) (A,
B) = We need an input pattern that is (H, H). Further, from the condition 2), the node e needs to be “L”, that is, C = “H”. Therefore, stack at low of node d
In order to detect, try the following vector test. (A, B, C, Y) = (H, H, H, H) When the trial with the above vector is unsuccessful, there is a possibility that a stack at low fault has occurred at the node d in the circuit.

【0007】これらの故障を検出するためには、入力の
全組合せを試行し出力結果をモニターすればよいが、検
査対象が多数あり、試行対象が入力端子を多数有すると
きには膨大な試行回数を必要とする。このため少ない試
行回数で、検査対象の組合せ論理回路及び集積回路の検
査を行えるのが望ましい。
In order to detect these failures, it is sufficient to try all combinations of inputs and monitor the output results. However, when there are many inspection targets and the trial targets have many input terminals, a huge number of trials is required. And Therefore, it is desirable that the combinational logic circuit and the integrated circuit to be inspected can be inspected with a small number of trials.

【0008】そこで、単一縮退故障のみに着目すると、
上記テストにおいてノードdのstack at lowの他、ノー
ドb,c,fのstack at high も検出可能である。した
がって、故障箇所を限定する必要がなく、組合せ論理回
路の良否のみを検出する場合は、入力の全組合せをテス
トする必要がない。
Therefore, focusing only on the single stuck-at fault,
In the above test, the stack at low of the node d and the stack at high of the nodes b, c, f can be detected. Therefore, it is not necessary to limit the failure location and it is not necessary to test all combinations of inputs when only the quality of the combinational logic circuit is detected.

【0009】組合せ論理回路の全ノードのstack at hig
h/low を少なくとも1回検出し、テスト回数を最小化す
るためには、以下のような2つの方法がある。
Stack at hig of all nodes of combinational logic circuit
There are two methods for detecting h / low at least once and minimizing the number of tests.

【0010】第1の方法は、あるノードについてstack
at high 、stack at lowが検出されるテストを各々列ベ
クトルにする。これらの全故障ベクトル間で次の演算を
行い、多項式を計算し積和の形にする。このうち最小の
次数を有する積項が必要最小テストベクトルとなる。以
下具体例を挙げて説明する。
The first method is stack for a node.
Each test in which at high and stack at low are detected is a column vector. The following calculation is performed among all of these fault vectors to calculate a polynomial and form a sum of products. Of these, the product term having the smallest degree becomes the required minimum test vector. A specific example will be described below.

【0011】図6は、図5の論理回路の入力全組合せを
表す図である。ABCは論理回路の入力端子、ac()
は各ノードの状態、st()はそのノードの検出可能な
故障状態を表しており、“0”はそのノードの“L”縮
退故障(stack at low)、“1”はそのノードの“H”
縮退故障(stack at high )、“・”はそのノード縮退
故障が検出不可能なことを表す。
FIG. 6 is a diagram showing all combinations of inputs of the logic circuit of FIG. ABC is the input terminal of the logic circuit, ac ()
Represents the state of each node, st () represents the detectable fault state of the node, “0” is the “L” stuck-at fault (stack at low), and “1” is the “H” of the node. ”
Stuck-at fault (stack at high), “•” indicates that the stuck-at node failure cannot be detected.

【0012】この結果st()から、ノード及び、故障
状態で故障検出が可能なテストベクトルを要素とする図
7にある列ベクトルah〜flをつくる。ベクトルah
はノードaにおける“H”縮退故障が検出可能なテスト
の集まりである。これらのベクトル内の各要素を和結合
された項として、全ベクトル間で乗算する。但し、ここ
で行なわれる乗算は、同じ要素間で乗算が行なわれて
も、同じ項間で加算が行なわれても結果は変わらないと
する。
From this result st (), column vectors ah to fl in FIG. 7 having nodes and test vectors capable of fault detection in the fault state as elements are created. Vector ah
Is a set of tests in which a stuck-at "H" fault at node a can be detected. The elements in these vectors are sum-combined terms and multiplied among all vectors. However, the multiplication performed here does not change even if the multiplication is performed between the same elements or the addition is performed between the same terms.

【0013】上記演算の結果、乗算で結合されているテ
ストベクトルの組合せの各々が、全ノードの単一縮退故
障を検出可能であり、この項の次数が最小の組合せが、
最小ベクトル数で全ノードの単一縮退故障を検出可能な
組合せである。
As a result of the above operation, each of the combinations of test vectors combined by multiplication can detect a single stuck-at fault in all nodes, and the combination with the smallest degree of this term is
This is a combination that can detect single stuck-at faults on all nodes with the minimum number of vectors.

【0014】Tmin = ah * bh * ch * dh * eh * fh * a
l * bl * cl * dl * el * fl = t3 * t7 * t5 * t7 * (t0 + t2 + t4) * (t1 + t3 +
t5) * (t1 + t3+ t5) ** t7 * (t0 + t2 + t4) * (t1 +
t3 + t5) * (t0 + t2 + t4 + t6 + t7)* (t1 + t3 + t
5)
Tmin = ah * bh * ch * dh * eh * fh * a
l * bl * cl * dl * el * fl = t3 * t7 * t5 * t7 * (t0 + t2 + t4) * (t1 + t3 +
t5) * (t1 + t3 + t5) ** t7 * (t0 + t2 + t4) * (t1 +
t3 + t5) * (t0 + t2 + t4 + t6 + t7) * (t1 + t3 + t
Five)

【0015】以下t、積演算の印*を省略する。 = 357 (0 + 2 + 4) (1 + 3 + 5){(0 + 2 + 4) + (6 +
7) } = 357{(0 + 2 + 4) (1 + 3 + 5) + (0 + 2 + 4) (1 +
3 + 5) (6 + 7)}
Hereinafter, t, the mark * of the product operation, will be omitted. = 357 (0 + 2 + 4) (1 + 3 + 5) {(0 + 2 + 4) + (6 +
7)} = 357 {(0 + 2 + 4) (1 + 3 + 5) + (0 + 2 + 4) (1 +
3 + 5) (6 + 7)}

【0016】以下、積算項間の+印を省略する。 = 357{(01 03 05 12 23 25 14 34 45) + (01 03 05 12
23 25 14 34 45) (6 + 7) } = 357{(01 03 05 12 23 25 14 34 45) + (016 036 056
126 236 256 146 345 456 017 037 057 127 237 257 1
47 347 457)} = 01357 0357 0357 12357 2357 2357 13457 3457 3457
013567 03567 03567 123567 23567 23567 134567 34567
34567 01357 0357 0357 12357 2357 2357 13457 13457
3457
Hereinafter, the + sign between the integration terms will be omitted. = 357 {(01 03 05 12 23 25 14 34 45) + (01 03 05 12
23 25 14 34 45) (6 + 7)} = 357 {(01 03 05 12 23 25 14 34 45) + (016 036 056
126 236 256 146 345 456 017 037 057 127 237 257 1
47 347 457)} = 01357 0357 0357 12357 2357 2357 13457 3457 3457
013567 03567 03567 123567 23567 23567 134567 34567
34567 01357 0357 0357 12357 2357 2357 13457 13457
3457

【0017】上記積項のうち同一なものを除き、 = 01357 0357 12357 2357 13457 3457 013567 03567 12
3567 23567 134567 34567 13457 上記積項でまとめられた試行の組合せの各々が、全ノー
ドの単一縮退故障を少なくとも1回づつ検出する。この
うち次数が最小なものは、 (t0,t3,t5,t7) (t2,t3,t5,t7) (t3,t4,t5,t7) で、最小テストベクトル数は、4である。
Except for the same one of the above product terms, = 01357 0357 12357 2357 13457 3457 013567 03567 12
3567 23567 134567 34567 13457 Each of the trial combinations summarized in the above product term detects a single stuck-at fault on all nodes at least once. Among them, the one with the smallest order is (t0, t3, t5, t7) (t2, t3, t5, t7) (t3, t4, t5, t7), and the minimum test vector number is 4.

【0018】組合せ論理回路の全ノードのstack at hig
h/low を少なくとも1回検出し、テスト回数を減少する
ための第2の方法は、まず論理回路を構成している論理
素子の出力ノードを番号付けする。各々の出力ノード
は、回路の出力端子または、他の論理回路の入力端子と
接続されており、これによってこの出力ノードに得られ
る出力が、論理素子によって決定される前段の出力ノー
ドの関数として定義される。上記操作を入力ノードは入
力端子として定義し、後段のノードが論理回路の出力端
子に接続されたノードになるまで繰り返す。
Stack at hig of all nodes of combinational logic circuit
A second method for detecting h / low at least once and reducing the number of tests is to first number the output nodes of the logic elements that make up the logic circuit. Each output node is connected to the output terminal of the circuit or the input terminal of another logic circuit, and the output obtained at this output node is defined as a function of the output node of the previous stage determined by the logic element. To be done. The input node is defined as an input terminal, and the above operation is repeated until the subsequent node becomes a node connected to the output terminal of the logic circuit.

【0019】ノードjがノードk,l,m,n,…,z
によって以下のように定義されているとき番号付けは以
下の条件が守られるように行なわれる。 ac(j)=f(ac(k),ac(l),ac(m),ac(n),…,ac(z)) ac(j) はノードjの状態を表す。このとき、j<k,l,m,n,
…,z
Node j is node k, l, m, n, ..., Z
Numbering is done so that the following conditions are observed when defined by ac (j) = f (ac (k), ac (l), ac (m), ac (n), ..., Ac (z)) ac (j) represents the state of the node j. At this time, j <k, l, m, n,
…, Z

【0020】上記条件より、入力として定義されたノー
ドに入力ベクトルを与え、ノード番号順に論理演算fを
実行すると、入力ベクトルによって一意に決定される論
理回路の各ノードの状態ベクトルが得られる。これによ
って前記故障検出条件の1)、1つの入力ベクトルに対
して、各ノードにおける検出可能な故障状態が明らかに
なる。
Under the above conditions, when an input vector is given to a node defined as an input and a logical operation f is executed in the order of node numbers, the state vector of each node of the logic circuit uniquely determined by the input vector is obtained. As a result, 1) of the fault detection conditions described above, a detectable fault state at each node becomes clear for one input vector.

【0021】更に故障検出条件の2)、故障状態が出力
まで伝播するための条件を満たす必要がある。この条件
は以下のように表される。ノードj及び、i,h,g,
…,aがある論理素子の入力、ノードkがその出力とな
っているとき、 st(j)=st(k) & fac(ac(i),ac(h),ac(g),…,ac(a)) st(j) はノードjの状態が出力まで伝播可能であるか否
かを表す。 ただし、k>j,i,h,g,…,a
Further, it is necessary to satisfy the condition 2) of the failure detection condition, that is, the condition for the failure state to propagate to the output. This condition is expressed as follows. Node j and i, h, g,
…, When a is the input of a logic element and node k is its output, st (j) = st (k) & fac (ac (i), ac (h), ac (g), ..., ac (a)) st (j) represents whether or not the state of the node j can be propagated to the output. However, k> j, i, h, g,…, a

【0022】論理素子の出力ノードのうち、回路の出力
と接続されているノードはそのノード自身を常に観測可
能であるため、st(k) は常に真(“H”とする)とな
る。またノードkが出力となっている論理素子への入力
ノードjの状態が出力kへ伝播するためには、j以外の
前記論理素子への入力i,h,g,…,aが以下の条件
を満たす必要がある。
Among the output nodes of the logic element, the node connected to the output of the circuit can always observe itself, so st (k) is always true (set to "H"). Further, in order for the state of the input node j to the logic element whose output is the node k to propagate to the output k, the inputs i, h, g, ... Need to meet.

【0023】i,h,g,…,a=0 (前記論理素子
がOR,NORのとき) i,h,g,…,a=1 (前記論理素子がAND,N
ANDのとき) i,h=X (前記論理素子がX−OR,X−NORの
とき) i=X (前記論理素子がINVのとき) (Xは任
意の値を表す。)
I, h, g, ..., A = 0 (when the logic elements are OR and NOR) i, h, g, ..., a = 1 (the logic elements are AND, N
AND) i, h = X (when the logic element is X-OR, X-NOR) i = X (when the logic element is INV) (X represents an arbitrary value)

【0024】上記条件を表したものがfac() である。上
記演算をノード番号の逆順で行うことによりある入力ベ
クトルに対して故障伝播可能なノードが定まる。上記操
作により、ある入力ベクトルに対して故障検出可能なノ
ードとその故障状態が定まる。これをまず入力全組合
せに対して実行し、故障検出数が最大となる入力ベクト
ルを抽出する。更に前記の入力ベクトルにより検出可
能な故障状態を除いた故障状態空間の中で故障検出数が
最大となる入力ベクトルを前記入力ベクトルを除いた他
のベクトルの中から抽出する。前記操作により抽出さ
れた入力ベクトル群により検出可能な故障状態を除いた
故障状態空間の中で故障検出数が最大となる入力ベクト
ルを抽出する。上記操作を、新たに故障検出可能なノ
ードが現れなくなるまで繰り返す。これによって組合せ
論理回路に冗長な部分がないとき、抽出されたベクトル
群で全ノードの単一縮退故障が検出可能である。
Fac () represents the above condition. By performing the above calculation in the reverse order of the node numbers, the nodes capable of fault propagation are determined for a certain input vector. By the above operation, a node in which a failure can be detected for a certain input vector and its failure state are determined. This is first executed for all combinations of inputs, and the input vector that maximizes the number of detected faults is extracted. Further, the input vector having the maximum number of detected faults in the fault state space excluding the fault states detectable by the input vector is extracted from the other vectors excluding the input vector. An input vector having the maximum number of detected faults is extracted from the fault state space excluding the fault states detectable by the input vector group extracted by the above operation. The above operation is repeated until no new node in which a failure can be detected appears. Thus, when there is no redundant part in the combinational logic circuit, a single stuck-at fault at all nodes can be detected in the extracted vector group.

【0025】[0025]

【発明が解決しようとする課題】しかしながら、上記従
来例の第1の方法では、以下のような欠点があった。一
例として回路内総ノード数m、入力端子数nの組合せ論
理回路において上記手法で試行回数が最小になるテスト
ベクトルを求めようとすると、あるノードのstack at h
igh または、stack at low検出可能なテストを表す列ベ
クトルの要素数は、1〜2のn乗、列ベクトル数は2m
になる。したがって、前述の積和項演算は、1〜2のn
乗の要素数を持つ和項2m個の乗算となり、最小テスト
ベクトルを得るのに非常に大規模な論理積和演算を必要
とするという欠点があった。
However, the above-mentioned first method of the conventional example has the following drawbacks. As an example, in a combinational logic circuit in which the total number of nodes in the circuit is m and the number of input terminals is n, when a test vector that minimizes the number of trials is obtained by the above method, the stack
igh or stack at low The number of elements of a column vector that represents a test that can be detected is 1-2 n, and the number of column vectors is 2m.
become. Therefore, the above product-sum term operation is performed by n of 1-2.
This is a multiplication of 2m sum terms having the number of elements in the power, and there is a drawback that a very large-scale logical sum operation is required to obtain the minimum test vector.

【0026】また、上記第2の方法では、論理回路の構
成を表す各ノード間の論理関数の他に故障箇所が出力ま
で伝播する条件をノード毎に定義する必要があった。
In addition, in the second method, it is necessary to define, for each node, a condition for propagating a failure point to an output, in addition to a logical function between nodes representing the configuration of a logic circuit.

【0027】更に、上記第2の方法では、各々の出力ノ
ードは、回路の出力端子または、他の論理回路の入力端
子と接続されており、これによってこの出力ノードに得
られる出力が、論理素子によって決定される前段の出力
ノードの関数として定義される。上記操作を入力ノード
は入力端子として定義し、後段のノードが論理回路の出
力端子に接続されたノードになるまで繰り返す。ノード
jがノードk,l,mn,…,zによって以下のように
定義されているとき番号付けを以下の条件が守られるよ
うに行う必要があった。 ac(j)=f(ac(k),ac(l),ac(m),ac(n),…,ac(z)) ac(j) はノードjの状態を表す。このとき、j<k,l,m,n,
…,z
Further, in the second method, each output node is connected to the output terminal of the circuit or the input terminal of another logic circuit, and the output obtained at this output node is the logic element. It is defined as a function of the output node of the previous stage determined by. The input node is defined as an input terminal, and the above operation is repeated until the subsequent node becomes a node connected to the output terminal of the logic circuit. When the node j is defined by the nodes k, l, mn, ..., Z as follows, the numbering had to be performed so that the following conditions were observed. ac (j) = f (ac (k), ac (l), ac (m), ac (n), ..., Ac (z)) ac (j) represents the state of the node j. At this time, j <k, l, m, n,
…, Z

【0028】本発明は、上記のような問題を解決するた
めになされたもので、演算処理の簡単なデータ発生装置
を得ることを目的としている。
The present invention has been made to solve the above problems, and an object of the present invention is to obtain a data generator having simple arithmetic processing.

【0029】[0029]

【課題を解決するための手段】第1の発明は、複数の論
理素子により構成された組合せ論理回路に対する全入力
の組合せを試行し、故障検出数が最大となる第1の入力
ベクトルを抽出し、更に上記第1の入力ベクトルにより
検出可能な故障状態を除いた故障状態空間の中で故障検
出数が最大となる第2の入力ベクトルを抽出する試行を
行い、第n−1,n−2,…,2,1の入力ベクトルに
より検出可能な故障状態を除いた故障状態空間の中で故
障検出数が最大となる第nの入力ベクトルを抽出するこ
とにより得られたデータを、上記組合せ論理回路の回路
構成が所望の通りになっているか否かを検査する検査装
置に供給する組合せ論理回路検査データ発生装置におい
て、上記回路構成の定義を上記論理素子各々の入出力関
係について行い、その際の順序づけを、各論理素子の入
出力点をa,…,h,iとしたとき、 ac(j)=fac(ac(i),ac(h),…,ac(a)) ただし、j>a,…,
h,i なる関係を有するように定義付けられた論理式を用いて
データの発生を行う演算手段を設けたことを特徴とする
ものである。
According to a first aspect of the present invention, a combination of all inputs to a combinational logic circuit composed of a plurality of logic elements is tried, and a first input vector that maximizes the number of detected faults is extracted. Furthermore, an attempt is made to extract a second input vector that maximizes the number of detected faults in the fault state space excluding the fault states that can be detected by the first input vector. , ..., 2, The data obtained by extracting the n-th input vector that maximizes the number of detected faults in the fault state space excluding the fault states that can be detected by the combinatorial logic In a combinational logic circuit test data generator that supplies an inspection device for inspecting whether or not the circuit configuration of a circuit is as desired, the definition of the circuit configuration is performed for the input / output relation of each of the logic elements When the input / output points of each logic element are a, ..., H, i in the case of, the ac (j) = fac (ac (i), ac (h), ..., ac (a)) , J> a,…,
It is characterized in that arithmetic means for generating data is provided by using a logical expression defined so as to have a relationship of h, i.

【0030】第2の発明は、複数の論理素子により構成
された組合せ論理回路に対する全入力の組合せを試行
し、故障検出数が最大となる第1の入力ベクトルを抽出
し、更に上記第1の入力ベクトルにより検出可能な故障
状態を除いた故障状態空間の中で故障検出数が最大とな
る第2の入力ベクトルを抽出する試行を行い、第n−
1,n−2,…,2,1の入力ベクトルにより検出可能
な故障状態を除いた故障状態空間の中で故障検出数が最
大となる第nの入力ベクトルを抽出することにより得ら
れたデータを、上記組合せ論理回路の回路構成が所望の
通りになっているか否かを検査する検査装置に供給する
組合せ論理回路検査データ発生装置において、上記回路
構成の定義を上記論理素子各々の入出力関係について行
い、その際の順序づけを、各論理素子の入出力点をa,
…,h,iとしたとき、 ac(j)=fac(ac(i),ac(h),…,ac(a)) ただし、j>a,…,
h,i なる関係を有するように定義付けられた論理式を用いて
データの発生を行い、 st(j)=st(k) & fst(ac(i),ac(h),…,ac(a)) ただし、
k>j,i,h,…,a なる関係を有するように定義付けられた論理式を用いて
条件の評価を行う演算手段を設けたことを特徴とするも
のである。
A second aspect of the present invention attempts a combination of all inputs to a combinational logic circuit composed of a plurality of logic elements, extracts a first input vector that maximizes the number of detected faults, and further extracts the first input vector. An attempt is made to extract the second input vector that maximizes the number of detected faults in the fault state space excluding the fault states that can be detected by the input vector.
Data obtained by extracting the n-th input vector that maximizes the number of detected faults in the fault state space excluding the fault states that can be detected by the input vectors of 1, n-2, ..., 2, 1. In a combinational logic circuit inspection data generator for supplying an inspection device for inspecting whether or not the circuit configuration of the combinational logic circuit is as desired, in the combinational logic circuit inspection data generator, the definition of the circuit configuration is defined by the input / output relation of each of the logic elements. And the ordering at that time is
, H, i, ac (j) = fac (ac (i), ac (h), ..., ac (a)) where j> a, ...,
Data is generated using a logical expression defined to have a relationship of h, i, and st (j) = st (k) & fst (ac (i), ac (h), ..., ac ( a))
It is characterized in that an arithmetic means for evaluating the condition is provided by using a logical expression defined so as to have a relationship of k> j, i, h, ..., a.

【0031】第3の発明は、複数の論理素子により構成
された組合せ論理回路に対する全入力の組合せを試行
し、故障検出数が最大となる第1の入力ベクトルを抽出
し、更に上記第1の入力ベクトルにより検出可能な故障
状態を除いた故障状態空間の中で故障検出数が最大とな
る第2の入力ベクトルを抽出する試行を行い、第n−
1,n−2,…,2,1の入力ベクトルにより検出可能
な故障状態を除いた故障状態空間の中で故障検出数が最
大となる第nの入力ベクトルを抽出することにより得ら
れたデータを、上記組合せ論理回路の回路構成が所望の
通りになっているか否かを検査する検査装置に供給する
組合せ論理回路検査データ発生装置において、上記回路
構成の定義を上記論理素子各々の入出力関係について行
い、各論理素子の入出力点としてのノードa,b,…,
h,iにノード情報の記憶領域を有し、入力端子に接続
されたノードを初期化したのち、定義された論理演算の
実行順として、上記ノードに論理素子を介して接続され
ているノード群のノード情報が全て確定しているとき、
上記ノード群のノード情報の中で最大のノード情報を単
調増加させた値をそのノードのノード情報として記憶
し、上記ノード情報が全ノードで確定した後、 ac(j)=fac(ac(i),ac(h),…,ac(a)) なる関係を有するように定義付けられた論理式をノード
情報の小さい順から実行し、 st(j)=st(k) & fst(ac(i),ac(h),…,ac(a)) ただし、
k>j,i,h,…,a なる関係を有するように定義付けられた論理式を、ノー
ド情報の大きい順から実行し、故障検出条件の評価を行
う演算手段を設けたことを特徴とするものである。
In a third aspect of the present invention, a combination of all inputs to a combinational logic circuit composed of a plurality of logic elements is tried, a first input vector that maximizes the number of detected faults is extracted, and further, the above-mentioned first aspect. An attempt is made to extract the second input vector that maximizes the number of detected faults in the fault state space excluding the fault states that can be detected by the input vector.
Data obtained by extracting the n-th input vector that maximizes the number of detected faults in the fault state space excluding the fault states that can be detected by the input vectors of 1, n-2, ..., 2, 1. In a combinational logic circuit inspection data generator for supplying an inspection device for inspecting whether or not the circuit configuration of the combinational logic circuit is as desired, in the combinational logic circuit inspection data generator, the definition of the circuit configuration is defined by the input / output relation of each of the logic elements. About the nodes a, b, ...
A group of nodes having storage areas for node information in h and i, and initializing the nodes connected to the input terminals, and then connecting to the above-mentioned nodes via logic elements as the execution order of defined logical operations When all the node information of is fixed,
The value obtained by monotonically increasing the maximum node information in the node information of the above node group is stored as the node information of that node, and after the above node information is confirmed in all nodes, ac (j) = fac (ac (i ), ac (h), ..., ac (a)) The logical expressions defined so as to have the relationship of), ac (h), ..., ac (a)) are executed in ascending order of node information, and st (j) = st (k) & fst (ac ( i), ac (h), ..., ac (a))
k> j, i, h, ..., a The logical expressions defined to have the relation of k> j, i, h, ..., a are executed in descending order of node information, and an arithmetic means for evaluating the failure detection condition is provided. To do.

【0032】[0032]

【作用】第1の発明によれば、最大場合の数が入力の全
組合せである試行を行うことにより、回路内の全ノード
の単一縮退故障を少なくとも1回検出するパターンを生
成することができる。
According to the first aspect of the present invention, it is possible to generate a pattern for detecting a single stuck-at fault in all nodes in a circuit at least once by performing a trial in which the maximum number is all combinations of inputs. it can.

【0033】第2の発明によれば、最大場合の数が入力
の全組合せである試行を行うことにより、回路内の全ノ
ードの単一縮退故障を少なくとも1回検出するパターン
を生成する際に、回路の故障検出条件を自動発生する。
According to the second aspect of the present invention, the number of cases in the maximum case is the total number of combinations of inputs, so that the pattern for detecting the single stuck-at fault of all the nodes in the circuit at least once is generated. , Automatically generate circuit failure detection conditions.

【0034】第3の発明によれば、回路内の全ノードの
単一縮退故障を少なくとも1回検出するパターンを生成
する際に、回路の定義を論理素子の入出力関係をランダ
ムに記述できるようにし、回路定義を容易ならしめる。
According to the third invention, when the pattern for detecting the single stuck-at fault of all the nodes in the circuit is generated at least once, the definition of the circuit can be described randomly in the input / output relation of the logic elements. To facilitate circuit definition.

【0035】[0035]

【実施例】以下、第1〜3の発明の各実施例を図につい
て説明する。
Embodiments of the first to third inventions will be described below with reference to the drawings.

【0036】第1〜3の発明においては、論理回路の構
成は以下のようにして定義される。まず論理回路を構成
している論理素子の出力ノードを番号付けする。各々の
出力ノードは、回路の出力端子または、他の論理回路の
入力端子と接続されており、これによってこの出力ノー
ドに得られる出力が、前段の出力ノードの関数として定
義される。上記操作を入力ノードは入力端子として定義
し、後段のノードが論理回路の出力端子に接続されたノ
ードになるまで繰り返す。
In the first to third inventions, the configuration of the logic circuit is defined as follows. First, the output nodes of the logic elements forming the logic circuit are numbered. Each output node is connected to the output terminal of the circuit or the input terminal of another logic circuit, and the output obtained at this output node is defined as a function of the output node of the preceding stage. The input node is defined as an input terminal, and the above operation is repeated until the subsequent node becomes a node connected to the output terminal of the logic circuit.

【0037】ノードjがノードk,l,m,n,…,z
によって以下のように定義されているとき番号付けは以
下の条件a)が守られるように行なわれる。 ac(j)=f(ac(k),ac(l),ac(m),ac(n),…,ac(z)) ac(j) はノードjの状態を表す。このとき、j<k,l,m,n,
…,z
Node j is node k, l, m, n, ..., Z
The numbering is such that the following condition a) is observed when defined by ac (j) = f (ac (k), ac (l), ac (m), ac (n), ..., Ac (z)) ac (j) represents the state of the node j. At this time, j <k, l, m, n,
…, Z

【0038】上記条件より、入力として定義されたノー
ドに入力ベクトルを与え、ノード番号順に論理演算fを
実行すると、入力ベクトルによって一意に決定される論
理回路の各ノードの状態ベクトルが得られる。これによ
って前記した従来例に示された故障検出条件の1)、1
つの入力ベクトルに対して、各ノードにおける検出可能
な故障状態が明らかになる。
Under the above conditions, when an input vector is given to a node defined as an input and a logical operation f is executed in the order of the node numbers, the state vector of each node of the logic circuit uniquely determined by the input vector is obtained. As a result, the failure detection conditions 1), 1) shown in the above-mentioned conventional example
For one input vector, the detectable fault conditions at each node are revealed.

【0039】更に故障検出条件の2)、故障状態が出力
まで伝播するための条件を満たす必要がある。この条件
は以下のように表される。ノードj及び、i,h,g,
…,aがある論理素子の入力、ノードkがその出力とな
っているとき、 st(j)=st(k) & fac(ac(i),ac(h),ac(g),…,ac(a)) st(j) はノードjの状態が出力まで伝播可能であるか否
かを表す。 ただし、k>j (条件b))
Further, it is necessary to satisfy the condition 2) of the fault detection condition, that is, the condition for the fault state to propagate to the output. This condition is expressed as follows. Node j and i, h, g,
…, When a is the input of a logic element and node k is its output, st (j) = st (k) & fac (ac (i), ac (h), ac (g), ..., ac (a)) st (j) represents whether or not the state of the node j can be propagated to the output. However, k> j (condition b))

【0040】論理素子の出力ノードのうち、回路の出力
と接続されているノードはそのノード自身を常に観測可
能であるため、st(k) は常に真(“H”とする)とな
る。このノードkが出力となっている論理素子への入力
ノードjの状態が出力kへ伝播するためには、j以外の
前記論理素子への入力i,h,g,…,aが以下の条件
c)を満たす必要がある。
Among the output nodes of the logic element, the node connected to the output of the circuit can always observe itself, so st (k) is always true (set to "H"). In order for the state of the input node j to the logic element whose output is the node k to propagate to the output k, the inputs i, h, g, ... It is necessary to satisfy c).

【0041】i,h,g,…,a=0 (前記論理素子
がOR,NORのとき) i,h,g,…,a=1 (前記論理素子がAND,N
ANDのとき) i,h=X (前記論理素子がX−OR,X−NORの
とき) i=X (前記論理素子がINVのとき) (Xは任
意の値を表す。)
I, h, g, ..., A = 0 (when the logic elements are OR and NOR) i, h, g, ..., a = 1 (the logic elements are AND, N
AND) i, h = X (when the logic element is X-OR, X-NOR) i = X (when the logic element is INV) (X represents an arbitrary value)

【0042】上記条件を表したものがfac である。上記
演算をノード番号の逆順で行うことによりある入力ベク
トルに対して故障伝播可能なノードが定まる。上記操作
により、ある入力ベクトルに対して故障検出可能なノー
ドとその故障状態が定まる。これをまず入力全組合せ
に対して実行し、故障検出数が最大となる入力ベクトル
を求める。更に前記入力ベクトルにより検出可能な故
障状態を除いた故障状態空間の中で故障検出数が最大と
なる入力ベクトルを前記入力ベクトルを除いた他のベク
トルの中から求める。上記操作を、新たに故障検出可
能なノードが現れなくなるまで繰り返す。これによって
組合せ論理回路に冗長な部分がないときは、全ノードの
単一縮退故障が検出可能である。
Fac represents the above condition. By performing the above calculation in the reverse order of the node numbers, the nodes capable of fault propagation are determined for a certain input vector. By the above operation, a node in which a failure can be detected for a certain input vector and its failure state are determined. This is first executed for all combinations of inputs to find the input vector that maximizes the number of detected faults. Further, the input vector having the maximum number of detected faults in the fault state space excluding the fault states detectable by the input vector is obtained from the other vectors excluding the input vector. The above operation is repeated until no new node in which a failure can be detected appears. By this, when there is no redundant part in the combinational logic circuit, the single stuck-at fault of all nodes can be detected.

【0043】以下、実施例を用いて第1の発明を詳述す
る。
Hereinafter, the first invention will be described in detail with reference to examples.

【0044】図3は、図5の各ノード間の論理入出力関
係を定義したものである。ノードa,b,c,d,e,
fはそれぞれac(0),ac(1),ac(2),ac(3),ac(4),ac(5) に
対応しており、b(n)は、入力端子に直結したノードに入
力される0〜2のべき乗のそれぞれの桁を入力し、ノー
ド番号の小さい順に下記に定義された論理演算を実行す
る。これによってある入力ベクトルが得られたとき全ノ
ードの状態が定まり、前記故障検出を行うための条件
1)、各ノードにおいてどの故障状態が検出可能かが求
められる。
FIG. 3 defines the logical input / output relationship between the nodes of FIG. Nodes a, b, c, d, e,
f corresponds to ac (0), ac (1), ac (2), ac (3), ac (4), ac (5) respectively, and b (n) is the node directly connected to the input terminal. Each digit of the power of 0 to 2 that is input to is input, and the logical operation defined below is executed in the ascending order of node numbers. As a result, when a certain input vector is obtained, the states of all the nodes are determined, and the condition 1) for performing the fault detection is determined, and which fault state can be detected at each node.

【0045】図4のst()は、図5の各ノードにおける、
前記故障検出条件2)、故障箇所の状態が出力まで伝播
するための条件を表す図である。論理回路の出力端子に
直結されたノードは常時モニター可能なので、このノー
ドの条件2)は常に“1”になる。この式のst() and以
下の部分が前式のfac() に相当する。他のノードの条件
は着目ノードと同一の論理素子に入力されている他の入
力ノード状態と出力ノードによって、図4のように定義
される。この条件式をノード番号が大きい順に評価して
いくことで、ある入力ベクトルが与えられたとき、故障
検出可能なノードが明らかになる。
St () in FIG. 4 is the same as that in each node in FIG.
It is a figure showing the said failure detection condition 2) and the conditions for a state of a failure location to propagate to an output. Since the node directly connected to the output terminal of the logic circuit can always be monitored, the condition 2) of this node is always "1". The st () and the following parts of this equation correspond to fac () in the previous equation. The conditions of other nodes are defined as shown in FIG. 4 by other input node states and output nodes that are input to the same logic element as the node of interest. By evaluating this conditional expression in ascending order of node numbers, when a certain input vector is given, the nodes for which failure can be detected become clear.

【0046】したがって、ノードjにおいて、 st(j)=1 and ac(j)=0 なら、stack at high 検出 st(j)=1 and ac(j)=1 なら、stack at low 検出 st(j)=0 and ac(j)=x なら、故障検出不可能 となる。Therefore, at the node j, if st (j) = 1 and ac (j) = 0, stack at high detection st (j) = 1 and ac (j) = 1, stack at low detection st (j If) = 0 and ac (j) = x, the failure cannot be detected.

【0047】上記処理を全入力ベクトルについて行った
のが図6であり、“0”はそのノードの“L”縮退故障
(stack at low)、“1”はそのノードの“H”縮退故
障(stack at high )、“・”はそのノードの縮退故障
が検出されないことを表す。これらのテスト結果の中で
故障検出数が最も大きいのはテスト3であり、更に前記
入力ベクトルにより検出可能な故障状態を除いた故障状
態空間の中で故障検出数が最大となる入力ベクトルを前
記入力ベクトルを除いた他のベクトルの中から求め、テ
スト7が得られる。さらに故障検出可能なノードが現れ
なくなるまでテストベクトルの抽出を繰り返し、テスト
0、5が得られる。上記組合せ論理回路には冗長な部分
がないので、前記操作で抽出されたテストで全ノードの
単一縮退故障が検出可能である。
The above processing is performed for all input vectors in FIG. 6, where "0" is an "L" stuck-at fault (stack at low) at that node, and "1" is an "H" stuck-at fault (at that node). stack at high), “•” indicates that the stuck-at fault of the node is not detected. Test 3 has the largest number of detected faults among these test results, and the input vector having the maximum number of detected faults in the fault state space excluding the fault states detectable by the input vector is the above-mentioned. A test 7 is obtained by obtaining the vector from among the other vectors except the input vector. Further, the extraction of the test vector is repeated until no fault-detectable node appears, and tests 0 and 5 are obtained. Since there is no redundant part in the combinational logic circuit, the single stuck-at fault of all nodes can be detected by the test extracted in the above operation.

【0048】図1は、上述した原理及び後述する第2、
第3の発明によるデータ発生装置を概略的に示すブロッ
ク図であり、図1において、1は第1、第2の入力ベク
トルを抽出する入力ベクトル抽出部、2は入力ベクトル
の抽出結果に基づき予め定義された論理式を用いてデー
タを発生する演算部、3はデータを供給される検査装
置、4は検査対象の組合せ論理回路である。
FIG. 1 shows the principle described above and the second and
It is a block diagram which shows the data generator by 3rd invention roughly, In FIG. 1, 1 is an input vector extraction part which extracts 1st, 2nd input vector, 2 is beforehand based on the extraction result of an input vector. An arithmetic unit that generates data using a defined logical expression, 3 is an inspection device to which data is supplied, and 4 is a combinational logic circuit to be inspected.

【0049】次に、図2のフローチャートと共に概略的
な動作を説明する。まず、ステップS1で演算部2によ
り回路構成を定義し、さらに前述したac(j)=f(ac(i),ac
(h),…,ac(a)) の関係となるような論理式の定義を行
う。次にステップS2で入力ベクトル抽出部1におい
て、検出可能なノードの故障状態が最大になるような第
1のテスト(入力)ベクトルを選出し、ステップS3で
上記テストベクトルにより検出されるノードの故障状態
を除いた上で、更に検出可能なノードの故障状態数が最
大となる第2のテストベクトルを抽出し、全ノードの全
故障状態が検出されるまで、第1から第n−1までのテ
ストベクトルにより検出されるノードの故障状態を除い
た上で、ステップS4により更に検出可能なノードの故
障状態数が最大となる第nのテストベクトルを抽出され
るまでステップS3の処理を繰り返して、ステップS5
で全ノードの故障状態を検出するようなテストデータを
発生させる。
Next, a schematic operation will be described with reference to the flowchart of FIG. First, in step S1, the arithmetic unit 2 defines the circuit configuration, and further, ac (j) = f (ac (i), ac
(h), ..., ac (a)) is defined as a logical expression. Next, in step S2, the input vector extraction unit 1 selects the first test (input) vector that maximizes the fault state of the detectable node, and in step S3, the fault of the node detected by the test vector is selected. After removing the states, a second test vector that maximizes the number of detectable fault states of the node is extracted, and the first to n-1 th until all fault states of all nodes are detected. After removing the fault state of the node detected by the test vector, the process of step S3 is repeated until the nth test vector that maximizes the number of fault states of the detectable node is extracted in step S4. Step S5
Generate test data that detects the failure status of all nodes.

【0050】図8〜図11は、処理を詳細を示すフロー
チャートである。
8 to 11 are flowcharts showing the details of the processing.

【0051】次に、実施例を用いて第2の発明を詳述す
る。
Next, the second invention will be described in detail with reference to examples.

【0052】図12は、図5の各ノード間の論理入出力
関係を定義したものであり、図3は図12で表された論
理回路の論理素子毎の入出力関係を表している。上記の
形式で表された論理関数は、予め本発明処理フロー内に
関数として確保されている上記論理演算のどれに該当す
るか評価され、該当する論理演算の例えば先頭アドレス
などの処理フローを決定する情報を、関数実行順として
配列fun[] に確保し、この論理素子のある入力ノードが
出力に伝播するための条件を評価する関数を、前述の条
件c)の中から抽出し、例えば評価関数処理ルーチン先
頭アドレスなど、処理フロー先頭アドレスを関数実行順
として、配列funst[] に確保する。
FIG. 12 defines the logical input / output relationship between the nodes of FIG. 5, and FIG. 3 shows the input / output relationship of each logic element of the logic circuit shown in FIG. The logical function represented in the above format is evaluated as to which of the above logical operations is secured in advance as a function in the processing flow of the present invention, and the processing flow such as the start address of the corresponding logical operation is determined. The information to be stored is stored in the array fun [] as the function execution order, and the function that evaluates the condition for propagating the input node with this logic element to the output is extracted from the above condition c), and is evaluated, for example. Reserve the processing flow start address, such as the function processing routine start address, in the array funst [] as the function execution order.

【0053】更に入出力関係を確認するために、ある出
力ノードjに接続された論理素子に入力されるノードを
その出力ノードに関連付けて配列intm[]に確保し、各ノ
ードの状態を求めるほか、ある入力ノードjが論理素子
を介して接続された出力ノードを入力ノードに関連し
て、配列ottm[]に確保しておき、故障状態の伝播の評価
に使用する。
Further, in order to confirm the input / output relation, the node input to the logic element connected to a certain output node j is associated with the output node, secured in the array intm [], and the state of each node is obtained. , An output node to which a certain input node j is connected via a logic element is secured in the array ottm [] in association with the input node, and is used for evaluation of propagation of a fault state.

【0054】ノード状態の決定は以下のように行う。前
述の条件a)を満たすように論理関数を実行すると、第
1に入力端子に直結されたノードにある入力パターンが
代入され、これと接続されているノードの状態が定ま
る。したがって、条件a)を満たす順番で実行される論
理演算は、常に入力ノードが定まった状態で呼び出され
る。よって、決定したいノードがjの時、jが得られる
論理関数fun(j)、その入力ノードintm[j] を呼び出し、
jの状態が決定される。
The node state is determined as follows. When the logic function is executed so as to satisfy the above condition a), first, the input pattern in the node directly connected to the input terminal is substituted, and the state of the node connected to this is determined. Therefore, the logical operations executed in the order satisfying the condition a) are always called with the input node fixed. Therefore, when the node to be determined is j, the logical function fun (j) that obtains j and its input node intm [j] are called,
The state of j is determined.

【0055】ノード状態の伝播条件の決定は、以下のよ
うに行なわれる。組合せ論理回路にある入力パターンが
与えられ、回路内の全ノード状態が決定されたのち、条
件b)を大きいノード番号順に評価する。これによって
第1に出力端子に直結されたノードの出力伝播条件が評
価される。出力端子は常にモニター可能なので、このノ
ードの出力伝播条件st()は“真”であり、このときのノ
ード状態の反対の状態の縮退故障の検出が可能である。
The node condition propagation condition is determined as follows. After a certain input pattern is given to the combinational logic circuit and the states of all the nodes in the circuit are determined, the condition b) is evaluated in descending order of node number. Thereby, first, the output propagation condition of the node directly connected to the output terminal is evaluated. Since the output terminal can always be monitored, the output propagation condition st () of this node is "true", and the stuck-at fault in the state opposite to the node state at this time can be detected.

【0056】評価するノードが出力端子に直結されてい
ない場合には、ottm[j] を参照してノードjが入力とな
っている論理素子の出力ノードが出力端子まで伝播可能
となっているかst( ottm[j] ) を評価する。st( ottm
[j] ) は条件b)に従い出力に近い階層から評価されて
おり、常に出力ノードが伝播可能であるか評価し終わっ
た段階で呼び出される。
If the node to be evaluated is not directly connected to the output terminal, it is possible to refer to ottm [j] to see if the output node of the logic element whose input is node j can propagate to the output terminal. Evaluate (ottm [j]). st (ottm
[j]) is evaluated from the layer closer to the output according to the condition b), and is always called when the output node has been evaluated for propagation or not.

【0057】さらにintm[ ottm[j] ] を引数としてfuns
t(j)を実行し、ノードjの状態がノードjが入力端子と
なっている論理素子を伝播可能かどうか評価する。上記
st(ottm[j] ) とfunst(j)の論理積が真であるときノー
ドjの故障状態が伝播可能であり、このときのノードj
の反対の状態の縮退故障が検出可能になる。
Furthermore, funs with intm [ottm [j]] as an argument
Execute t (j) to evaluate whether the state of the node j can propagate through the logic element whose input terminal is the node j. the above
When the logical product of st (ottm [j]) and funst (j) is true, the fault state of node j can be propagated.
A stuck-at fault in the opposite state of can be detected.

【0058】また、図3、図6について前述したよう
に、入力ベクトルが得られたとき全ノードの状態が定ま
り、前記故障検出を行うための条件1)、各ノードにお
いてどの故障状態が検出可能かが求められる。さらに、
図4、図5について前述したように、上記組合せ論理回
路には冗長な部分がないので、前記操作で抽出されたテ
ストで全ノードの単一縮退故障検出可能である。
Further, as described above with reference to FIGS. 3 and 6, when the input vector is obtained, the states of all the nodes are determined, and the condition 1) for performing the fault detection, which fault state can be detected in each node. Is required. further,
As described above with reference to FIGS. 4 and 5, since there is no redundant portion in the combinational logic circuit, single stuck-at faults at all nodes can be detected by the test extracted in the above operation.

【0059】図13〜図16は処理の詳細を示すフロー
チャートである。
13 to 16 are flowcharts showing the details of the processing.

【0060】次に、実施例を用いて第3の発明を詳述す
る。
Next, the third invention will be described in detail with reference to Examples.

【0061】前述した図12、図5、図3等に関する上
記各論理演算の階層化は以下のようにして行う。 全ノードの中から入力端子として定義されているノー
ドjを抽出して階層“0”を各ノードの階層を記憶する
配列lay[j]に記憶する。次に、あるノードjに論理素
子を介在して入力を供給しているノードの階層化情報la
y[ tm[j] ]を参照して、これらの入力ノードの階層付け
が全て終了しているか否かを判別する。全ての入力ノー
ドの階層付けが終了している場合には、それらの中で最
も大きいノードに“1”を加えた数をそのノードの階層
とし、階層化終了情報をlayf[j]に入力する。全ての入
力ノードの階層付けが終了していない場合には、何もし
ないで次のノードに対して同様の操作を行う。上記の
操作を全ノードの階層化が行なわれるまで繰り返す。以
上の処理によりノードの階層化が終了する。これによっ
て論理演算の実行順を階層番号lay[j]の小さい順で行う
ことにより回路が定義された順に関わらず、ある入力パ
ターンに対して一意に決定される各ノード状態、及び出
力が得られる。
Hierarchization of the above logical operations relating to the above-mentioned FIG. 12, FIG. 5, FIG. 3, etc. is performed as follows. The node j defined as an input terminal is extracted from all the nodes, and the layer "0" is stored in the array lay [j] that stores the layer of each node. Next, the layered information la of a node which supplies an input to a node j via a logic element.
By referring to y [tm [j]], it is determined whether or not all the hierarchization of these input nodes is completed. If all input nodes have been layered, the largest node among them is incremented by "1" to make the layer of that node, and the layering end information is input to layf [j]. . If the hierarchy of all the input nodes is not completed, the same operation is performed on the next node without doing anything. The above operation is repeated until all nodes are hierarchized. With the above processing, the layering of nodes is completed. As a result, by executing the logical operations in the ascending order of the layer number lay [j], each node state and output that are uniquely determined for a certain input pattern can be obtained regardless of the order in which the circuit is defined. .

【0062】図18は、処理の詳細を示すフローチャー
トであり、ステップS181〜S186のみが図13と
異なっており、ステップS131〜S134は、図13
と同じである。また、ステップS135〜S160は、
図14〜図16と同じであるので省略した。
FIG. 18 is a flow chart showing the details of the processing. Only steps S181 to S186 are different from FIG. 13, and steps S131 to S134 are shown in FIG.
Is the same as. In addition, steps S135 to S160
Since it is the same as FIGS. 14 to 16, it is omitted.

【0063】尚、第1〜第3の発明における上記処理
を、予め与えられた入力ベクトルについて行い、全入力
ベクトルの試行が終了した段階で、処理を終了すること
により、与えられた入力ベクトルにより回路内の故障状
態がどのくらい検出可能かを知ることも可能である。
The above-mentioned processes in the first to third inventions are carried out with respect to the input vector given in advance, and when the trial of all input vectors is completed, the process is terminated so that the input vector with the given input vector is obtained. It is also possible to know to what extent a fault condition in the circuit can be detected.

【0064】また、回路及び集積回路内に順序動作を行
う素子がある場合でも、回路の内部状態が入力ベクトル
によって一意に定まる構成であれば出力ベクトルと入力
ベクトルの得られる時間差を除去したテストベクトルで
上記処理を行うことで、内部の組合せ論理素子の検査が
可能である。この場合、順序動作素子がフリップ−フロ
ップなどで構成され、論理素子外部から供給されるクロ
ックにより、組合せ論理素子のデータを転送する手段と
して使用されている場合は上記処理により発生されたベ
クトルで試行することにより動作を診断しても、実用上
差し支えない。
Even if there are elements that perform sequential operations in the circuit and the integrated circuit, if the internal state of the circuit is uniquely determined by the input vector, the test vector from which the time difference between the output vector and the input vector is removed is removed. By performing the above processing in step 1, the internal combinational logic element can be inspected. In this case, if the sequential operation element is composed of a flip-flop or the like and is used as a means for transferring the data of the combinational logic element by the clock supplied from the outside of the logic element, the vector generated by the above process is tried. Even if the operation is diagnosed by doing so, there is no practical problem.

【0065】[0065]

【発明の効果】以上説明したように、第1の発明によれ
ば、複数の論理素子により構成された組合せ論理回路に
おいて、入力全組合せをシミュレーションし、故障検
出数が最大となる入力ベクトルを求める。更に前記入
力ベクトルにより検出可能な故障状態を除いた故障状態
空間の中で故障検出数が最大となる入力ベクトルを前記
入力ベクトルを除いた他のベクトルの中から求める試行
を行うことにより、最大場合の数が入力の全組合せであ
る試行を行うことにより、回路内の全ノードの単一縮退
故障を少なくとも1回検出するパターンを生成すること
ができる。
As described above, according to the first aspect of the invention, in a combinational logic circuit composed of a plurality of logic elements, all combinations of inputs are simulated, and an input vector that maximizes the number of detected faults is obtained. . Furthermore, by performing a trial to find the input vector that maximizes the number of detected faults in the fault state space excluding the fault states that can be detected by the input vector from other vectors excluding the input vector, the maximum case It is possible to generate a pattern that detects a single stuck-at fault on all nodes in the circuit at least once by making a trial in which the number of is all combinations of inputs.

【0066】また、第2の発明によれば、組合せ論理回
路において、入力全組合せをシミュレーションし、故
障検出数が最大となる入力ベクトルを求める。更に前
記入力ベクトルにより検出可能な故障状態を除いた故障
状態空間の中で故障検出数が最大となる入力ベクトルを
前記入力ベクトルを除いた他のベクトルの中から求め
る。前記までの操作により抽出された入力ベクトル群
により検出可能な故障状態を除いた故障状態空間の中で
故障検出数が最大となる入力ベクトルを抽出する。の
動作を新たに検出可能な故障状態が発生しなくなるまで
繰り返すことにより、最大場合の数が入力の全組合せで
ある試行を行うことにより、回路内の全ノードの単一縮
退故障を少なくとも1回検出するパターンを生成する際
に、回路の故障検出条件を自動発生するという利点があ
る。
According to the second aspect of the invention, in the combinational logic circuit, all the input combinations are simulated, and the input vector that maximizes the number of detected faults is obtained. Further, the input vector having the maximum number of detected faults in the fault state space excluding the fault states detectable by the input vector is obtained from the other vectors excluding the input vector. An input vector that maximizes the number of detected faults is extracted from the fault state space excluding the fault states that can be detected by the input vector group extracted by the above operation. By repeating the above operation until a new detectable fault condition does not occur, the maximum number of inputs is all combinations of inputs, so that at least one single stuck-at fault in all nodes in the circuit is detected. There is an advantage that a circuit failure detection condition is automatically generated when a detection pattern is generated.

【0067】第3の発明によれば、組合せ論理回路にお
いて、入力全組合せをシミュレーションし、故障検出
数が最大となる入力ベクトルを求める。更に前記入力
ベクトルにより検出可能な故障状態を除いた故障状態空
間の中で故障検出数が最大となる入力ベクトルを前記入
力ベクトルを除いた他のベクトルの中から求める。前
記までの操作により抽出された入力ベクトル群により検
出可能な故障状態を除いた故障状態空間の中で故障検出
数が最大となる入力ベクトルを抽出する。の動作を新
たに検出可能な故障状態が発生しなくなるまで繰り返す
ことにより、最大場合の数が入力の全組合せである試行
を行うことにより、回路内の全ノードの単一縮退故障を
少なくとも1回検出するパターンを生成する際に、回路
の定義を論理素子の入出力関係をランダムに記述できる
ようにし、回路定義を容易ならしめる効果がある。
According to the third invention, in the combinational logic circuit, all the input combinations are simulated, and the input vector that maximizes the number of detected faults is obtained. Further, the input vector having the maximum number of detected faults in the fault state space excluding the fault states detectable by the input vector is obtained from the other vectors excluding the input vector. An input vector that maximizes the number of detected faults is extracted from the fault state space excluding the fault states that can be detected by the input vector group extracted by the above operation. By repeating the above operation until a new detectable fault condition does not occur, the maximum number of inputs is all combinations of inputs, so that at least one single stuck-at fault in all nodes in the circuit is detected. When generating a pattern to be detected, it is possible to describe the definition of the circuit at random in the input / output relationship of the logic elements, which is effective in facilitating the definition of the circuit.

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

【図1】本発明の実施例によるデータ発生装置を概略的
に示すブロック図である。
FIG. 1 is a block diagram schematically illustrating a data generator according to an exemplary embodiment of the present invention.

【図2】動作を概略的に示すフローチャートである。FIG. 2 is a flowchart schematically showing an operation.

【図3】組合せ論理回路の各ノードの関係を示す説明図
である。
FIG. 3 is an explanatory diagram showing a relationship between nodes of a combinational logic circuit.

【図4】組合せ論理回路の各ノードの故障検出条件を示
す説明図である。
FIG. 4 is an explanatory diagram showing a failure detection condition of each node of a combinational logic circuit.

【図5】本発明及び従来例の処理方法を説明するための
組合せ論理回路の一例を示す構成図である。
FIG. 5 is a configuration diagram showing an example of a combinational logic circuit for explaining a processing method of the present invention and a conventional example.

【図6】組合せ論理回路の入力全組合せを示す説明図で
ある。
FIG. 6 is an explanatory diagram showing all combinations of inputs of a combinational logic circuit.

【図7】組合せ論理回路の各ノードの故障検出可能なテ
ストベクトルを要素とする列ベクトルを示す説明図であ
る。
FIG. 7 is an explanatory diagram showing a column vector whose elements are test vectors capable of detecting a failure at each node of the combinational logic circuit.

【図8】第1の発明の実施例による処理を示すフローチ
ャートである。
FIG. 8 is a flowchart showing a process according to the embodiment of the first invention.

【図9】上記フローチャートの続きを示すフローチャー
トである。
FIG. 9 is a flowchart showing a continuation of the above flowchart.

【図10】上記フローチャートの続きを示すフローチャ
ートである。
FIG. 10 is a flowchart showing a continuation of the above flowchart.

【図11】上記フローチャートの続きを示すフローチャ
ートである。
FIG. 11 is a flowchart showing a continuation of the above flowchart.

【図12】組合せ論理回路の各ノードの入出力関係の定
義の一例を示す説明図である。
FIG. 12 is an explanatory diagram showing an example of the definition of the input / output relationship of each node of the combinational logic circuit.

【図13】第2の発明の実施例による処理を示すフロー
チャートである。
FIG. 13 is a flowchart showing a process according to an embodiment of the second invention.

【図14】上記フローチャートの続きを示すフローチャ
ートである。
FIG. 14 is a flowchart showing a continuation of the above flowchart.

【図15】上記フローチャートの続きを示すフローチャ
ートである。
FIG. 15 is a flowchart showing a continuation of the above flowchart.

【図16】上記フローチャートの続きを示すフローチャ
ートである。
FIG. 16 is a flowchart showing a continuation of the above flowchart.

【図17】図13〜図16の処理フロー内で判定、割
当、評価される配列の内容を示す説明図である。
FIG. 17 is an explanatory diagram showing the contents of an array that is determined, assigned, and evaluated in the processing flows of FIGS.

【図18】第3の発明の実施例による処理を示すフロー
チャートである。
FIG. 18 is a flowchart showing a process according to an embodiment of the third invention.

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

1 入力ベクトル抽出部 2 演算部 3 検査装置 4 組合せ論理回路 DESCRIPTION OF SYMBOLS 1 Input vector extraction part 2 Operation part 3 Inspection device 4 Combinational logic circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 複数の論理素子により構成された組合せ
論理回路に対する全入力の組合せを試行し、故障検出数
が最大となる第1の入力ベクトルを抽出し、更に上記第
1の入力ベクトルにより検出可能な故障状態を除いた故
障状態空間の中で故障検出数が最大となる第2の入力ベ
クトルを抽出する試行を行い、第n−1,n−2,…,
2,1の入力ベクトルにより検出可能な故障状態を除い
た故障状態空間の中で故障検出数が最大となる第nの入
力ベクトルを抽出することにより得られたデータを、上
記組合せ論理回路の回路構成が所望の通りになっている
か否かを検査する検査装置に供給する組合せ論理回路検
査データ発生装置において、 上記回路構成の定義を上記論理素子各々の入出力関係に
ついて行い、その際の順序づけを、各論理素子の入出力
点をa,…,h,iとしたとき、 ac(j)=fac(ac(i),ac(h),…,ac(a)) ただし、j>a,…,
h,i なる関係を有するように定義付けられた論理式を用いて
データの発生を行う演算手段を設けたことを特徴とする
組合せ論理回路検査データ発生装置。
1. A combination of all inputs to a combinational logic circuit composed of a plurality of logic elements is tried, a first input vector that maximizes the number of detected faults is extracted, and further detected by the first input vector. An attempt is made to extract the second input vector that maximizes the number of detected faults in the fault state space excluding the possible fault states, and the n-1, n-2, ...,
The data obtained by extracting the n-th input vector that maximizes the number of detected faults in the fault state space excluding the fault states that can be detected by the input vectors 2 and 1 is the circuit of the combinational logic circuit. In a combinational logic circuit test data generator that supplies an inspection device that inspects whether or not the configuration is as desired, the circuit configuration is defined for the input / output relation of each of the logic elements, and the ordering at that time is performed. , When the input / output points of each logic element are a, ..., H, i, ac (j) = fac (ac (i), ac (h), ..., ac (a)) where j> a, …,
A combinational logic circuit test data generation device characterized by comprising arithmetic means for generating data using a logical expression defined to have a relationship of h, i.
【請求項2】 複数の論理素子により構成された組合せ
論理回路に対する全入力の組合せを試行し、故障検出数
が最大となる第1の入力ベクトルを抽出し、更に上記第
1の入力ベクトルにより検出可能な故障状態を除いた故
障状態空間の中で故障検出数が最大となる第2の入力ベ
クトルを抽出する試行を行い、第n−1,n−2,…,
2,1の入力ベクトルにより検出可能な故障状態を除い
た故障状態空間の中で故障検出数が最大となる第nの入
力ベクトルを抽出することにより得られたデータを、上
記組合せ論理回路の回路構成が所望の通りになっている
か否かを検査する検査装置に供給する組合せ論理回路検
査データ発生装置において、 上記回路構成の定義を上記論理素子各々の入出力関係に
ついて行い、その際の順序づけを、各論理素子の入出力
点をa,…,h,iとしたとき、 ac(j)=fac(ac(i),ac(h),…,ac(a)) ただし、j>a,…,
h,i なる関係を有するように定義付けられた論理式を用いて
データの発生を行い、 st(j)=st(k) & fst(ac(i),ac(h),…,ac(a)) ただし、
k>j,i,h,…,a なる関係を有するように定義付けられた論理式を用いて
条件の評価を行う演算手段を設けたことを特徴とする組
合せ論理回路検査データ発生装置。
2. A combination of all inputs to a combinational logic circuit composed of a plurality of logic elements is tried, a first input vector that maximizes the number of detected faults is extracted, and further detected by the first input vector. An attempt is made to extract the second input vector that maximizes the number of detected faults in the fault state space excluding the possible fault states, and the n-1, n-2, ...,
The data obtained by extracting the n-th input vector that maximizes the number of detected faults in the fault state space excluding the fault states that can be detected by the input vectors 2 and 1 is the circuit of the combinational logic circuit. In a combinational logic circuit test data generator that supplies an inspection device that inspects whether or not the configuration is as desired, the above circuit configuration is defined for the input / output relation of each of the logic elements, and the ordering at that time is performed. , When the input / output points of each logic element are a, ..., H, i, ac (j) = fac (ac (i), ac (h), ..., ac (a)) where j> a, …,
Data is generated using a logical expression defined to have a relationship of h, i, and st (j) = st (k) & fst (ac (i), ac (h), ..., ac ( a))
A combinational logic circuit test data generator characterized in that arithmetic means is provided for evaluating a condition using a logical expression defined to have a relationship of k> j, i, h, ..., a.
【請求項3】 複数の論理素子により構成された組合せ
論理回路に対する全入力の組合せを試行し、故障検出数
が最大となる第1の入力ベクトルを抽出し、更に上記第
1の入力ベクトルにより検出可能な故障状態を除いた故
障状態空間の中で故障検出数が最大となる第2の入力ベ
クトルを抽出する試行を行い、第n−1,n−2,…,
2,1の入力ベクトルにより検出可能な故障状態を除い
た故障状態空間の中で故障検出数が最大となる第nの入
力ベクトルを抽出することにより得られたデータを、上
記組合せ論理回路の回路構成が所望の通りになっている
か否かを検査する検査装置に供給する組合せ論理回路検
査データ発生装置において、 上記回路構成の定義を上記論理素子各々の入出力関係に
ついて行い、各論理素子の入出力点としてのノードa,
b,…,h,iにノード情報の記憶領域を有し、入力端
子に接続されたノードを初期化したのち、定義された論
理演算の実行順として、上記ノードに論理素子を介して
接続されているノード群のノード情報が全て確定してい
るとき、上記ノード群のノード情報の中で最大のノード
情報を単調増加させた値をそのノードのノード情報とし
て記憶し、上記ノード情報が全ノードで確定した後、 ac(j)=fac(ac(i),ac(h),…,ac(a)) なる関係を有するように定義付けられた論理式をノード
情報の小さい順から実行し、 st(j)=st(k) & fst(ac(i),ac(h),…,ac(a)) ただし、
k>j,i,h,…,a なる関係を有するように定義付けられた論理式を、ノー
ド情報の大きい順から実行し、故障検出条件の評価を行
う演算手段を設けたことを特徴とする組合せ論理回路検
査データ発生装置。
3. A combination of all inputs to a combinational logic circuit composed of a plurality of logic elements is tried, a first input vector that maximizes the number of detected failures is extracted, and further detected by the first input vector. An attempt is made to extract the second input vector that maximizes the number of detected faults in the fault state space excluding the possible fault states, and the n-1, n-2, ...,
The data obtained by extracting the n-th input vector that maximizes the number of detected faults in the fault state space excluding the fault states that can be detected by the input vectors 2 and 1 is the circuit of the combinational logic circuit. In a combinational logic circuit inspection data generator that supplies an inspection device that inspects whether or not the configuration is as desired, the above circuit configuration is defined for the input / output relation of each of the logic elements, and the input / output of each logic element is performed. Node a as an output point,
b, ..., H, and i have node information storage areas, and after initializing the nodes connected to the input terminals, the nodes are connected to the above nodes via logic elements as the execution order of the defined logical operation. When all the node information of the existing node group is confirmed, the value obtained by monotonically increasing the maximum node information among the node information of the above node group is stored as the node information of that node, and the above node information is stored in all nodes. Then, the logical expressions defined to have a relation of ac (j) = fac (ac (i), ac (h), ..., ac (a)) are executed in ascending order of node information. , St (j) = st (k) & fst (ac (i), ac (h),…, ac (a)) where
k> j, i, h, ..., a The logical expressions defined to have the relation of k> j, i, h, ..., a are executed in descending order of node information, and an arithmetic means for evaluating the failure detection condition is provided. Combined logic circuit test data generation device.
JP4360139A 1992-12-28 1992-12-28 Generating device for inspection data of combinatorial logic circuit Pending JPH06201791A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4360139A JPH06201791A (en) 1992-12-28 1992-12-28 Generating device for inspection data of combinatorial logic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4360139A JPH06201791A (en) 1992-12-28 1992-12-28 Generating device for inspection data of combinatorial logic circuit

Publications (1)

Publication Number Publication Date
JPH06201791A true JPH06201791A (en) 1994-07-22

Family

ID=18468078

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4360139A Pending JPH06201791A (en) 1992-12-28 1992-12-28 Generating device for inspection data of combinatorial logic circuit

Country Status (1)

Country Link
JP (1) JPH06201791A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7162674B2 (en) 2002-10-03 2007-01-09 Kabushiki Kaisha Toshiba Apparatus for selecting test patterns for logic circuit, computer implemented method for selecting test patterns, and computer program product for controlling a computer system so as to select test patterns

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7162674B2 (en) 2002-10-03 2007-01-09 Kabushiki Kaisha Toshiba Apparatus for selecting test patterns for logic circuit, computer implemented method for selecting test patterns, and computer program product for controlling a computer system so as to select test patterns

Similar Documents

Publication Publication Date Title
US5619512A (en) Integrated circuit having self-testing function
US5291495A (en) Method for designing a scan path for a logic circuit and testing of the same
US5390193A (en) Test pattern generation
JP2947204B2 (en) LSI failure location identification method
CN114880975A (en) Hardware trojan generation method, system, equipment and medium
US20020178399A1 (en) Methods for characterizing, generating test sequences for, and/or simulating integrated circuit faults using fault tuples and related systems and computer program products
US6662328B1 (en) Method of making logic devices
JPH05203708A (en) Degerate error test method for sequential circuit
JPH06201791A (en) Generating device for inspection data of combinatorial logic circuit
US20040205436A1 (en) Generalized fault model for defects and circuit marginalities
JP3669836B2 (en) IDDQ test cycle selective extraction device
Vanwelkenhuysen et al. Workplace-adapted behaviors: Lessons learned for knowledge reuse
JPH05308401A (en) Method for inspecting adaptation of representative module of circuit provided for management of communication protocol to reference and system for executing the method
Kim et al. Sequential test generators: past, present and future
US6789242B1 (en) Method and system for integrated circuit design and diagnosis
Zolotorevich et al. Development of tests for VLSI circuit testability at the upper design levels
JPS63140969A (en) Test facilitation system
Cheng Test generation for delay faults in non-scan and partial scan sequential circuits
JPH05142303A (en) Dynamic inspecting method for digital logic circuit
JPH0915305A (en) Test pattern generation system for logical circuit
JP2658857B2 (en) Equivalent fault extraction method and device
JP3312605B2 (en) Reverse logic development system, reverse logic development method, and machine-readable recording medium recording program
JPH11265980A (en) Failure verification method of integrated circuit
Stroobandt et al. Hierarchical test generation with built-in fault diagnosis
Hudli et al. Temporal Logic Based Hierarchical Test Generation for Sequential VLSI Circuits