JPH02201275A - Logic circuit device - Google Patents

Logic circuit device

Info

Publication number
JPH02201275A
JPH02201275A JP1021057A JP2105789A JPH02201275A JP H02201275 A JPH02201275 A JP H02201275A JP 1021057 A JP1021057 A JP 1021057A JP 2105789 A JP2105789 A JP 2105789A JP H02201275 A JPH02201275 A JP H02201275A
Authority
JP
Japan
Prior art keywords
data
shift
scan
logic circuit
storage element
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.)
Granted
Application number
JP1021057A
Other languages
Japanese (ja)
Other versions
JP2509685B2 (en
Inventor
Hiroshi Akiba
博 秋葉
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
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
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)

Abstract

PURPOSE:To efficiently conduct sampling in the course of a system operation by setting in a shift register the data for selecting shift-out data from a storage element as shift-in data for another storage element of the succeeding stage. CONSTITUTION:A test of a logic circuit 11 is conducted by executing scan-in and scan-out by using all storage elements 12 of said logic circuit 11 according to a scan design system. Besides, an arbitrary one of the storage elements 12 of the logic circuit 11 in the course of a system operation is selected and set as an object of scan, the data in said storage element 12 are taken outside according to the scan design system, and thereby the internal state of any part of the logic circuit 11 in the course of the system operation is monitored. These two basic operations are prepared.

Description

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

(従来の技術) 一般に大規模な論理回路装置においては、特にLSIで
は、装置の試験を行うために、例えば菊池「自動診断機
能を内蔵したCMOSゲートアレイ」、雑誌r電子材料
J 、 19813年7月。
(Prior Art) In general, in large-scale logic circuit devices, especially in LSI, in order to test the device, for example, Kikuchi, "CMOS Gate Array with Built-in Automatic Diagnosis Function," Magazine R Electronic Materials J, 19813, 7. Month.

9.92−97.に記載されているようなスキャンパス
と称される手法が適用される場合がある。このスキャン
パス手法(以下、スキャンデザイン方式と称する)は、
論理回路装置内の記憶素子に対し、外部より任意データ
をセットする機能(スキャンイン)と、そのデータを外
部へ出力する機能(スキャンアウト)とをシフトレジス
タで実現し、任意のデータをスキャンインし、その後ス
キャンアウトして所定の期待値と比較してその論理回路
装置を試験する手法である。スキャンデザイン方式では
、各記憶素子間のスキャンデータの伝達は、全記憶素子
をシリアルに接続して行うか、幾つかのブロックに分け
て、その中をシリアルに接続して行うのが一般的である
9.92-97. In some cases, a method called a scan path as described in . This scan path method (hereinafter referred to as scan design method) is
The function of setting arbitrary data from the outside to the memory element in the logic circuit device (scan-in) and the function of outputting that data to the outside (scan-out) are realized using a shift register, and arbitrary data can be scanned in. This is a method of testing the logic circuit device by scanning it out and comparing it with a predetermined expected value. In the scan design method, scan data is generally transmitted between each memory element by connecting all memory elements serially, or by dividing the blocks into several blocks and connecting them serially. be.

さて、スキャンデザイン方式は、論理回路装置を試験す
るために用いられるのが一般的である。
Now, the scan design method is generally used to test logic circuit devices.

しかし、この方式をシステム動作中に用い、システム動
作中の論理回路装置の状態を監視したりすることも考え
られる。この場合、システムサイクル毎にスキャンイン
、スキャンアウトを繰返しながら記憶素子のデータを外
部でサンプリングするのに用いることになる。
However, it is also conceivable to use this method during system operation to monitor the state of the logic circuit device during system operation. In this case, data in the storage element is sampled externally while repeating scan-in and scan-out every system cycle.

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

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

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

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

(実施例) 第1図はこの発明の一実施例に係る論理回路装置の一部
を抜出して示すブロック構成図である。
(Embodiment) FIG. 1 is a block diagram showing a part of a logic circuit device according to an embodiment of the present invention.

