JP2514989B2 - Sequential circuit - Google Patents

Sequential circuit

Info

Publication number
JP2514989B2
JP2514989B2 JP62290402A JP29040287A JP2514989B2 JP 2514989 B2 JP2514989 B2 JP 2514989B2 JP 62290402 A JP62290402 A JP 62290402A JP 29040287 A JP29040287 A JP 29040287A JP 2514989 B2 JP2514989 B2 JP 2514989B2
Authority
JP
Japan
Prior art keywords
circuit
latch
scan
selector
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 - Fee Related
Application number
JP62290402A
Other languages
Japanese (ja)
Other versions
JPH01131471A (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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP62290402A priority Critical patent/JP2514989B2/en
Publication of JPH01131471A publication Critical patent/JPH01131471A/en
Application granted granted Critical
Publication of JP2514989B2 publication Critical patent/JP2514989B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Tests Of Electronic Circuits (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は順序回路に関し、特に順序回路において論
理回路のスキャンテストを行なうためのスキャンラッチ
回路に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a sequential circuit, and more particularly to a scan latch circuit for performing a scan test of a logic circuit in the sequential circuit.

〔従来の技術〕[Conventional technology]

第3図は従来の順序回路の構成図であり、図におい
て、1はスキャンレジスタ、2は論理回路、3はセレク
タ回路、4a,4bはそれぞれデータラッチを行なうマスタ
ラッチ,スレーブラッチである。
FIG. 3 is a block diagram of a conventional sequential circuit. In the figure, 1 is a scan register, 2 is a logic circuit, 3 is a selector circuit, and 4a and 4b are master latches and slave latches for performing data latching, respectively.

次に動作について説明する。 Next, the operation will be described.

テスト回路として使用しない時、スキャンレジスタ1
は通常のマスタスレーブラッチとして働く。この時セレ
クト信号hによりセレクタ回路3は入力b及び入力dを
選択する。ここで入力b及び入力dはそれぞれ各スキャ
ンレジスタ1前段の論理回路2の出力である。セレクタ
回路3により選択された信号はマスタラッチ4aとスレー
ブラッチ4bにより保持され次段の論理回路へと送られ
る。このときマスタラッチ4aとスレーブラッチ4bとは相
反あるいはノンオーバラップなクロックfとgによって
ゲートされ、論理回路とともに順序回路を構成する。
Scan register 1 when not used as a test circuit
Acts as a normal master-slave latch. At this time, the selector circuit 3 selects the input b or the input d by the select signal h. Here, the input b and the input d are respectively outputs of the logic circuit 2 in the preceding stage of each scan register 1. The signal selected by the selector circuit 3 is held by the master latch 4a and the slave latch 4b and sent to the logic circuit of the next stage. At this time, the master latch 4a and the slave latch 4b are gated by reciprocal or non-overlapping clocks f and g to form a sequential circuit together with a logic circuit.

一方テスト回路として使用する時、スキャンレジスタ
1はシフトレジスタ及び通常のマスタスレーブラッチと
して働く。
On the other hand, when used as a test circuit, the scan register 1 functions as a shift register and a normal master / slave latch.

すなわち、まず論理回路2の入力をセットするために
セレクタ信号hによりセレクタ回路3に入力a及び入力
cを選択させる。入力aは前段のスキャンラッチの出力
あるいは外部入力端子からの信号であり、クロックfと
gによりデータをシリアルに送ることでデータラッチ回
路4a及び4bに所望の値(1または0)をセットする。
That is, first, in order to set the input of the logic circuit 2, the selector circuit 3 is caused to select the input a and the input c by the selector signal h. The input a is the output of the scan latch at the previous stage or a signal from the external input terminal, and the desired value (1 or 0) is set in the data latch circuits 4a and 4b by serially sending data by the clocks f and g.

そして、データラッチ回路4a,4bに所望のデータがセ
ットされた状態でセレクタ選択信号hを切り換え、セレ
クタ回路3に入力b及び入力dを選択させる。この入力
b及び入力dは上述のように各セレクタ回路3前段の論
理回路2の出力であるため、この状態でクロックfとg
を1回だけ入力することにより論理回路の出力がデータ
ラッチ回路4a及び4bにセットされる。ここで再びセレク
タ選択信号hを切り換え、セレクタ回路3を入力a及び
入力c側へ切り換え、クロックfとgによりデータラッ
チにセットされた値をシリアルに端子eへ送る。この端
子eは後段のスキャンレジスタ1の入力あるいは出力端
子である。
Then, while the desired data is set in the data latch circuits 4a and 4b, the selector selection signal h is switched to cause the selector circuit 3 to select the input b and the input d. Since the input b and the input d are the outputs of the logic circuit 2 in the preceding stage of each selector circuit 3 as described above, the clocks f and g in this state.
Is input only once, the output of the logic circuit is set in the data latch circuits 4a and 4b. Here, the selector selection signal h is switched again, the selector circuit 3 is switched to the inputs a and c, and the value set in the data latch by the clocks f and g is serially sent to the terminal e. This terminal e is an input or output terminal of the scan register 1 in the subsequent stage.

従ってセレクタ回路3の制御信号h及びクロックf,g
を切り換えることにより、論理回路への入力データセッ
ト、出力データの取り出しが可能となり、論理回路2の
テストを行なうことができる。なお第5図にこれらの動
作に関係する各信号のタイムチャートが示されている。
Therefore, the control signal h of the selector circuit 3 and the clocks f and g
By switching between, it becomes possible to retrieve the input data set and output data to the logic circuit, and to test the logic circuit 2. Note that FIG. 5 shows a time chart of each signal related to these operations.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

従来の順序回路は以上のように構成されており、論理
回路の入力部及び出力部にマスタスレーブ形のスキャン
レジスタが必要であるため、回路全体の素子数が多くな
ってしまう等の問題点があった。
The conventional sequential circuit is configured as described above, and since a master-slave type scan register is required for the input section and the output section of the logic circuit, there is a problem that the number of elements in the entire circuit increases. there were.

また第4図に示す順序回路では、一部の論理回路2a,2
bの後段にはデータラッチが1つしかなく、このような
構成のものではスキャンテストの際データラッチ回路を
付加しなければならず、素子数が大幅に増大してしまう
という問題点があった。
In the sequential circuit shown in FIG. 4, some of the logic circuits 2a, 2a
There is only one data latch in the subsequent stage of b, and in such a structure, there is a problem that a data latch circuit must be added at the time of the scan test, and the number of elements greatly increases. .

この発明は上記のような問題点を解決するためになさ
れたもので、論理回路の入力部及び出力部にマスタスレ
ーブ形のスキャンレジスタを必要とせず、これにより回
路全体の素子数を低減できる順序回路を得ることを目的
とする。
The present invention has been made to solve the above problems, and does not require a master-slave type scan register in the input section and the output section of a logic circuit, thereby reducing the number of elements in the entire circuit. Aim to get the circuit.

〔問題点を解決するための手段〕[Means for solving problems]

論理回路と、該論理回路のスキャンテストを行なうた
めのスキャンラッチ回路とを交互に接続してなる順序回
路において、スキャンラッチ回路を、その前段の論理回
路の出力あるいはその前段からのシフト信号のいずれか
一方を選択するセレクタ回路と、当該セレクタ回路の選
択出力をラッチする単一のラッチ回路とから構成し、上
記論理回路の入力側に接続された上記スキャンラッチ回
路の単一のラッチ回路は、マスタラッチ回路となるラッ
チ回路,またはスレーブラッチ回路となるラッチ回路の
いずれか一方であり、上記論理回路の出力側に接続され
た上記スキャンラッチ回路の単一のラッチ回路は、マス
タラッチ回路となるラッチ回路,またはスレーブラッチ
回路となるラッチ回路のうちの、上記入力側に接続され
たスキャンラッチ回路の単一のラッチ回路とは異なる一
方であることを特徴とするものである。
In a sequential circuit in which a logic circuit and a scan latch circuit for performing a scan test of the logic circuit are alternately connected, the scan latch circuit is provided with either the output of the logic circuit at the preceding stage or the shift signal from the preceding stage. A single latch circuit of the scan latch circuit, which is composed of a selector circuit that selects one of the two and a single latch circuit that latches the selected output of the selector circuit, and that is connected to the input side of the logic circuit is A single latch circuit of the scan latch circuit connected to the output side of the logic circuit is either a latch circuit to be a master latch circuit or a latch circuit to be a slave latch circuit. , Or of the latch circuit that becomes the slave latch circuit, the scan latch circuit connected to the input side Of a single latch circuit is characterized in that it is a different one.

〔作用〕[Action]

この発明においては、上記構成としたことにより、上
記論理回路の入力側と出力側のスキャンラッチ回路の各
セレクタ回路に独立に入力選択を行わせることにより、
通常時の順序回路動作とテスト時のスキャン動作とを切
り換えることが可能となり、その結果、マスタスレーブ
形のスキャンレジスタを必要とせず、回路全体の素子数
が少なくすることができる。
According to the present invention, by adopting the above configuration, each selector circuit of the input side and output side scan latch circuits of the logic circuit independently performs input selection.
It is possible to switch between the sequential circuit operation at the normal time and the scan operation at the test time. As a result, the master-slave type scan register is not required, and the number of elements of the entire circuit can be reduced.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明する。 An embodiment of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例による順序回路を示し、1a
〜1cはスキャンラッチで、それぞれ入力セレクタ回路3a
〜3cとデータラッチ回路4a〜4cとから構成されている。
2a、2bは該各スキャンラッチ1a,1b間、1b,1c間に挿入さ
れた論理回路である。
FIG. 1 shows a sequential circuit according to an embodiment of the present invention.
1 to 1c are scan latches, each of which is an input selector circuit 3a
.About.3c and data latch circuits 4a to 4c.
Logic circuits 2a and 2b are inserted between the scan latches 1a and 1b and between the scan latches 1b and 1c.

次に動作について説明する。 Next, the operation will be described.

通常時、セレクタ3a及び3bはセレクト選択信号ha及び
hbによりそれぞれ論理回路の出力b,d,jを選択してお
り、この状態でデータラッチ4a〜4cを2相のノンオーバ
ラップなクロックfとgにより制御することにより順序
回路動作を行なう。
Normally, the selectors 3a and 3b have the select selection signals ha and
The outputs b, d, j of the logic circuit are selected by hb, and in this state, the data latches 4a-4c are controlled by the two-phase non-overlapping clocks f and g to perform the sequential circuit operation.

一方テスト時には、上記スキャンラッチ回路は従来の
ものと同様にシフトレジスタ及び通常のデータラッチと
して働く。
On the other hand, during the test, the scan latch circuit functions as a shift register and a normal data latch as in the conventional one.

この動作をまず論理回路2aのテストの場合について説
明する。セレクタ入力選択信号ha及びhbによりセレクタ
回路3a及び3bに信号a,cを選択させることにより、シフ
トレジスタを構成し、この状態でクロックfとgにより
外部からデータをシリアルに送ることでデータラッチ回
路4aに所望の値をセットする。このデータラッチ回路4a
の出力は論理回路2aの入力データとなる。ここでクロッ
クfがLの状態、つまりデータラッチ4aのゲートが開か
ない状態でセレクタ選択信号hbのみを切り換えセレクタ
回路3bに通常時の入力d側を選択させ、この状態でクロ
ックgをHにして、つまりデータラッチ回路4bのゲート
を開けてこれに論理回路2aの出力をラッチさせる。
This operation will be described first in the case of testing the logic circuit 2a. A shift register is formed by selecting the signals a and c to the selector circuits 3a and 3b by the selector input selection signals ha and hb, and in this state, data is serially sent from the outside by the clocks f and g, thereby the data latch circuit. Set the desired value in 4a. This data latch circuit 4a
The output of is the input data of the logic circuit 2a. Here, in the state where the clock f is L, that is, in the state where the gate of the data latch 4a is not opened, only the selector selection signal hb is switched to make the selector circuit 3b select the input d side in the normal state, and the clock g is set to H in this state. That is, the gate of the data latch circuit 4b is opened and the output of the logic circuit 2a is latched.

この後、セレクタ選択信号hbを切り換え、セレクタ回
路3bに入力c側を選択させ再びシフトレジスタを構成す
る。この状態でクロックfとgによりデータをシフトさ
せ論理回路2aの出力を外部に取り出す。
After that, the selector selection signal hb is switched, the selector circuit 3b is made to select the input c side, and the shift register is constructed again. In this state, the data is shifted by the clocks f and g and the output of the logic circuit 2a is taken out.

次に論理回路2bのテストについて説明する。セレクタ
選択信号は論理回路2aのテストの場合と同様にしてシフ
トレジスタを構成しておき、データラッチ回路4bに所望
の値をセットする。ここでクロックgがLの状態でセレ
クタ選択信号haのみを切り換えセレクタ回路3cに通常時
の入力j側を選択させ、この状態でクロックfをHにし
てデータラッチ回路4cに論理回路2bの出力をラッチさせ
る。この後は論理回路2aのテスト時と同様、シフト動作
により論理回路2bの出力を外部に取り出す。なお、第2
図は論理回路2a及び2bのテスト時のタイムチャートを示
している。
Next, the test of the logic circuit 2b will be described. The selector selection signal configures a shift register in the same manner as in the test of the logic circuit 2a, and sets a desired value in the data latch circuit 4b. Here, when the clock g is in the L state, only the selector selection signal ha is switched to cause the selector circuit 3c to select the input j side at the normal time, and in this state, the clock f is set to H to output the output of the logic circuit 2b to the data latch circuit 4c. Make it latch. After this, similarly to the test of the logic circuit 2a, the output of the logic circuit 2b is taken out by the shift operation. The second
The figure shows a time chart when testing the logic circuits 2a and 2b.

このように本実施例ではマスタスレーブ形のスキャン
ラッチの代わりに、そのマスタラッチ及びスレーブラッ
チに対して、それぞれ独立に入力選択用セレクタを設け
たので、素子を有効に利用して素子数を低減することが
できる。
As described above, in the present embodiment, instead of the master-slave type scan latch, the input selectors are provided independently for the master latch and the slave latch. Therefore, the elements are effectively used to reduce the number of elements. be able to.

また、この実施例の順序回路において、従来の順序回
路のようにマスタラッチとスレーブラッチ間に論理回路
が挿入されていない構成にしたい場合には、マスタラッ
チ,スレーブラッチに相当するスキャンラッチ、例えば
データラッチ回路4aと4bの入力セレクタ3a,3bのセレク
タ選択信号を同時に切り換えるようにすればよく、この
場合従来のテスト回路と全く同じ動作をするため、従来
のテスト方法もこの実施例の回路構成で実現できる。
Further, in the sequential circuit of this embodiment, when it is desired to have a configuration in which no logic circuit is inserted between the master latch and the slave latch like the conventional sequential circuit, a scan latch corresponding to the master latch and the slave latch, for example, a data latch. It is only necessary to switch the selector selection signals of the input selectors 3a and 3b of the circuits 4a and 4b at the same time. In this case, since the same operation as the conventional test circuit is performed, the conventional test method is also realized by the circuit configuration of this embodiment. it can.

なお、上記実施例ではマスタラッチ、スレーブラッチ
に相当するスキャンラッチの間に論理回路を挿入した
が、論理回路を挿入しない部分があってもよく、動作に
は何ら影響はない。
Although the logic circuit is inserted between the scan latches corresponding to the master latch and the slave latch in the above-mentioned embodiment, there may be a portion where the logic circuit is not inserted, and the operation is not affected at all.

〔発明の効果〕〔The invention's effect〕

以上のようにこの発明によれば、論理回路の入力側と
出力側のスキャンラッチ回路の各セレクタ回路に独立に
入力選択を行わせることにより、通常時の順序回路動作
とテスト時のスキャン動作を切り換えることができるの
で、マスタースレーブ形のスキャンレジスタを必要とせ
ず、回路全体の素子数が少ない順序回路を得ることがで
きるという効果がある。
As described above, according to the present invention, by making the selector circuits of the scan latch circuits on the input side and the output side of the logic circuit independently perform the input selection, the sequential circuit operation at the normal time and the scan operation at the test time can be performed. Since they can be switched, there is an effect that a master-slave type scan register is not required and a sequential circuit having a small number of elements in the entire circuit can be obtained.

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

第1図はこの発明の一実施例による順序回路を示すブロ
ック構成図、第2図は該順序回路の論理回路テスト時の
動作を説明するためのフローチャート図、第3図は従来
の順序回路を示すブロック構成図、第4図は従来の他の
順序回路を示すブロック構成図、第5図は第3図に示す
順序回路の論理回路テスト時の動作を説明するためのフ
ローチャート図である。 1a〜1c……スキャンラッチ回路、2a,2b……論理回路、3
a〜3c……セレクタ、4a〜4c……データラッチ、ha,hb…
…セレクター選択信号。 なお、図中同一符号は同一又は相当部分を示す。
FIG. 1 is a block diagram showing a sequential circuit according to an embodiment of the present invention, FIG. 2 is a flow chart for explaining the operation of the sequential circuit during a logic circuit test, and FIG. 3 is a conventional sequential circuit. FIG. 4 is a block diagram showing the configuration of another conventional sequential circuit, and FIG. 5 is a flow chart for explaining the operation of the sequential circuit shown in FIG. 3 during a logic circuit test. 1a to 1c …… scan latch circuit, 2a, 2b …… logic circuit, 3
a-3c …… Selector, 4a-4c …… Data latch, ha, hb…
… Selector selection signal. The same reference numerals in the drawings indicate the same or corresponding parts.

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】論理回路と、該論理回路のスキャンテスト
を行なうためのスキャンラッチ回路とを交互に接続して
なる順序回路において、 スキャンラッチ回路を、その前段の論理回路の出力ある
いはその前段からのシフト信号のいずれか一方を選択す
るセレクタ回路と、当該セレクタ回路の選択出力をラッ
チする単一のラッチ回路とから構成し、 上記論理回路の入力側に接続された上記スキャンラッチ
回路の単一のラッチ回路は、マスタラッチ回路となるラ
ッチ回路,またはスレーブラッチ回路となるラッチ回路
のいずれか一方であり、 上記論理回路の出力側に接続された上記スキャンラッチ
回路の単一のラッチ回路は、マスタラッチ回路となるラ
ッチ回路,またはスレーブラッチ回路となるラッチ回路
のうちの、上記入力側に接続されたスキャンラッチ回路
の単一のラッチ回路とは異なる一方であることを特徴と
する順序回路。
1. In a sequential circuit in which a logic circuit and a scan latch circuit for performing a scan test of the logic circuit are alternately connected, the scan latch circuit is provided from the output of the logic circuit at the preceding stage or from the preceding stage. A selector circuit that selects one of the shift signals and a single latch circuit that latches the selected output of the selector circuit, and a single latch circuit of the scan latch circuit connected to the input side of the logic circuit. Of the scan latch circuit connected to the output side of the logic circuit is a master latch circuit. Of the latch circuit to be the circuit or the latch circuit to be the slave latch circuit, which is connected to the input side. Sequential circuit, characterized in that it is a different one than the single latch circuit Yanratchi circuit.
【請求項2】上記論理回路の入力側と出力側のスキャン
ラッチ回路は、そのセレクタ回路の選択制御信号がそれ
ぞれ独立に制御されるものであることを特徴とする特許
請求の範囲第1項記載の順序回路。
2. The selection control signals of the selector circuits of the scan latch circuits on the input side and the output side of the logic circuit are controlled independently of each other. Sequential circuit.
JP62290402A 1987-11-16 1987-11-16 Sequential circuit Expired - Fee Related JP2514989B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62290402A JP2514989B2 (en) 1987-11-16 1987-11-16 Sequential circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62290402A JP2514989B2 (en) 1987-11-16 1987-11-16 Sequential circuit

Publications (2)

Publication Number Publication Date
JPH01131471A JPH01131471A (en) 1989-05-24
JP2514989B2 true JP2514989B2 (en) 1996-07-10

Family

ID=17755547

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62290402A Expired - Fee Related JP2514989B2 (en) 1987-11-16 1987-11-16 Sequential circuit

Country Status (1)

Country Link
JP (1) JP2514989B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2643028B2 (en) * 1989-12-22 1997-08-20 松下電器産業株式会社 Semiconductor integrated circuit, light emitting element, and semiconductor integrated circuit test apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60171545A (en) * 1984-02-17 1985-09-05 Nec Corp Logical integrated circuit
JPS6295476A (en) * 1985-10-22 1987-05-01 Mitsubishi Electric Corp Test circuit
JPS62135781A (en) * 1985-12-09 1987-06-18 Mitsubishi Electric Corp Testing circuit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60171545A (en) * 1984-02-17 1985-09-05 Nec Corp Logical integrated circuit
JPS6295476A (en) * 1985-10-22 1987-05-01 Mitsubishi Electric Corp Test circuit
JPS62135781A (en) * 1985-12-09 1987-06-18 Mitsubishi Electric Corp Testing circuit

Also Published As

Publication number Publication date
JPH01131471A (en) 1989-05-24

Similar Documents

Publication Publication Date Title
US4995039A (en) Circuit for transparent scan path testing of integrated circuit devices
JPS63263480A (en) Semiconductor integrated logic circuit
JP2946658B2 (en) Flip-flop circuit
JPH0715302A (en) Variable delay buffer circuit
JP2638281B2 (en) Scan path circuit
JPH0511027A (en) Integrated circuit with built-in scan circuit
JP2514989B2 (en) Sequential circuit
US4910734A (en) Intergrated circuit having testing function circuit and control circuit therefor
JP3251748B2 (en) Semiconductor integrated circuit
JPH05134007A (en) Semiconductor integrated logic circuit
JPH06324113A (en) Semiconductor integrated circuit
JPH03181098A (en) Flip-flop circuit
JP3341421B2 (en) Counting circuit
JPS6319571A (en) Integrated circuit
JPH0690265B2 (en) Test circuit
JPH06148290A (en) Boundary scanning register
JP2967765B2 (en) Boundary scan circuit
JPH0514138A (en) Latch circuit with temporary latch function
JPH02234087A (en) Test circuit for digital logical block
JPH02193083A (en) Scan test circuit for logic circuit
JPH0653819A (en) Synchronizing counter
JPH06176593A (en) Shift register
JPH06152350A (en) Selecting circuit
JPS63205582A (en) Lsi testing circuit
JPH05281303A (en) Semiconductor integrated circuit

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees