JP2509685B2 - Logic circuit device - Google Patents

Logic circuit device

Info

Publication number
JP2509685B2
JP2509685B2 JP1021057A JP2105789A JP2509685B2 JP 2509685 B2 JP2509685 B2 JP 2509685B2 JP 1021057 A JP1021057 A JP 1021057A JP 2105789 A JP2105789 A JP 2105789A JP 2509685 B2 JP2509685 B2 JP 2509685B2
Authority
JP
Japan
Prior art keywords
data
storage element
shift
scan
logic circuit
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.)
Expired - Lifetime
Application number
JP1021057A
Other languages
Japanese (ja)
Other versions
JPH02201275A (en
Inventor
博 秋葉
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.)
Toshiba Corp
Original Assignee
Tokyo Shibaura Electric Co 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 Tokyo Shibaura Electric Co Ltd filed Critical Tokyo Shibaura Electric Co Ltd
Priority to JP1021057A priority Critical patent/JP2509685B2/en
Publication of JPH02201275A publication Critical patent/JPH02201275A/en
Application granted granted Critical
Publication of JP2509685B2 publication Critical patent/JP2509685B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Tests Of Electronic Circuits (AREA)

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、特にIC(集積回路)化された大規模な論
理回路装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Field of Industrial Application) The present invention particularly relates to a large-scale logic circuit device integrated into an IC (integrated circuit).

(従来の技術) 一般に大規模な論理回路装置においては、特にLSIで
は、装置の試験を行うために、例えば菊池「自動診断機
能を内蔵したCMOSゲートアレイ」,雑誌『電子材料』,1
986年7月,p.92−97.に記載されているようなスキャン
パスと称される手法が適用される場合がある。このスキ
ャンパス手法(以下、スキャンデザイン方式と称する)
は、論理回路装置内の記憶素子に対し、外部より任意デ
ータをセットする機能(スキャンイン)と、そのデータ
を外部へ出力する機能(スキャンアウト)とをシフトレ
ジスタで実現し、任意のデータをスキャンインし、その
後スキャンアウトして所定の期待値と比較してその論理
回路装置を試験する手法である。スキャンデザイン方式
では、各記憶素子間のスキャンデータの伝達は、全記憶
素子をシリアルに接続して行うか、幾つかのブロックに
分けて、その中をシリアルに接続して行うのが一般的で
ある。
(Prior Art) Generally, in a large-scale logic circuit device, especially in an LSI, in order to test the device, for example, Kikuchi “CMOS gate array with automatic diagnostic function”, magazine “Electronic Materials”, 1
A method called a scan path as described in July 986, p.92-97. May be applied. This scan path method (hereinafter referred to as scan design method)
The shift register realizes the function of setting arbitrary data from the outside (scan-in) and the function of outputting the data to the outside (scan-out) to the storage element in the logic circuit device by using the shift register. This is a method of testing the logic circuit device by scanning in, then scanning out, and comparing with a predetermined expected value. In the scan design method, transmission of scan data between each storage element is generally performed by connecting all storage elements serially or by dividing into several blocks and connecting them serially. is there.

さて、スキャンデザイン方式は、論理回路装置を試験
するために用いられるのが一般的である。しかし、この
方式をシステム動作中に用い、システム動作中の論理回
路装置の状態を監視したりすることも考えられる。この
場合、システムサイクル毎にスキャンイン、スキャンア
ウトを繰返しながら記憶素子のデータを外部でサンプリ
ングするのに用いることになる。
Now, the scan design method is generally used for testing a logic circuit device. However, it is also possible to use this method during system operation and monitor the state of the logic circuit device during system operation. In this case, the data in the storage element is used for external sampling while repeating scan-in and scan-out for each system cycle.

(発明が解決しようとする課題) 上述したように、システム動作中の論理回路装置の内
部状態の監視等にスキャンデザイン方式を用いることが
考えられるが、従来のスキャンデザイン方式を用いて論
理回路装置内の記憶素子のデータのサンプリングを行っ
たのでは、特に大規模な論理回路装置の場合には、監視
対象とすべき記憶素子は限られているにも拘らず膨大な
データをサンプリングしなければならず、また膨大なデ
ータ量であることから1回のサンプリング毎に多大な時
間を要するという問題があった。
(Problems to be Solved by the Invention) As described above, it is conceivable to use the scan design method for monitoring the internal state of the logic circuit device during system operation. However, the conventional scan design method is used for the logic circuit device. Since the data of the storage element in the inside is sampled, especially in the case of a large-scale logic circuit device, a huge amount of data must be sampled although the storage element to be monitored is limited. In addition, since there is a huge amount of data, there is a problem that a large amount of time is required for each sampling.

したがってこの発明の解決すべき課題は、スキャンデ
ザイン方式を利用しながら論理回路装置内の任意の記憶
素子のデータのみを選択的に外部に取出すことができ、
もってシステム動作中のサンプリングが効率的に行え、
しかもスキャンデザイン方式を用いた論理回路装置の試
験も従来通り行えるようにすることである。
Therefore, the problem to be solved by the present invention is to selectively take out only the data of an arbitrary storage element in the logic circuit device while utilizing the scan design method,
This allows efficient sampling during system operation,
Moreover, the test of the logic circuit device using the scan design method can be performed as usual.

[発明の構成] (課題を解決するための手段) この発明は、スキャン機能を有しスキャンパスが形成
可能な複数の記憶素子を含む論理回路を備えた論理回路
装置に、上記各記憶素子に対応してそれぞれ設けられた
セレクタであって、対応する記憶素子へのシフトインデ
ータまたは同記憶素子からのシフトアウトデータを次段
の記憶素子に対するシフトインデータとして選択するセ
レクタと、外部からのデータ設定が可能なシリアル入力
パラレル出力シフトレジスタであって、パラレル出力デ
ータの各ビットが上記セレクタに1対1で対応し、対応
するセレクタの選択信号として用いられるシフトレジス
タと、上記セレクタが対応する記憶素子へのシフトイン
データを次段の記憶素子に対するシフトインデータとし
て選択している期間、同記憶素子に上記シフトインデー
タを設定するためのクロック入力を禁止するゲートとを
備えたことを特徴とするものである。
[Structure of the Invention] (Means for Solving the Problem) The present invention provides a logic circuit device including a logic circuit including a plurality of storage elements having a scan function and capable of forming a scan path. Selectors provided correspondingly, which select shift-in data to the corresponding storage element or shift-out data from the same storage element as shift-in data for the storage element in the next stage, and data from the outside. A serial input parallel output shift register that can be set, in which each bit of parallel output data corresponds to the selector in a one-to-one correspondence, and a shift register used as a selection signal of the corresponding selector and a memory corresponding to the selector. The same applies during the period when the shift-in data to the element is selected as the shift-in data to the storage element in the next stage. It is characterized in that a gate for inhibiting a clock input for setting the shift-in data element.

(作用) 上記の構成によれば、論理回路の試験時には、全セレ
クタが対応する記憶素子からのシフトアウトデータを次
段の記憶素子に対するシフトインデータとして選択する
ためのデータを上記シフトレジスタにセットすることに
より、論理回路内の全記憶素子がシリアルに接続される
スキャンパスを形成し、全記憶素子を対象とする通常の
スキャンテストを行うことができる。一方、全セレクタ
のうちの任意のセレクタだけが対応する記憶素子からの
シフトアウトデータを次段の記憶素子に対するシフトイ
ンデータとして選択するためのデータをシフトレジスタ
にセットすることにより、このセレクタに対応する論理
回路内の記憶素子だけがシリアルに接続されるスキャン
パスを形成することができ、しかも同スキャンパスから
外された記憶素子におけるシフトインデータ設定動作は
対応するゲートにより禁止され、本来のデータ保持動作
が行われるので、システム動作中における任意の記憶素
子の状態だけを、その際に形成されているスキャンパス
を介して正しくサンプリングすることが可能となる。
(Operation) According to the above configuration, when the logic circuit is tested, the data for selecting the shift-out data from the corresponding storage elements by all selectors as the shift-in data for the storage element of the next stage is set in the shift register. By doing so, a scan path in which all storage elements in the logic circuit are serially connected is formed, and a normal scan test for all storage elements can be performed. On the other hand, by setting the data for selecting the shift-out data from the corresponding storage element as the shift-in data for the next-stage storage element in the shift register, only the arbitrary selector of all the selectors corresponds to this selector. It is possible to form a scan path in which only the storage elements in the logic circuit to be connected are serially connected, and the shift-in data setting operation in the storage elements removed from the scan path is prohibited by the corresponding gate, and the original data Since the holding operation is performed, only the state of any storage element during the system operation can be correctly sampled through the scan path formed at that time.