第1図の論理回路装置は例えばゲートアレイであり、1
1は論理回路、12は論理回路11に含まれる記憶素子
、13は論理回路11に含まれる組合せ回路である。記
憶素子12はスキャン機能を持つフリップフロップ(ス
キャン機能付きフリップフロップ)であり、D型フリッ
プフロップと同様にデータ入力端子り、クロック端子C
1正転出力端子Qおよび反転出力端子Qの各端子を有す
る他、スキャン動作時に使用される4つの端子、即ちス
キャン動作時のデータ入力端子(シフトデータ争イン・
ポー1)Sl、スキャン動作時のデータ出力端子(シフ
トデータ・アウト・ボート)SO1記憶素子12のデー
タをシフトするための2相クロツク(スキャンクロック
)が入力されるクロック端子A、Bを有する。この記憶
素子12は、端子A、  Bの各入力が例えば“H”レ
ベル(高レベル)に固定されている状態ではD型フリッ
プフロップとして機能する。また記憶素子12は、端子
Cの入力が例えば“H”レベルに固定されている状態で
は、端子A、Bに入力されるクロックに応じてデータシ
フトを行うスキャン・フリップフロップとして機能する
。即ち記憶素子12においては、端子Cの入力が“Ho
の場合には、端子Aに有効なりロック(ここでは負パル
ス)が入力されると、端子SIに入力されているデータ
が端子Qに出現しく即ちQ−SIとなり)、端子Bに有
効なりロック(ここでは正パルス)が入力されると、端
子Qに出現しているデータが端子SOに現われるように
なっている。記憶素子12の端子りは組合せ回路13の
出力と接続され、同記憶素子12の端子Q、 0は別の
組合せ回路13の入力と接続されている。
The logic circuit device shown in FIG. 1 is, for example, a gate array.
1 is a logic circuit, 12 is a memory element included in the logic circuit 11, and 13 is a combinational circuit included in the logic circuit 11. The memory element 12 is a flip-flop with a scan function (a flip-flop with a scan function), and like a D-type flip-flop, it has a data input terminal and a clock terminal C.
In addition to the normal rotation output terminal Q and the inversion output terminal Q, there are four terminals used during scan operation, namely, a data input terminal during scan operation (shift data input terminal).
Port 1) Sl, data output terminal (shift data out port) during scan operation SO1 has clock terminals A and B to which a two-phase clock (scan clock) for shifting data of the storage element 12 is input. This memory element 12 functions as a D-type flip-flop when each input of terminals A and B is fixed at, for example, an "H" level (high level). Furthermore, when the input to the terminal C is fixed at the "H" level, the memory element 12 functions as a scan flip-flop that shifts data in accordance with the clocks input to the terminals A and B. That is, in the memory element 12, the input to the terminal C is "Ho".
In this case, when a valid lock (in this case a negative pulse) is input to terminal A, the data input to terminal SI appears at terminal Q (that is, it becomes Q-SI), and a valid lock is input to terminal B. (Here, a positive pulse) is input, the data appearing at terminal Q appears at terminal SO. A terminal of the memory element 12 is connected to an output of a combinational circuit 13, and terminals Q and 0 of the memory element 12 are connected to an input of another combinational circuit 13.

14は記憶素子12のうちスキャン対象とする記憶素子
を指定するためのシフトレジスタ、15は記憶素子12
に対応して設けられた記憶素子、16は複数の記憶素子
15を直列多段に接続してシフトレジスタ14を構成す
るためのシリアルチエイン(以下、データバス16と称
する)である。記憶素子15は、データ入力端子Sl、
データ出力端子SO1記憶素子15のデータ、をシフト
するための2相クロツク(シフトクロック)が入力され
るクロック端子A。
14 is a shift register for specifying a memory element to be scanned among the memory elements 12; 15 is a memory element 12;
A memory element 16 provided corresponding to the memory element 16 is a serial chain (hereinafter referred to as data bus 16) for configuring the shift register 14 by connecting a plurality of memory elements 15 in series in multiple stages. The memory element 15 has data input terminals Sl,
Data output terminal SO1 A clock terminal A to which a two-phase clock (shift clock) for shifting the data of the storage element 15 is input.

