JP2000009813A - Method and device for preparing test pattern of logic circuit - Google Patents

Method and device for preparing test pattern of logic circuit

Info

Publication number
JP2000009813A
JP2000009813A JP10172693A JP17269398A JP2000009813A JP 2000009813 A JP2000009813 A JP 2000009813A JP 10172693 A JP10172693 A JP 10172693A JP 17269398 A JP17269398 A JP 17269398A JP 2000009813 A JP2000009813 A JP 2000009813A
Authority
JP
Japan
Prior art keywords
signal line
input signal
gate input
gate
test pattern
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
JP10172693A
Other languages
Japanese (ja)
Inventor
Koichiro Natsume
幸一郎 夏目
Kazumi Hatakeyama
一実 畠山
Kazufumi Hikone
和文 彦根
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 JP10172693A priority Critical patent/JP2000009813A/en
Publication of JP2000009813A publication Critical patent/JP2000009813A/en
Pending legal-status Critical Current

Links

Landscapes

  • Tests Of Electronic Circuits (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a device for preparing the test pattern of a logic circuit capable of obtaining a high rate of failure detection with a compact test pattern. SOLUTION: The device for preparing the test pattern of a logic circuit is provided with a means 112 to set the difference between the number of times that a gate input signal line should be selected (the product of the probability of selecting the gate input signal line and the number of times that the gate becomes an object of justification operation and that an input signal line for which a signal value 0 or 1 is allotted is selected) and the number of times that the gate input signal line is actually selected as bias, a means 116 to obtain the probability of selecting the gate input signal line, and a mans 140 to select the gate input signal line to set 0 and 1 according to the selection provability in justification processing used for preparing the test pattern of a logic circuit. Random selection according to the selection probability (2) and selection by a random target value on a controllability scale may be adopted (3) as well as selection by the probability of selecting the gate input signal line (1) as selection criteria.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、論理回路のテスト
パターン作成方法および作成装置に係り、特に、正当化
処理を含むテストパターン生成アルゴリズムにより、少
ないテストパターンで高い故障検出率を得る論理回路の
テストパターン作成方法および作成装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for creating a test pattern for a logic circuit, and more particularly to a logic circuit for obtaining a high fault detection rate with a small number of test patterns by a test pattern generation algorithm including a justification process. The present invention relates to a test pattern creation method and a creation device.

【0002】[0002]

【従来の技術】論理回路に故障が存在するか否か、ま
た、存在するときはどのような故障であるかを調べる場
合、論理回路に印加するテストパターンが必要である。
テストパターンを作成するには、まず、テスト対象の回
路の論理機能,回路要素の論理機能,要素間の接続など
の回路情報を取り込む。次に、どのような故障を検出す
るかを決める。テストパターン生成の効率およびテスト
そのものの効率を高めるために、論理的に等価な故障に
ついては、代表故障を決め、テストパターン生成の対象
となる故障の数を減らす等価故障解析を実行する。解析
された代表故障に対してそれを検出するテストパターン
を生成する。生成されたテストパターンについては、故
障シミュレーションを実行し、最初に想定した故障のう
ち何%の故障を検出できたかを示す故障検出率を求め
る。検出された故障検出率が低い場合、検出できなかっ
た故障についてテストパターン生成と故障シミュレーシ
ョンとを繰り返し、所定の故障検出率に達したら、生成
されたテストパターンを故障辞書として登録し、実際の
論理回路の故障テストに備える。
2. Description of the Related Art A test pattern to be applied to a logic circuit is required to check whether or not a fault exists in a logic circuit and, if so, what kind of fault it is.
To create a test pattern, first, circuit information such as a logical function of a circuit to be tested, a logical function of a circuit element, and a connection between elements is captured. Next, what kind of failure is detected is determined. In order to increase the efficiency of test pattern generation and the efficiency of the test itself, for a logically equivalent fault, a representative fault is determined, and an equivalent fault analysis is performed to reduce the number of faults for which a test pattern is to be generated. A test pattern for detecting the analyzed representative fault is generated. For the generated test pattern, a failure simulation is executed, and a failure detection rate indicating which% of the initially assumed failures has been detected is determined. When the detected failure detection rate is low, the test pattern generation and the failure simulation are repeated for the failure that cannot be detected, and when a predetermined failure detection rate is reached, the generated test pattern is registered as a failure dictionary, and the actual logic is registered. Prepare for circuit failure test.

【0003】テストパターン生成アルゴリズムとして
は、例えば、Dアルゴリズムがある。論理回路にテスト
パターンを印加したとき、故障により誤りが伝搬する経
路を活性化された経路という。複数の経路が同時に活性
化されることを多重経路活性化という。Dアルゴリズム
においては、正常時に1(0)で故障時に0(1)となる値
をD(D′)とし、この値を含むキューブ演算を用いて、
故障位置を通過する多重経路を活性化し、テストパター
ンを発生する。
[0003] As a test pattern generation algorithm, for example, there is a D algorithm. When a test pattern is applied to a logic circuit, a path through which an error propagates due to a failure is called an activated path. Activating multiple pathways simultaneously is called multi-path activation. In the D algorithm, a value that becomes 1 (0) in a normal state and 0 (1) in a failure state is defined as D (D ′), and a cube operation including this value is used,
Activate multiple paths passing through the fault location to generate a test pattern.

【0004】Dアルゴリズムなどにおける正当化処理と
は、入力信号線に信号値0または1の設定を必要とする
ゲートに対して、出力値に応じた信号値組合せをゲート
入力信号線に割り当てる操作である。
The justification process in the D algorithm or the like is an operation of allocating a signal value combination according to an output value to a gate input signal line for a gate that requires a signal value of 0 or 1 to be set to an input signal line. is there.

【0005】ANDゲートの出力信号値が1、またはO
Rゲートの出力信号値が0などの場合には、ゲート入力
信号線の信号値組合せはそれぞれ全部1または全部0以
外にはない。
When the output signal value of the AND gate is 1 or O
When the output signal value of the R gate is 0 or the like, the combination of signal values of the gate input signal line is not all 1 or all 0.

【0006】しかし、ANDゲートの出力信号値が0の
場合には、ゲート入力信号線の一つに対してだけ0を割
り当てればよく、どのゲート入力信号線に対して0を割
り当てるかについては、選択の余地がある。また、OR
ゲートの出力信号値が1の場合には、1を割り当てるゲ
ート入力信号線に選択の余地がある。
However, when the output signal value of the AND gate is 0, it is sufficient to assign 0 to only one of the gate input signal lines. , There is a choice. Also, OR
When the output signal value of the gate is 1, the gate input signal line to which 1 is assigned has room for selection.

【0007】最も普通の選択方法は、ゲート入力信号線
の可制御性尺度 (ANDゲートおよびNANDゲートに
対しては0可制御性尺度、ORゲートおよびNORゲー
トに対しては1可制御性尺度) が最良のゲート入力信号
線すなわち信号値の設定が最も容易なゲート入力信号線
に対し、0または1を割り当てる方法である。なお、可
制御性尺度の計算規則については、図面を参照して後述
する。
The most common selection method is the controllability measure of the gate input signal line (0 controllability measure for AND gates and NAND gates, 1 controllability measure for OR gates and NOR gates). Is a method of assigning 0 or 1 to the best gate input signal line, that is, the gate input signal line with the easiest signal value setting. The calculation rule of the controllability scale will be described later with reference to the drawings.

【0008】Dアルゴリズムは、1967年 IEEE Transact
ions on Electronic Computers:Vol. EC−16, No.5, p
p.567−579 『 Programmed Algorithms to Compute Tes
ts toDetect and Distinguish between Failures in Lo
gic Circuites』という論文や藤原秀雄著『コンピュー
タの設計とテスト』(工学図書株式会社 平成2年)に記
載されている。
The D algorithm was developed in 1967 by IEEE Transact.
ions on Electronic Computers: Vol.EC-16, No.5, p
p.567-579, `` Programmed Algorithms to Compute Tes
ts toDetect and Distinguish between Failures in Lo
gic Circuites "and in Computer Design and Testing by Hideo Fujiwara (Kogyo Tosho, 1990).

【0009】もう一つの選択方法として、いわゆる巡回
バックトレースの要領で、0または1を割り当てるゲー
ト入力信号線を順番に変えることも考えられる。
As another selection method, it is conceivable to sequentially change the gate input signal lines to which 0 or 1 is assigned in the manner of a so-called cyclic back trace.

【0010】巡回バックトレースは、1993年 IEEE Tran
sactions on Computer−Aided Design of Integrated
Circuites and Systems:Vol.12,No.7, pp.1040−1049,I
rithPomeranz, Lacshmi N. Reddy, and Sudhakar M. Re
ddy 『COMPACTEST:A Methodto Generate Compact Test
Sets for Combinational Circuits』という論文に記載
されている。
[0010] The cyclic back trace is described in 1993 IEEE Tran.
sactions on Computer−Aided Design of Integrated
Circuites and Systems: Vol.12, No.7, pp.1040-1049, I
rithPomeranz, Lacshmi N. Reddy, and Sudhakar M. Re
ddy `` COMPACTEST: A Methodto Generate Compact Test
Sets for Combinational Circuits.

【0011】[0011]

【発明が解決しようとする課題】0または1を割り当て
るゲート入力信号線を可制御性尺度に基づいて選択した
場合、信号値の設定が困難なゲート入力信号線に対して
0または1の設定が要求されることは少なくなるので、
テストパターン生成時間は短くて済むが、作成されたテ
スト集合はコンパクト(テストパターン数が少ないこと)
にならない。
When a gate input signal line to which 0 or 1 is assigned is selected on the basis of the controllability scale, setting of 0 or 1 is difficult for a gate input signal line whose signal value is difficult to set. Less demanding,
Test pattern generation time is short, but the generated test set is compact (the number of test patterns is small)
do not become.

【0012】一方、巡回バックトレースの要領で、0ま
たは1を割り当てるゲート入力信号線を順番に変えた場
合、コンパクトなテスト集合が作成されるが、信号値の
設定が困難なゲート入力信号線に対しても0または1の
設定が要求されるため、テストパターン生成時間が増加
する。
On the other hand, if the gate input signal lines to which 0 or 1 are assigned are changed in order in the same manner as in the cyclic back trace, a compact test set is created, but the gate input signal lines for which setting of signal values is difficult are difficult. Since the setting of 0 or 1 is required, the test pattern generation time increases.

【0013】本発明の目的は、コンパクトなテストパタ
ーンで高い故障検出率を得る論理回路のテストパターン
作成方法および作成装置を提供することである。
An object of the present invention is to provide a method and an apparatus for creating a test pattern of a logic circuit which can obtain a high fault coverage with a compact test pattern.

【0014】[0014]

【課題を解決するための手段】本発明は、上記目的を達
成するために、正当化処理を含む論理回路のテストパタ
ーン作成方法において、ゲート入力信号線の選択確率を
計算し、処理の途中でゲート入力信号線を選択する必要
が生じた場合には、選択確率に基づいてゲート入力信号
線を選択する論理回路のテストパターン作成方法を提案
する。
SUMMARY OF THE INVENTION In order to achieve the above object, the present invention provides a method for creating a test pattern of a logic circuit including a justification process, wherein a selection probability of a gate input signal line is calculated and the process proceeds. If it becomes necessary to select a gate input signal line, a test pattern creation method for a logic circuit that selects a gate input signal line based on the selection probability is proposed.

【0015】本発明は、また、上記目的を達成するため
に、正当化処理を含む論理回路のテストパターン作成装
置において、ゲート入力信号線の選択確率を計算する選
択確率計算部と、処理の途中でゲート入力信号線を選択
する必要が生じた場合には、選択確率を用いた手続きに
よりゲート入力信号線を選択するゲート入力信号線選択
部とを備えた論理回路のテストパターン作成装置を提案
する。
According to another aspect of the present invention, there is provided an apparatus for generating a test pattern for a logic circuit including a justification process, comprising: a selection probability calculation unit for calculating a selection probability of a gate input signal line; In the case where it becomes necessary to select a gate input signal line, a test pattern creation device for a logic circuit including a gate input signal line selection unit for selecting a gate input signal line by a procedure using a selection probability is proposed. .

【0016】本発明は、さらに、上記目的を達成するた
めに、正当化処理を含む論理回路のテストパターン作成
装置において、ゲート入力信号線の選択確率を計算する
選択確率計算部と、ゲート入力信号線を選択するゲート
入力信号線選択部とを備え、ゲート入力信号線選択部
が、ゲート入力信号線の評価値による評価が最良のゲー
ト入力信号線を選択し、ゲート入力信号線が選択された
場合は、評価値を当該ゲート入力線が選択されにくくな
る方向に変更する一方、評価値をゲート入力線が選択さ
れやすくなる方向に変更する場合は、選択確率に応じた
値だけ変更する手段である論理回路のテストパターン作
成装置を提案する。
In order to achieve the above object, the present invention further provides a logic circuit test pattern creating apparatus including a justification process, wherein a selection probability calculation section for calculating a selection probability of a gate input signal line, A gate input signal line selection unit for selecting a line, wherein the gate input signal line selection unit selects the best gate input signal line evaluated by the evaluation value of the gate input signal line, and the gate input signal line is selected. In such a case, while the evaluation value is changed in a direction in which the gate input line is not easily selected, when the evaluation value is changed in a direction in which the gate input line is easily selected, a unit that changes only the value according to the selection probability is used. We propose a test pattern creation device for a certain logic circuit.

【0017】本発明は、上記目的を達成するために、正
当化処理を含む論理回路のテストパターン作成装置にお
いて、ゲート入力信号線の選択確率を計算する選択確率
計算部と、ゲート入力信号線を選択するゲート入力信号
線選択部とを備え、ゲート入力信号線選択部が、正当化
処理によりゲート入力信号線の一部に対して所定の信号
値を割り当てる場合には、ゲート入力信号線の評価値に
よる評価が最良のゲート入力信号線を選択し、評価値
を、選択確率に応じた値だけ選択されやすくなるように
変更する手段である論理回路のテストパターン作成装置
を提案する。
In order to achieve the above object, the present invention provides a logic circuit test pattern creating apparatus including a justification process, comprising: a selection probability calculation unit for calculating a selection probability of a gate input signal line; A gate input signal line selecting unit for selecting, when the gate input signal line selecting unit assigns a predetermined signal value to a part of the gate input signal line by the justification process, evaluates the gate input signal line The present invention proposes a logic circuit test pattern generation device which is a means for selecting a gate input signal line having the best evaluation based on a value and changing an evaluation value so that only a value corresponding to a selection probability is easily selected.

【0018】本発明は、また、上記目的を達成するため
に、正当化処理を含む論理回路のテストパターン作成装
置において、ゲート入力信号線の選択確率を計算する選
択確率計算部と、ゲート入力信号線を選択するゲート入
力信号線選択部とを備え、ゲート入力信号線選択部が、
正当化処理によりゲート入力信号線の一部に対して所定
の信号値を割り当てる場合には、ゲート入力信号線の評
価値による評価が最良のゲート入力信号線を選択し、評
価値を、ゲート入力信号線が選択されてしかるべき回数
と実際に選択された回数とを比較した指標とする手段で
あり、選択されてしかるべき回数が、選択確率に基づい
て計算される回数である論理回路のテストパターン作成
装置を提案する。
According to another aspect of the present invention, there is provided a test pattern creating apparatus for a logic circuit including a justification process, comprising: a selection probability calculation unit for calculating a selection probability of a gate input signal line; A gate input signal line selection unit for selecting a line, wherein the gate input signal line selection unit
When a predetermined signal value is assigned to a part of the gate input signal line by the justification process, the gate input signal line evaluated best by the evaluation value of the gate input signal line is selected, and the evaluation value is input to the gate input signal line. This is a means for setting an index by comparing the number of times a signal line is selected and the number of times the signal line is actually selected, and a test of a logic circuit in which the number of times the selected number of times is calculated based on the selection probability. We propose a pattern creation device.

【0019】本発明は、さらに、上記目的を達成するた
めに、正当化処理を含む論理回路のテストパターン作成
装置において、ゲート入力信号線の選択確率を計算する
選択確率計算部と、ゲート入力信号線を選択するゲート
入力信号線選択部とを備え、ゲート入力信号線選択部
が、正当化処理によりゲート入力信号線の一部に対して
所定の信号値を割り当てる場合には、選択確率に基づい
てゲート入力信号線をランダム選択する手段である論理
回路のテストパターン作成装置を提案する。
In order to achieve the above object, the present invention further provides a logic circuit test pattern creating apparatus including a justification process, wherein a selection probability calculation unit for calculating a selection probability of a gate input signal line; A gate input signal line selection unit for selecting a line, wherein the gate input signal line selection unit assigns a predetermined signal value to a part of the gate input signal line by the justification process, based on the selection probability. A logic circuit test pattern creation device which is a means for randomly selecting a gate input signal line.

【0020】いずれの論理回路のテストパターン作成装
置も、ゲート入力信号線の可制御性尺度を計算する可制
御性尺度計算部を含むことができ、その場合、選択確率
計算部は、可制御性尺度に基づいて選択確率を計算する
手段となる。
Any of the test pattern generating apparatuses for a logic circuit may include a controllability scale calculation unit that calculates a controllability scale of the gate input signal line. In this case, the selection probability calculation unit includes a controllability control unit. It is a means to calculate the selection probability based on the scale.

【0021】本発明は、上記目的を達成するために、正
当化処理を含む論理回路のテストパターン作成装置にお
いて、ゲート入力信号線の可制御性尺度を計算する可制
御性尺度計算部と、ゲート入力信号線を選択するゲート
入力信号線選択部とを備え、ゲート入力信号線選択部
が、正当化処理によりゲート入力信号線の一部に対して
所定の信号値を割り当てる場合には、ランダムアルゴリ
ズムにより計算された可制御性尺度の目標値と可制御性
尺度計算部により計算された可制御性尺度とに基づいて
ゲート入力信号線を選択する手段である論理回路のテス
トパターン作成装置を提案する。
According to the present invention, in order to achieve the above object, a controllability scale calculator for calculating a controllability scale of a gate input signal line in a logic circuit test pattern preparation device including a justification process, A gate input signal line selection unit for selecting an input signal line, wherein the gate input signal line selection unit assigns a predetermined signal value to a part of the gate input signal line by a justification process; Proposes an apparatus for generating a test pattern for a logic circuit, which is a means for selecting a gate input signal line based on the target value of the controllability scale calculated by the above and the controllability scale calculated by the controllability scale calculation unit. .

【0022】本発明においては、次のような方針に従っ
て、ゲート入力信号線の選択の多様性を保ちつつ、可制
御性尺度の小さい入力信号線が可制御性尺度の大きい入
力信号線よりも選択されやすくする。
According to the present invention, the input signal line having a small controllability scale is selected over the input signal line having a large controllability scale while maintaining the variety of selection of the gate input signal lines according to the following policy. Make it easy to be.

【0023】(1)ゲート入力信号線の選択確率を計算す
る選択確率計算部と、ゲート入力信号線を選択するゲー
ト入力信号線選択部とを設け、ゲート入力信号線選択部
は、ゲート入力信号線の評価値による評価が最良のゲー
ト入力信号線を選択し、ゲート入力信号線が選択された
場合は、評価値を当該ゲート入力線が選択されにくくな
る方向に変更する。一方、評価値をゲート入力線が選択
されやすくなる方向に変更する場合は、選択確率に応じ
た値だけ変更する。ゲート入力信号線の選択確率は、可
制御性尺度計算部で計算したゲート入力信号線の可制御
性尺度に基づいて計算する。
(1) A selection probability calculation unit for calculating a selection probability of a gate input signal line and a gate input signal line selection unit for selecting a gate input signal line are provided. The gate input signal line evaluated best by the evaluation value of the line is selected, and when the gate input signal line is selected, the evaluation value is changed to a direction in which the gate input line is hardly selected. On the other hand, when the evaluation value is changed in a direction in which the gate input line is easily selected, only the value corresponding to the selection probability is changed. The selection probability of the gate input signal line is calculated based on the controllability measure of the gate input signal line calculated by the controllability measure calculation unit.

【0024】(2)ゲート入力信号線の選択確率を計算す
る選択確率計算部と、ゲート入力信号線を選択するゲー
ト入力信号線選択部とを設け、ゲート入力信号線選択部
は、選択確率に従ってゲート入力信号線をランダム選択
する。ゲート入力信号線の選択確率は、ゲート入力信号
線の可制御性尺度に基づいて計算する。
(2) A selection probability calculation unit for calculating the selection probability of the gate input signal line, and a gate input signal line selection unit for selecting the gate input signal line are provided, and the gate input signal line selection unit operates according to the selection probability. The gate input signal line is randomly selected. The selection probability of the gate input signal line is calculated based on the controllability measure of the gate input signal line.

【0025】(3)ゲート入力信号線の可制御性尺度を計
算する可制御性尺度計算部と、ゲート入力信号線を選択
するゲート入力信号線選択部とを設け、ゲート入力信号
線選択部は、ランダムアルゴリズムにより計算された可
制御性尺度の目標値と可制御性尺度とに基づいてゲート
入力信号線を選択する。
(3) A controllability scale calculator for calculating a controllability scale of the gate input signal line and a gate input signal line selector for selecting the gate input signal line are provided. And selecting a gate input signal line based on the target value of the controllability scale calculated by the random algorithm and the controllability scale.

【0026】本発明のこれらの方針によれば、ゲート入
力信号線の選択の多様性が保たれたまま、可制御性尺度
の小さいゲート入力信号線が可制御性尺度の大きいゲー
ト入力信号線よりも選択されやすくなる。その結果、コ
ンパクトなテスト集合を高速に作成できる。
According to these principles of the present invention, a gate input signal line having a small controllability scale is made higher than a gate input signal line having a large controllability scale while maintaining the variety of selection of gate input signal lines. Is also easier to select. As a result, a compact test set can be created at high speed.

【0027】[0027]

【発明の実施の形態】次に、図1〜図18を参照して、
本発明による論理回路のテストパターン作成方法および
作成装置の実施例を説明する。以下の説明においては、
処理対象を論理回路の出力エッジの故障とし、Dアルゴ
リズムの正当化処理に関連する処理だけを扱って、論理
回路の出力エッジの故障のテストパターン生成の例だけ
を示すが、完全なDアルゴリズムを用いれば、論理回路
の任意位置の故障を正確に検出できるテストパターンを
生成できる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, referring to FIGS.
An embodiment of a method and an apparatus for creating a test pattern of a logic circuit according to the present invention will be described. In the following description,
The processing target is a failure of the output edge of the logic circuit, and only the processing related to the justification processing of the D algorithm is handled. Only an example of test pattern generation of the failure of the output edge of the logic circuit is shown. If used, it is possible to generate a test pattern that can accurately detect a fault at an arbitrary position in a logic circuit.

【0028】《実施例1》図1は、本発明による論理回
路のテストパターン生成装置のハードウェア構成の概略
を示すブロック図である。このテストパターン生成装置
は、入力部202と、出力部206と、メインプロセッ
サ210とからなり、メインプロセッサ210は、入出
力インターフェース212と、CPU214と、メモリ
216とを含んでいる。
Embodiment 1 FIG. 1 is a block diagram showing an outline of a hardware configuration of a test pattern generation device for a logic circuit according to the present invention. This test pattern generation device includes an input unit 202, an output unit 206, and a main processor 210. The main processor 210 includes an input / output interface 212, a CPU 214, and a memory 216.

【0029】図2は、本発明による論理回路のテストパ
ターン生成装置の一実施例の機能的構成を示すブロック
図である。このテストパターン生成装置は、入力部10
2と、出力部106と、テストパターン生成部110と
からなる。テストパターン生成部110は、バイアス初
期設定部112と、制御性尺度計算部114と、選択確
率計算部116と、ターゲット故障選択部118と、信
号値・未正当化ゲート集合初期設定部122と、テスト
パターン生成終了判定部125と、ゲート選択部130
と、ゲート入力信号線選択要否判定部135と、ゲート
入力信号線選択部140と、信号値割り当て部180
と、未正当化ゲート集合更新部185と、テストパター
ン記憶部190とを含んでいる。
FIG. 2 is a block diagram showing a functional configuration of an embodiment of a logic circuit test pattern generating apparatus according to the present invention. This test pattern generation device includes an input unit 10
2, an output unit 106, and a test pattern generation unit 110. The test pattern generating unit 110 includes a bias initial setting unit 112, a controllability scale calculating unit 114, a selection probability calculating unit 116, a target fault selecting unit 118, a signal value / unjustified gate set initial setting unit 122, Test pattern generation end determination unit 125 and gate selection unit 130
A gate input signal line selection necessity determination unit 135, a gate input signal line selection unit 140, and a signal value allocation unit 180
And an unjustified gate set updating unit 185 and a test pattern storage unit 190.

【0030】図2のテストパターン生成部110は、図
1のメモリ216にソフトウエアとして記憶されてお
り、図2の入力部102および出力部106は、それぞ
れ、図1の入力部202および出力部206に相当す
る。
The test pattern generation unit 110 of FIG. 2 is stored as software in the memory 216 of FIG. 1, and the input unit 102 and the output unit 106 of FIG. 2 correspond to the input unit 202 and the output unit of FIG. 206.

【0031】図3は、可制御性尺度の計算規則を示す図
である。C0は、0可制御性尺度のことであり、C1
は、1可制御性尺度のことである。また、3入力以上の
ゲートについては、項数が増えるだけで、可制御性尺度
の計算規則は同様である。回路入力エッジに対してC0
=C1=1とした後で、図3の規則を入力側から順番に
適用すると、各信号線の可制御性尺度を計算できる。
FIG. 3 is a diagram showing rules for calculating the controllability scale. C0 is the 0 controllability scale, and C1
Is one controllability measure. For a gate with three or more inputs, the calculation rule of the controllability scale is the same, only the number of terms increases. C0 for circuit input edge
After setting = C1 = 1, by applying the rule of FIG. 3 in order from the input side, the controllability scale of each signal line can be calculated.

【0032】図4は、Dアルゴリズムで使用する信号値
の体系を説明する図表である。Dアルゴリズムにおいて
は、0,1,D,D′,Xの5個の信号値を用いる。これら
のうち、X以外の4個の信号値は、それぞれ次のような
ペアとみなすことができる。Dアルゴリズムにおける0
は、故障のない回路において0を表し、故障のある回路
において0を表す。1は、故障のない回路において1を
表し、故障のある回路において1を表す。Dは、故障の
ない回路において1(正常成分)を表し、故障のある回路
において0(故障成分)を表す。D′は、故障のない回路
において0を表し、故障のある回路において1を表す。
FIG. 4 is a chart for explaining a system of signal values used in the D algorithm. In the D algorithm, five signal values of 0, 1, D, D ', and X are used. Among these, the four signal values other than X can be regarded as the following pairs, respectively. 0 in the D algorithm
Represents 0 in a circuit without a fault and 0 in a circuit with a fault. 1 represents 1 in a circuit without a fault and 1 in a circuit with a fault. D represents 1 (normal component) in a circuit having no failure and 0 (failure component) in a circuit having a failure. D 'represents 0 in a fault-free circuit and 1 in a faulty circuit.

【0033】図5は、図2のテストパターン生成装置の
処理手順を示すフローチャートである。
FIG. 5 is a flowchart showing a processing procedure of the test pattern generation device of FIG.

【0034】ステップ312では、バイアス初期設定部
112が、全ゲートの全入力信号線のバイアスを0に初
期設定する。バイアスとは、ゲート入力信号線が選択さ
れてしかるべき回数と実際に選択された回数との差であ
る。ここで、選択されてしかるべき回数とは、ゲート入
力信号線の選択確率と、当該ゲートが正当化操作の対象
となって信号値0または1を割り当てる入力信号線を選
択した回数との積である。例えば、あるゲートが正当化
操作の対象となって信号値0または1を割り当てる入力
信号線を選択したことが過去3回あり、そのゲートのあ
る入力信号線の選択確率が0.3で、選ばれたことが1
回だけあれば、その入力信号線のバイアスは1−0.3
×3=0.1となる。ゲート入力信号線の選択確率は、
後述する選択確率計算部116により計算される。バイ
アスは、ゲート入力信号線の選択回数の過不足を表し、
正ならば選択回数が多過ぎ、負ならば少な過ぎることを
示す。
In step 312, the bias initial setting section 112 initializes the bias of all input signal lines of all gates to zero. The bias is a difference between the appropriate number of times the gate input signal line is selected and the number of times the gate input signal line is actually selected. Here, the appropriate number of times of selection is the product of the selection probability of the gate input signal line and the number of times that the gate has selected the input signal line to be assigned a signal value 0 or 1 as a target of the justification operation. is there. For example, a gate has been selected for an input signal line to which a signal value of 0 or 1 has been selected as a target of the justification operation three times in the past, and the selection probability of an input signal line having that gate has been selected at 0.3. It was 1
If only one time, the bias of the input signal line is 1-0.3
× 3 = 0.1. The selection probability of the gate input signal line is
It is calculated by a selection probability calculation unit 116 described later. The bias indicates whether the number of selections of the gate input signal line is excessive or insufficient,
A positive value indicates that the number of selections is too large, and a negative value indicates that the number is too small.

【0035】ステップ314では、可制御性尺度計算部
114が、Goldsteinの可制御性尺度を計算する。回路
入力エッジに対して0可制御性尺度C0=1可制御性尺
度C1=1とした後に、図3の規則を入力側のゲートか
ら順番に適用する。
In step 314, the controllability scale calculator 114 calculates Goldstein's controllability scale. After setting the 0 controllability scale C0 = 1 and the controllability scale C1 = 1 for the circuit input edge, the rules in FIG. 3 are applied in order from the gate on the input side.

【0036】ステップ316では、選択確率計算部11
6が、AND・NAND・OR・NORゲートの入力信
号線の選択確率を計算する。
In step 316, the selection probability calculation unit 11
6 calculates the selection probability of the input signal line of the AND / NAND / OR / NOR gate.

【0037】ステップ318では、ターゲット故障選択
部118が、ターゲット故障すなわちテストパターン生
成の対象となる故障を選択できるかどうかを判定する。
選択できる場合は、ステップ320に進み、選択できな
い場合は、処理を終了する。
In step 318, the target fault selector 118 determines whether a target fault, that is, a fault for which a test pattern is to be generated, can be selected.
If it can be selected, the process proceeds to step 320; otherwise, the process ends.

【0038】ステップ320では、ターゲット故障選択
部118が、ターゲット故障を選択する。回路テストパ
ターン生成とは、すなわち、テストパターン生成の対象
となる故障全部を検出できるようなテストパターンの集
合を得ることは、故障を1つピックアップしてそれに対
するテストパターンを作成するという操作のくり返しで
あり、ターゲット故障とは、テストパターン生成の対象
としてピックアップされた故障のことである。
In step 320, the target fault selection section 118 selects a target fault. Circuit test pattern generation means that obtaining a set of test patterns that can detect all faults for which test pattern generation is to be performed is a repetition of the operation of picking up one fault and creating a test pattern for it. And the target fault is a fault picked up as a target of test pattern generation.

【0039】ステップ322では、信号値・未正当化ゲ
ート集合初期設定部122が、回路信号値と未正当化ゲ
ート集合とを初期設定する。全信号線の信号値はXとし
て、未正当化ゲート集合は故障点を出力とするゲートた
だ1つとする。ここで、未正当化ゲートとは、入力信号
線に信号値0または1の設定を必要とするゲートのこと
であり、次の条件を全部満たすゲートと定義される。 (1)出力信号値は、0,1,D,D′のいずれかである。 (2)入力信号値は、全て0,1,Xのいずれかである。 (3)入力信号値のうち少なくとも1つは、Xである。
In step 322, the signal value / unjustified gate set initial setting unit 122 initializes the circuit signal value and the unjustified gate set. The signal value of all signal lines is X, and the set of unjustified gates is only one gate that outputs a fault point. Here, an unjustified gate is a gate that requires a signal value of 0 or 1 to be set to an input signal line, and is defined as a gate that satisfies all of the following conditions. (1) The output signal value is one of 0, 1, D, and D '. (2) The input signal values are all 0, 1, or X. (3) At least one of the input signal values is X.

【0040】(4)入力信号値Xをうまく0または1に書
き換えてゲート演算して、出力信号値の正常成分と異な
る結果(出力信号値の正常成分が0の場合には1、1の
場合には0)を得る。
(4) The input signal value X is successfully rewritten to 0 or 1 and a gate operation is performed, and a result different from the normal component of the output signal value is obtained (when the normal component of the output signal value is 0, 1 or 1). To get 0).

