JPH0587893A - Ordering circuit - Google Patents

Ordering circuit

Info

Publication number
JPH0587893A
JPH0587893A JP3277006A JP27700691A JPH0587893A JP H0587893 A JPH0587893 A JP H0587893A JP 3277006 A JP3277006 A JP 3277006A JP 27700691 A JP27700691 A JP 27700691A JP H0587893 A JPH0587893 A JP H0587893A
Authority
JP
Japan
Prior art keywords
circuit
flip
flop
output signal
signal
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
JP3277006A
Other languages
Japanese (ja)
Inventor
Takeshi Shimono
武志 下野
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.)
NEC Solution Innovators Ltd
Original Assignee
NEC Software Hokuriku 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 NEC Software Hokuriku Ltd filed Critical NEC Software Hokuriku Ltd
Priority to JP3277006A priority Critical patent/JPH0587893A/en
Publication of JPH0587893A publication Critical patent/JPH0587893A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To shorten the time necessary for the inspection of an ordering circuit having a scan buss. CONSTITUTION:Between flip flops 1-1 and 1-2. a two-input parity circuit 2-1 for generating the exclusive logic sum of the output signal of the flip flop 1-1 in the forestage and the output signal of a combination circuit 4 and a selector circuit 3-2 which selects the output signal of the two-input parity circuit 2-1 and outputs the output signal to the flip flop 1-2 in the posterior stage in random test mode are installed. The flip-flop 1-2 takes in the output signal of the two-input parity circuit 2-1 which is applied through a selector circuit 3-2 in synchronization with a clock signal. Such operation is carried out also in the posterior stage of the flip-flop 1-2. Accordingly, even if the scan-in operation is not carried out, each random value is set in each flip-flop 1-2-1-n and an ordering circuit can be operated, and even if the scan-out operation is not carried out, the influence of a trouble can be outputted from a scan-out terminal 8.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は論理集積回路に関し、特
に、スキャンパスを有する順序回路に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a logic integrated circuit, and more particularly to a sequential circuit having a scan path.

【0002】[0002]

【従来の技術】従来、フリップフロップによって構成さ
れたスキャンパスを有する順序回路の検査を行なう場
合、自動テストパターン生成アルゴリズムによりスキャ
ンパスで囲まれた組合せ回路に対するテストパターンを
生成し、生成したテストパターンそれぞれについて以下
の処理を行なっていた。即ち、スキャンイン動作を行な
ってテストパターンをスキャンパスを構成する各フリッ
プフロップにセットすると共に、組合せ回路の外部入力
端子にテストパターンを与える。次いで、順序回路を1
クロック通常動作させてその結果を各フリップフロップ
にセットし、更に、スキャンアウト動作を行なって各フ
リップフロップの値を読み出し、読み出した値と期待値
とを比較する。以上の処理を各テストパターンそれぞれ
について行なうことにより、順序回路の検査を行なう。
2. Description of the Related Art Conventionally, when inspecting a sequential circuit having a scan path formed by flip-flops, a test pattern for a combinational circuit surrounded by scan paths is generated by an automatic test pattern generation algorithm, and the generated test pattern is generated. The following processing was performed for each. That is, the scan-in operation is performed to set the test pattern in each flip-flop forming the scan path, and the test pattern is given to the external input terminal of the combinational circuit. Then the sequential circuit 1
The clock is normally operated, the result is set in each flip-flop, and the scan-out operation is performed to read the value of each flip-flop, and the read value is compared with the expected value. The sequential circuit is inspected by performing the above processing for each test pattern.

【0003】[0003]

【発明が解決しようとする課題】上述したように、従来
は、生成したテストパターン全てについてスキャンイン
及びスキャンアウトを行なっているので、検査時間が長
くなるという問題があった。
As described above, conventionally, since the scan-in and the scan-out are performed for all the generated test patterns, there is a problem that the inspection time becomes long.

【0004】本発明の目的は検査時間を短縮できる順序
回路を提供することにある。
An object of the present invention is to provide a sequential circuit that can reduce the inspection time.

【0005】[0005]

【課題を解決するための手段】本発明は上記目的を達成
するため、 (A)スキャンパスを構成する複数のフリップフロップ
を含む順序回路に於いて、前記各フリップフロップの間
に、前段のフリップフロップの出力信号と、後段のフリ
ップフロップの入力となる組合せ回路の出力信号との排
他的論理和をとる2入力パリティ回路と、動作モードが
通常動作モードの場合は組合せ回路の出力信号を選択
し、シフトモードの場合は前段のフリップフロップの出
力信号を選択し、ランダムテストモードの場合は2入力
パリティ回路の出力信号を選択し、選択した信号を後段
のフリップフロップに出力するセレクタ回路とを設けた
ものである。
In order to achieve the above object, the present invention provides: (A) In a sequential circuit including a plurality of flip-flops forming a scan path, a flip-flop of a preceding stage is provided between the flip-flops. Select the output signal of the combination circuit when the operation mode is the normal operation mode, and the two-input parity circuit that takes the exclusive OR of the output signal of the combination circuit and the output signal of the combination circuit that becomes the input of the subsequent flip-flop. In the shift mode, the output signal of the preceding flip-flop is selected, in the random test mode, the output signal of the two-input parity circuit is selected, and a selector circuit for outputting the selected signal to the subsequent flip-flop is provided. It is a thing.