Bを有する。記憶素子15の端子SOは、データバス1
Bにより次段の記憶素子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の端子Slへの入力データまたは外部
へのスキャンアウトデータとして選択するようになって
いる。
It has B. The terminal SO of the memory element 15 is connected to the data bus 1
It is connected to the terminal SI of the next stage storage element 15 by B. Reference numeral 17 is provided corresponding to the memory element 12 to transfer external scan-in data or output data from the terminal SO of the previous stage (or earlier) memory element 12 to the terminal SI of the corresponding memory element 12. An input data bus 18 is provided corresponding to the storage element 12, and inputs output data from the terminal SO of the corresponding storage element 12 to input data to the terminal SI of the next (or subsequent) storage element 12. An output data bus 19 for transferring scan-out data to the outside is a selector provided corresponding to the memory element 12, similar to the memory element 15 and data buses 17 and 18. The selector 19 selects either the data guided to the terminal SI of the corresponding memory element 12 via the data bus 17 or the data output from the terminal SO of the corresponding memory element 12 to the data bus 18.
Depending on the state of the terminal SO of the corresponding memory element 15, the data is selected as input data to the terminal Sl of the primary stage memory element 12 or as scan-out data to the outside.

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

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

まず、上記第1の動作について説明する。第1の動作を
行う場合、最初に、シフトレジスタ14を構成し、論理
回路11内の各記憶素子15に対応して設けられた全て
の記憶素子12に論理“1”データをセットする。この
データセットは、外部からデータバス1Bに論理“1“
データを与え、この状態でシフトクロック線23^、2
3Bに有効な2相シフトクロツクのそれぞれ一方(Aシ
フトクロック)。
First, the first operation will be explained. When performing the first operation, first, the shift register 14 is configured, and logical "1" data is set in all memory elements 12 provided corresponding to each memory element 15 in the logic circuit 11. This data set is applied to the data bus 1B from the outside as a logic “1”.
data is applied, and in this state shift clock lines 23^, 2
One of the two-phase shift clocks valid for 3B (A shift clock).

他方(Bシフトクロック)を記憶素子15の数だけ繰返
し供給することで(即ちシフトレジスタ14を構成する
記憶素子15の数だけシフト動作させることで)行われ
る。シフトレジスタ14を構成する各記憶素子15に論
理“1”データがセットされると、その端子SOの状態
(So出力)は論理“1”となる。各セレクタ19は、
対応する記憶素子15のSO比出力論理“1”の場合、
対応する記憶素子12のSO比出力選択する。これによ
り、論理回路11内の全記憶素子!2が直列多段接続さ
れたいわゆるスキャンパスが形成される。また、シフト
レジスタ14を構成する記憶素子15のSO比出力論理
“1”となると、対応するアンドゲート24A。
This is performed by repeatedly supplying the other (B shift clock) as many times as the number of storage elements 15 (that is, by performing a shift operation as many as the number of storage elements 15 forming the shift register 14). When logic "1" data is set in each storage element 15 constituting the shift register 14, the state of the terminal SO (So output) becomes logic "1". Each selector 19 is
When the SO ratio output logic of the corresponding memory element 15 is “1”,
The SO ratio output of the corresponding memory element 12 is selected. As a result, all memory elements in the logic circuit 11! 2 are connected in series in multiple stages to form a so-called scan path. Further, when the SO ratio output logic of the storage element 15 constituting the shift register 14 becomes "1", the corresponding AND gate 24A.

24Bが出力可状態となり、スキャンクロック線22A
 、 22Bからのスキャンクロック(Aスキャンクロ
ック、Bスキャンクロック)をそのまま対応する記憶素
子12の端子A、Bに出力する。この状態は、セレクタ
19、アントゲ−)24A 、 24a  (およびシ
フトレジスタ14)を持たない従来のスキャンデザイン
回路の状態と同様であり、その動作については“従来の
技術°の項で既に述べであるため、ここでは省略する。
24B is enabled for output, and the scan clock line 22A
, 22B (A scan clock, B scan clock) are output as they are to the terminals A and B of the corresponding memory element 12. This state is similar to the state of a conventional scan design circuit that does not have the selector 19, analogues 24A, 24a (and shift register 14), and its operation has already been described in the section "Prior art". Therefore, it is omitted here.