【0041】ステップ325では、テストパターン生成
終了判定部125が、現在のターゲット故障のテストパ
ターン生成を終了するかどうかを判定する。未正当化ゲ
ート集合が空集合である場合は、テストパターン生成終
了と判定してステップ390に進み、空集合でない場合
は、ステップ330に進む。
In step 325, the test pattern generation end determining unit 125 determines whether the test pattern generation for the current target fault is to be ended. If the unjustified gate set is an empty set, it is determined that test pattern generation has been completed, and the process proceeds to step 390; otherwise, the process proceeds to step 330.

【0042】ステップ330では、ゲート選択部130
が、未正当化ゲート集合の中から出力信号線の可制御性
尺度が最悪の(信号値の設定が最も困難な)ゲートを1つ
選択する。
In step 330, the gate selection unit 130
However, from the set of unjustified gates, one gate having the worst controllability measure of the output signal line (the most difficult to set the signal value) is selected.

【0043】ステップ335では、ゲート入力信号線選
択要否判定部135が、ゲート入力信号線の選択の要否
を判定する。選択されたゲートとその出力値との組合せ
が、次のいずれかである場合は、ゲート入力信号線の一
つに対してだけ、0または1が割り当てられるので、選
択は必要と判定し、それ以外の場合には、選択は不要と
判定する。 (1)選択されたゲートがANDゲートで、出力信号値の
正常成分が0。 (2)選択されたゲートがNANDゲートで、出力信号値
の正常成分が1。 (3)選択されたゲートがORゲートで、出力信号値の正
常成分が1。 (4)選択されたゲートがNORゲートで、出力信号値の
正常成分が0。
In step 335, the gate input signal line selection necessity judging section 135 judges the necessity of gate input signal line selection. If the combination of the selected gate and its output value is any of the following, 0 or 1 is assigned to only one of the gate input signal lines, so selection is determined to be necessary, and Otherwise, it is determined that selection is unnecessary. (1) The selected gate is an AND gate, and the normal component of the output signal value is 0. (2) The selected gate is a NAND gate, and the normal component of the output signal value is 1. (3) The selected gate is an OR gate, and the normal component of the output signal value is 1. (4) The selected gate is a NOR gate, and the normal component of the output signal value is 0.