【0006】また、本発明は、ホールド信号に関する故
障検出能力を向上させるため、 (B)前記各フリップフロップの内、ホールド信号を有
するフリップフロップに対しては、前記2入力パリティ
回路及び前記セレクタ回路に代えて、前段のフリップフ
ロップの出力信号と、組合せ回路の出力信号と、前記ホ
ールド信号との排他的論理和をとる3入力パリティ回路
と、動作モードが通常動作モードの場合は組合せ回路の
出力信号或いは前記ホールド信号を有するフリップフロ
ップの出力信号を選択し、シフトモードの場合は前段の
フリップフロップの出力信号を選択し、ランダムテスト
モードの場合は前記3入力パリティ回路の出力信号を選
択するセレクタ回路とを設けたものである。
Further, according to the present invention, in order to improve the fault detection capability regarding the hold signal, (B) among the flip-flops having the hold signal, the 2-input parity circuit and the selector circuit are provided. In place of the above, a 3-input parity circuit that takes the exclusive OR of the output signal of the preceding flip-flop, the output signal of the combination circuit, and the hold signal, and the output of the combination circuit when the operation mode is the normal operation mode Signal or the output signal of the flip-flop having the hold signal, the output signal of the previous flip-flop in the shift mode, and the output signal of the 3-input parity circuit in the random test mode. And a circuit.

【0007】[0007]

【作用】(A)の構成に於いては、各フリップフロップ
の間に、2入力パリティ回路と、セレクタ回路とが設け
られている。2入力パリティ回路は前段のフリップフロ
ップの出力信号と、通常動作モード時に後段のフリップ
フロップの入力となる組合せ回路の出力信号との排他的
論理和を取る。即ち、2入力パリティ回路のどちらかの
入力まで、順序回路内に存在する故障の影響が伝播する
と、2入力パリティ回路の出力信号は正常値と反対の値
をとる。動作モードをランダムテストモードとすると、
セレクタ回路は2入力パリティ回路の出力信号を選択し
て後段のフリップフロップに出力する。即ち、順序回路
内に存在する故障の影響が出力側に順次伝播することに
なる。
In the configuration (A), the 2-input parity circuit and the selector circuit are provided between the flip-flops. The 2-input parity circuit takes the exclusive OR of the output signal of the front-stage flip-flop and the output signal of the combinational circuit which becomes the input of the rear-stage flip-flop in the normal operation mode. That is, when the influence of a fault existing in the sequential circuit propagates to either input of the 2-input parity circuit, the output signal of the 2-input parity circuit takes a value opposite to the normal value. If the operation mode is random test mode,
The selector circuit selects the output signal of the 2-input parity circuit and outputs it to the flip-flop in the subsequent stage. That is, the influence of the fault existing in the sequential circuit is sequentially propagated to the output side.

【0008】(B)の構成に於いては、ホールド信号を
有するフリップフロップに対しては、2入力パリティ回
路の代わりに3入力パリティ回路が設けられる。この3
入力パリティ回路はホールド信号と、前段のフリップフ
ロップの出力信号と、組合せ回路の出力信号との排他的
論理和をとる。即ち、3入力パリティ回路は上記3つの
信号の内の何れかに障害の影響があると、正常値と反対
の値をとることになる。動作モードをランダムテストモ
ードとすると、セレクタ回路は3入力パリティ回路の出
力信号を選択して後段のフリップフロップに出力する。
即ち、順序回路内に存在する故障の影響が出力側に伝播
することになる。
In the configuration of (B), the flip-flop having the hold signal is provided with a 3-input parity circuit instead of the 2-input parity circuit. This 3
The input parity circuit takes the exclusive OR of the hold signal, the output signal of the preceding flip-flop, and the output signal of the combinational circuit. That is, the 3-input parity circuit takes a value opposite to the normal value when any one of the above three signals is affected by the failure. When the operation mode is the random test mode, the selector circuit selects the output signal of the 3-input parity circuit and outputs it to the flip-flop in the subsequent stage.
That is, the influence of the fault existing in the sequential circuit is propagated to the output side.

【0009】[0009]

【実施例】次に本発明の実施例について図面を参照して
詳細に説明する。
Embodiments of the present invention will now be described in detail with reference to the drawings.

【0010】図1は本発明の一実施例のブロック図であ
り、本実施例の順序回路はフリップフロップ(F/F)
1−1,1−2,…,1−nと、2入力パリティ回路
(XOR)2−1,2−2,…と、セレクタ回路(SE
L)3−1,3−2,…と、組合せ回路4と、外部入力
端子5と、外部出力端子6と、スキャンイン端子7と、
スキャンアウト端子8と、シフト制御信号が加えられる
シフト端子9と、ランダムテスト制御信号が加えられる
ランダムテスト端子10とから構成されている。
FIG. 1 is a block diagram of an embodiment of the present invention. The sequential circuit of this embodiment is a flip-flop (F / F).
1-1, 1-2, ..., 1-n, 2-input parity circuit (XOR) 2-1, 2-2 ,.
L) 3-1, 3-2, ..., Combination circuit 4, external input terminal 5, external output terminal 6, scan-in terminal 7,
It is composed of a scan-out terminal 8, a shift terminal 9 to which a shift control signal is applied, and a random test terminal 10 to which a random test control signal is applied.

【0011】シフト端子9,ランダムテスト端子10に
加えられるシフト制御信号,ランダムテスト信号は順序
回路の動作モードを制御する信号である。本実施例で
は、シフト制御信号,ランダムテスト制御信号がそれぞ
れ“1”,“0”の場合、動作モードがシフトモードに
なり、“0”,“1”の場合、ランダムテストモードに
なり、共に“0”の場合、通常動作モードになるとす
る。
The shift control signal and the random test signal applied to the shift terminal 9 and the random test terminal 10 are signals for controlling the operation mode of the sequential circuit. In this embodiment, when the shift control signal and the random test control signal are “1” and “0”, respectively, the operation mode is the shift mode, and when the shift control signal and the random test control signal are “0” and “1”, the random test mode is set. In the case of "0", the normal operation mode is set.