(実施例) 第1図はこの発明の一実施例に係る論理回路装置の一
部を抜出して示すブロック構成図である。第1図の論理
回路装置は例えばゲートアレイであり、11は論理回路、
12は論理回路11に含まれる記憶素子、13は論理回路11に
含まれる組合せ回路である。記憶素子12はスキャン機能
を持つフリップフロップ(スキャン機能付きフリップフ
ロップ)であり、D型フリップフロップと同様にデータ
入力端子D、クロック端子C、正転出力端子Qおよび反
転出力端子の各端子を有する他、スキャン動作時に使
用される4つの端子、即ちスキャン動作時のデータ入力
端子(シフトデータ・イン・ポート)SI、スキャン動作
時のデータ出力端子(シフトデータ・アウト・ポート)
SO、記憶素子12のデータをシフトするための2相クロッ
ク(スキャンクロック)が入力されるクロック端子A,B
を有する。この記憶素子12は、端子A,Bの各入力が例え
ば“H"レベル(高レベル)に固定されている状態ではD
型フリップフロップとして機能する。また記憶素子12
は、端子Cの入力が例えば“H"レベルに固定されている
状態では、端子A,Bに入力されるクロックに応じてデー
タシフトを行うスキャン・フリップフロップとして機能
する。即ち記憶素子12においては、端子Cの入力が“H"
の場合には、端子Aに有効なクロック(ここでは負パル
ス)が入力されると、端子SIに入力されているデータが
端子Qに出現し(即ちQ=SIとなり)、端子Bに有効な
クロック(ここでは正パルス)が入力されると、端子Q
に出現しているデータが端子SOに現われるようになって
いる。記憶素子12の端子Dは組合せ回路13の出力と接続
され、同記憶素子12の端子Q,は別の組合せ回路13の入
力と接続されている。
(Embodiment) FIG. 1 is a block diagram showing a part of a logic circuit device according to an embodiment of the present invention. The logic circuit device of FIG. 1 is, for example, a gate array, 11 is a logic circuit,
Reference numeral 12 is a memory element included in the logic circuit 11, and 13 is a combinational circuit included in the logic circuit 11. The storage element 12 is a flip-flop having a scan function (flip-flop having a scan function), and has a data input terminal D, a clock terminal C, a non-inverting output terminal Q, and an inverting output terminal like the D-type flip-flop. In addition, four terminals used during scan operation, namely, data input terminal (shift data in port) SI during scan operation, data output terminal (shift data out port) during scan operation
Clock terminals A and B to which a two-phase clock (scan clock) for shifting the data in SO and storage element 12 is input
Have. This memory element 12 is D when the inputs of terminals A and B are fixed at, for example, "H" level (high level).
Type flip-flops. Also storage element 12
Functions as a scan flip-flop that shifts data in accordance with the clocks input to the terminals A and B when the input to the terminal C is fixed at, for example, "H" level. That is, in the memory element 12, the input at the terminal C is "H".
In this case, when a valid clock (negative pulse in this case) is input to the terminal A, the data input to the terminal SI appears at the terminal Q (that is, Q = SI), and the valid data is input to the terminal B. When a clock (here, positive pulse) is input, terminal Q
The data appearing at the terminal appears at the terminal SO. The terminal D of the storage element 12 is connected to the output of the combination circuit 13, and the terminal Q of the storage element 12 is connected to the input of another combination circuit 13.

14は記憶素子12のうちスキャン対象とする記憶素子を
指定するためのシフトレジスタ、15は記憶素子12に対応
して設けられた記憶素子、16は複数の記憶素子15を直列
多段に接続してシフトレジスタ14を構成するためのシリ
アルチェイン(以下、データパス16と称する)である。
記憶素子15は、データ入力端子SI、データ出力端子SO、
記憶素子15のデータをシフトするための2相クロック
(シフトクロック)が入力されるクロック端子A,Bを有
する。記憶素子15の端子SOは、データパス16により次段
の記憶素子15の端子SIと接続されている。17は記憶素子
12に対応して設けられ、対応する記憶素子12の端子SIに
外部からのスキャンインデータまたは前段(もしくはそ
れより前)の記憶素子12の端子SOからの出力データを転
送するための入力データパス、18は記憶素子12に対応し
て設けられ、対応する記憶素子12の端子SOからの出力デ
ータを次段(もしくはそれより後)の記憶素子12の端子
SIへの入力データまたは外部へのスキャンアウトデータ
として転送するための出力データパス、19は記憶素子15
およびデータパス17,18と同様に記憶素子12に対応して
設けられたセレクタである。セレクタ19は、対応する記
憶素子12の端子SIにデータパス17を介して導かれるデー
タまたは対応する記憶素子12の端子SOからデータパス18
に出力されるデータのいずれか一方を、対応する記憶素
子15の端子SOの状態に応じて次段の記憶素子12の端子SI
への入力データまたは外部へのスキャンアウトデータと
して選択するようになっている。
14 is a shift register for designating a storage element to be scanned among the storage elements 12, 15 is a storage element provided corresponding to the storage element 12, and 16 is a plurality of storage elements 15 connected in series and in multiple stages. A serial chain (hereinafter referred to as a data path 16) for configuring the shift register 14.
The storage element 15 includes a data input terminal SI, a data output terminal SO,
It has clock terminals A and B to which a two-phase clock (shift clock) for shifting the data of the storage element 15 is input. The terminal SO of the storage element 15 is connected to the terminal SI of the storage element 15 of the next stage by the data path 16. 17 is a memory element
An input data path which is provided corresponding to 12 and which transfers the scan-in data from the outside to the corresponding terminal SI of the storage element 12 or the output data from the terminal SO of the storage element 12 of the previous stage (or earlier). , 18 are provided corresponding to the storage element 12, and output data from the corresponding terminal SO of the storage element 12 is connected to the terminal of the storage element 12 of the next stage (or later).
Output data path for transferring as input data to SI or scan-out data to the outside, 19 is storage element 15
And a selector provided corresponding to the storage element 12 similarly to the data paths 17 and 18. The selector 19 receives data guided to the terminal SI of the corresponding storage element 12 via the data path 17 or the data from the terminal SO of the corresponding storage element 12 to the data path 18.
One of the data output to the terminal SI of the storage element 12 of the next stage according to the state of the terminal SO of the corresponding storage element 15
It is designed to be selected as input data to or scan-out data to the outside.

21はシステムクロックの転送に供されるシステムクロ
ック線、22A,22Bは記憶素子12のデータシフト(スキャ
ン動作)に必要なクロック(スキャンクロック)の転送
に供されるスキャンクロック線、23A,23Bは記憶素子15
のデータシフトに必要なクロック(シフトクロック)の
転送に供されるシフトクロック線である。24A,24Bは記
憶素子12,15に対応して設けられ、スキャンクロック線2
2A,22B上のスキャンクロック(Aスキャンクロック,Bス
キャンクロック)を、対応する記憶素子15の端子SOの状
態に応じて対応する記憶素子12の端子A,Bに出力するア
ンドゲートである。
Reference numeral 21 is a system clock line used for transferring a system clock, 22 A and 22 B are scan clock lines used for transferring a clock (scan clock) necessary for data shift (scan operation) of the storage element 12, 23 A , 23 B is a memory element 15
Is a shift clock line used for transferring a clock (shift clock) necessary for the data shift of. 24 A and 24 B are provided corresponding to the storage elements 12 and 15, and the scan clock line 2
An AND gate that outputs the scan clocks (A scan clock, B scan clock) on 2 A and 22 B to the terminals A and B of the corresponding storage element 12 according to the state of the terminal SO of the corresponding storage element 15. .

次に、第1図の構成の動作を説明する。第1図の構成
では、スキャンデザイン方式により論理回路11の全記憶
素子12を用いてスキャンインおよびスキャンアウトを行
って同論理回路11の試験を行う第1の動作と、システム
動作中の論理回路11の任意の記憶素子12をスキャン対象
として選択設定し、その記憶素子12のデータをスキャン
デザイン方式により外部に取出すことで、システム動作
中の論理回路11の任意箇所の内部状態を監視する第2の
動作との2つの基本動作が用意されている。
Next, the operation of the configuration shown in FIG. 1 will be described. In the configuration shown in FIG. 1, a first operation of performing a scan-in and a scan-out using all the storage elements 12 of the logic circuit 11 by a scan design method to test the logic circuit 11 and a logic circuit during system operation Secondly, the internal state of an arbitrary portion of the logic circuit 11 during system operation is monitored by selectively setting 11 arbitrary storage elements 12 as a scan target and taking out the data of the storage elements 12 to the outside by a scan design method. Two basic operations are prepared.

まず、上記第1の動作について説明する。第1の動作
を行う場合、最初に、シフトレジスタ14を構成し、論理
回路11内の各記憶素子15に対応して設けられた全ての記
憶素子12に論理“1"データをセットする。このデータセ
ットは、外部からデータパス16に論理“1"データを与
え、この状態でシフトクロック線23A,23Bに有効な2相
シフトクロックのそれぞれ一方(Aシフトクロック),
他方(Bシフトクロック)を記憶素子15の数だけ繰返し
供給することで(即ちシフトレジスタ14を構成する記憶
素子15の数だけシフト動作させることで)行われる。シ
フトレジスタ14を構成する各記憶素子15に論理“1"デー
タがセットされると、その端子SOの状態(SO出力)は論
理“1"となる。各セレクタ19は、対応する記憶素子15の
SO出力が論理“1"の場合、対応する記憶素子12のSO出力
を選択する。これにより、論理回路11内の全記憶素子12
が直列多段接続されたいわゆるスキャンパスが形成され
る。また、シフトレジスタ14を構成する記憶素子15のSO
出力が論理“1"となると、対応するアンドゲート24A,24
Bが出力可状態となり、スキャンクロック線22A,22Bから
のスキャンクロック(Aスキャンクロック,Bスキャンク
ロック)をそのまま対応する記憶素子12の端子A,Bに出
力する。この状態は、セレクタ19、アンドゲート24A,24
B(およびシフトレジスタ14)を持たない従来のスキャ
ンデザイン回路の状態と同様であり、その動作について
は“従来の技術”の項で既に述べてあるため、ここでは
省略する。
First, the first operation will be described. When performing the first operation, first, the shift register 14 is configured, and the logical "1" data is set in all the storage elements 12 provided corresponding to each storage element 15 in the logic circuit 11. This data set, provides a logic "1" data from the outside to the data path 16, respectively whereas the effective two-phase shift clock to the shift clock line 23 A, 23 B in this state (A shift clock),
This is performed by repeatedly supplying the other (B shift clock) for the number of storage elements 15 (that is, by performing the shift operation for the number of storage elements 15 configuring the shift register 14). When the logical "1" data is set in each storage element 15 that constitutes the shift register 14, the state of the terminal SO (SO output) becomes the logical "1". Each selector 19 has a corresponding storage element 15
When the SO output is logic “1”, the SO output of the corresponding storage element 12 is selected. As a result, all storage elements 12 in the logic circuit 11 are
A so-called scan path is formed by connecting in series in multiple stages. In addition, the SO of the storage element 15 that constitutes the shift register 14
When the output becomes logic "1", the corresponding AND gate 24 A , 24
B is an output Ready state, and outputs a scan clock (A scan clock, B scan clock) from the scan clock line 22 A, 22 B as it is terminal A of the corresponding storage element 12, the B. This state is the selector 19, AND gate 24 A , 24
This is the same as the state of the conventional scan design circuit having no B (and the shift register 14), and its operation has already been described in the section “Prior Art”, and therefore will be omitted here.

次に、上記第2の動作について説明する。第2の動作
を行う場合、最初に、シフトレジスタ14を構成する全記
憶素子15のうち、スキャン対象としようとする論理回路
11内の記憶素子15に対応する記憶素子12だけに論理“1"
データをセットし、それ以外の記憶素子12には論理“0"
データをセットする。このデータセットは、外部からデ
ータパス16にシフトレジスタ14内の各記憶素子15にセッ
トすべきデータの列(シリアルデータ)を順に与え、こ
れに同期してシフトクロック線23A,23Bに有効な2相シ
フトクロックのそれぞれ一方(Aシフトクロック),他
方(Bシフトクロック)を記憶素子15の数だけ繰返し供
給することで行われる。
Next, the second operation will be described. When performing the second operation, first, of all the memory elements 15 configuring the shift register 14, the logic circuit to be the scan target
Only the memory element 12 corresponding to the memory element 15 in 11 has the logic "1".
Data is set, and logical "0" is set to the other storage elements 12.
Set the data. This data set sequentially gives a sequence of data (serial data) to be set in each storage element 15 in the shift register 14 to the data path 16 from the outside, and is effective to the shift clock lines 23 A and 23 B in synchronization with this. It is performed by repeatedly supplying one (A shift clock) and the other (B shift clock) of the two two-phase shift clocks by the number of storage elements 15.