次に、上記第2の動作について説明する。第2の動作を
行う場合、最初に、シフトレジスタ14を構成する全記
憶素子15のうち、スキャン対象としようとする論理回
路ll内の記憶素子15に対応する記憶素子12だけに
論理“1”データをセットし、それ以外の記憶素子12
には論理mO°データをセットする。このデータセット
は、外部からデータバス16にシフトレジスタ14内の
各記憶素子15にセットすべきデータの列(シリアルデ
ータ)を順に与え、これに同期してシフトクロック線2
3A。
Next, the second operation will be explained. When performing the second operation, first, among all the memory elements 15 constituting the shift register 14, only the memory element 12 corresponding to the memory element 15 in the logic circuit 11 to be scanned has a logic "1". Set data and other memory elements 12
Set logical mO° data to . This data set is made by sequentially supplying a column of data (serial data) to be set in each storage element 15 in the shift register 14 to the data bus 16 from the outside, and in synchronization with this, the shift clock line 2
3A.

23Bに有効な2相シフトクロツクのそれぞれ一方(A
シフトクロック)、他方(Bシフトクロック)を記憶素
子15の数だけ繰返し供給することで行われる。
Each one of the two-phase shift clocks (A
Shift clock) and the other (B shift clock) are repeatedly supplied as many times as there are memory elements 15.

上記のデータセットにより、論理“1″データがセット
された記憶素子15に対応するセレクタ19は、前記し
た第1の動作と同様に、対応する記憶素子12のSO比
出力選択し、論理°1′データがセットされた記憶素子
15に対応するアンドゲート24A、 24.は出力可
状態となる。これに対して、論理aO”データがセット
された記憶素子15に対応するセレクタ19は、前記し
た第1の動作と異なり、対応する記憶素子12のSI大
入力選択し、論理“0”データがセットされた記憶素子
15に対応するアンドゲート24A 、 24Bは出力
禁止状態となる。この結果、シフトレジスタ14を構成
する全記憶素子15のうち、論理“1″データがセット
された記憶素子15に対応する記憶素子12だけが、実
際のスキャンパスを形成する。また、このスキャンパス
から外された記憶素子12(論理“0”データがセット
された記憶素子15に対応する記憶素子12)において
は、その端子A、Hにスキャンクロック線22A 、 
22Bからのスキャンクロックが入力されることがアン
ドゲート24A、 24Bによって禁止されることから
、(上記のスキャンクロックによってその保持データが
変化することはなく)そのD入力内容で決まる本来のデ
ータが保持される状態となる。
According to the above data set, the selector 19 corresponding to the memory element 15 set with logic "1" data selects the SO ratio output of the corresponding memory element 12 in the same manner as in the first operation described above, and selects the SO ratio output of the corresponding memory element 12, and 'AND gate 24A corresponding to the memory element 15 in which data is set, 24. becomes ready for output. On the other hand, unlike the first operation described above, the selector 19 corresponding to the memory element 15 to which the logic "aO" data is set selects the SI large input of the corresponding memory element 12, and the logic "0" data is set to the selector 19. The AND gates 24A and 24B corresponding to the set memory elements 15 are prohibited from outputting.As a result, among all the memory elements 15 forming the shift register 14, the memory elements 15 to which logic "1" data has been set are disabled. Only the corresponding memory element 12 forms the actual scan path.Furthermore, in the memory element 12 removed from this scan path (the memory element 12 corresponding to the memory element 15 to which logical "0" data is set), , the scan clock line 22A is connected to its terminals A and H,
Since input of the scan clock from 22B is prohibited by AND gates 24A and 24B, the original data determined by the contents of the D input is held (the data held is not changed by the above scan clock). It will be in a state where it is

さて、論理回路11内のスキャン対象としようとする記
憶素子12に対応するシフトレジスタ14内の記憶素子
15に、上記したように選択的に論理“1mデータをセ
ットすると、シフトクロック線23A。
Now, when the logic "1m data is selectively set in the storage element 15 in the shift register 14 corresponding to the storage element 12 to be scanned in the logic circuit 11 as described above, the shift clock line 23A.

23Bに有効な2相シフトクロツクのそれぞれ一方(A
シフトクロック)、他方(Bシフトクロック)を論理“
1mデータがセットされた記憶素子15の数だけ繰返し
供給し、スキャン対象記憶素子12の保持データ(Q出
力データ)をスキャンアウトするための動作を行う。こ
のスキャンアウト動作は、スキャンクロック線22Bに
Bスキャンクロックを与えて、スキャン対象記憶素子1
2のQ出力をSO出力として取出し、次にスキャンクロ
ック線22AにAスキャンクロックを与えて、上記取出
したSO出力をスキャンパス上での次段の記憶素子12
の端子Slから取込み、この次段の記憶素子12の端子
Qに取出す動作を、論理″1″データがセットされた記
憶素子15の数だけ繰返すことにより行われる。そして
、このスキャンアウトの期間に、スキャンパス上の最終
段を成す記憶素子12からのSO出力を順次サンプリン
グすることにより、システム動作中における任意のタイ
ミングでの各スキャン対象記憶素子12のデータ保持状
態を検出することができる。
Each one of the two-phase shift clocks (A
shift clock), and the other (B shift clock) as logic “
1m data is repeatedly supplied as many times as the number of memory elements 15 set, and an operation is performed to scan out the data held in the memory element 12 to be scanned (Q output data). This scan-out operation is performed by applying a B scan clock to the scan clock line 22B to scan the storage element 1 to be scanned.
The Q output of 2 is taken out as the SO output, and then the A scan clock is applied to the scan clock line 22A, and the taken out SO output is sent to the next stage storage element 12 on the scan path.
This operation is performed by repeating the operation of taking in data from the terminal Sl of the memory element 12 and taking it out to the terminal Q of the memory element 12 at the next stage as many times as the number of memory elements 15 in which logic "1" data is set. During this scan-out period, by sequentially sampling the SO output from the memory element 12 forming the final stage on the scan path, the data retention state of each scan target memory element 12 at any timing during system operation is determined. can be detected.

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

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

【図面の簡単な説明】[Brief explanation of the drawing]

第1図はこの発明の一実施例に係る論理回路装置の一部
を抜出して示すブロック構成図である。 If・・・論理回路、12−・・記憶素子、14・・・
シフトレジスタ、19・・・セレクタ、21・・・シス
テムクロック線、22A 、 22B・・・スキャンク
ロック線、23^、23B・・・シフトクロック線、2
4A、 24B・・・アンドゲート。 出願人代理人 弁理士 鈴江武彦
FIG. 1 is a block diagram showing a part of a logic circuit device according to an embodiment of the present invention. If...Logic circuit, 12-...Storage element, 14...
Shift register, 19... Selector, 21... System clock line, 22A, 22B... Scan clock line, 23^, 23B... Shift clock line, 2
4A, 24B...and gate. Applicant's agent Patent attorney Takehiko Suzue

Claims (1)