【0012】セレクタ回路3−1はシフト制御信号,ラ
ンダムテスト制御信号によって制御される動作モードが
シフトモードの場合は、スキャンイン端子7を介して加
えられる信号を選択出力し、通常動作モード及びランダ
ムテストモードの場合は組合せ回路4の出力信号41−
1を選択出力する。
When the operation mode controlled by the shift control signal and the random test control signal is the shift mode, the selector circuit 3-1 selectively outputs the signal applied through the scan-in terminal 7 to select the normal operation mode and the random operation mode. In the test mode, the output signal 41- of the combinational circuit 4
1 is selectively output.

【0013】セレクタ回路3−2,3−3,…は動作モ
ードがシフトモードの場合は前段のフリップフロップ1
−1,1−2,…の出力信号を、通常動作モードの場合
は組合せ回路4の出力信号41−2,41−3,…を、
ランダムテストモードの場合は2入力パリティ回路2−
1,2−2,…の出力信号43−1,43−2,…を選
択出力する。
.. of the selector circuits 3-2, 3-3, ... When the operation mode is the shift mode
, Output signals 41-2, 41-3, ... Of the combinational circuit 4 in the normal operation mode,
2-input parity circuit in random test mode 2-
Output signals 43-1, 43-2, ... Of 1, 2, 2 ... are selectively output.

【0014】2入力パリティ回路2−1,2−2,…は
フリップフロップ1−1,1−2,…の出力信号42−
1,42−2,…と、組合せ回路4の出力信号41−
2,41−3,…との排他的論理和をとる。
The 2-input parity circuits 2-1, 2-2, ... Are output signals 42- of the flip-flops 1-1, 1-2 ,.
, 42-2, ... and the output signal 41- of the combinational circuit 4
The exclusive OR with 2, 41-3 ,.

【0015】フリップフロップ1−1,1−2,…はセ
レクタ回路3−1,3−2,…の出力信号をクロック信
号に同期して取り込む。
The flip-flops 1-1, 1-2, ... Take in the output signals of the selector circuits 3-1, 3-2, ... In synchronization with the clock signal.

【0016】図2は通常動作モード時の信号の流れを示
した図であり、図1と同一部分は同一符号を表してい
る。
FIG. 2 is a diagram showing the flow of signals in the normal operation mode, and the same parts as those in FIG. 1 represent the same symbols.

【0017】通常動作モード時、即ち、シフト端子9,
ランダムテスト端子10から入力されるシフト制御信
号,ランダムテスト制御信号が共に“0”の場合は、組
合せ回路4の出力信号41−1,41−2,…がセレク
タ回路3−1,3−2,…によって選択され、フリップ
フロップ1−1,1−2,…に加えられる。フリップフ
ロップ1−1,1−2,…はセレクタ回路3−1,3−
2,…から出力された組合せ回路4の出力信号41−
1,41−2,…をクロック信号に同期して取り込み、
その値を出力信号42−1,42−2,…として組合せ
回路4に出力する。即ち、動作モードを通常動作モード
にすることにより、順序回路本来の機能が実現される。
In the normal operation mode, that is, the shift terminals 9,
When both the shift control signal and the random test control signal input from the random test terminal 10 are "0", the output signals 41-1, 41-2, ... Of the combinational circuit 4 are selector circuits 3-1 and 3-2. , And are added to the flip-flops 1-1, 1-2 ,. The flip-flops 1-1, 1-2, ... Are selector circuits 3-1 and 3-.
2, output signal 41-of the combinational circuit 4 output from the ...
, 41-2, ... are taken in synchronization with the clock signal,
The value is output to the combination circuit 4 as output signals 42-1, 42-2, .... That is, the original function of the sequential circuit is realized by setting the operation mode to the normal operation mode.

【0018】図3はシフトモード時の信号の流れを示し
た図であり、図1と同一符号は同一部分を表している。
FIG. 3 is a diagram showing a signal flow in the shift mode, and the same symbols as those in FIG. 1 represent the same parts.

【0019】シフトモード時、即ち、シフト端子9,ラ
ンダムテスト端子10から入力されるシフト制御信号,
ランダムテスト制御信号がそれぞれ“1”,“0”の場
合は、セレクタ回路3−1はスキャンイン端子7を介し
て加えられる信号を選択し、セレクタ回路3−2,3−
3,…は前段のフリップフロップ1−1,1−2,…の
出力信号42−1,42−2,…を選択する。また、各
フリップフロップ1−1,1−2,…は前段のセレクタ
回路3−1,3−2,…の出力信号をクロック信号に同
期して取り込み、その値を出力信号42−1,42−
2,…として組合せ回路4及び次段のフリップフロップ
1−2,1−3,…に出力する。即ち、動作モードをシ
フトモードにすることにより、各フリップフロップ1−
1,1−2,…にスキャンイン端子7からシリアルに値
をセットするスキャンイン動作,各フリップフロップ1
−1,1−2,…にセットされている値をスキャンアウ
ト端子8から読み出すスキャンアウト動作が実現され
る。
In the shift mode, that is, the shift control signal input from the shift terminal 9 and the random test terminal 10,
When the random test control signals are "1" and "0", respectively, the selector circuit 3-1 selects the signal applied via the scan-in terminal 7, and the selector circuits 3-2 and 3-
, ... Select the output signals 42-1, 42-2, ... Of the flip-flops 1-1, 1-2 ,. The flip-flops 1-1, 1-2, ... Incorporate the output signals of the selector circuits 3-1, 3-2, ... In the preceding stage in synchronization with the clock signal, and output the values as output signals 42-1, 42. −
2, ... Are output to the combinational circuit 4 and the flip-flops 1-2, 1-3 ,. That is, by setting the operation mode to the shift mode, each flip-flop 1-
Scan-in operation for serially setting values from scan-in terminal 7 to 1, 1-2, ..., Each flip-flop 1
A scan-out operation of reading the values set in -1, 1-2, ... From the scan-out terminal 8 is realized.

【0020】図4はランダムテストモード時の信号の流
れを示した図であり、図1と同一符号は同一部分を表し
ている。
FIG. 4 is a diagram showing the flow of signals in the random test mode, and the same symbols as in FIG. 1 represent the same parts.

【0021】ランダムテストモード時、即ち、シフト端
子9,ランダムテスト端子10に入力されるシフト制御
信号,ランダムテスト制御信号がそれぞれ“0”,
“1”の場合、セレクタ回路3−1は組合せ回路4の出
力信号41−1を選択し、セレクタ回路3−2,3−
3,…は2入力パリティ回路2−1,2−2,…の出力
信号43−1,43−2,…を選択する。
In the random test mode, that is, the shift control signal and the random test control signal input to the shift terminal 9 and the random test terminal 10 are "0",
In the case of "1", the selector circuit 3-1 selects the output signal 41-1 of the combination circuit 4, and the selector circuits 3-2 and 3-
3, select output signals 43-1, 43-2, ... Of the 2-input parity circuits 2-1, 2-2 ,.

【0022】フリップフロップ1−1はクロック信号に
同期してセレクタ回路3−1を介して加えられる組合せ
回路4の出力信号41−1を取り込み、その出力信号4
2−1を組合せ回路4及び2入力パリティ回路2−1に
出力する。また、フリップフロップ1−2,1−3,…
はクロック信号に同期してセレクタ回路3−2,3−
3,…を介して加えられる2入力パリティ回路2−1,
2−2,…の出力信号43−1,43−2,…を取り込
み、その出力信号42−2,42−3,…を2入力パリ
ティ回路2−2,2−3,…に出力する。
The flip-flop 1-1 takes in the output signal 41-1 of the combinational circuit 4 applied via the selector circuit 3-1 in synchronization with the clock signal, and outputs the output signal 4-1.
2-1 is output to the combination circuit 4 and the 2-input parity circuit 2-1. Also, flip-flops 1-2, 1-3, ...
Are selector circuits 3-2 and 3-in synchronization with the clock signal.
2-input parity circuit 2-1 which is added via 3, ...
The output signals 43-1, 43-2, ... Of 2-2, ... Are fetched and the output signals 42-2, 42-3 ,.

【0023】ここで、2入力パリティ回路2−1,2−
2,…は前段のフリップフロップ1−1,1−2,…の
出力信号42−1,42−2,…と、組合せ回路4の出
力信号41−2,41−3,…との排他的論理和をとる
ものであるので、順序回路内に故障が存在し、その影響
が2入力パリティ回路2−1,2−2,…のどちらかの
入力まで伝播すると、2入力パリティ回路2−1,2−
2,…の出力信号の値は正常値と反対のものとなる。従
って、動作モードをランダムテストモードにすることに
より、順序回路内部に存在する故障の影響がフリップフ
ロップ1−1,1−2,…を順次伝播し、スキャンアウ
ト端子8から出力されることになる。
Here, the 2-input parity circuits 2-1 and 2-
2 ... are exclusive of the output signals 42-1 42-2 ... of the flip-flops 1-1 1, 1-2, ... In the preceding stage and the output signals 41-2 41-1 ... of the combinational circuit 4. Since a logical OR is used, if a fault exists in the sequential circuit and its influence propagates to either input of the 2-input parity circuits 2-1, 2-2, ..., 2-input parity circuit 2-1. , 2-
The output signal values of 2, ... Are opposite to the normal values. Therefore, by setting the operation mode to the random test mode, the influence of the fault existing in the sequential circuit is sequentially propagated through the flip-flops 1-1, 1-2, ... And is output from the scan-out terminal 8. ..

【0024】次に本実施例に於ける検査方法を説明す
る。
Next, the inspection method in this embodiment will be described.

【0025】先ず、シフト端子9,ランダムテスト端子
10に入力するシフト制御信号,ランダムテスト制御信
号をそれぞれ“1”,“0”にして動作モードをシフト
モードにする。
First, the shift control signal and the random test control signal input to the shift terminal 9 and the random test terminal 10 are set to "1" and "0", respectively, to set the operation mode to the shift mode.

【0026】次いで、スキャンイン動作を行ない、各フ
リップフロップ1−1〜1−nを初期化し、各フリップ
フロップ1−1〜1−nの値を所定値にする。尚、通常
動作の機能としてリセット等の初期化機能があれば、そ
れを利用しても良い。
Then, a scan-in operation is performed to initialize each of the flip-flops 1-1 to 1-n and set the value of each of the flip-flops 1-1 to 1-n to a predetermined value. If there is an initialization function such as reset as a function of normal operation, it may be used.

【0027】次に、シフト端子9,ランダムテスト端子
10に加えるシフト制御信号,ランダムテスト制御信号
をそれぞれ“0”,“1”にして動作モードをランダム
テストモードにする。
Next, the shift control signal and the random test control signal applied to the shift terminal 9 and the random test terminal 10 are set to "0" and "1", respectively, to set the operation mode to the random test mode.

【0028】その後、外部入力端子5に特定パターンを
与えて適当なクロック数だけ順序回路を動作させる。こ
こで、外部入力端子5に与える特定パターンはテストパ
ターンアルゴリズムを使用して求めたテストパターンで
はなく、任意のパターンである。また、上記特定パター
ンを外部入力端子5に与え、順序回路を動作させた時に
スキャンアウト端子8から出力される期待値は予めシミ
ュレーションされている。
After that, a specific pattern is given to the external input terminal 5 to operate the sequential circuit for an appropriate number of clocks. Here, the specific pattern given to the external input terminal 5 is not a test pattern obtained using a test pattern algorithm, but an arbitrary pattern. The expected value output from the scan-out terminal 8 when the specific pattern is given to the external input terminal 5 and the sequential circuit is operated is simulated in advance.

