JPS6384318A - Counter circuit - Google Patents

Counter circuit

Info

Publication number
JPS6384318A
JPS6384318A JP61230555A JP23055586A JPS6384318A JP S6384318 A JPS6384318 A JP S6384318A JP 61230555 A JP61230555 A JP 61230555A JP 23055586 A JP23055586 A JP 23055586A JP S6384318 A JPS6384318 A JP S6384318A
Authority
JP
Japan
Prior art keywords
counter
carry signal
circuit
digit
signal
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
Application number
JP61230555A
Other languages
Japanese (ja)
Inventor
Iwao Negishi
根岸 巌
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.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP61230555A priority Critical patent/JPS6384318A/en
Publication of JPS6384318A publication Critical patent/JPS6384318A/en
Pending legal-status Critical Current

Links

Landscapes

  • Tests Of Electronic Circuits (AREA)

Abstract

PURPOSE:To test whether or not all digits are normally counted in a short period by providing a 1st and 2nd control circuits and counting all digits in a test mode. CONSTITUTION:The 1st control circuits 10-12 control the counting actions of counters 1-3 with a test mode setting signal 60 and the carry signals 81-83 received from the lower digit counters. These circuits 10-12 are connected to the counters 1-3 excluding a counter 4 for the lowest digit and consist of exclusive OR gates 10-12, for example. While the counter 4 is connected with a delay circuit 20 which delays the carry signal 83 by one clock and the 2nd control circuit 21 which controls the counting action of the counter 4 with the carry signal delayed by one clock and a setting signal 60. The circuit 21 consists of a NAND gate 21, for example. Thus it is possible to check whether all digits are normally counted or not in a short period.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、カウンタ回路に関し、特に、LSIに組み込
む多桁のカウンタ回路で、その動作が正常に実行されて
いるかの試験方法を改善したカウンタ回路に関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to counter circuits, and in particular, to a multi-digit counter circuit built into an LSI, and a counter with an improved method for testing whether the operation is being executed normally. Regarding circuits.

〔概要〕〔overview〕

本発明は、複数ビットのカウンタを複数個縦続接続して
構成されたカウンタ回路において、試験モード設定信号
により試験モードを設定し、この試験モード時には全て
の桁のカウンタを動作可能とし、例えば最下桁以外のカ
ウンタでは下桁からのキャリ信号が発生したときそのカ
ウント動作を停止させ、キャリ信号の発生を確認し、最
下桁のカウンタでは自カウンタからのキャリ信号を1り
ロツタ遅らせたキャリ信号によりそのカウント動作を停
止させることにより、 短時間で全ての桁のカウント動作が正常に実行されてい
るかを試験できるようにしたものである。
The present invention sets a test mode using a test mode setting signal in a counter circuit configured by cascading a plurality of multi-bit counters, and enables all digit counters to operate in this test mode. For counters other than digits, when a carry signal from the lower digit is generated, the counting operation is stopped and the generation of the carry signal is confirmed, and for the counter at the lowest digit, the carry signal from the own counter is delayed by one increment. By stopping the counting operation, it is possible to test whether the counting operation of all digits is being executed normally in a short period of time.

〔従来の技術〕[Conventional technology]

従来のこの種のカウンタ回路においては、その動作の試
験は、試験モードを設けず、通常のカウント動作を実行
させ、正常に動作しているかを試験するか、または試験
モードを設け、カウンタ回路を分割して各桁ずつ正常に
動作しているかの試験を行っていた。
In conventional counter circuits of this type, their operation can be tested by either not providing a test mode and testing whether the counter circuit is operating normally by performing normal counting operations, or by providing a test mode and testing the counter circuit. They divided it up and tested each digit to see if it was working properly.

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

上述した従来のカウンタ回路における動作試験方法は、
試験モードを設けず、通常のカウント動作を実行させる
のは、カウンタが多桁で構成される場合、例えば、カウ
ンタが4ビツトで1桁接続される場合を考えると、全桁
カウント動作とさせるには24″のクロック入力が必要
となる。従って非常に多くの時間を要する欠点がある。
The operation test method for the conventional counter circuit described above is as follows:
The reason why a normal counting operation is executed without providing a test mode is when a counter is configured with multiple digits, for example, when a counter is connected to one digit by 4 bits, it is necessary to perform a normal counting operation for all digits. requires a 24" clock input. Therefore, it has the disadvantage of requiring a very large amount of time.