【0044】ステップ340では、ゲート入力信号線選
択部140が、信号値0または1を割り当てるゲート入
力信号線を選択する。
In step 340, the gate input signal line selector 140 selects a gate input signal line to which a signal value 0 or 1 is assigned.

【0045】ステップ380では、信号値割り当て部1
80が、図6に示す信号値を割り当てる。
In step 380, the signal value allocating unit 1
80 assigns the signal values shown in FIG.

【0046】ステップ385では、未正当化ゲート集合
更新部185が、未正当化ゲート集合を更新し、ステッ
プ325に戻る。
In step 385, the unjustified gate set updating unit 185 updates the unjustified gate set, and returns to step 325.

【0047】ステップ390では、テストパターン記憶
部190が、テストパターンを記憶し、ステップ318
に戻る。
In step 390, the test pattern storage section 190 stores the test pattern, and
Return to

【0048】次に、図5において、選択確率を計算する
ステップ316と、ゲート入力信号線を選択するステッ
プ340とをさらに詳しく説明する。
Next, in FIG. 5, step 316 of calculating the selection probability and step 340 of selecting the gate input signal line will be described in more detail.

【0049】図7は、選択確率計算部116が、選択確
率を計算する図5のステップ316の処理手順の詳細を
示すフローチャートである。
FIG. 7 is a flowchart showing details of the processing procedure of step 316 in FIG. 5 in which the selection probability calculation section 116 calculates the selection probability.