【0029】ランダムテストモードで順序回路を動作さ
せると、フリップフロップ1−2,1−3,…はクロッ
ク信号に同期して前段の2入力パリティ回路2−1,2
−2,…の出力信号43−1,43−2,…を取り込
み、取り込んだ値を出力信号42−2,42−3,…と
して組合せ回路4及び後段の2入力パリティ回路2−
2,2−3,…に出力する。
When the sequential circuit is operated in the random test mode, the flip-flops 1-2, 1-3, ... Synchronize with the clock signal and the 2-input parity circuits 2-1 and 2-2 of the preceding stage are operated.
The output signals 43-1, 43-2, ... Of −2, ... Are fetched, and the fetched values are used as output signals 42-2, 42-3 ,.
Output to 2, 2-3, ....

【0030】ここで、フリップフロップ1−2,1−
3,…は2入力パリティ回路2−1,2−2,…の出力
信号43−1,43−2,…を取り込むため、その値は
かなりランダムに変化し、そのランダムに変化する値が
組合せ回路4に与えられる。また、順序回路内に故障が
存在する場合は、その影響が2入力パリティ回路2−
1,2−2,…及びフリップフロップ1−2,1−3,
…を介して順次出力側に伝播され、スキャンアウト端子
8から順次出力される。このスキャンアウト端子8から
出力される値と、予めシミュレーションにより求められ
ている期待値とを比較することにより、故障を検出する
ことができる。
Here, the flip-flops 1-2, 1-
, 3 take in the output signals 43-1, 43-2, ... of the two-input parity circuits 2-1, 2-2, ..., so that the values change considerably randomly, and the randomly changing values are combined. Given to circuit 4. In addition, when there is a failure in the sequential circuit, the effect is a 2-input parity circuit 2-
1, 2-2, ... and flip-flops 1-2, 1-3,
Is sequentially propagated to the output side via the ... And is sequentially output from the scan-out terminal 8. A failure can be detected by comparing the value output from the scan-out terminal 8 with the expected value obtained by simulation in advance.

【0031】従って、ランダムテストモードで順序回路
を動作させることにより、種々のパターンを各フリップ
フロップ1−1〜1−nに設定して順序回路を動作させ
るということを、スキャンイン動作を行なわずに実施す
ることができる。また、ランダムテストモードで順序回
路を動作させることにより、故障の影響をスキャンアウ
ト端子8から出力させるということを、スキャンアウト
動作を行なわずに実施することができる。従って、検査
に要する時間を短縮させることができる。
Therefore, by operating the sequential circuit in the random test mode, various patterns are set in the respective flip-flops 1-1 to 1-n and the sequential circuit is operated without performing the scan-in operation. Can be carried out. Further, by operating the sequential circuit in the random test mode, the effect of the failure can be output from the scan-out terminal 8 without performing the scan-out operation. Therefore, the time required for the inspection can be shortened.

【0032】尚、最終的には、検出困難な故障が残る
が、これに対してはスキャンパスを用いた自動テストパ
ターン生成アルゴリズムを用いてテストパターンを生成
し、検査を行なう。最初から自動テストパターン生成ア
ルゴリズムによりテストパターンを生成する場合と比べ
て、対象となる故障が大幅に減るので、テストパターン
数を減らし、検査時間を減らすことができる。
Finally, although a fault that is difficult to detect remains, a test pattern is generated by using an automatic test pattern generation algorithm using a scan path, and inspection is performed. Compared with the case where the test pattern is generated from the beginning by the automatic test pattern generation algorithm, the target failure is significantly reduced, so that the number of test patterns can be reduced and the inspection time can be reduced.

【0033】図5は本発明の他の実施例のブロック図で
あり、図6に示した順序回路に本発明を適用した場合に
ついてのものである。
FIG. 5 is a block diagram of another embodiment of the present invention, in which the present invention is applied to the sequential circuit shown in FIG.

【0034】図6の順序回路は組合せ回路55の出力信
号のひとつであるホールド信号62−1,62−2,…
によって制御されるセレクタ回路53−1,53−2,
…を備えている。
The sequential circuit shown in FIG. 6 is a hold signal 62-1, 62-2, ... Which is one of the output signals of the combinational circuit 55.
Selector circuits 53-1 and 53-2 controlled by
It has ...

【0035】セレクタ回路53−1,53−2,…はホ
ールド信号62−1,62−2,…が“1”の場合はフ
リップフロップ51−1,51−2,…の出力信号63
−1,63−2,…を選択して同じフリップフロップ5
1−1,51−2,…に入力することにより、クロック
信号が入ってもフリップフロップ51−1,51−2,
…の値が変化しないようにホールドする。また、ホール
ド信号62−1,62−2,…が“0”の場合は組合せ
回路55の出力信号64−1,64−2,…を選択し、
フリップフロップ51−1,51−2,…にその値を取
り込ませる。
The selector circuits 53-1, 53-2, ... Output signals 63 of the flip-flops 51-1, 51-2, ... When the hold signals 62-1, 62-2 ,.
The same flip-flop 5 is selected by selecting -1, 63-2, ...
By inputting the signals to 1-1, 51-2, ..., Even if a clock signal is input, the flip-flops 51-1, 51-2,
Hold so that the value of ... does not change. Further, when the hold signals 62-1, 62-2, ... Are “0”, the output signals 64-1, 64-2 ,.
The flip-flops 51-1, 51-2, ...