上記のデータセットにより、論理“1"データがセット
された記憶素子15に対応するセレクタ19は、前記した第
1の動作と同様に、対応する記憶素子12のSO出力を選択
し、論理“1"データがセットされた記憶素子15に対応す
るアンドゲート24A,24Bは出力可状態となる。これに対
して、論理“0"データがセットされた記憶素子15に対応
するセレクタ19は、前記した第1の動作と異なり、対応
する記憶素子12のSI入力を選択し、論理“0"データがセ
ットされた記憶素子15に対応するアンドゲート24A,24B
は出力禁止状態となる。この結果、シフトレジスタ14を
構成する全記憶素子15のうち、論理“1"データがセット
された記憶素子15に対応する記憶素子12だけが、実際の
スキャンパスを形成する。また、このスキャンパスから
外された記憶素子12(論理“0"データがセットされた記
憶素子15に対応する記憶素子12)においては、その端子
A,Bにスキャンクロック線22A,22Bからのスキャンクロッ
クが入力されることがアンドゲート24A,24Bによって禁
止されることから、(上記のスキャンクロックによって
その保持データが変化することはなく)そのD入力内容
で決まる本来のデータが保持される状態となる。
According to the above data set, the selector 19 corresponding to the storage element 15 in which the logical “1” data is set selects the SO output of the corresponding storage element 12 in the same manner as in the first operation described above, and selects the logical “1”. "The AND gates 24 A and 24 B corresponding to the storage element 15 in which the data is set are in the output enable state. On the other hand, unlike the first operation described above, the selector 19 corresponding to the storage element 15 in which the logical “0” data is set selects the SI input of the corresponding storage element 12, and selects the logical “0” data. AND gates 24 A and 24 B corresponding to the storage element 15 in which is set
Is in the output prohibited state. As a result, among all the storage elements 15 configuring the shift register 14, only the storage element 12 corresponding to the storage element 15 in which the logical “1” data is set forms the actual scan path. In addition, in the storage element 12 removed from this scan path (the storage element 12 corresponding to the storage element 15 in which logical "0" data is set), its terminal
Since the AND gates 24 A and 24 B prohibit the input of the scan clocks from the scan clock lines 22 A and 22 B to A and B , (the data held by the scan clock cannot be changed. Instead, the original data determined by the D input contents is held.

さて、論理回路11内のスキャン対象としようとする記
憶素子12に対応するシフトレジスタ14内の記憶素子15
に、上記したように選択的に論理“1"データをセットす
ると、シフトクロック線23A,23Bに有効な2相シフトク
ロックのそれぞれ一方(Aシフトクロック),他方(B
シフトクロック)を論理“1"データがセットされた記憶
素子15の数だけ繰返し供給し、スキャン対象記憶素子12
の保持データ(Q出力データ)をスキャンアウトするた
めの動作を行う。このスキャンアウト動作は、スキャン
クロック線22BにBスキャンクロックを与えて、スキャ
ン対象記憶素子12のQ出力をSO出力として取出し、次に
スキャンクロック線22AにAスキャンクロックを与え
て、上記取出したSO出力をスキャンパス上での次段の記
憶素子12の端子SIから取込み、この次段の記憶素子12の
端子Qに取出す動作を、論理“1"データがセットされた
記憶素子15の数だけ繰返すことにより行われる。そし
て、このスキャンアウトの期間に、スキャンパス上の最
終段を成す記憶素子12からのSO出力を順次サンプリング
することにより、システム動作中における任意のタイミ
ングでの各スキャン対象記憶素子12のデータ保持状態を
検出することができる。
Now, the storage element 15 in the shift register 14 corresponding to the storage element 12 to be scanned in the logic circuit 11
In, setting the selective logic "1" data as described above, respectively whereas the shift clock line 23 A, 23 valid two-phase shift clock B (A shift clock), the other (B
The shift clock) is repeatedly supplied by the number of storage elements 15 in which logical "1" data is set,
The operation for scanning out the held data (Q output data) is performed. In this scan-out operation, the B scan clock is applied to the scan clock line 22 B , the Q output of the memory element 12 to be scanned is taken out as the SO output, and then the A scan clock is applied to the scan clock line 22 A to take out the above. The operation of taking in the SO output from the terminal SI of the memory element 12 of the next stage on the scan path and taking it out to the terminal Q of the memory element 12 of the next stage is performed by the number of the memory elements 15 to which the logical "1" data is set. It is done by repeating only. Then, during this scan-out period, by sequentially sampling the SO output from the storage element 12 forming the final stage on the scan path, the data holding state of each scan target storage element 12 at any timing during system operation. Can be detected.

さて、この実施例では、スキャンパス上の最終段を成
す記憶素子12からのSO出力(スキャンアウトデータ)を
同じスキャンパス上の初段を成す記憶素子12の端子SIに
戻して、スキャンインさせる。やがて、スキャンパス上
の最終段記憶素子12からの最後のスキャンアウトデータ
が、初段記憶素子12にスキャンインされると、スキャン
パス上の記憶素子12(論理“1"データがセットされた記
憶素子15に対応する記憶素子12)の状態は、上記した一
連のスキャン(シフト)動作の前の状態に戻る。この一
連のスキャン動作は、システムクロックが新たに発生し
ない期間に行われる。そして、一連のスキャン動作の後
に次のシステムクロックが1クロックだけ発生され(て
システムクロック線21に与えられ)ることにより、論理
回路11では新たなシステム動作が行われる。以上のスキ
ャンクロックの発生によるスキャンアウトおよびスキャ
ンアウトデータのサンプリングと、システムクロックの
発生とを交互に繰返しながらシステム動作を行うことに
より、前記した第2の動作が行われる。
Now, in this embodiment, the SO output (scan-out data) from the storage element 12 forming the final stage on the scan path is returned to the terminal SI of the storage element 12 forming the first stage on the same scan path to scan in. Eventually, when the last scan-out data from the final-stage storage element 12 on the scan path is scanned in to the first-stage storage element 12, the storage element 12 on the scan path (the storage element to which the logical “1” data is set) The state of the storage element 12) corresponding to 15 returns to the state before the series of scan (shift) operations described above. This series of scan operations is performed during the period when the system clock is not newly generated. Then, after a series of scan operations, the next system clock is generated by one clock (and then applied to the system clock line 21), so that the logic circuit 11 performs a new system operation. The second operation is performed by performing the system operation while alternately repeating the scan-out and scan-out data sampling by the generation of the scan clock and the generation of the system clock.