【0050】ステップ405では、入力信号線の選択確
率を計算していないAND・NAND・OR・NORゲ
ートがあるかどうかを判定し、そのようなゲートがあれ
ば、ステップ410に進み、なければ処理を終了する。
In step 405, it is determined whether there is an AND / NAND / OR / NOR gate for which the selection probability of the input signal line has not been calculated. If there is such a gate, the process proceeds to step 410; To end.

【0051】ステップ410では、入力信号線の選択確
率を計算していないAND・NAND・OR・NORゲ
ートを1つ取り出す。
In step 410, one AND / NAND / OR / NOR gate for which the selection probability of the input signal line has not been calculated is taken out.

【0052】ステップ415では、各入力信号線の評価
値(ANDゲートおよびNANDゲートに対しては0可
制御性尺度のk乗の逆数、ORゲートおよびNORゲー
トに対しては1可制御性尺度のk乗の逆数。kは正数)
を計算する。
In step 415, the evaluation value of each input signal line (the reciprocal of the kth power of the 0 controllability scale for the AND gate and the NAND gate, and the 1 controllability scale of the OR control gate and the NOR gate). (Reciprocal of k-th power, where k is a positive number)
Is calculated.

【0053】ステップ420では、入力信号線の評価値
を規格化(和が1になるようにする)し、その結果を各
入力信号線の選択確率とする。
In step 420, the evaluation values of the input signal lines are normalized (the sum is set to 1), and the result is used as the selection probability of each input signal line.

【0054】ステップ425では、ステップ405に戻
る。
In step 425, the process returns to step 405.

【0055】選択確率計算用パラメータkが大きいほど
可制御性尺度が良い(信号値の設定が容易な)入力信号
線の選択確率は大きく、可制御性尺度が悪い(信号値の
設定が困難な)入力信号線の選択確率は小さくなり、信
号値の設定が最も容易なゲート入力信号線に対して0ま
たは1を割り当てる処理に近づく。したがって、テスト
パターン生成時間は短くて済むが、作成されたテスト集
合はあまりコンパクトにならない。一方、kが小さい
(0に近い)ほど可制御性尺度が良い入力信号線も悪い入
力信号線も選択確率の差がなくなり、0または1を割り
当てるゲート入力信号線を順番に変える処理に近づく。
したがって、コンパクトなテスト集合が作成されるが、
テストパターン生成時間は増加する。このように、選択
確率計算用パラメータkは、アルゴリズムの特性を支配
するパラメータである。
The larger the selection probability calculation parameter k, the better the controllability scale (easy to set the signal value). The larger the selection probability of the input signal line, and the worse the controllability scale (the more difficult the signal value to set). ) The selection probability of the input signal line is reduced, and the process approaches to the process of assigning 0 or 1 to the gate input signal line in which the signal value is most easily set. Therefore, although the test pattern generation time is short, the generated test set is not very compact. On the other hand, k is small
The input signal line having a better controllability scale and the input signal line having a poorer controllability scale have a smaller selection probability (closer to 0), and the process approaches the process of sequentially changing the gate input signal lines to which 0 or 1 is assigned.
Thus, a compact test set is created,
The test pattern generation time increases. Thus, the selection probability calculation parameter k is a parameter that governs the characteristics of the algorithm.

【0056】図8は、ゲート入力信号線選択部140
が、ゲート入力信号線を選択する図5のステップ340
の処理手順の詳細を示すフローチャートである。
FIG. 8 shows a gate input signal line selection section 140.
Selects the gate input signal line in step 340 of FIG.
6 is a flowchart showing details of the processing procedure of FIG.

【0057】ステップ505では、注目ゲート(ゲート
選択部130により選択されたゲート)の全入力信号線
のバイアスから選択確率を引く。
In step 505, the selection probability is subtracted from the biases of all the input signal lines of the target gate (the gate selected by the gate selection unit 130).

【0058】ステップ510では、信号値Xが割り当て
られている入力信号線のうち、バイアスが最も小さい入
力信号線を選択する。
At step 510, the input signal line having the smallest bias is selected from the input signal lines to which the signal value X is assigned.

【0059】ステップ515では、選択された入力信号
線のバイアスに1を加える。
In step 515, 1 is added to the bias of the selected input signal line.

【0060】以下、k=1.5として、本実施例による
テストパターン生成の具体例を示す。
Hereinafter, a specific example of test pattern generation according to the present embodiment will be described with k = 1.5.

【0061】図9は、論理回路の故障の例を示す図であ
る。この場合は、テストパターン生成の対象となる故障
は、ゲートC,D,Eの出力信号線の0縮退故障だけであ
り、この順に選択されると仮定する。
FIG. 9 is a diagram showing an example of a failure in a logic circuit. In this case, it is assumed that the test pattern generation target faults are only the stuck-at-0 faults of the output signal lines of the gates C, D, and E, and are selected in this order.

【0062】ステップ312で、全ゲートの全入力信号
線のバイアスを0に初期設定する。ステップ314で、
Goldsteinの可制御性尺度を計算する(図3)。
In step 312, the biases of all input signal lines of all gates are initialized to zero. At step 314,
Compute Goldstein's controllability measure (FIG. 3).

【0063】ステップ316で、ゲートA,B,C,D,E
の入力信号線の選択確率を計算する信号線選択処理に入
る。
At step 316, gates A, B, C, D, and E
Of the input signal line is calculated.

【0064】図10は、各ゲート入力線の可制御性尺度
と選択確率とを示す図である。左から順に、ゲート,入
力信号線,その1可制御性尺度,0可制御性尺度,選択確
率を示している。
FIG. 10 is a diagram showing the controllability scale and selection probability of each gate input line. In order from the left, a gate, an input signal line, its 1 controllability scale, 0 controllability scale, and selection probability are shown.

【0065】ステップ318および320で、ターゲッ
ト故障として、ゲートCの出力信号線の0縮退故障が選
択されたとする。それに伴って、ゲートCの出力信号線
の信号値は、D(故障のない回路で1、故障のある回路
で0を表す)と設定される。
In steps 318 and 320, it is assumed that the 0 stuck-at fault of the output signal line of the gate C is selected as the target fault. Accordingly, the signal value of the output signal line of the gate C is set to D (representing 1 for a fault-free circuit and representing 0 for a faulty circuit).

【0066】ステップ322で、全信号線の信号値がX
と設定され、未正当化ゲート集合は{C}と計算され
る。
At step 322, the signal values of all the signal lines are X
And the unjustified gate set is calculated as {C}.

【0067】ステップ325で、「テストパターン生成
続行」と判定され、ステップ330で、ゲートCが選択
されたとすると、ステップ335では、「ゲート入力信
号線の選択は不要」と決定される。
If it is determined in step 325 that "test pattern generation is to be continued" and if gate C is selected in step 330, it is determined in step 335 that "selection of gate input signal line is unnecessary".

【0068】ステップ380に進んで、ゲートBの出力
信号線と回路入力エッジeの信号値が、それぞれ1と設
定され、ステップ385で、未正当化ゲート集合が
{B}に更新され、ステップ325に戻る。
Proceeding to step 380, the output signal line of the gate B and the signal value of the circuit input edge e are respectively set to 1, and in step 385, the set of unjustified gates is updated to {B}. Return to

【0069】ステップ325で、「テストパターン生成
続行」と判定され、ステップ330で、ゲートBが選択
されたとすると、ステップ335では、「ゲート入力信
号線の選択は必要」と決定され、ゲート入力信号線を選
択する処理に入る。
If it is determined in step 325 that "test pattern generation is to be continued" and if gate B is selected in step 330, it is determined in step 335 that "selection of gate input signal line is necessary" and gate input signal The process for selecting a line is started.