【0036】また、図6の順序回路は外部入力端子56
と、外部出力端子57と、スキャンイン端子58と、ス
キャンアウト端子59と、シフト制御信号が入力される
シフト端子60と、シフト制御信号が“0”の場合はセ
レクタ回路53−1,53−2,…の出力信号を選択
し、“1”の場合は他方の信号を選択するセレクタ回路
65−1,65−2,…を備えている。
The sequential circuit of FIG. 6 has an external input terminal 56.
An external output terminal 57, a scan-in terminal 58, a scan-out terminal 59, a shift terminal 60 to which a shift control signal is input, and selector circuits 53-1 and 53- when the shift control signal is "0". Selector circuits 65-1, 65-2, ... Which select the output signals of 2, ..., And select the other signal in the case of “1”.

【0037】図6の順序回路に本発明を適用した図5の
順序回路はフリップフロップ51−1とフリップフロッ
プ51−2との間に、2入力パリティ回路52と、セレ
クタ回路54−2とが設けられている。尚、図6と同一
符号は同一部分を表している。
In the sequential circuit of FIG. 5 in which the present invention is applied to the sequential circuit of FIG. 6, a 2-input parity circuit 52 and a selector circuit 54-2 are provided between a flip-flop 51-1 and a flip-flop 51-2. It is provided. The same reference numerals as in FIG. 6 represent the same parts.

【0038】2入力パリティ回路52はフリップフロッ
プ51−1の出力信号63−1とセレクタ回路53−2
の出力信号との排他的論理和をとる。セレクタ回路54
−2は出力端子60,ランダムテスト端子61に加えら
れるシフト制御信号,ランダムテスト制御信号が
“1”,“0”の場合(動作モードをシフトモードとし
た場合)はフリップフロップ51−1の出力信号63−
1を選択し、“0”,“1”の場合(動作モードをラン
ダムテストモードとした場合)は2入力パリティ回路5
2の出力信号を選択し、共に“0”の場合(動作モード
を通常動作モードとした場合)はセレクタ回路53−2
の出力信号を選択する。尚、フリップフロップ51−2
よりも後段のフリップフロップの間もフリップフロップ
51−1,51−2間と同様の構成を有している。
The 2-input parity circuit 52 includes an output signal 63-1 of the flip-flop 51-1 and a selector circuit 53-2.
XOR with the output signal of. Selector circuit 54
-2 is the output of the flip-flop 51-1 when the shift control signal applied to the output terminal 60 and the random test terminal 61 and the random test control signal are "1" and "0" (when the operation mode is the shift mode) Signal 63-
2-input parity circuit 5 when 1 is selected and is "0" or "1" (when the operation mode is the random test mode)
When the output signals of 2 are selected and both are “0” (when the operation mode is the normal operation mode), the selector circuit 53-2
Select the output signal of. The flip-flop 51-2
The configuration between the flip-flops in the subsequent stage is similar to that between the flip-flops 51-1 and 51-2.

【0039】従って、本実施例でも、ランダムテストモ
ードで順序回路を動作させることにより、種々のパター
ンを各フリップフロップ51−1〜51−nに設定して
順序回路を動作させるということを、スキャンイン動作
を行なわずに実施でき、また、故障の影響をスキャンア
ウト端子59から出力させるということを、スキャンア
ウト動作を行なわずに実施することができる。
Therefore, also in this embodiment, by operating the sequential circuit in the random test mode, various patterns are set in the flip-flops 51-1 to 51-n to operate the sequential circuit. This can be performed without performing the in operation, and the effect of the failure can be output from the scan out terminal 59 without performing the scan out operation.

【0040】図7は図6の順序回路に本発明を適用した
更に他の実施例のブロック図である。
FIG. 7 is a block diagram of still another embodiment in which the present invention is applied to the sequential circuit of FIG.

【0041】図7の順序回路はフリップフロップ51−
1とフリップフロップ52−2との間に3入力パリティ
回路66と、セレクタ回路65−2とが設けられてい
る。尚、図6と同一符号は同一部分を表している。
The sequential circuit of FIG. 7 has a flip-flop 51-
A 3-input parity circuit 66 and a selector circuit 65-2 are provided between 1 and the flip-flop 52-2. The same reference numerals as in FIG. 6 represent the same parts.

【0042】3入力パリティ回路66はフリップフロッ
プ51−1の出力信号63−1と、組合せ回路55の出
力信号64−2と、ホールド信号62−2との排他的論
理和をとる。セレクタ回路65−2はシフト端子60,
ランダムテスト端子61に入力されるシフト制御信号,
ランダムテスト信号がそれぞれ“1”,“0”の場合
(動作モードをシフトモードにした場合)はフリップフ
ロップ51−1の出力信号63−1を選択し、“0”,
“1”の場合(動作モードをランダムテストモードにし
た場合)は3入力パリティ回路66の出力信号を選択
し、共に“0”の場合(動作モードを通常動作モードに
した場合)はセレクタ回路53−2の出力信号を選択す
る。
The 3-input parity circuit 66 takes the exclusive OR of the output signal 63-1 of the flip-flop 51-1, the output signal 64-2 of the combinational circuit 55 and the hold signal 62-2. The selector circuit 65-2 includes a shift terminal 60,
A shift control signal input to the random test terminal 61,
When the random test signals are "1" and "0" (when the operation mode is the shift mode), the output signal 63-1 of the flip-flop 51-1 is selected, and "0",
When it is "1" (when the operation mode is the random test mode), the output signal of the 3-input parity circuit 66 is selected, and when both are "0" (when the operation mode is the normal operation mode), the selector circuit 53 is selected. -2 output signal is selected.

