JPH047133B2 - - Google Patents

Info

Publication number
JPH047133B2
JPH047133B2 JP60139614A JP13961485A JPH047133B2 JP H047133 B2 JPH047133 B2 JP H047133B2 JP 60139614 A JP60139614 A JP 60139614A JP 13961485 A JP13961485 A JP 13961485A JP H047133 B2 JPH047133 B2 JP H047133B2
Authority
JP
Japan
Prior art keywords
output
flip
test
gate
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
JP60139614A
Other languages
Japanese (ja)
Other versions
JPS61295720A (en
Inventor
Katsunobu Hongo
Daisuke Shichinohe
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 JP60139614A priority Critical patent/JPS61295720A/en
Publication of JPS61295720A publication Critical patent/JPS61295720A/en
Publication of JPH047133B2 publication Critical patent/JPH047133B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、シフトカウンタを用いる論理回路
のテスト回路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a logic circuit test circuit using a shift counter.

〔従来の技術〕[Conventional technology]

第2図は、シフトカウンタおよびその従来のテ
スト回路を示す回路図であり、図において、1は
直列に接続されてシフトレジスタを構成するフリ
ツプフロツプ11〜15と帰還用排他的論理和ゲ
ート16とからなるシフトカウンタ、2はデコー
ダ20〜24からなるデコータブロツク、7はリ
セツト入力端子、8はリセツト入力端子7の入力
とデコーダ20の出力T0との論理和をとるオア
ゲート、Q1〜Q5はフリツプフロツプ11〜15
の出力、20〜24はフリツプフロツプ11〜1
5の出力Q1〜Q5をデコードするデコーダ、T0
T4はデコーダ20〜24のデコード出力、φは
フリツプフロツプ11〜15のクロツクである。
FIG. 2 is a circuit diagram showing a shift counter and its conventional test circuit. In the figure, 1 indicates flip-flops 11 to 15 connected in series to form a shift register and exclusive OR gate 16 for feedback. 2 is a decoder block consisting of decoders 20 to 24, 7 is a reset input terminal, 8 is an OR gate that calculates the logical sum of the input of reset input terminal 7 and the output T 0 of decoder 20, Q 1 to Q 5 is flipflop 11-15
outputs, 20-24 are flip-flops 11-1
A decoder that decodes the outputs Q 1 to Q 5 of 5, T 0 to
T4 is the decoded output of decoders 20-24, and φ is the clock of flip-flops 11-15.

次に動作について説明する。はじめにリセツト
入力端子7の状態を“H”にし、各フリツプフロ
ツプ11〜15をリセツトする。このとき、フリ
ツプフロツプ11〜15の出力Q1〜Q5は“L”、
排他的論理和ゲート16の出力は“H”となつて
いる。
Next, the operation will be explained. First, the state of the reset input terminal 7 is set to "H", and each flip-flop 11-15 is reset. At this time, the outputs Q 1 to Q 5 of flip-flops 11 to 15 are “L”,
The output of the exclusive OR gate 16 is "H".

次に、クロツクφを入力しながらリセツト入力
端子7の状態を“L”にすると、フリツプフロツ
プ11は排他的論理和ゲート16の出力を、フリ
ツプフロツプ12〜15はそれぞれ出力Q1〜Q4
を読み込み、次のクロツクで各々その状態を出力
する。ここで、デコーダ20のデコード出力T0
によるリセツトがかからなければ、シフトカウン
タ1は1クロツクに1ずつカウントアツプしてい
く。Q1〜Q5の“H”および“L”の状態がどの
ように変化してカウントアツプするか、および何
種類のQ1〜Q5の組合せを持つかは、出力Q1〜Q5
と排他的論理和ゲート16の入力端子との接続関
係で決まるが、第2図のシフトカウンタ1の接続
関係では、出力Q1〜Q5の組合せの総数はリセツ
ト状態を除いて31通りである。デコーダ20〜2
4は出力Q1〜Q5の状態をデコードし、設定した
特定の組合せの出力Q1〜Q5の状態に対してデコ
ード出力T0〜T4を“H”にする。デゴード出力
T0によりシフトカウンタ1はリセツトできるの
で、デコーダ20を適当に設定すれば好みの数の
カウンタを実現できる。
Next, when the state of the reset input terminal 7 is set to "L" while inputting the clock φ, the flip-flop 11 outputs the output of the exclusive OR gate 16, and the flip-flops 12 to 15 output the outputs Q 1 to Q 4 respectively.
and outputs its status at the next clock. Here, the decode output T 0 of the decoder 20
If the shift counter 1 is not reset by 1, the shift counter 1 will count up by 1 per clock. How the “H” and “L” states of Q 1 to Q 5 change and count up, and how many combinations of Q 1 to Q 5 there are, are determined by the output Q 1 to Q 5
The total number of combinations of outputs Q 1 to Q 5 is 31, excluding the reset state, depending on the connection relationship between the shift counter 1 and the input terminal of the exclusive OR gate 16. . Decoder 20-2
4 decodes the states of the outputs Q 1 to Q 5 and sets the decoded outputs T 0 to T 4 to “H” for the states of the outputs Q 1 to Q 5 of the set specific combination. degaud output
Since the shift counter 1 can be reset by T0 , by appropriately setting the decoder 20, a desired number of counters can be realized.

デコーダ21〜24のデコード出力T1〜T4
外部回路に接続され、これを制御する。出力T1
〜T4により制御される外部回路のテストは、リ
セツト入力端子7を“H”から“L”にしてシフ
トカウンタ1のカウントをスタートさせ、出力
T1〜T4を順に出させてこれによる外部回路の動
作を調べていく方法でなされる。
Decode outputs T 1 to T 4 of decoders 21 to 24 are connected to an external circuit to control it. Output T 1
To test the external circuit controlled by ~ T4 , reset input terminal 7 is changed from "H" to "L" to start counting of shift counter 1, and the output is
This is done by sequentially outputting T 1 to T 4 and examining the operation of the external circuit.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

従来のシフトカウンタは以上のように構成され
ているので、デコード出力T1〜T4によつて制御
される外部回路のテストを行う場合は、リセツト
入力端子7を“H”から“L”にしてカウントを
スタートさせてデコード出力T1〜T4を一通り出
させ、これによる外部回路の動作を順に連続して
見ていくしかなく、例えばデコード出力T1だけ
による外部回路の動作を見るといつた個々の外部
回路の動作をテストすることができないという問
題点があつた。
Since the conventional shift counter is configured as described above, when testing the external circuit controlled by the decode outputs T1 to T4 , the reset input terminal 7 is changed from "H" to "L". The only way to do this is to start counting and output a set of decode outputs T 1 to T 4 , and to see the operation of the external circuit due to this in sequence. For example, if you look at the operation of the external circuit due to only the decode output T 1 , There was a problem in that it was not possible to test the operation of individual external circuits.

この発明は上記のような問題点を解消するため
になされたもので、デコーダの各デコード出力に
よつて制御される外部回路の動作を別々にテスト
できるテスト回路を得ることを目的とする。
The present invention has been made to solve the above-mentioned problems, and it is an object of the present invention to provide a test circuit that can separately test the operation of external circuits controlled by each decode output of a decoder.

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

この発明に係るテスト回路は、シフトカウンタ
を構成するシフトレジスタの最下位ビツトのフリ
ツプフロツプの入力端に帰還用排他的論理和ゲー
トの出力または外部入力端子からの入力のどちら
かをフリツプフロツプの入力端に入力する切換ゲ
ートを接続し、通常テスト時には帰還用排他的論
理和ゲートの出力を選択し、外からの個別テスト
時には外部入力端子からの入力を選択するように
構成したものである。
The test circuit according to the present invention connects either the output of the feedback exclusive OR gate or the input from the external input terminal to the input terminal of the flip-flop of the least significant bit of the shift register constituting the shift counter. The input switching gates are connected, and the output of the feedback exclusive OR gate is selected during normal testing, and the input from the external input terminal is selected during external individual testing.

〔作用〕[Effect]

この発明におけるテスト回路は、外部からの個
別テスト時には外部入力端子からの入力データを
シフトカウンタを構成するシフトレジスタに順に
入力することにより、このシフトレジスタの状態
を任意に設定し、また、このデコード出力を任意
に設定して出力する。
The test circuit according to the present invention arbitrarily sets the state of the shift register by sequentially inputting input data from the external input terminal to the shift register constituting the shift counter when performing an external individual test, and also performs decoding. Set the output as desired and output.

〔実施例〕〔Example〕

以下、この発明の一実施例を図について説明す
る。第1図において、1,2,7,8,11ない
し15,16および20ないし24は第2図に示
した従来のテスト回路におけるものと同等のもの
である。3は切換制御信号Testにより帰還用排
他的論理和ゲート16の出力またはテスト用設定
データ入力端子4より入力されたデータのどちら
か一方を出力する切換ゲート、4はテスト用設定
データ入力端子、5は切換制御信号Testが“H”
のときにオアゲート8の出力によるフリツプフロ
ツプ11〜15のリセツトを禁止するアンドゲー
トである。
An embodiment of the present invention will be described below with reference to the drawings. In FIG. 1, 1, 2, 7, 8, 11 to 15, 16 and 20 to 24 are equivalent to those in the conventional test circuit shown in FIG. 3 is a switching gate that outputs either the output of the feedback exclusive OR gate 16 or the data input from the test setting data input terminal 4 in accordance with the switching control signal Test; 4 is the test setting data input terminal; 5 When the switching control signal Test is “H”
This is an AND gate that prohibits the reset of flip-flops 11 to 15 by the output of OR gate 8 when .

次に、このように構成された本実施例のテスト
回路の動作について説明する。正常動作時(非テ
スト時)においては切換制御信号Testを“L”
とし、切換ゲート3に排他的論理和ゲート16の
出力を選択させる。この状態ではじめにリセツト
入力端子7を“H”にし、各フリツプフロツプ1
1〜15をリセツトする。次に、クロツクφを入
力しながらリセツト入力端子7を“L”にする
と、シフトカウンタ1は1クロツクに1ずつカウ
ントアツプしていく。デコーダ20〜24は出力
Q1〜Q5の状態をデコードし、設定した特定の組
合せのQ1〜Q5の状態に対してそれぞれデコード
出力T0〜T4を“H”にする。出力T0はシフトカ
ウンタ1をリセツトし、T1〜T4は外部回路に接
続されこれを制御する。以上は従来の回路の動作
と同じである。
Next, the operation of the test circuit of this embodiment configured as described above will be explained. During normal operation (not testing), the switching control signal Test is set to “L”.
and causes the switching gate 3 to select the output of the exclusive OR gate 16. In this state, first reset input terminal 7 is set to "H", and each flip-flop 1
Reset 1 to 15. Next, when the reset input terminal 7 is set to "L" while inputting the clock φ, the shift counter 1 counts up by 1 every clock. Decoders 20 to 24 output
The states of Q 1 to Q 5 are decoded, and the decoded outputs T 0 to T 4 are set to “H” for each set specific combination of states of Q 1 to Q 5 . The output T0 resets the shift counter 1, and T1 to T4 are connected to an external circuit to control it. The above operation is the same as that of the conventional circuit.

外部からの個別テスト時においては切換制御信
号Testを“H”とし、切換ゲート3にテスト用
設定データ入力端子4より入力されるデータを選
択させる。この状態で、クロツクφに同期させて
フリツプフロツプ11〜15の設定データをテス
ト用設定データ入力端子4より入力し、出力Q1
〜Q5を設定する。ここで、デコード出力T1
“H”にするような出力Q1〜Q5の組合せを設定す
れば、デコード出力T1は“H”になり、デコー
ド出力T1によつて制御される外部回路は動作す
る。このようにして順にデコード出力T1〜T4
“H”にしていき、それぞれの信号が制御する外
部回路が正常に動作しているかどうかをひとつひ
とつ個別にテストしていく。
At the time of an external individual test, the switching control signal Test is set to "H" to cause the switching gate 3 to select data input from the test setting data input terminal 4. In this state, the setting data of flip-flops 11 to 15 are input from the test setting data input terminal 4 in synchronization with the clock φ, and the output Q 1
~ Set Q5 . Here, if a combination of outputs Q 1 to Q 5 is set such that the decode output T 1 becomes “H”, the decode output T 1 becomes “H , and the external The circuit works. In this way, the decode outputs T 1 to T 4 are sequentially set to "H", and each of the external circuits controlled by each signal is individually tested to see if they are operating normally.

なお、上記実施例では、外部回路を個別にテス
トする方法について説明したが、例えば、上述の
方法で出力Q1〜Q5を設定した後、切換制御信号
Testを“L”にすることによりシフトカウンタ
1をこの設定値よりスタートできるので、シフト
カウンタ1の初期設定用としても使用できる。
In the above embodiment, a method of testing the external circuits individually was explained, but for example, after setting the outputs Q 1 to Q 5 using the method described above, the switching control signal
Since the shift counter 1 can be started from this set value by setting Test to "L", it can also be used for initial setting of the shift counter 1.

また、上記実施例では外部からの強制リセツト
用のリセツト入力端子7、オアゲート8およびテ
スト時リセツト禁止用のアンドゲート5を接続し
ているが、外部からの強制リセツトやテスト時の
リセツト禁止の必要がなければこれらは設置しな
くてもよい。
Furthermore, in the above embodiment, the reset input terminal 7 for forced reset from the outside, the OR gate 8, and the AND gate 5 for prohibiting reset during testing are connected; If you don't have them, you don't need to install them.

さらに、最終段のフリツプフロツプの出力(上
記実施例ではQ5)に端子を接続しこの出力を測
定できるようにしておけば、切換制御信号Test
を“H”にしておいてテスト用設定データ入力端
子4から入力されたデータが、この最終段のフリ
ツプフロツプの出力に接続された端子より規定の
クロツク数だけ遅れて出力されるかを見ることに
よりフリツプフロツプ自体のテストを行うことが
できる。
Furthermore, if a terminal is connected to the output of the final stage flip-flop (Q 5 in the above example) and this output can be measured, the switching control signal Test
By setting ``H'' to "H" and checking whether the data input from the test setting data input terminal 4 is output with a delay of a specified number of clocks from the terminal connected to the output of this final stage flip-flop. The flip-flop itself can be tested.

〔発明の効果〕〔Effect of the invention〕

以上のように、この発明によればシフトカウン
タを構成する複数のフリツプフロツプの状態を外
部入力端子から入力するデータにより任意に設定
できるように構成したので、これらの状態のデコ
ード出力により制御される外部回路のテストをひ
とつひとつ個別に行うことのできるものが得られ
る。
As described above, according to the present invention, the states of the plurality of flip-flops constituting the shift counter can be arbitrarily set by data input from the external input terminal, so that the external This allows you to test each circuit individually.

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

第1図はこの発明の一実施例によるシフトカウ
ンタ構成のテスト回路の回路図、第2図は従来の
シフトカウンタ構成のテスト回路の回路図であ
る。 1はシフトカウンタ、2はデコーダブロツク、
3は切換ゲート、4はテスト設定データ入力端
子、5はアンドゲート、7はリセツト入力端子、
8はオアゲート、11〜15はフリツプフロツ
プ、16は帰還用排他的論理和ゲート、20〜2
4はデコーダ、Q1〜Q5はフリツプフロツプ11
〜15の出力信号、T0〜T4はデコーダ20〜2
4のデコード出力、Testは切換制御信号、φは
クロツク信号である。なお、図中、同一符号は同
一または相当部分を示す。
FIG. 1 is a circuit diagram of a test circuit having a shift counter configuration according to an embodiment of the present invention, and FIG. 2 is a circuit diagram of a conventional test circuit having a shift counter configuration. 1 is a shift counter, 2 is a decoder block,
3 is a switching gate, 4 is a test setting data input terminal, 5 is an AND gate, 7 is a reset input terminal,
8 is an OR gate, 11 to 15 are flip-flops, 16 is a feedback exclusive OR gate, 20 to 2
4 is a decoder, Q 1 to Q 5 are flip-flops 11
~15 output signals, T0 ~ T4 are decoders 20~2
4 is the decoded output, Test is a switching control signal, and φ is a clock signal. In addition, in the figures, the same reference numerals indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 1 複数のフリツプフロツプを直列に接続したシ
フトレジスタと、これらフリツプフロツプの出力
のうちのいくつかの出力の排他的論理和または反
転をとる論理ゲートとを有し、この論理ゲートの
出力を上記シフトレジスタの初段のフリツプフロ
ツプの入力端に入力する回路構成のシフトカウン
タと、上記シフトレジスタの状態をデコードする
デコーダとを備え、このデコーダによりデコード
したタイミングで動作する外部回路のテストを行
うテスト回路において、上記論理ゲートの出力端
と上記シフトレジスタの初段のフリツプフロツプ
の入力端との間に切換制御信号により上記論理ゲ
ートの出力と外部から入力される入力データとの
いずれか一方を選択して出力する切換回路を設
け、上記切換制御信号により、予め定められた順
序の通常テスト時には上記論理ゲートの出力を、
外部からの個別のテスト時には上記外部から入力
される入力データをそれぞれ選択するようにした
ことを特徴とするテスト回路。
1. It has a shift register in which a plurality of flip-flops are connected in series, and a logic gate that takes the exclusive OR or inversion of some of the outputs of these flip-flops, and the output of this logic gate is sent to the shift register. A test circuit that includes a shift counter having a circuit configuration that is input to the input terminal of the first stage flip-flop, and a decoder that decodes the state of the shift register, and tests an external circuit that operates at the timing decoded by the decoder. A switching circuit is provided between the output terminal of the gate and the input terminal of the flip-flop in the first stage of the shift register, which selects and outputs either the output of the logic gate or the input data input from the outside by a switching control signal. The output of the logic gate is controlled by the switching control signal during normal testing in a predetermined order.
A test circuit characterized in that each of the input data inputted from the outside is selected when performing an individual test from the outside.
JP60139614A 1985-06-24 1985-06-24 Test circuit Granted JPS61295720A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60139614A JPS61295720A (en) 1985-06-24 1985-06-24 Test circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60139614A JPS61295720A (en) 1985-06-24 1985-06-24 Test circuit

Publications (2)

Publication Number Publication Date
JPS61295720A JPS61295720A (en) 1986-12-26
JPH047133B2 true JPH047133B2 (en) 1992-02-10

Family

ID=15249392

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60139614A Granted JPS61295720A (en) 1985-06-24 1985-06-24 Test circuit

Country Status (1)

Country Link
JP (1) JPS61295720A (en)

Also Published As

Publication number Publication date
JPS61295720A (en) 1986-12-26

Similar Documents

Publication Publication Date Title
EP0017091A1 (en) Two-mode-shift register/counter device
JPS63158475A (en) Logical integrated circuit of scan pass system
JPH047133B2 (en)
JPH083514B2 (en) Counter test equipment
JP2000304831A (en) Test circuit
JP3341421B2 (en) Counting circuit
JP3134354B2 (en) Operation mode setting device
SU1624532A1 (en) D flip-flop
JPS61126821A (en) Logic lsi circuit
JPS6077518A (en) Integrated circuit
JP2514989B2 (en) Sequential circuit
JPH09205349A (en) Pulse width selection signal output device
JPH01126572A (en) Test signal generation circuit for lsi
JP2565189B2 (en) Signal processing circuit
JPH0653819A (en) Synchronizing counter
JPH04339416A (en) Counter testing circuit
JPH06148291A (en) Boundary scanning register
JPH02234087A (en) Test circuit for digital logical block
JPS6319571A (en) Integrated circuit
JPS63299410A (en) Frequency division circuit
JPH0690265B2 (en) Test circuit
JPS61284676A (en) Logical value comparison and decision circuit
JPH06342043A (en) Semiconductor integrated circuit device and its test method
JPH07169910A (en) Semiconductor integrated circuit
JPS62271155A (en) Pseudo fault generation circuit