また試験モードを設け、分割して各桁ずつ試験する方法
は、分割単位に渡る桁上げのど確認がでない欠点があり
、さらに分割単位ごとに試験モードを再設定しなければ
ならない欠点がある。
In addition, the method of providing a test mode and testing each digit separately has the disadvantage that it is not possible to confirm the carry across the division units, and the test mode must be reset for each division unit.

すなわち、従来のカウンタ回路は多桁になるとその動作
試験が困難になる欠点がある。
That is, conventional counter circuits have the disadvantage that when the number of digits increases, it becomes difficult to test their operation.

本発明の目的は、上記の欠点を除去することにより、動
作試験を簡単かつ正確に行うことのできるカウンタ回路
を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a counter circuit that can easily and accurately perform operational tests by eliminating the above-mentioned drawbacks.

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

本発明は、複数ビットのカウンタを複数個縦続接続して
構成されたカウンタ回路において、上記カウンタ回路の
最下桁のカウンタを除く各カウンタには、試験モード設
定信号と下桁カウンタからのキャリ信号とによりそのカ
ウント動作を制御する第一の制御回路が接続され、上記
カウンタ回路の最下桁のカウンタには、自刃ウンタから
出力されるキャリ信号を1クロック遅らせる遅延回路と
、この1クロツタ遅らせたキャリ信号と上記試験モード
設定信号とによりそのカウント動作を制御する第二の制
御回路とが接続されたことを特徴とする。
The present invention provides a counter circuit configured by cascading a plurality of multi-bit counters, in which each counter except the lowest digit counter receives a test mode setting signal and a carry signal from the lower digit counter. A first control circuit for controlling the counting operation is connected, and the lowest digit of the counter circuit has a delay circuit that delays the carry signal output from the self-blade counter by one clock, and a delay circuit that delays the carry signal output from the self-blade counter by one clock. The present invention is characterized in that it is connected to a second control circuit that controls the counting operation based on the carry signal and the test mode setting signal.

また、第一および第二の制御回路はキャリ信号が入力さ
れたとき接続されたカウンタのカウント動作を停止させ
る構成であることが好ましい。
Preferably, the first and second control circuits are configured to stop the counting operation of the connected counter when the carry signal is input.

〔作用〕[Effect]

第一の制御回路として例えば2人力の排他的オアゲート
を用い、試験モード設定信号と下桁のカウンタからのキ
ャリ信号を接続し、クロ・7り信号により全カウンタを
動作させる。これにより下桁のカウンタからキャリ信号
が発生されるとそカウンタはカウント動作を停止するの
で、最下桁のカウンタ以外のカウンタについて、キャリ
信号が正しく発生されたかどうかを確認できる。そして
、第二の制御回路として例えばナントゲートを用い、上
記試験モード信号と、自カウンタからのキャリ信号を遅
延回路を介して1クロック遅らせたキャリ信号とを接続
する。かくして、最下桁カウンタは他のカウンタよりも
1クロック遅れてカウント動作を停止させるので、全カ
ウンタが同時にカウント動作が停止するのを防止し、カ
ウント動作の連続実行を行わせる。
For example, a two-man exclusive OR gate is used as the first control circuit, the test mode setting signal and the carry signal from the lower digit counter are connected, and all the counters are operated by the cross/7 signal. As a result, when a carry signal is generated from a lower digit counter, that counter stops counting, so it can be confirmed whether the carry signal is correctly generated for counters other than the lowest digit counter. A Nant gate, for example, is used as the second control circuit, and the test mode signal and a carry signal obtained by delaying the carry signal from the own counter by one clock via a delay circuit are connected. In this way, the lowest digit counter stops its counting operation one clock later than the other counters, which prevents all the counters from stopping their counting operations at the same time and allows continuous execution of counting operations.

従って、短時間で全ての桁のカウント動作が正常に実行
されているかを試験することが可能となる。
Therefore, it is possible to test whether the counting operation of all digits is normally executed in a short time.

〔実施例〕〔Example〕

以下、本発明の実施例について図面を参照して説明する
Embodiments of the present invention will be described below with reference to the drawings.

第1図は本発明の一実施例を示す回路図である。FIG. 1 is a circuit diagram showing an embodiment of the present invention.

