JPH02181516A - Test circuit for counter - Google Patents
Test circuit for counterInfo
- Publication number
- JPH02181516A JPH02181516A JP64000112A JP11289A JPH02181516A JP H02181516 A JPH02181516 A JP H02181516A JP 64000112 A JP64000112 A JP 64000112A JP 11289 A JP11289 A JP 11289A JP H02181516 A JPH02181516 A JP H02181516A
- Authority
- JP
- Japan
- Prior art keywords
- counter
- counters
- circuit
- bit
- test
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Tests Of Electronic Circuits (AREA)
Abstract
Description
【発明の詳細な説明】
[発明の目的]
(産業上の利用分野)
本発明はゲートアレイ内のカウンタの動作をテストする
カウンタのテスト回路に関する。DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a counter test circuit for testing the operation of a counter in a gate array.
(従来の技術)
従来、ゲートアレイ内の例えば4ビツトのカウンタを4
個用いて構成される16ビツトのカウンタ回路の動作テ
ストを行うと、最終段である第4段目のカウンタからキ
ャリィが出力されるのに、2161個分のクロック時間
がかかる。又、上記カウンタ回路に入力した全てのデー
タが反転するのに、215個分のクロック時間が必要で
あった。(Prior art) Conventionally, for example, a 4-bit counter in a gate array is
When performing an operation test of a 16-bit counter circuit constructed using individual counters, it takes 2161 clocks for a carry to be output from the fourth stage counter, which is the final stage. Furthermore, it took 215 clocks to invert all the data input to the counter circuit.
従って、カウンタ回路のビット数が多くなればなるほど
、テスト結果を得るのに必要な時間が指数関数的に増大
し、テストに時間がかかり過ぎるという不都合があった
。Therefore, as the number of bits in the counter circuit increases, the time required to obtain a test result increases exponentially, resulting in the inconvenience that the test takes too much time.
(発明が解決しようとする課題)
従来、ゲートアレイ内のmビットのカウンタを複数個用
いて構成されるnビットのカウンタ回路の動作テストを
行う際に、前記カウンタ回路のビット数が大きくなれば
なる程、テストに時間がかかるという欠点があった。そ
こで、本発明は上記の欠点を除去するもので、ビット数
が大きいカウンタ回路のテスト時間を削減することがで
きるカウンタのテスト回路を提供することを目的として
いる。(Problem to be Solved by the Invention) Conventionally, when performing an operation test of an n-bit counter circuit configured using a plurality of m-bit counters in a gate array, if the number of bits of the counter circuit becomes large, As you can see, the drawback was that testing took a long time. SUMMARY OF THE INVENTION Therefore, an object of the present invention is to provide a counter test circuit that eliminates the above-mentioned drawbacks and can reduce the test time for a counter circuit with a large number of bits.
[発明の構成]
(課題を解決するための手段)
本発明は、mビットのカウンタを複数個用いて構成され
るnビットのカウンタ回路において、前段のカウンタの
カウント終了と共に出力されるキャリィ(“1パ)を次
段のカウンタに入力して次段のカウンタを順次起動する
経路か、又はカウンタを起動する信号を全カウンタに同
時に入力させて全カウンタを一斉に起動させる経路かの
いずれか一方を選択するモード切換手段と、各カウンタ
のカウント終了と共に出力される前記キャリィの論理積
をとる論理処理手段とを具備して成る構成を有している
。[Structure of the Invention] (Means for Solving the Problems) The present invention provides an n-bit counter circuit configured using a plurality of m-bit counters, in which a carry (“ 1) is input to the next stage counter and the next stage counters are activated one after another, or a signal to start the counters is input to all counters at the same time and all counters are activated at once. The present invention has a configuration comprising a mode switching means for selecting a carry, and a logic processing means for calculating a logical product of the carries outputted when each counter finishes counting.
(作用)
本発明のカウンタのテスト回路において、モード切換手
段はカウンタを起動する信号(“1″)を全カウンタに
同時に入力させて全カウンタを一斉に起動させる経路を
選択して、カウンタ回路をテストモードとする。これに
より、カウンタ回路を構成する各カウンタは別途ロード
された初期値を一斉にカウントし、カウント終了と共に
キャリィを論理処理手段に出力する。論理処理手段は各
カウンタのカウント終了と共に出力される前記キャリィ
の論理積をとる。この論理処理手段の処理結果が“1パ
であれば前記カウンタ回路の動作が正常であると判定さ
れる。(Function) In the counter test circuit of the present invention, the mode switching means inputs a signal (“1”) for starting the counters to all counters at the same time, selects a path for starting all the counters at once, and switches the counter circuit. Set to test mode. As a result, each counter constituting the counter circuit simultaneously counts the separately loaded initial value, and upon completion of counting, outputs a carry to the logic processing means. The logic processing means performs a logical product of the carries outputted when each counter finishes counting. If the processing result of this logic processing means is "1 pass", it is determined that the operation of the counter circuit is normal.
(実施例)
以下、本発明の一実施例を図面を参照して説明する。図
は本発明のカウンタのテスト回路の一実施例を示したブ
ロック図である。11〜14は16ビツトのカウンタ回
路を構成する4ビツトのカウンタ、21〜23は上記カ
ウンタ回路を通常モードかテストモードかのいずれかに
切換えるセレクタ、3はカウンタ11〜14から出力さ
れるキャリィ201〜204の論理積をとるアンドゲー
トである。なお、カウンタのテスト回路はセレクタ21
〜23とアンドゲート3が上記16ビツトのカウンタ回
路に接続されることによって構成されている。(Example) Hereinafter, an example of the present invention will be described with reference to the drawings. The figure is a block diagram showing an embodiment of the counter test circuit of the present invention. 11 to 14 are 4-bit counters forming a 16-bit counter circuit; 21 to 23 are selectors for switching the counter circuit to either normal mode or test mode; and 3 is a carry 201 output from the counters 11 to 14. It is an AND gate that performs the logical product of ~204. Note that the test circuit for the counter is the selector 21.
.about.23 and AND gate 3 are connected to the 16-bit counter circuit.
次に本実施例の動作について説明する。カウンタ11〜
14のCK端子にはクロック100が入力され、各カウ
ンタはこのクロック100によってカウント動作する。Next, the operation of this embodiment will be explained. Counter 11~
A clock 100 is input to the 14 CK terminals, and each counter performs a counting operation based on this clock 100.
セレクタ21〜23のSL端子にはモード切換信号50
が入力され、この信号50が通常モードの信号であると
、セレクタ21〜23は端子X側の信号を選択して、こ
れを端子Zからカウンタの12〜14のCI端子に出力
する。各カウンタにデータが図示されないロード信号に
よってロードされ、第1段目のカウンタ11のCI端子
に“1″の起動信号が与えられると、このカウンタ11
が動作を開始する。このカウンタ11がカウントを終了
すると、CO端子からキャリィ201(“1”)を出力
し、このキャリィ20,1がセレクタ21を介して次段
のカウンタ12のCI端子に入力され、これによりカウ
ンタ12が動作を開始し、カウントを終了するとCO端
子からキャリィ202を出力する。このキャリィ202
はセレクタ22を介してカウンタ13のCI端子に入力
され、これによりカウンタ13が動作を開始する。The mode switching signal 50 is connected to the SL terminal of the selectors 21 to 23.
is input and this signal 50 is a normal mode signal, the selectors 21 to 23 select the signal on the terminal X side and output it from the terminal Z to the CI terminals 12 to 14 of the counter. Data is loaded into each counter by a load signal (not shown), and when an activation signal of "1" is given to the CI terminal of the first stage counter 11, this counter 11
starts working. When this counter 11 finishes counting, it outputs a carry 201 (“1”) from the CO terminal, and this carry 20,1 is input to the CI terminal of the next stage counter 12 via the selector 21. starts its operation, and when it finishes counting, it outputs a carry 202 from the CO terminal. This carry 202
is input to the CI terminal of the counter 13 via the selector 22, and the counter 13 starts its operation.
以下同様で、最後に、カウンタ14の動作が開始され、
このカウンタ14の動作が終了すると、CO端子からキ
ャリィ204が出力されて16ビツト全てのデータのカ
ウントが終了し、そのカウント結果が蚤カウンタから出
力された状態となる。その後、各カウンタは図示されな
いクリア信号によってクリアされて、初期状態に戻る。The same goes for the rest, and finally, the operation of the counter 14 is started,
When the operation of the counter 14 is completed, a carry 204 is output from the CO terminal, and counting of all 16 bits of data is completed, and the count result is output from the flea counter. Thereafter, each counter is cleared by a clear signal (not shown) and returns to its initial state.
次にセレクタ21〜23の端子SLに入力されるモード
切換信号50がテストモード信号である場合、セレクタ
21〜23は端子Yに入力される起動信号“1″を選択
して、これを端子Zからカウンタ12〜14のCI端子
に出力するように切り換わる。このような状態で各カウ
ンタに初期値として零のデータがロードされた後、カウ
ンタ11のCI端子に“1″が、セレクタ21〜23の
Y端子に゛1パが印加されると、カウンタ11〜14の
各CI端子に同時に“1パが入力されて、各カウンタは
一斉にカウント動作を開始する。各カウンタは各GK端
子から24−1個分のクロツりが入力された所でカウン
トを終了し、各CO端子からキャリィく“1 ” >
201〜204が一斉にアンド回路3に出力される。従
って、アンド回路3は入力されるキャリィ201〜20
4が全て“1″の場合のみ、その出力を“1″として、
カウンタ回路が正常に動作することを示す。Next, when the mode switching signal 50 input to the terminal SL of the selectors 21 to 23 is a test mode signal, the selectors 21 to 23 select the activation signal "1" input to the terminal Y and send it to the terminal Z. Then, the output is switched to the CI terminals of the counters 12 to 14. After zero data is loaded into each counter as an initial value in this state, when "1" is applied to the CI terminal of the counter 11 and "1" is applied to the Y terminals of the selectors 21 to 23, the counter 11 ~14 CI terminals are simultaneously input with ``1'', and each counter starts counting at the same time. Each counter starts counting when 24-1 clocks are input from each GK terminal. When finished, carry “1” from each CO terminal.
201 to 204 are output to the AND circuit 3 all at once. Therefore, the AND circuit 3 receives the input carries 201 to 20.
Only when all 4 are "1", the output is set as "1",
Indicates that the counter circuit operates normally.
なお、キャリィ201〜204の中の少なくとも1つが
“O″の場合、アンド回路3の出力はO″のままであり
、カウンタ回路の動作が異常であることを示す。即ち、
アンド回路3の出力は15クロツク目までは“O″でカ
ウンタ回路の正常を、“1″であるならばカウンタ回路
の異常を示し、16クロツク目以降で“Optならばカ
ウンタ回路の異常を、“1″であるならばカウンタ回路
の正常を示すことになる。Note that when at least one of the carries 201 to 204 is "O", the output of the AND circuit 3 remains O", indicating that the operation of the counter circuit is abnormal. That is,
The output of the AND circuit 3 is "O" until the 15th clock, indicating that the counter circuit is normal, "1", indicating an abnormality in the counter circuit, and "Opt" from the 16th clock onwards, indicating an abnormality in the counter circuit. If it is "1", it indicates that the counter circuit is normal.
本実施例によれば、16ビツトのカウンタ回路の正常/
異常のテストを24−1個分のクロック時間にて行うこ
とができ、従来に比較してそのテスト時間を大幅に削減
することができる。なお、本発明をmビットカウンタを
1個用にてnビットのカウンタ回路に適用した場合、2
−1個分のクロック時間にて上記テストを行うことがで
き、上記実施例と同様の効果がある。According to this embodiment, the normality/normality of the 16-bit counter circuit
The abnormality test can be performed in 24-1 clock times, and the test time can be significantly reduced compared to the conventional method. Note that when the present invention is applied to an n-bit counter circuit using one m-bit counter, 2
- The above test can be performed in one clock time, and the same effect as in the above embodiment is obtained.
[発明の効果コ
以上記述した如く本発明のカウンタのテスト回路によれ
ば、ビット数が大きいカウンタ回路のテスト時間を削減
することができる。[Effects of the Invention] As described above, according to the counter test circuit of the present invention, the test time for a counter circuit with a large number of bits can be reduced.
図は本発明のカウンタのテスト回路の一実施例を示した
ブロック図である。
’+1.12.13.14・・・カウンタ21.22,
23・・・セレクタ
3・・・アンド回路
代理人 弁理士 則 近 憲 佑
同 山王 −The figure is a block diagram showing an embodiment of the counter test circuit of the present invention. '+1.12.13.14...Counter 21.22,
23... Selector 3... AND circuit agent Patent attorney Nori Chika Ken Yudo Sanno -
Claims (1)
のカウンタ回路において、前段のカウンタのカウント終
了と共に出力されるキャリィ(“1”)を次段のカウン
タに入力して次段のカウンタを順次起動する経路か、又
はカウンタを起動する信号を全カウンタに同時に入力さ
せて全カウンタを一斉に起動させる経路かのいずれか一
方を選択するモード切換手段と、各カウンタのカウント
終了と共に出力される前記キャリィの論理積をとる論理
処理手段とを具備して成ることを特徴とするカウンタの
テスト回路。In an n-bit counter circuit composed of multiple m-bit counters, a carry (“1”) output when the previous stage counter finishes counting is input to the next stage counter, and the next stage counter is sequentially activated. mode switching means for selecting either a path for activating the counters or a path for simultaneously inputting a signal for activating the counters to all counters to activate all the counters at once; 1. A counter test circuit comprising: logical processing means for calculating the AND of carries.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP64000112A JPH02181516A (en) | 1989-01-05 | 1989-01-05 | Test circuit for counter |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP64000112A JPH02181516A (en) | 1989-01-05 | 1989-01-05 | Test circuit for counter |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH02181516A true JPH02181516A (en) | 1990-07-16 |
Family
ID=11464982
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP64000112A Pending JPH02181516A (en) | 1989-01-05 | 1989-01-05 | Test circuit for counter |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH02181516A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH04130824A (en) * | 1990-09-21 | 1992-05-01 | Nec Corp | Counter test circuit |
| JP2006098308A (en) * | 2004-09-30 | 2006-04-13 | Yamaha Corp | Magnetometric device |
| JP2009071929A (en) * | 2007-09-11 | 2009-04-02 | Ricoh Co Ltd | Circuit system and semiconductor device |
-
1989
- 1989-01-05 JP JP64000112A patent/JPH02181516A/en active Pending
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH04130824A (en) * | 1990-09-21 | 1992-05-01 | Nec Corp | Counter test circuit |
| JP2006098308A (en) * | 2004-09-30 | 2006-04-13 | Yamaha Corp | Magnetometric device |
| JP2009071929A (en) * | 2007-09-11 | 2009-04-02 | Ricoh Co Ltd | Circuit system and semiconductor device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0272288B1 (en) | Testable multi-mode counter network and method for operating its test. | |
| JPH10117147A (en) | Data generating circuit for error check | |
| JPH0397038A (en) | Multiplier | |
| JPS63299410A (en) | Frequency division circuit | |
| JPS61133727A (en) | Counter fault separating circuit | |
| US7123679B2 (en) | Counter having improved counting speed | |
| JPH01270413A (en) | Counting circuit | |
| JPH01311500A (en) | Fail bit analyzing system | |
| JP2617591B2 (en) | Serial operation circuit | |
| JPH04292018A (en) | Variable crc generation circuit | |
| JPH10187585A (en) | Electronic circuit configuration for address word discrimination | |
| JPS6113978Y2 (en) | ||
| JPH08186486A (en) | Counter circuit and counter circuit test method | |
| US5651040A (en) | Dynamic division system and method for improving testability of a counter | |
| JPH03280715A (en) | Large scale integrated circuit | |
| JPS60187870A (en) | Semiconductor integrated logical circuit | |
| JPH01109275A (en) | Sequential circuit with test function | |
| SU830390A1 (en) | Device for detecting errors in parallel n-digit code with constant weigth | |
| JP2571372B2 (en) | IC test equipment | |
| JPH0417489B2 (en) | ||
| JPH04339416A (en) | counter test circuit | |
| JPH10290156A (en) | Test circuit for multi-stage counter | |
| JPH0339672A (en) | Semiconductor integrated circuit | |
| JPH0766037B2 (en) | Test circuit | |
| JPH04288695A (en) | Synchronous counter |