【0043】図7の実施例と図5の実施例とを比較した
場合、図7の順序回路は図5の2入力パリティ回路52
が3入力パリティ回路66で置き換えられているため、
ゲート量が少し増えるが、ホールド信号62−2も3入
力パリティ回路66に入力しているので、ホールド信号
に対する故障検出能力が向上する。
When the embodiment of FIG. 7 and the embodiment of FIG. 5 are compared, the sequential circuit of FIG. 7 has a 2-input parity circuit 52 of FIG.
Has been replaced by the 3-input parity circuit 66,
Although the gate amount is slightly increased, the hold signal 62-2 is also input to the 3-input parity circuit 66, so that the failure detection capability for the hold signal is improved.

【0044】尚、図6に示すように、ホールド信号を有
するフリップフロップを備えた順序回路に対して、図5
に示した実施例を適用するか、図7に示した実施例を適
用するかは、ゲート量の余裕度,故障検出率,未検出故
障の分布等により判断してどちらを選択しても良い。
It should be noted that, as shown in FIG. 6, a sequential circuit including a flip-flop having a hold signal is used as compared with the sequential circuit shown in FIG.
Whether the embodiment shown in FIG. 7 or the embodiment shown in FIG. 7 is applied may be selected based on the gate amount margin, the failure detection rate, the distribution of undetected failures, and the like. ..

【0045】[0045]

【発明の効果】以上説明したように、本発明は、スキャ
ンパスを構成する各フリップフロップ間に、前段のフリ
ップフロップの出力信号と組合せ回路の出力信号との排
他的論理和をとる2入力パリティ回路を設けると共に、
ランダムテストモード時、2入力パリティ回路の出力信
号を選択して後段のフリップフロップに出力するセレク
タ回路を設けたものであるので、ランダムテストモード
で順序回路を動作させることにより、種々のパターンを
各フリップフロップに設定して順序回路を動作させると
いうことを、スキャンイン動作を行なうことなく実現で
き、また、故障の影響をスキャンアウト端子から出力さ
せるということを、スキャンアウト動作を行なうことな
く、実現できる。従って、本発明によれば、検査時間を
大幅に短縮することができる効果がある。
As described above, according to the present invention, the two-input parity that takes the exclusive OR of the output signal of the preceding flip-flop and the output signal of the combinational circuit is provided between the flip-flops forming the scan path. With the circuit
In the random test mode, a selector circuit for selecting the output signal of the 2-input parity circuit and outputting it to the flip-flop in the subsequent stage is provided. Therefore, by operating the sequential circuit in the random test mode, various patterns can be obtained. Setting a flip-flop to operate a sequential circuit can be realized without performing a scan-in operation, and outputting the effect of a failure from a scan-out terminal can be realized without performing a scan-out operation. it can. Therefore, according to the present invention, there is an effect that the inspection time can be significantly shortened.

【0046】また、本発明は、ホールド信号を有するフ
リップフロップに対しては、ホールド信号と、組合せ回
路の出力信号と、前段のフリップフロップの出力信号と
の排他的論理和をとる3入力パリティ回路を設けたもの
であるので、ホールド信号に関する故障検出能力を向上
させることができる効果がある。
Further, according to the present invention, for a flip-flop having a hold signal, a three-input parity circuit which takes an exclusive OR of the hold signal, the output signal of the combinational circuit and the output signal of the preceding flip-flop. Is provided, there is an effect that the failure detection capability regarding the hold signal can be improved.

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

【図1】本発明の一実施例のブロック図である。FIG. 1 is a block diagram of an embodiment of the present invention.

【図2】図1の通常動作モード時の信号の流れを示す図
である。
FIG. 2 is a diagram showing a signal flow in a normal operation mode of FIG.

【図3】図1のシフトモード時の信号の流れを示す図で
ある。
FIG. 3 is a diagram showing a signal flow in a shift mode of FIG.

【図4】図1のランダムテストモード時の信号の流れを
示す図である。
FIG. 4 is a diagram showing a signal flow in the random test mode of FIG.

【図5】本発明の他の実施例のブロック図である。FIG. 5 is a block diagram of another embodiment of the present invention.

【図6】ホールド信号を有するフリップフロップを含む
順序回路の一例を示すブロック図である。
FIG. 6 is a block diagram showing an example of a sequential circuit including a flip-flop having a hold signal.

【図7】本発明のその他の実施例のブロック図である。FIG. 7 is a block diagram of another embodiment of the present invention.

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