本実施例は、nビットで構成され縦続接続された4個の
カウンタ1.2.3および4と、それぞれ各カウンタ1
.2および3のカウントイネーブル信号を生成しそのカ
ウントイネーブル入力に入力する2人力の排他的オアゲ
ート10.11および12と、カウンタ4のカウントイ
ネーブル信号を生成しそのカウントイネーブル入力に入
力する2人力のナントゲート21と、カウンタ4のキャ
リ信号83を1クロック遅らせるフリップフロップ20
とを含んでいる。そして、各カウンタ1.2.3および
4にはカウント動作を実行させるクロック信号50が接
続され、排他的オアゲート10.11および12とナン
ドゲート21のそれぞれの一方の入力には試験モード設
定信号60が接続され、カウンタ4から出力されるキャ
リ信号83は排他的オアゲート12の他方の入力に接続
され、カウンタ3から出力されるキャリ信号82は排他
的オアゲート11の他方の入力に接続され、カウンタ2
から出力されるキャリ信号81は排他的オアゲート10
の他方の入力に接続され、カウンタ1からはキャリ信号
80が出力される。さらにカウンタ1.2.3および4
とフリップフロップ20にはそれぞれリセット信号70
が接続され、フリップフロップ20の入力にはカウンタ
4のキャリ信号83が接続され、フリップフロップ20
の出力である1クロツク遅れたキャリ信号84はナント
ゲート21の他方の入力に接続される。なおここでカウ
ンタ1は最上桁、カウンタ4は最下桁のカウンタを構成
する。
This embodiment consists of four counters 1, 2, 3 and 4 which are configured with n bits and are connected in cascade, and each counter 1.
.. two-man exclusive-or gates 10.11 and 12 which generate count enable signals for counter 4 and input them to their count enable inputs; and a two-man power Nantes which generates a count enable signal of counter 4 and inputs them to its count enable inputs. gate 21 and a flip-flop 20 that delays the carry signal 83 of the counter 4 by one clock.
Contains. A clock signal 50 for executing a counting operation is connected to each counter 1.2.3 and 4, and a test mode setting signal 60 is connected to one input of each of exclusive OR gates 10.11 and 12 and NAND gate 21. The carry signal 83 output from the counter 4 is connected to the other input of the exclusive OR gate 12, and the carry signal 82 output from the counter 3 is connected to the other input of the exclusive OR gate 11, and the carry signal 83 output from the counter 4 is connected to the other input of the exclusive OR gate 12.
The carry signal 81 output from the exclusive OR gate 10
The carry signal 80 is output from the counter 1. Additionally counters 1.2.3 and 4
and flip-flop 20 each receive a reset signal 70.
is connected to the input of the flip-flop 20, and the carry signal 83 of the counter 4 is connected to the input of the flip-flop 20.
The output of the carry signal 84 delayed by one clock is connected to the other input of the Nant gate 21. Note that here, counter 1 constitutes the highest digit, and counter 4 constitutes the lowest digit.

本発明の特徴は、第1図において、第一の制御回路とし
ての排他的オアゲー目0.11および12と、遅延回路
としてのフリップフロップ20と、第二の制御回路とし
てのナントゲート21とを設けたことにある。
The feature of the present invention is that, in FIG. 1, exclusive OR gates 0.11 and 12 are used as a first control circuit, a flip-flop 20 is used as a delay circuit, and a Nant gate 21 is used as a second control circuit. This is because it was established.

次に、本実施例の動作について、第2図に示す動作タイ
ミングチャートを参照して説明する。なお第2図におい
てmはnビットのカウンタの最大値を示す。
Next, the operation of this embodiment will be explained with reference to the operation timing chart shown in FIG. Note that in FIG. 2, m indicates the maximum value of an n-bit counter.

始めにリセット信号70が起動されると、カウンタ1.
2.3および4は全て「0」レベルにクリヤされる。次
に試験モード信号60が起動され、クロック信号50が
起動されると、排他的オアゲート10.11および12
の出力は「1」レベルのため、カウンタ1.2および3
はカウントを実行する。またナントゲート21もフリッ
プフロップ20がセントされていないため出力が「1」
レベルとなりカウンタ4も力うント動作を行う。
When reset signal 70 is initially activated, counter 1.
2.3 and 4 are all cleared to the "0" level. Test mode signal 60 is then activated, and when clock signal 50 is activated, exclusive OR gates 10.11 and 12
Since the output of is “1” level, counters 1, 2 and 3
performs a count. Also, since the flip-flop 20 of the Nant gate 21 is not sent, the output is "1".
level, and the counter 4 also performs a power-down operation.