【0070】図11は、ゲートBの入力信号線を選択す
る処理の推移を示す図である。左から順に、ターゲット
故障,ゲートBの入力信号線,その選択確率,ステップ5
05におけるバイアス,ステップ510における入力信
号線の選択,ステップ515におけるバイアスを示して
いる。回路入力エッジa,bおよびゲートAの出力信号
線の1可制御性尺度は、それぞれ1,1,3なので、選択
確率の比は、1:1:0.192となっている。
FIG. 11 is a diagram showing the transition of the process of selecting the input signal line of the gate B. In order from the left, the target failure, the input signal line of the gate B, the selection probability, and step 5
5 shows the bias in step 05, the selection of the input signal line in step 510, and the bias in step 515. Since the 1 controllability scales of the circuit input edges a and b and the output signal line of the gate A are 1, 1, and 3, respectively, the selection probability ratio is 1: 1: 0.192.

【0071】ステップ505では、バイアスの初期値0
から入力信号線の選択確率が引かれている。
In step 505, the initial value of the bias 0
Is subtracted from the selection probability of the input signal line.

【0072】ステップ510では、バイアスが最も小さ
い回路入力エッジaが選択され、ステップ515では、
回路入力エッジaのバイアスに1が足されている。
In step 510, the circuit input edge a having the smallest bias is selected, and in step 515,
One is added to the bias of the circuit input edge a.

【0073】ステップ380では、回路入力エッジa,
bおよびゲートAの出力信号線の信号値がそれぞれ1,
X,Xと設定され、ステップ385では、未正当化ゲー
ト集合が空集合に更新される。
At step 380, the circuit input edges a,
b and the signal value of the output signal line of the gate A are 1,
X, X are set, and in step 385, the unjustified gate set is updated to an empty set.

【0074】ステップ325では、「テストパターン生
成終了」と判定され、ステップ390では、テストパタ
ーン(1,X,X,X,1,X,X)を記憶し、ステップ318
に戻る。
At step 325, it is determined that “test pattern generation has been completed”, and at step 390, the test pattern (1, X, X, X, 1, X, X) is stored.
Return to

【0075】ステップ318および320では、ターゲ
ット故障としてゲートDの出力信号線の0縮退故障が選
択されたとする。それに伴って、ゲートDの出力信号線
の信号値は、Dと設定される。
In steps 318 and 320, it is assumed that the 0 stuck-at fault of the output signal line of the gate D is selected as the target fault. Accordingly, the signal value of the output signal line of the gate D is set to D.

【0076】ステップ322で、全信号線の信号値がX
と設定され、未正当化ゲート集合は{D}と計算され
る。ステップ325で、「テストパターン生成続行」と
判定され、ステップ330で、ゲートDが選択されたと
すると、ステップ335では、「ゲート入力信号線の選
択は不要」と決定される。ステップ380に進んで、ゲ
ートBの出力信号線の信号値と回路入力エッジfの信号
値がそれぞれ1と設定され、ステップ385で、未正当
化ゲート集合が、{B}に更新され、ステップ325に
戻る。
At step 322, the signal values of all the signal lines are X
And the set of unjustified gates is calculated as {D}. If it is determined in step 325 that “test pattern generation continues” and if gate D is selected in step 330, it is determined in step 335 that “selection of gate input signal line is unnecessary”. Proceeding to step 380, the signal value of the output signal line of the gate B and the signal value of the circuit input edge f are each set to 1, and in step 385, the set of unjustified gates is updated to {B}, and step 325 Return to

【0077】ステップ325で、「テストパターン生成
続行」と判定され、ステップ330で、ゲートBが選択
されたとすると、ステップ335では、「ゲート入力信
号線の選択は必要」と決定され、図11のゲート入力信
号線を選択する処理に入る。
If it is determined in step 325 that "test pattern generation is to be continued" and if gate B is selected in step 330, it is determined in step 335 that "selection of gate input signal line is necessary". The process starts to select a gate input signal line.

【0078】ステップ505では、バイアスから入力信
号線の選択確率が引かれている。
In step 505, the selection probability of the input signal line is subtracted from the bias.

【0079】ステップ510では、バイアスが最も小さ
い回路入力エッジbが選択され、ステップ515では、
回路入力エッジbのバイアスに1が足されている。
In step 510, the circuit input edge b having the smallest bias is selected. In step 515,
One is added to the bias of the circuit input edge b.

【0080】ステップ380で、回路入力エッジa,b
およびゲートAの出力信号線の信号値が、それぞれX,
1,Xと設定され、ステップ385で、未正当化ゲート
集合が、空集合に更新される。
At step 380, circuit input edges a and b
And the signal value of the output signal line of the gate A is X,
In step 385, the unjustified gate set is updated to an empty set.

【0081】ステップ325で「テストパターン生成終
了」と判定され、ステップ390でテストパターン(X,
1,X,X,X,1,X)を記憶して、ステップ318に戻
る。
At step 325, it is determined that “test pattern generation is completed”, and at step 390, the test pattern (X,
(1, X, X, X, 1, X) are stored, and the process returns to step 318.

【0082】ステップ318および320で、ターゲッ
ト故障としてゲートEの出力信号線の0縮退故障が、選
択されたものとする。それに伴って、ゲートEの出力信
号線の信号値は、Dと設定される。
In steps 318 and 320, it is assumed that the stuck-at-0 fault of the output signal line of gate E has been selected as the target fault. Accordingly, the signal value of the output signal line of the gate E is set to D.

【0083】ステップ322で、全信号線の信号値が、
Xと設定され、未正当化ゲート集合は、{E}と計算さ
れる。ステップ325で、「テストパターン生成続行」
と判定され、ステップ330で、ゲートEが選択された
とすると、ステップ335では、「ゲート入力信号線の
選択は不要」と決定される。ステップ380に進んで、
ゲートBの出力信号線の信号値と回路入力エッジgの信
号値が、それぞれ1と設定され、ステップ385で未正
当化ゲート集合が、{B}に更新され、ステップ325
に戻る。
At step 322, the signal values of all signal lines are
X is set, and the unjustified gate set is calculated as {E}. In step 325, "continue test pattern generation"
If it is determined that the gate E is selected in step 330, it is determined in step 335 that "selection of a gate input signal line is unnecessary". Proceeding to step 380,
The signal value of the output signal line of the gate B and the signal value of the circuit input edge g are respectively set to 1, and in step 385, the unjustified gate set is updated to {B}, and step 325
Return to

【0084】ステップ325で「テストパターン生成続
行」と判定され、ステップ330でゲートBが選択され
たとすると、ステップ335では「ゲート入力信号線の
選択は必要」と決定され、図11のゲート入力信号線を
選択する処理に入る。
If it is determined in step 325 that "test pattern generation is to be continued" and gate B is selected in step 330, it is determined in step 335 that "selection of gate input signal line is necessary" and the gate input signal shown in FIG. The process for selecting a line is started.

【0085】ステップ505では、バイアスから入力信
号線の選択確率が引かれている。ステップ510では、
バイアスが最も小さい回路入力エッジaが選択され、ス
テップ515では、回路入力エッジaのバイアスに1が
足されている。ステップ380で回路入力エッジaの信
号値が1と設定され、ステップ385で未正当化ゲート
集合が空集合に更新される。ステップ325で「テスト
パターン生成終了」と判定され、ステップ390でテス
トパターン(1,X,X,X,X,X,1)を記憶する。ステッ
プ318ではターゲット故障を選択できないので、処理
を終了する。
In step 505, the selection probability of the input signal line is subtracted from the bias. In step 510,
The circuit input edge a having the smallest bias is selected, and in step 515, 1 is added to the bias of the circuit input edge a. In step 380, the signal value of the circuit input edge a is set to 1, and in step 385, the unjustified gate set is updated to an empty set. At step 325, it is determined that “test pattern generation is completed”, and at step 390, the test pattern (1, X, X, X, X, X, 1) is stored. In step 318, the process is terminated because the target failure cannot be selected.

【0086】このように作成されたテストパターンは、
処理対象の回路に故障が存在するか、存在する場合には
どのような故障であるかを調べるのに用いられる。テス
タと呼ばれる装置により、処理対象の回路にテストパタ
ーンを入力して出力を観測すればよい。
The test pattern thus created is
It is used to determine whether a fault exists in the circuit to be processed and, if so, what kind of fault it is. What is necessary is just to input a test pattern to a circuit to be processed and observe the output with a device called a tester.

【0087】《実施例2》図12は、本発明による論理
回路のテストパターン生成装置の実施例2の構成を示す
ブロック図である。実施例2は、図2の実施例1の構成
に対して、バイアス初期設定部112とゲート入力信号
線選択部140を削除し、ゲート入力信号線選択部15
0を追加したものである。ゲート入力信号線選択部15
0は、選択確率計算部116により計算された選択確率
にしたがって、注目ゲートの入力信号線をランダムに選
択する。
<< Embodiment 2 >> FIG. 12 is a block diagram showing a configuration of an embodiment 2 of a logic circuit test pattern generation device according to the present invention. In the second embodiment, the bias initial setting unit 112 and the gate input signal line selection unit 140 are deleted from the configuration of the first embodiment in FIG.
0 is added. Gate input signal line selector 15
0 randomly selects the input signal line of the target gate according to the selection probability calculated by the selection probability calculation unit 116.

【0088】以下、選択の対象となるゲート入力信号線
をGI(1),GI(2),・・・,GI(n)とし、それぞれ
の選択確率をp(1),p(2),・・・,p(n)として、選
択方法を説明する。0以上1未満の値をとる一様乱数を
生成し、その乱数値に対して数1を成り立たせるような
最小のmに対するゲート入力信号線GI(m)を選択す
る。
Hereinafter, the gate input signal lines to be selected are GI (1), GI (2),..., GI (n), and the selection probabilities are p (1), p (2), , P (n) will be described as a selection method. A uniform random number having a value of 0 or more and less than 1 is generated, and a gate input signal line GI (m) for the minimum m that satisfies Equation 1 is selected.

【0089】[0089]

【数1】 (Equation 1)

【0090】ただし、選択されたゲート入力信号線の信
号値がXであった場合には、その選択は無効としてもう
一度選択をやり直す。本発明では、バイアスの計算が不
要である。
However, if the signal value of the selected gate input signal line is X, the selection is invalidated and the selection is performed again. In the present invention, the calculation of the bias is unnecessary.

【0091】なお、実施例1および実施例2において、
選択確率計算用パラメータkは必ずしも全ゲート一律で
ある必要はない。例えば、回路入力エッジに近い(ゲー
トを通過するごとに距離1と数える)ゲートに対しては
kを小さく(0に近く)し、回路入力エッジから遠いゲー
トに対しては、kを大きくしてもよい。
Note that in Examples 1 and 2,
The selection probability calculation parameter k does not necessarily need to be uniform for all gates. For example, for a gate closer to the circuit input edge (counting a distance of 1 as it passes through the gate), decrease k (closer to 0), and for a gate far from the circuit input edge, increase k. Is also good.

【0092】《実施例3》図13は、本発明による論理
回路のテストパターン生成装置の実施例3の構成を示す
ブロック図である。実施例3は、図12の構成に対し
て、選択確率計算部116およびゲート入力信号線選択
部150を削除し、ゲート入力信号線選択部160を追
加したものである。
<< Embodiment 3 >> FIG. 13 is a block diagram showing a configuration of an embodiment 3 of a logic circuit test pattern generation device according to the present invention. The third embodiment is different from the configuration of FIG. 12 in that the selection probability calculation unit 116 and the gate input signal line selection unit 150 are deleted, and the gate input signal line selection unit 160 is added.

【0093】図14は、ゲート入力信号線選択部160
の処理手順を説明するフローチャートである。
FIG. 14 shows a gate input signal line selection section 160
5 is a flowchart for explaining the processing procedure of FIG.

【0094】ステップ602では、可制御性尺度の目標
値を0に設定する。
In step 602, the target value of the controllability scale is set to zero.

【0095】ステップ603では、0以上1未満の値を
取る一様乱数を生成する。
In step 603, a uniform random number taking a value of 0 or more and less than 1 is generated.

【0096】ステップ604では、乱数値が離散型指数
分布生成用パラメータt(0<t<1)以上であるかどう
かを判定する。乱数値がtより大きければ、ステップ6
06に進み、t以下であればステップ608に進む。ス
テップ606では、目標値に1をたしてステップ603
に戻る。ステップ608では、注目ゲートの入力信号線
で信号値Xが割り当てられているもののうち、可制御性
尺度(ANDゲートおよびNANDゲートの場合には0
可制御性尺度、ORゲートおよびNORゲートの場合に
は1可制御性尺度)が目標値に最も近いものの1つを選
択する。なお、ステップ606までの処理は、離散型指
数分布を生成する処理となっている。
In step 604, it is determined whether or not the random value is greater than or equal to the discrete exponential distribution generation parameter t (0 <t <1). If the random number is greater than t, step 6
06, and if it is equal to or less than t, the process proceeds to step 608. In step 606, 1 is added to the target value, and step 603 is executed.
Return to In step 608, among the input signal lines of the target gate to which the signal value X is assigned, the controllability scale (0 for the AND gate and the NAND gate).
The controllability measure, one controllability measure in the case of an OR gate and a NOR gate), selects one of the closest to the target value. The processing up to step 606 is processing for generating a discrete exponential distribution.