1−1〜1−n;フリップフロップ 2−1,2−2,…;2入力パリティ回路 3−1,3−2,…;セレクタ回路 4;組合せ回路 5;外部入力端子 6;外部出力端子 7;スキャンイン端子 8;スキャンアウト端子 9;シフト端子 10;ランダムテスト端子 51−1〜51−n;フリップフロップ 52;2入力パリティ回路 53−1,53−2,…;セレクタ回路 54−1,54−2,…;セレクタ回路 55;組合せ回路 56;外部入力端子 57;外部出力端子 58;スキャンイン端子 59;スキャンアウト端子 60;シフト端子 61;ランダムテスト端子 65−1,65−2,…;セレクタ回路 66;3入力パリティ回路 1-1 to 1-n; Flip-flops 2-1, 2-2, ...; 2-input parity circuit 3-1, 3-2, ...; Selector circuit 4; Combination circuit 5; External input terminal 6; External output terminal 7; Scan-in terminal 8; Scan-out terminal 9; Shift terminal 10; Random test terminals 51-1 to 51-n; Flip-flop 52; 2-input parity circuit 53-1, 53-2, ...; Selector circuit 54-1 , 54-2, ...; Selector circuit 55; Combination circuit 56; External input terminal 57; External output terminal 58; Scan-in terminal 59; Scan-out terminal 60; Shift terminal 61; Random test terminal 65-1, 65-2, ...; Selector circuit 66; 3-input parity circuit

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 スキャンパスを構成する複数のフリップ
フロップを含む順序回路に於いて、 前記各フリップフロップの間に、 前段のフリップフロップの出力信号と、後段のフリップ
フロップの入力となる組合せ回路の出力信号との排他的
論理和をとる2入力パリティ回路と、 動作モードが通常動作モードの場合は組合せ回路の出力
信号を選択し、シフトモードの場合は前段のフリップフ
ロップの出力信号を選択し、ランダムテストモードの場
合は2入力パリティ回路の出力信号を選択し、選択した
信号を後段のフリップフロップに出力するセレクタ回路
とを備えたことを特徴とする順序回路。
1. A sequential circuit including a plurality of flip-flops forming a scan path, wherein between the respective flip-flops, there is provided a combinational circuit which is an output signal of the front-stage flip-flop and an input of the rear-stage flip-flop. A 2-input parity circuit that takes the exclusive OR with the output signal, and the output signal of the combinational circuit when the operation mode is the normal operation mode, and the output signal of the flip-flop of the previous stage when the shift mode is selected, A sequential circuit comprising a selector circuit which selects an output signal of a 2-input parity circuit in the random test mode and outputs the selected signal to a subsequent flip-flop.
【請求項2】 前記各フリップフロップの内、ホールド
信号を有するフリップフロップに対しては、前記2入力
パリティ回路及び前記セレクタ回路に代えて、 前段のフリップフロップの出力信号と、組合せ回路の出
力信号と、前記ホールド信号との排他的論理和をとる3
入力パリティ回路と、 動作モードが通常動作モードの場合は組合せ回路の出力
信号或いは前記ホールド信号を有するフリップフロップ
の出力信号を選択し、シフトモードの場合は前段のフリ
ップフロップの出力信号を選択し、ランダムテストモー
ドの場合は前記3入力パリティ回路の出力信号を選択す
るセレクタ回路とを備えることを特徴とする請求項1記
載の順序回路。
2. Among the flip-flops, for the flip-flop having a hold signal, instead of the 2-input parity circuit and the selector circuit, the output signal of the preceding flip-flop and the output signal of the combinational circuit And the exclusive OR with the hold signal 3
Input parity circuit, when the operation mode is the normal operation mode, the output signal of the combination circuit or the output signal of the flip-flop having the hold signal is selected, and in the shift mode, the output signal of the preceding flip-flop is selected, The sequential circuit according to claim 1, further comprising a selector circuit that selects an output signal of the 3-input parity circuit in the random test mode.
【請求項3】 前記セレクタ回路は通常動作モード時、
ホールド信号が有効な場合は前記ホールド信号を有する
フリップフロップの出力信号を選択し、無効な場合は前
記組合せ回路の出力信号を選択することを特徴とする請
求項2記載の順序回路。
3. The selector circuit, in a normal operation mode,
3. The sequential circuit according to claim 2, wherein the output signal of the flip-flop having the hold signal is selected when the hold signal is valid, and the output signal of the combination circuit is selected when the hold signal is invalid.
JP3277006A 1991-09-27 1991-09-27 Ordering circuit Pending JPH0587893A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3277006A JPH0587893A (en) 1991-09-27 1991-09-27 Ordering circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3277006A JPH0587893A (en) 1991-09-27 1991-09-27 Ordering circuit

Publications (1)

Publication Number Publication Date
JPH0587893A true JPH0587893A (en) 1993-04-06

Family

ID=17577450

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3277006A Pending JPH0587893A (en) 1991-09-27 1991-09-27 Ordering circuit

Country Status (1)

Country Link
JP (1) JPH0587893A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62249084A (en) * 1986-04-21 1987-10-30 Sony Corp Integrated circuit
JPH01233379A (en) * 1988-03-14 1989-09-19 Nec Corp Logic block for digital integrated circuit

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62249084A (en) * 1986-04-21 1987-10-30 Sony Corp Integrated circuit
JPH01233379A (en) * 1988-03-14 1989-09-19 Nec Corp Logic block for digital integrated circuit

Similar Documents

Publication Publication Date Title
US5090035A (en) Linear feedback shift register
JPS62503188A (en) Configurable on-chip test system for gate arrays
JP2000137061A (en) Test method of embedded core in system-on-chip and constitution thereof
US8412993B2 (en) Self-adjusting critical path timing of multi-core VLSI chip
US5504755A (en) Testable programmable logic array
JP2000163279A (en) Circuit constitution and method for testing microprocessor
WO2000065364A1 (en) Semiconductor integrated circuit and method of designing the same
JPH0587893A (en) Ordering circuit
US20230259433A1 (en) Systems and methods to test an asychronous finite machine
JPH06102327A (en) Memory built-in type semiconductor integrated circuit and logical design method therefor
JP3543399B2 (en) Semiconductor device with inspection function and its self-inspection method
JP3275952B2 (en) Test circuits for digital logic circuits
Grassl et al. A function-independent self-test for large programmable logic arrays
JP3570944B2 (en) Semiconductor integrated circuit
JP2002082146A (en) Scan test circuit
Chen et al. Clock-Less DFT and BIST for Dual-Rail Asynchronous Circuits
JP4644966B2 (en) Semiconductor test method
JPH0210178A (en) Logic circuit
JP2006004509A (en) Semiconductor integrated circuit and hard macro-circuit
Pomeranz Invisible-Scan: A Design-for-Testability Approach for Functional Test Sequences
JP2000304823A (en) Integrated circuit and its fault detecting system
JP2002189063A (en) Semiconductor device
Demidenko et al. Fault-tolerance in micro programmed control: architectures & schematic synthesis
JP2001318125A (en) Circuit, system and method for lbist control determining maximum scanning channel length automatically
JP2010181360A (en) Semiconductor integral circuit, and methods of testing and designing the same