カウントが進みカウント数が最大値(カウンタの出力ビ
ットが全て11」レベル)となると、最下桁のカウンタ
4からはキャリ信号83が発生し、次桁の排他的オアゲ
ートの出力を「0」レベルとする。すると次桁のカウン
タ3はカウント動作が停止されるとともにキャリ信号8
2の出力も抑止される。このためさらに次の桁のカウン
タ2は排他的オアゲートの出力は「1」レベルのためカ
ウント可能となるとともにキャリ信号81を発生する。
When the count progresses and the count reaches the maximum value (all output bits of the counter are at the 11" level), a carry signal 83 is generated from the lowest digit of the counter 4, and the output of the exclusive OR gate of the next digit is set to the "0" level. shall be. Then, the counting operation of the next digit counter 3 is stopped and the carry signal 8 is output.
The output of 2 is also suppressed. Therefore, the counter 2 of the next digit is enabled to count because the output of the exclusive OR gate is at the "1" level, and also generates the carry signal 81.

従ってさらに次の桁である最上桁のカウンターの排他的
オアゲート10の出力は「0」レベルとなりカウンター
のカウント動作は抑止される。
Therefore, the output of the exclusive OR gate 10 of the next highest digit of the counter goes to the "0" level and the counting operation of the counter is inhibited.

以上のように、1桁置きのカウンタが動作可能となる。As described above, the counter every other digit becomes operable.

そして次のクロックにおいては最下桁のカウンタ4は、
1クロツク遅れたキャリ信号84のためにナントゲート
21の出力は「0」レベルとなりカウント動作は抑止さ
れる。また最下桁のカウンタ4の出力は全て「0」レベ
ルなのでキャリ信号83はなく、次桁のカウンタ3はカ
ウント動作を実施しキャリ信号82を発生させる。この
ためさらに次の桁のカウンタ2は排他的オアゲートの出
力が「0」レベルとなりカウント動作は抑止される。
Then, in the next clock, the lowest digit counter 4 is
Because of the carry signal 84 delayed by one clock, the output of the Nant gate 21 goes to the "0" level and the counting operation is inhibited. Further, since the outputs of the counter 4 at the lowest digit are all at the "0" level, there is no carry signal 83, and the counter 3 at the next digit performs a counting operation and generates a carry signal 82. Therefore, in the counter 2 of the next digit, the output of the exclusive OR gate becomes "0" level, and the counting operation is inhibited.

以上のように、次のクロックにおいては1クロツタ前に
動作していたカウンタは動作を停止し、1クロツク前に
動作を停止していたカウンタは動作を実行する。
As described above, at the next clock, the counters that were operating one clock cycle ago stop operating, and the counters that stopped operating one clock cycle ago start operating.

以上説明したように、カウント数が最大値となった2ク
ロツクの後には出力は全て「0」レベルとなり、カウン
トの計数が1周期完了する。
As explained above, after two clocks when the count reaches its maximum value, all the outputs go to the "0" level, and one cycle of counting is completed.

本回路は試験モード設定信号60が起動されていない時
は、最下桁は常にカウント可能であり、その他の桁は下
位桁よりのキャリ信号が発生した時カウント可能となり
、通常のカウント動作状態となる。
In this circuit, when the test mode setting signal 60 is not activated, the lowest digit can always be counted, and the other digits can be counted when a carry signal is generated from the lower digits, and it is not in the normal counting operation state. Become.

なお、上記実施例においては、第一の制御回路として排
他的オアゲート、第二の制御回路としてナントゲートお
よび遅延回路としてフリップフロップを用いたけれども
、これらは回路の論理構成に対応して他の適切な回路を
用いても構成することができる。
In the above embodiment, an exclusive OR gate is used as the first control circuit, a Nants gate is used as the second control circuit, and a flip-flop is used as the delay circuit. It can also be constructed using a similar circuit.

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

以上説明したように、本発明は、カウンタのカウントイ
ネーブル入力に例えば、最下桁はフリッププロップとナ
ントゲート、その他の桁は排他的オアゲートを付加する
だけで、簡単にカウンタの動作を短い時間で正確に試験
できる効果がある。
As explained above, the present invention can easily operate the counter in a short time by simply adding, for example, a flip-flop and a Nant gate to the lowest digit and exclusive OR gates to the other digits to the count enable input of the counter. It has the effect of allowing accurate testing.

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

第1図は本発明の一実施例を示す回路図。 第2図はその動作タイミングチャート。 1〜4・・・カウンタ、10〜12・・・排他的オアゲ
ート、20・・・フリップフロップ、21・・・ナンド
ゲ−1・、50・・・クロック信号、60・・・試験モ
ード設定信号、7o・・・リセット信号、80〜84・
・・キャリ信号。 1ツノ 大振鷺例 革 1 図
FIG. 1 is a circuit diagram showing an embodiment of the present invention. Figure 2 is an operation timing chart. 1 to 4...Counter, 10 to 12...Exclusive OR gate, 20...Flip-flop, 21...Nando game-1, 50...Clock signal, 60...Test mode setting signal, 7o...Reset signal, 80-84.
...Carry signal. 1 Horned Heron Example Leather 1 Diagram

Claims (1)

【特許請求の範囲】[Claims] (1)複数ビットのカウンタ(1〜4)を複数個縦続接
続して構成されたカウンタ回路において、上記カウンタ
回路の最下桁のカウンタ(4)を除く各カウンタ(1〜
3)には、試験モード設定信号(60)と下桁カウンタ
からのキャリ信号(81〜83)とによりそのカウント
動作を制御する第一の制御回路(10〜12)が接続さ
れ、 上記カウンタ回路の最下桁のカウンタ(4)には、自カ
ウンタから出力されるキャリ信号を1クロック遅らせる
遅延回路(20)と、この1クロック遅らせたキャリ信
号(84)と上記試験モード設定信号とによりそのカウ
ント動作を制御する第二の制御回路(21)とが接続さ
れた ことを特徴とするカウンタ回路。
(1) In a counter circuit configured by cascading a plurality of multi-bit counters (1 to 4), each counter (1 to 4) except the lowest digit counter (4) of the above counter circuit
3) is connected to a first control circuit (10 to 12) that controls the counting operation by a test mode setting signal (60) and a carry signal (81 to 83) from the lower digit counter, and the above counter circuit The lowest digit counter (4) has a delay circuit (20) that delays the carry signal output from its own counter by one clock, and the carry signal (84) delayed by one clock and the test mode setting signal. A counter circuit characterized in that it is connected to a second control circuit (21) that controls a counting operation.
JP61230555A 1986-09-29 1986-09-29 Counter circuit Pending JPS6384318A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61230555A JPS6384318A (en) 1986-09-29 1986-09-29 Counter circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61230555A JPS6384318A (en) 1986-09-29 1986-09-29 Counter circuit