【0097】図15は、t=0.3とした場合に計算さ
れる可制御性尺度の目標値の確率分布を示す図表であ
る。目標値が大きいほど、確率は小さくなっている。
FIG. 15 is a table showing the probability distribution of the target value of the controllability scale calculated when t = 0.3. The probability decreases as the target value increases.

【0098】離散型指数分布生成用パラメータtが大き
い(1に近い)ほど可制御性尺度の目標値が大きな値を取
る確率は低くなり、信号値の設定が最も容易なゲート入
力信号線に対して0または1を割り当てる処理に近づ
く。したがって、テストパターン生成時間は短くて済む
が、作成されたテスト集合はあまりコンパクトにならな
い。
The larger the discrete exponential distribution generation parameter t (closer to 1), the lower the probability that the target value of the controllability scale will take a large value, and the gate input signal line whose signal value is easiest to set. Approaching the process of assigning 0 or 1. Therefore, although the test pattern generation time is short, the generated test set is not very compact.

【0099】一方、tが小さい(0に近い)ほど可制御性
尺度の目標値が大きな値を取る確率は高くなり、0また
は1を割り当てるゲート入力信号線を順番に変える処理
に近づく。したがって、コンパクトなテスト集合が作成
されるが、テストパターン生成時間は増加する。
On the other hand, the smaller the value of t (closer to 0), the higher the probability that the target value of the controllability scale takes a large value, and approaches the process of sequentially changing the gate input signal lines to which 0 or 1 is assigned. Therefore, a compact test set is created, but the test pattern generation time increases.

【0100】このように、離散型指数分布生成用パラメ
ータtは、アルゴリズムの特性を支配するパラメータで
ある。
As described above, the discrete exponential distribution generation parameter t is a parameter that governs the characteristics of the algorithm.

【0101】以下、実施例3によるテストパターン生成
の例題を示す。
An example of test pattern generation according to the third embodiment will be described below.

【0102】図16は、論理回路とその故障の例を示す
図である。また、テストパターン生成の対象となる故障
は、ゲートC,D,Eの出力信号線の0縮退故障だけであ
り、この順に選択されると仮定する。
FIG. 16 is a diagram showing an example of a logic circuit and its failure. It is also assumed that the test pattern generation target faults are only the stuck-at-0 faults of the output signal lines of the gates C, D, and E, and are selected in this order.

【0103】ステップ312で、全ゲートの全入力信号
線のバイアスを0に初期設定する。ステップ314で、
図17に示す通り、Goldsteinの可制御性尺度を計算す
る。
In step 312, the biases of all input signal lines of all gates are initialized to zero. At step 314,
As shown in FIG. 17, Goldstein's controllability scale is calculated.

【0104】ステップ318および320で、ターゲッ
ト故障としてゲートDの出力信号線の1縮退故障が選択
されたものとする。それに伴って、ゲートDの出力信号
線の信号値はD′(故障のない回路で0、故障のある回
路で1を表す)と設定される。
In steps 318 and 320, it is assumed that a 1 stuck-at fault on the output signal line of gate D has been selected as a target fault. Accordingly, the signal value of the output signal line of the gate D is set to D '(0 for a circuit without a fault and 1 for a circuit with a fault).

【0105】ステップ322で、全信号線の信号値がX
と設定され、未正当化ゲート集合は{D}と計算され
る。
At step 322, the signal values of all the signal lines are X
And the set of unjustified gates is calculated as {D}.

【0106】ステップ325で「テストパターン生成続
行」と判定され、ステップ330でゲートDが選択され
たとすると、ステップ335では「ゲート入力信号線の
選択は不要」と決定される。
If it is determined in step 325 that "test pattern generation is to be continued" and gate D is selected in step 330, it is determined in step 335 that "selection of gate input signal line is unnecessary".

【0107】ステップ380に進んでゲートCの出力信
号線と回路入力エッジeの信号値がそれぞれ0と設定さ
れ、ステップ385で未正当化ゲート集合が{C}に更
新され、ステップ325に戻る。
At step 380, the output signal line of the gate C and the signal value of the circuit input edge e are respectively set to 0. At step 385, the unjustified gate set is updated to {C}, and the process returns to step 325.

【0108】ステップ325で「テストパターン生成続
行」と判定され、ステップ330でゲートCが選択され
たとすると、ステップ335では「ゲート入力信号線の
選択は必要」と決定され、ゲート入力信号線を選択する
処理に入る。
If it is determined in step 325 that "test pattern generation is to be continued" and gate C is selected in step 330, it is determined in step 335 that "selection of gate input signal line is necessary" and gate input signal line is selected. To enter the process.

【0109】図18は、本発明によるゲートCの入力信
号線を選択する処理結果を示す図である。左から順に、
ターゲット故障,可制御性尺度の目標値,選択される入力
信号線を示している。ステップ603からステップ60
6までを1回だけ通過してステップ608に進んだとす
ると、可制御性尺度の目標値は1となる。ステップ60
8では、0可制御性尺度が目標値に最も近いものとし
て、回路入力エッジbが選択される。
FIG. 18 is a diagram showing a processing result of selecting an input signal line of the gate C according to the present invention. From left to right
It shows the target fault, the target value of the controllability measure, and the input signal line selected. Step 603 to step 60
Assuming that the process has passed through step 6 only once and then proceeds to step 608, the target value of the controllability scale becomes 1. Step 60
At 8, the circuit input edge b is selected as having the 0 controllability measure closest to the target value.

【0110】ステップ380で回路入力エッジbの信号
値が0と設定され、ステップ385で未正当化ゲート集
合が空集合に更新される。ステップ325で「テストパ
ターン生成終了」と判定され、ステップ390でテスト
パターン(X,0,X,X,0,X,X)を記憶し、ステップ3
18に戻る。
In step 380, the signal value of the circuit input edge b is set to 0, and in step 385, the invalidated gate set is updated to an empty set. At step 325, it is determined that "test pattern generation is completed", and at step 390, the test pattern (X, 0, X, X, 0, X, X) is stored.
Return to 18.

【0111】ステップ318および320で、ターゲッ
ト故障としてゲートEの出力信号線の1縮退故障が選択
されたものとする。それに伴って、ゲートEの出力信号
線の信号値はD′と設定される。
In steps 318 and 320, it is assumed that the 1 stuck-at fault of the output signal line of the gate E has been selected as the target fault. Accordingly, the signal value of the output signal line of the gate E is set to D '.

【0112】ステップ322で、全信号線の信号値がX
と設定され、未正当化ゲート集合は{E}と計算され
る。ステップ325で「テストパターン生成続行」と判
定され、ステップ330でゲートEが選択されたとする
と、ステップ335では「ゲート入力信号線の選択は不
要」と決定される。ステップ380に進んでゲートCの
出力信号線と回路入力エッジfの信号値がそれぞれ0と
設定され、ステップ385で未正当化ゲート集合が
{C}に更新され、ステップ325に戻る。
At step 322, the signal values of all the signal lines are X
And the unjustified gate set is calculated as {E}. If it is determined in step 325 that “continue test pattern generation” and gate E is selected in step 330, it is determined in step 335 that “selection of gate input signal line is unnecessary”. Proceeding to step 380, the output signal line of the gate C and the signal value of the circuit input edge f are each set to 0, and the unjustified gate set is updated to {C} in step 385, and the process returns to step 325.

【0113】ステップ325で「テストパターン生成続
行」と判定され、ステップ330でゲートCが選択され
たとすると、ステップ335では「ゲート入力信号線の
選択は必要」と決定され、ゲート入力信号線を選択する
処理に入る。
If it is determined in step 325 that "test pattern generation is to be continued" and gate C is selected in step 330, it is determined in step 335 that "selection of gate input signal line is necessary" and gate input signal line is selected. To enter the process.

【0114】ステップ603からステップ606までを
2回通過した結果、可制御性尺度の目標値が2となった
とすると、ステップ608で選択されるのはゲートAの
出力信号線となる。
If the target value of the controllability scale becomes 2 as a result of passing twice from step 603 to step 606, the output signal line of the gate A is selected in step 608.

【0115】ステップ380でゲートAの出力信号線の
信号値が0と設定され、ステップ385で未正当化ゲー
ト集合が{A}に更新され、ステップ325に戻る。
In step 380, the signal value of the output signal line of the gate A is set to 0. In step 385, the set of unjustified gates is updated to {A}, and the process returns to step 325.

【0116】ステップ325で「テストパターン生成続
行」と判定され、ステップ330でゲートAが選択され
たとすると、ステップ335では「ゲート入力信号線の
選択は不要」と決定される。
If it is determined in step 325 that "test pattern generation is to be continued" and gate A is selected in step 330, it is determined in step 335 that "selection of gate input signal line is unnecessary".