[発明の効果] 以上詳述したようにこの発明によれば、論理回路装置
内の多数の記憶素子の中から、スキャンイン、スキャン
アウトの対象とする記憶素子をシフトレジスタへの設定
データにより任意に指定でき、この指定記憶素子のデー
タのみをスキャンデザイン方式を利用して外部に取出す
ことができるので、システム動作中のサンプリングが短
時間で効率的に行え、論理回路装置の大規模化に対する
ハードウェアデバッグ、トラブルシュート、性能評価等
に極めて有効となる。またこの発明によれば、シフトレ
ジスタへの設定データを変えるだけでスキャンデザイン
方式を用いた論理回路装置の試験も従来通り行える。
[Effects of the Invention] As described in detail above, according to the present invention, among a large number of storage elements in a logic circuit device, a storage element targeted for scan-in or scan-out is arbitrarily set by setting data to a shift register. Since the data of this designated storage element can be externally extracted by using the scan design method, sampling during system operation can be performed efficiently in a short time, and hardware for large-scale logic circuit devices can be used. It is extremely effective for wear debugging, troubleshooting, performance evaluation, etc. Further, according to the present invention, the test of the logic circuit device using the scan design method can be performed as usual by only changing the setting data in the shift register.

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

第1図はこの発明の一実施例に係る論理回路装置の一部
を抜出して示すブロック構成図である。 11……論理回路、12……記憶素子、14……シフトレジス
タ、19……セレクタ、21……システムクロック線、22A,
22B……スキャンクロック線、23A,23B……シフトクロッ
ク線、24A,24B……アンドゲート。
FIG. 1 is a block diagram showing a part of a logic circuit device according to an embodiment of the present invention. 11 …… Logic circuit, 12 …… Memory element, 14 …… Shift register, 19 …… Selector, 21 …… System clock line, 22 A ,
22 B …… Scan clock line, 23 A , 23 B …… Shift clock line, 24 A , 24 B …… AND gate.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】スキャン機能を有しスキャンパスが形成可
能な複数の記憶素子を含む論理回路を備えた論理回路装
置において、 上記各記憶素子に対応してそれぞれ設けられ、対応する
上記記憶素子へのシフトインデータまたは同記憶素子か
らのシフトアウトデータを次段の上記記憶素子に対する
シフトインデータとして選択するセレクタと、外部から
のデータ設定が可能なシリアル入力パラレル出力シフト
レジスタであって、パラレル出力データの各ビットが上
記セレクタに1対1で対応し、対応する上記セレクタの
選択信号として用いられるシフトレジスタと、上記セレ
クタが対応する上記記憶素子へのシフトインデータを次
段の記憶素子に対するシフトインデータとして選択して
いる期間、同記憶素子に上記シフトインデータを設定す
るためのクロック入力を禁止するゲートとを具備し、 上記論理回路の試験時には、全ての上記セレクタが対応
する上記記憶素子からのシフトアウトデータを次段の記
憶素子に対するシフトインデータとして選択するための
データを上記シフトレジスタにセットし、システム動作
中に上記論理回路内の任意の記憶素子の状態をサンプリ
ングする場合には、同記憶素子に対応する上記セレクタ
だけが同記憶素子からのシフトアウトデータを次段の記
憶素子に対するシフトインデータとして選択するための
データを上記シフトレジスタにセットするようにしたこ
とを特徴とする論理回路装置。
1. A logic circuit device comprising a logic circuit including a plurality of storage elements having a scan function and capable of forming a scan path, wherein each of the storage elements is provided in correspondence with each of the storage elements. A selector for selecting the shift-in data or the shift-out data from the same storage element as the shift-in data for the storage element in the next stage, and a serial input parallel output shift register capable of external data setting Each bit of data corresponds to the selector on a one-to-one basis, and a shift register used as a selection signal of the corresponding selector and shift-in data to the storage element corresponding to the selector are shifted to the storage element of the next stage. The above shift-in data is set in the same memory element during the period selected as the in-data. A gate for inhibiting clock input for selecting the shift-out data from the storage elements corresponding to all the selectors as shift-in data for the storage element of the next stage at the time of testing the logic circuit. When data is set in the shift register and the state of any storage element in the logic circuit is sampled during system operation, only the selector corresponding to the storage element outputs the shift-out data from the storage element. A logic circuit device characterized in that data for selecting as shift-in data for a storage element of a next stage is set in the shift register.
JP1021057A 1989-01-31 1989-01-31 Logic circuit device Expired - Lifetime JP2509685B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1021057A JP2509685B2 (en) 1989-01-31 1989-01-31 Logic circuit device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1021057A JP2509685B2 (en) 1989-01-31 1989-01-31 Logic circuit device