Publications (1)

Publication Number Publication Date
JPS6384318A true JPS6384318A (en) 1988-04-14

Family

ID=16909591

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61230555A Pending JPS6384318A (en) 1986-09-29 1986-09-29 Counter circuit

Country Status (1)

Country Link
JP (1) JPS6384318A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4991185A (en) * 1990-01-03 1991-02-05 Sundstrand Corporation Method of testing n-bit programmable counters

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4991185A (en) * 1990-01-03 1991-02-05 Sundstrand Corporation Method of testing n-bit programmable counters

Similar Documents

Publication Publication Date Title
US3992635A (en) N scale counter
US4331926A (en) Programmable frequency divider
JPS6384318A (en) Counter circuit
US6504407B2 (en) Programmable high speed frequency divider
JPH0316429A (en) M bit binary counter and operating method thereof
JPH083514B2 (en) Counter test equipment
JPS5935533B2 (en) Asynchronous numerical control counter
SU1624532A1 (en) D flip-flop
JPS63299410A (en) Frequency division circuit
JPS59111418A (en) Timer circuit
SU834858A2 (en) Staircase voltage generator
JPH0758321B2 (en) Counting circuit test method
SU970377A1 (en) Device for checking comparison circuits
JPS5819621Y2 (en) key identification circuit
JPH03171820A (en) 2n-1 frequency dividing circuit
SU1187171A1 (en) Device for checking n-digit comparison circuits
SU1413632A1 (en) Device for parity check of parallel code
JPH10290156A (en) Test circuit for multi-stage counter
SU930685A1 (en) Counting device
SU842966A1 (en) Storage cell for shift register
JPH0744417A (en) Test circuit for microcomputer
JPS60187870A (en) Semiconductor integrated logical circuit
JPS61146017A (en) Counting circuit
JPS6286914A (en) Edge detecting circuit
JPS62298215A (en) Ring oscillation circuit