【0117】ステップ380で、回路入力エッジaの信
号値が1と設定され、ステップ385で、未正当化ゲー
ト集合が空集合に更新される。
At step 380, the signal value of the circuit input edge a is set to 1, and at step 385, the invalidated gate set is updated to an empty set.

【0118】ステップ325で、「テストパターン生成
終了」と判定され、ステップ390で、テストパターン
(1,X,X,X,X,0,X)を記憶し、ステップ318に戻
る。
In step 325, it is determined that “test pattern generation is completed”, and in step 390, the test pattern
(1, X, X, X, X, 0, X) is stored, and the process returns to step 318.

【0119】ステップ318および320で、ターゲッ
ト故障としてゲートFの出力信号線の1縮退故障が選択
されたとする。それに伴って、ゲートFの出力信号線の
信号値はD′と設定される。
In steps 318 and 320, it is assumed that the 1 stuck-at fault of the output signal line of the gate F is selected as the target fault. Accordingly, the signal value of the output signal line of the gate F is set to D '.

【0120】ステップ322で、全信号線の信号値がX
と設定され、未正当化ゲート集合は{F}と計算され
る。ステップ325で、「テストパターン生成続行」と
判定され、ステップ330で、ゲートFが選択されたと
すると、ステップ335では、「ゲート入力信号線の選
択は不要」と決定される。
At step 322, the signal values of all the signal lines are X
Is set, and the unjustified gate set is calculated as {F}. If it is determined in step 325 that “test pattern generation continues” and if gate F is selected in step 330, it is determined in step 335 that “selection of gate input signal line is unnecessary”.

【0121】ステップ380で、ゲートCの出力信号線
と回路入力エッジgの信号値とがそれぞれ0と設定さ
れ、ステップ385で、未正当化ゲート集合が{C}に
更新され、ステップ325に戻る。
In step 380, the output signal line of the gate C and the signal value of the circuit input edge g are each set to 0. In step 385, the set of unjustified gates is updated to {C}, and the process returns to step 325. .

【0122】ステップ325で、「テストパターン生成
続行」と判定され、ステップ330で、ゲートCが選択
されたとすると、ステップ335では、「ゲート入力信
号線の選択は必要」と決定され、ゲート入力信号線を選
択する処理に入る。初めてステップ603に到達したと
きにステップ608に進むことになり、可制御性尺度の
目標値が0となったとすると、ステップ608で選択さ
れるのは、回路入力エッジbとなる。
If it is determined in step 325 that "test pattern generation is to be continued" and if gate C is selected in step 330, it is determined in step 335 that "selection of gate input signal line is necessary" and gate input signal The process for selecting a line is started. When the process reaches step 603 for the first time, the process proceeds to step 608. If the target value of the controllability scale becomes 0, the circuit input edge b is selected at step 608.

【0123】ステップ380で、回路入力エッジbの信
号値が0と設定され、ステップ385で、未正当化ゲー
ト集合が空集合に更新される。ステップ325で、「テ
ストパターン生成終了」と判定され、ステップ390
で、テストパターン(X,0,X,X,X,X,0)を記憶す
る。ステップ318で、ターゲット故障を選択できない
ので、処理を終了する。
At step 380, the signal value of the circuit input edge b is set to 0, and at step 385, the invalidated gate set is updated to an empty set. At step 325, it is determined that “test pattern generation is completed”, and step 390 is performed.
Then, the test pattern (X, 0, X, X, X, X, 0) is stored. In step 318, since the target failure cannot be selected, the process ends.

【0124】本発明において、可制御性尺度の目標値の
確率分布は必ずしも全ゲート一律である必要はない。例
えば、回路入力エッジに近い(ゲートを通過するごとに
距離1と数える)ゲートに対しては、離散型指数分布生
成用パラメータtを小さく(0に近く)して可制御性尺度
の目標値が大きな値を取る確率を高くし、回路入力エッ
ジから遠いゲートに対しては、tを大きく(1に近く)し
て可制御性尺度の目標値が大きな値を取る確率を低くし
てもよい。
In the present invention, the probability distribution of the target value of the controllability scale does not necessarily need to be uniform for all gates. For example, for a gate close to the circuit input edge (counting distance 1 each time the gate passes), the discrete exponential distribution generation parameter t is reduced (close to 0) and the target value of the controllability scale is reduced. The probability of taking a large value may be increased, and for gates far from the circuit input edge, t may be increased (closer to 1) to decrease the probability that the target value of the controllability measure will take a large value.