【特許請求の範囲】 スキャン機能を有しスキャンパスが形成可能な複数の記
憶素子を含む論理回路を備えた論理回路装置において、 上記各記憶素子に対応してそれぞれ設けられ、対応する
上記記憶素子へのシフトインデータまたは同記憶素子か
らのシフトアウトデータを次段の上記記憶素子に対する
シフトインデータとして選択するセレクタと、外部から
のデータ設定が可能なシリアル入力パラレル出力シフト
レジスタであって、パラレル出力データの各ビットが上
記セレクタに1対1で対応し、対応する上記セレクタの
選択信号として用いられるシフトレジスタと、上記セレ
クタが対応する上記記憶素子へのシフトインデータを次
段の記憶素子に対するシフトインデータとして選択して
いる期間、同記憶素子に上記シフトインデータを設定す
るためのクロック入力を禁止するゲートとを具備し、 上記論理回路の試験時には、全ての上記セレクタが対応
する上記記憶素子からのシフトアウトデータを次段の記
憶素子に対するシフトインデータとして選択するための
データを上記シフトレジスタにセットし、システム動作
中に上記論理回路内の任意の記憶素子の状態をサンプリ
ングする場合には、同記憶素子に対応する上記セレクタ
だけが同記憶素子からのシフトアウトデータを次段の記
憶素子に対するシフトインデータとして選択するための
データを上記シフトレジスタにセットするようにしたこ
とを特徴とする論理回路装置。
[Scope of Claims] A logic circuit device including a logic circuit including a plurality of memory elements having a scan function and capable of forming scan paths, wherein each of the memory elements is provided corresponding to each of the memory elements, and the corresponding memory element is provided in correspondence with each of the memory elements. A selector that selects shift-in data to or shift-out data from the same storage element as shift-in data to the next stage of the storage element, and a serial input parallel output shift register that allows data to be set from the outside. Each bit of the output data corresponds to the selector on a one-to-one basis, and the shift register is used as a selection signal for the corresponding selector, and the selector transfers the shift-in data to the corresponding storage element to the next stage storage element. and a gate that prohibits clock input for setting the shift-in data to the memory element during a period selected as shift-in data, and when testing the logic circuit, all of the selectors correspond to the memory. When data for selecting shift-out data from an element as shift-in data for the next stage storage element is set in the shift register, and the state of any storage element in the logic circuit is sampled during system operation. is characterized in that only the selector corresponding to the same memory element sets data for selecting shift-out data from the same memory element as shift-in data for the next stage memory element in the shift register. logic circuit device.
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 true JPH02201275A (en) 1990-08-09
JP2509685B2 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
WO2009028034A1 (en) * 2007-08-27 2009-03-05 Advantest Corporation Electronic device and diagnosing apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009028034A1 (en) * 2007-08-27 2009-03-05 Advantest Corporation Electronic device and diagnosing apparatus
US8150647B2 (en) 2007-08-27 2012-04-03 Advantest Corporation Electric device and diagnostic apparatus
JP5148615B2 (en) * 2007-08-27 2013-02-20 株式会社アドバンテスト Electronic device and diagnostic apparatus

Also Published As

Publication number Publication date
JP2509685B2 (en) 1996-06-26

Similar Documents

Publication Publication Date Title
US4540903A (en) Scannable asynchronous/synchronous CMOS latch
US5602855A (en) Integrated test circuit
US5349587A (en) Multiple clock rate test apparatus for testing digital systems
US5495487A (en) Testing buffer/register
US5130647A (en) Scan test circuit and semiconductor integrated circuit device using the same
US5084874A (en) Enhanced test circuit
US7203913B2 (en) Semiconductor integrated circuit device, method of testing the same, database for design of the same and method of designing the same
US20050278133A1 (en) Integrated test circuit
JPS63182585A (en) Logic circuit equipped with test facilitating function
JP2770617B2 (en) Test circuit
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
US4742293A (en) Pseudo-memory circuit for testing for stuck open faults
US5068881A (en) Scannable register with delay test capability
US5673274A (en) Test method for semiconductor device
KR910000608B1 (en) Semiconductor integrated circuit apparatus
JPH095403A (en) Semiconductor integrated logic circuit
US7213184B2 (en) Testing of modules operating with different characteristics of control signals using scan based techniques
JPH09243705A (en) Semiconductor logic integrated circuit
JP2509685B2 (en) Logic circuit device
EP0358371B1 (en) Enhanced test circuit
JP2003121497A (en) Scan path circuit for logic circuit test and integrated circuit device provided with it
JPH01110274A (en) Test circuit
JP2723957B2 (en) Semiconductor integrated circuit device
JP3275952B2 (en) Test circuits for digital logic circuits