Publications (2)

Publication Number Publication Date
JPH02201275A JPH02201275A (en) 1990-08-09
JP2509685B2 true JP2509685B2 (en) 1996-06-26

Family

ID=12044278

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1021057A Expired - Lifetime JP2509685B2 (en) 1989-01-31 1989-01-31 Logic circuit device

Country Status (1)

Country Link
JP (1) JP2509685B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101194336B1 (en) 2007-08-27 2012-10-24 가부시키가이샤 어드밴티스트 Electronic device and diagnosing apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101194336B1 (en) 2007-08-27 2012-10-24 가부시키가이샤 어드밴티스트 Electronic device and diagnosing apparatus

Also Published As

Publication number Publication date
JPH02201275A (en) 1990-08-09

Similar Documents

Publication Publication Date Title
US5602855A (en) Integrated test circuit
US5349587A (en) Multiple clock rate test apparatus for testing digital systems
US5495487A (en) Testing buffer/register
US7203913B2 (en) Semiconductor integrated circuit device, method of testing the same, database for design of the same and method of designing the same
US5084874A (en) Enhanced test circuit
US5056094A (en) Delay fault testing method and apparatus
US7774663B2 (en) Dynamically reconfigurable shared scan-in test architecture
US6611934B2 (en) Boundary scan test cell circuit
US5130647A (en) Scan test circuit and semiconductor integrated circuit device using the same
US5392296A (en) Testing circuit provided in digital logic circuits
KR900002444B1 (en) Semiconductor integrated circuit device
US5077740A (en) Logic circuit having normal input/output data paths disabled when test data is transferred during macrocell testing
US5068881A (en) Scannable register with delay test capability
US5894213A (en) Semiconductor integrated circuit having a plurality of flip-flops
JP2509685B2 (en) Logic circuit device
EP0358371B1 (en) Enhanced test circuit
JPH09243705A (en) Semiconductor logic integrated circuit
US7702979B2 (en) Semiconductor integrated circuit incorporating test configuration and test method for the same
JP2723957B2 (en) Semiconductor integrated circuit device
JP3285173B2 (en) Test circuit for analog-digital hybrid integrated circuit
JPH0389178A (en) Semiconductor integrated circuit
JPS6342485A (en) Multiple-scan test system