【0125】上記の各手法は、必ずしも全ゲートに対し
て一律に適用する必要はない。例えば、あるゲートに対
しては実施例1を適用し、他のゲートに対しては実施例
を適用してもよい。また、回路入力エッジからの距離
(ゲートを通過するごとに距離1と数える)があるしきい
値以上のゲートに対しては、ゲート入力信号線の選択を
多様化せずに、可制御性尺度が良い(信号値の設定が容
易な)ゲート入力信号線を選択してもよい。
It is not always necessary to apply each of the above methods uniformly to all gates. For example, the first embodiment may be applied to a certain gate, and the embodiment may be applied to another gate. Also, the distance from the circuit input edge
For gates above a certain threshold (counted as distance 1 each time they pass through a gate), the controllability scale is good without diversifying the selection of gate input signal lines (the signal value setting is A (easy) gate input signal line may be selected.

【0126】上記の実施例では、信号値体系は0,1,
D,D′,Xからなる5値体系としたが、本明細書記載の
発明は他の信号値体系の場合にも適用できる。
In the above embodiment, the signal value system is 0, 1,
Although a five-value system composed of D, D ', and X is used, the invention described in this specification can be applied to other signal value systems.

【0127】本発明の各手段は、ソフトウェアとして実
現してもよいし、専用のハード回路を用いて実現するこ
ともできる。
Each means of the present invention may be realized as software, or may be realized using a dedicated hardware circuit.

【0128】[0128]

【発明の効果】本発明によれば、ゲート入力信号線の選
択の多様性は保たれたまま、可制御性尺度の小さいゲー
ト入力信号線が可制御性尺度の大きいゲート入力信号線
よりも選択されやすくなる。その結果、コンパクトなテ
スト集合を高速に作成できる論理回路のテストパターン
作成方法および作成装置が得られる。
According to the present invention, a gate input signal line having a small controllability scale is selected more than a gate input signal line having a large controllability scale while maintaining the variety of selection of gate input signal lines. It is easy to be. As a result, a method and an apparatus for creating a test pattern of a logic circuit that can create a compact test set at high speed can be obtained.

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

【図1】本発明による論理回路のテストパターン生成装
置のハードウェア構成の概略を示すブロック図である。
FIG. 1 is a block diagram showing an outline of a hardware configuration of a test pattern generation device for a logic circuit according to the present invention.

【図2】本発明による論理回路のテストパターン生成装
置の一実施例の機能的構成を示すブロック図である。
FIG. 2 is a block diagram showing a functional configuration of an embodiment of a test pattern generation device for a logic circuit according to the present invention.

【図3】可制御性尺度の計算規則を示す図である。FIG. 3 is a diagram showing calculation rules of a controllability scale.

【図4】Dアルゴリズムで使用する信号値の体系を説明
する図表である。
FIG. 4 is a table illustrating a system of signal values used in a D algorithm.

【図5】図2のテストパターン生成装置の処理手順を示
すフローチャートである。
FIG. 5 is a flowchart illustrating a processing procedure of the test pattern generation device of FIG. 2;

【図6】信号値割り当て部が割り当てる信号値を示す図
である。
FIG. 6 is a diagram illustrating signal values assigned by a signal value assignment unit.

【図7】選択確率計算部が、選択確率を計算する処理手
順の詳細を示すフローチャートである。
FIG. 7 is a flowchart illustrating details of a processing procedure in which a selection probability calculation unit calculates a selection probability.

【図8】ゲート入力信号線選択部が、ゲート入力信号線
を選択する処理手順の詳細を示すフローチャートであ
る。
FIG. 8 is a flowchart illustrating details of a processing procedure in which a gate input signal line selection unit selects a gate input signal line.

【図9】論理回路の故障の例を示す図である。FIG. 9 is a diagram illustrating an example of a failure in a logic circuit.

【図10】各ゲート入力線の可制御性尺度と選択確率と
を示す図である。
FIG. 10 is a diagram showing a controllability scale and a selection probability of each gate input line.

【図11】ゲートBの入力信号線を選択する処理の推移
を示す図である。
FIG. 11 is a diagram showing a transition of a process of selecting an input signal line of a gate B.

【図12】本発明による論理回路のテストパターン生成
装置の実施例2の構成を示すブロック図である。
FIG. 12 is a block diagram illustrating a configuration of a test pattern generation device for a logic circuit according to a second embodiment of the present invention.

【図13】本発明による論理回路のテストパターン生成
装置の実施例3の構成を示すブロック図である。
FIG. 13 is a block diagram showing a configuration of a test pattern generation device for a logic circuit according to a third embodiment of the present invention.

【図14】ゲート入力信号線選択部の処理手順を説明す
るフローチャートである。
FIG. 14 is a flowchart illustrating a processing procedure of a gate input signal line selection unit.

【図15】t=0.3とした場合に計算される可制御性
尺度の目標値の確率分布を示す図表である。
FIG. 15 is a chart showing a probability distribution of a target value of the controllability scale calculated when t = 0.3.

【図16】論理回路とその故障の例を示す図である。FIG. 16 is a diagram illustrating an example of a logic circuit and its failure.

【図17】Goldsteinの可制御性尺度の計算結果の一例
を示す図である。
FIG. 17 is a diagram illustrating an example of a calculation result of a Goldstein controllability scale.

【図18】ゲートCの入力信号線を選択する処理結果を
示す図である。
FIG. 18 is a diagram showing a processing result of selecting an input signal line of a gate C.

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

102 入力部 106 出力部 110 テストパターン生成部 112 バイアス初期設定部 114 可制御性尺度計算部 116 選択確率計算部 118 ターゲット故障選択部 122 信号値・未正当化ゲート集合初期設定部 125 テストパターン生成終了判定部 130 ゲート選択部 135 ゲート入力信号線選択要否判定部 140 ゲート入力信号線選択部 180 信号値割り当て部 185 未正当化ゲート集合更新部 190 テストパターン記憶部 Reference Signs List 102 input unit 106 output unit 110 test pattern generation unit 112 bias initial setting unit 114 controllability scale calculation unit 116 selection probability calculation unit 118 target fault selection unit 122 signal value / unjustified gate set initial setting unit 125 test pattern generation end Judgment unit 130 Gate selection unit 135 Gate input signal line selection necessity judgment unit 140 Gate input signal line selection unit 180 Signal value assignment unit 185 Unjustified gate set update unit 190 Test pattern storage unit

───────────────────────────────────────────────────── フロントページの続き (72)発明者 彦根 和文 茨城県日立市大みか町七丁目1番1号 株 式会社日立製作所日立研究所内 Fターム(参考) 2G032 AA01 AG10 5B046 AA08 BA03 BA09 CA04  ────────────────────────────────────────────────── ─── Continuing on the front page (72) Inventor Kazufumi Hikone 7-1-1, Omika-cho, Hitachi City, Ibaraki Prefecture F-term in Hitachi Research Laboratory, Hitachi Ltd. 2G032 AA01 AG10 5B046 AA08 BA03 BA09 CA04

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 正当化処理を含む論理回路のテストパタ
ーン作成方法において、 ゲート入力信号線の選択確率を計算し、 処理の途中でゲート入力信号線を選択する必要が生じた
場合には、前記選択確率に基づいてゲート入力信号線を
選択することを特徴とする論理回路のテストパターン作
成方法。
In a method for generating a test pattern of a logic circuit including a justification process, a selection probability of a gate input signal line is calculated, and when it is necessary to select a gate input signal line during the process, A method for creating a test pattern for a logic circuit, comprising selecting a gate input signal line based on a selection probability.
【請求項2】 正当化処理を含む論理回路のテストパタ
ーン作成装置において、 ゲート入力信号線の選択確率を計算する選択確率計算部
と、 処理の途中でゲート入力信号線を選択する必要が生じた
場合には、前記選択確率を用いた手続きによりゲート入
力信号線を選択するゲート入力信号線選択部とを備えた
ことを特徴とする論理回路のテストパターン作成装置。
2. An apparatus for generating a test pattern for a logic circuit including a justification process, wherein a selection probability calculation unit for calculating a selection probability of a gate input signal line and a gate input signal line need to be selected during processing. A gate input signal line selection unit for selecting a gate input signal line by a procedure using the selection probability.
【請求項3】 正当化処理を含む論理回路のテストパタ
ーン作成装置において、 ゲート入力信号線の選択確率を計算する選択確率計算部
と、ゲート入力信号線を選択するゲート入力信号線選択
部とを備え、 前記ゲート入力信号線選択部が、ゲート入力信号線の評
価値による評価が最良のゲート入力信号線を選択し、ゲ
ート入力信号線が選択された場合は、評価値を当該ゲー
ト入力線が選択されにくくなる方向に変更する一方、前
記評価値をゲート入力線が選択されやすくなる方向に変
更する場合は、前記選択確率に応じた値だけ変更する手
段であることを特徴とする論理回路のテストパターン作
成装置。
3. An apparatus for generating a test pattern of a logic circuit including a justification process, comprising: a selection probability calculation unit for calculating a selection probability of a gate input signal line; and a gate input signal line selection unit for selecting a gate input signal line. The gate input signal line selection unit selects the best gate input signal line evaluated by the evaluation value of the gate input signal line, and when the gate input signal line is selected, the evaluation value is determined by the gate input line. In a case where the evaluation value is changed in a direction in which the gate input line is easily selected while the evaluation value is changed in a direction in which the gate input line is easily selected, the evaluation value is changed only by a value corresponding to the selection probability. Test pattern creation device.
【請求項4】 正当化処理を含む論理回路のテストパタ
ーン作成装置において、 ゲート入力信号線の選択確率を計算する選択確率計算部
と、ゲート入力信号線を選択するゲート入力信号線選択
部とを備え、 前記ゲート入力信号線選択部が、前記正当化処理により
ゲート入力信号線の一部に対して所定の信号値を割り当
てる場合には、ゲート入力信号線の評価値による評価が
最良のゲート入力信号線を選択し、前記評価値を、前記
選択確率に応じた値だけ選択されやすくなるように変更
する手段であることを特徴とする論理回路のテストパタ
ーン作成装置。
4. An apparatus for generating a test pattern for a logic circuit including a justification process, comprising: a selection probability calculation unit for calculating a selection probability of a gate input signal line; and a gate input signal line selection unit for selecting a gate input signal line. In the case where the gate input signal line selection unit assigns a predetermined signal value to a part of the gate input signal line by the justification processing, the gate input signal line is evaluated best by the evaluation value of the gate input signal line. A test pattern creation device for a logic circuit, comprising: means for selecting a signal line and changing the evaluation value so that only a value corresponding to the selection probability is easily selected.
【請求項5】 正当化処理を含む論理回路のテストパタ
ーン作成装置において、 ゲート入力信号線の選択確率を計算する選択確率計算部
と、ゲート入力信号線を選択するゲート入力信号線選択
部とを備え、 前記ゲート入力信号線選択部が、前記正当化処理により
ゲート入力信号線の一部に対して所定の信号値を割り当
てる場合には、ゲート入力信号線の評価値による評価が
最良のゲート入力信号線を選択し、前記評価値を、前記
ゲート入力信号線が選択されてしかるべき回数と実際に
選択された回数とを比較した指標とする手段であり、 前記選択されてしかるべき回数が、前記選択確率に基づ
いて計算される回数であることを特徴とする論理回路の
テストパターン作成装置。
5. A test pattern creation apparatus for a logic circuit including a justification process, comprising: a selection probability calculation unit for calculating a selection probability of a gate input signal line; and a gate input signal line selection unit for selecting a gate input signal line. In the case where the gate input signal line selection unit assigns a predetermined signal value to a part of the gate input signal line by the justification processing, the gate input signal line is evaluated best by the evaluation value of the gate input signal line. A signal line is selected, and the evaluation value is used as an index comparing the appropriate number of times that the gate input signal line is selected with the number of times that the gate input signal line is actually selected. An apparatus for generating a test pattern for a logic circuit, wherein the number of times is calculated based on the selection probability.
【請求項6】 正当化処理を含む論理回路のテストパタ
ーン作成装置において、 ゲート入力信号線の選択確率を計算する選択確率計算部
と、ゲート入力信号線を選択するゲート入力信号線選択
部とを備え、 前記ゲート入力信号線選択部が、前記正当化処理により
ゲート入力信号線の一部に対して所定の信号値を割り当
てる場合には、前記選択確率に基づいてゲート入力信号
線をランダム選択する手段であることを特徴とする論理
回路のテストパターン作成装置。
6. An apparatus for generating a test pattern for a logic circuit including a justification process, comprising: a selection probability calculation unit for calculating a selection probability of a gate input signal line; and a gate input signal line selection unit for selecting a gate input signal line. When the gate input signal line selection unit allocates a predetermined signal value to a part of the gate input signal line by the justification process, the gate input signal line selection unit randomly selects the gate input signal line based on the selection probability. An apparatus for creating a test pattern for a logic circuit.
【請求項7】 請求項3ないし6のいずれか一項に記載
の論理回路のテストパターン作成装置において、 ゲート入力信号線の可制御性尺度を計算する可制御性尺
度計算部を含み、 前記選択確率計算部が、前記可制御性尺度に基づいて選
択確率を計算する手段であることを特徴とする論理回路
のテストパターン作成装置。
7. The test pattern creation device for a logic circuit according to claim 3, further comprising a controllability scale calculation unit that calculates a controllability scale of a gate input signal line, wherein the selection is performed. A test pattern creation device for a logic circuit, wherein the probability calculation unit is means for calculating a selection probability based on the controllability measure.
【請求項8】 正当化処理を含む論理回路のテストパタ
ーン作成装置において、 ゲート入力信号線の可制御性尺度を計算する可制御性尺
度計算部と、ゲート入力信号線を選択するゲート入力信
号線選択部とを備え、 前記ゲート入力信号線選択部が、前記正当化処理により
ゲート入力信号線の一部に対して所定の信号値を割り当
てる場合には、ランダムアルゴリズムにより計算された
可制御性尺度の目標値と前記可制御性尺度計算部により
計算された可制御性尺度とに基づいてゲート入力信号線
を選択する手段であることを特徴とする論理回路のテス
トパターン作成装置。
8. An apparatus for creating a test pattern of a logic circuit including a justification process, comprising: a controllability scale calculation unit for calculating a controllability scale of a gate input signal line; and a gate input signal line for selecting a gate input signal line. A selection unit, wherein the gate input signal line selection unit assigns a predetermined signal value to a part of the gate input signal line by the justification process, and the controllability scale calculated by a random algorithm. And a means for selecting a gate input signal line based on the target value of (1) and the controllability scale calculated by the controllability scale calculation unit.
JP10172693A 1998-06-19 1998-06-19 Method and device for preparing test pattern of logic circuit Pending JP2000009813A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10172693A JP2000009813A (en) 1998-06-19 1998-06-19 Method and device for preparing test pattern of logic circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10172693A JP2000009813A (en) 1998-06-19 1998-06-19 Method and device for preparing test pattern of logic circuit

Publications (1)

Publication Number Publication Date
JP2000009813A true JP2000009813A (en) 2000-01-14

Family

ID=15946613

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10172693A Pending JP2000009813A (en) 1998-06-19 1998-06-19 Method and device for preparing test pattern of logic circuit

Country Status (1)

Country Link
JP (1) JP2000009813A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004027440A1 (en) * 2002-09-19 2004-04-01 Fujitsu Limited Integrated circuit tester and its testing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004027440A1 (en) * 2002-09-19 2004-04-01 Fujitsu Limited Integrated circuit tester and its testing method
US7266746B2 (en) 2002-09-19 2007-09-04 Fujitsu Limited Device and method for testing integrated circuit

Similar Documents

Publication Publication Date Title
US5737340A (en) Multi-phase test point insertion for built-in self test of integrated circuits
US4937765A (en) Method and apparatus for estimating fault coverage
JP3833982B2 (en) Test pattern selection device, test pattern selection method, and test pattern selection program
JP2003535343A (en) Method and apparatus for maximizing test coverage
US20210318379A1 (en) System and method for optimizing fault coverage based on optimized test point insertion determinations for logical circuits
JP2000181901A (en) Parallel back tracing for finding satisfaction possibility concerning reconfigurable hardware
US5896401A (en) Fault simulator for digital circuitry
JP2953975B2 (en) Test pattern generation device and test pattern generation method
US5305328A (en) Method of test sequence generation
EP1327890B1 (en) Method of optimizing a plurality of tests used in digital integrated circuits
US6334199B1 (en) Method of generating test patterns for a logic circuit, a system performing the method, and a computer readable medium instructing the system to perform the method
US10078720B2 (en) Methods and systems for circuit fault diagnosis
JP2000009813A (en) Method and device for preparing test pattern of logic circuit
Heragu et al. Statistical methods for delay fault coverage analysis
Pomeranz et al. Location of stuck-at faults and bridging faults based on circuit partitioning
Seuring et al. A structural approach for space compaction for concurrent checking and BIST
Bose et al. Delay test quality evaluation using bounded gate delays
Arai et al. Layout-aware 2-step window-based pattern reordering for fast bridge/open test generation
US7650579B2 (en) Model correspondence method and device
Iyer et al. Software-based weighted random testing for IP cores in bus-based programmable SoCs
Wang et al. A sequential circuit fault simulation by surrogate fault propagation
CN111177713B (en) XGBoost-based hardware Trojan detection method and device
EP0139516B1 (en) Test generation system for digital circuits
Sandireddy Hierarchical fault collapsing for logic circuits
JPH08185425A (en) Method and device for generating test pattern for logic circuit