JP2002204157A - Counter circuit - Google Patents

Counter circuit

Info

Publication number
JP2002204157A
JP2002204157A JP2000401125A JP2000401125A JP2002204157A JP 2002204157 A JP2002204157 A JP 2002204157A JP 2000401125 A JP2000401125 A JP 2000401125A JP 2000401125 A JP2000401125 A JP 2000401125A JP 2002204157 A JP2002204157 A JP 2002204157A
Authority
JP
Japan
Prior art keywords
value
shift
counter
shift register
count
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.)
Withdrawn
Application number
JP2000401125A
Other languages
Japanese (ja)
Inventor
Akira Suganuma
明 菅沼
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 Engineering Ltd
Original Assignee
NEC Engineering Ltd
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 Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP2000401125A priority Critical patent/JP2002204157A/en
Publication of JP2002204157A publication Critical patent/JP2002204157A/en
Withdrawn legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To solve a problem that in a binary counter, counter operation by a rapid clock is unstable as affected by a delay time caused by operation, thus requiring a large-sized circuit in a shift counter for obtaining a large count value. SOLUTION: A plurality of shift registers 1 to 4 are provided. Passage of count up enable is blocked by a logical product gate 10 by using a value of an uppermost bit of the shift register 1 of the forefront stage as a shift operation enable signal and only at the time of enable, and count up enable is input to a shift register of the next stage. Consequently, since a shift counter of each stage shows each digit of a count value, circuit scale is reduced. Furthermore, since each shift counter just shifts a value in a shift register, a delay time does not matter and rapid operation can be ensured stably.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はカウンタ回路に関
し、特にシフトレジスタを用いたカウンタ回路に関す
る。
The present invention relates to a counter circuit, and more particularly to a counter circuit using a shift register.

【0002】[0002]

【従来の技術】従来、この種のカウンタ回路は一般的に
バイナリ形式で構成されており、例えば図3に示すよう
な回路構成となっている。この従来のバイナリ形式のカ
ウンタ回路(以下「バイナリカウンタ」と称す)は、バ
ッファと排他的論理和とフリップフロップ(以下「F
F」と称す)から構成される回路が縦列に接続されて構
成されている。図においては8ビットのバイナリカウン
タを示している。
2. Description of the Related Art Conventionally, this kind of counter circuit is generally configured in a binary format, for example, as shown in FIG. This conventional binary counter circuit (hereinafter, referred to as a “binary counter”) includes a buffer, an exclusive OR, and a flip-flop (hereinafter, “F
F ”) are connected in cascade. The figure shows an 8-bit binary counter.

【0003】図において左端からカウントアップイネー
ブルが入力されると、FFに格納されている値と当該カ
ウントアップイネーブルの排他的論理和(EXOR)を
行い、その結果をFFに格納する。それと同時に、FF
に格納されていた値はバッファのイネーブル信号とな
り、イネーブル信号が1の時にカウントアップイネーブ
ルを次段に通過させる。各段のFFから出力される値は
8ビットのバイナリ値となり、これがカウンタ回路の出
力となる。
When a count-up enable is input from the left end in the drawing, an exclusive OR (EXOR) of the value stored in the FF and the count-up enable is performed, and the result is stored in the FF. At the same time, FF
Becomes an enable signal of the buffer, and when the enable signal is 1, the count-up enable is passed to the next stage. The value output from each stage FF is an 8-bit binary value, which is the output of the counter circuit.

【0004】また、特開昭60−20638号公報に示
されているようなシフト形式で構成されたカウンタ回路
も知られている。このシフト形式のカウンタ回路(以下
「シフトカウンタ」と称す)は、図4に示すようにFF
が縦列に接続されるシフトレジスタによって構成され、
FFの最上位ビットの出力を最下位ビットに入力すると
ともに、各ビットの出力、つまりシフトレジスタの出力
をエンコーダによってバイナリ値に変換する構成となっ
ている。
[0004] A counter circuit configured in a shift format as disclosed in JP-A-60-20638 is also known. This shift type counter circuit (hereinafter referred to as a “shift counter”) has an FF as shown in FIG.
Are constituted by shift registers connected in cascade,
The output of the most significant bit of the FF is input to the least significant bit, and the output of each bit, that is, the output of the shift register is converted into a binary value by an encoder.

【0005】カウンタ回路がリセットされると、シフト
レジスタには最下位ビットにのみ”1”が、その他のビ
ットには”0”が設定される。その後、カウントアップ
イネーブルが入力されると、クロックタイミングに同期
して順次シフトアップされるようになっている。従っ
て、エンコーダはこの”1”の位置に応じてバイナリ値
に変換している。なお、図5では8ビットのバイナリ値
を得るために、256個のFFが縦列に接続されてい
る。
When the counter circuit is reset, "1" is set to only the least significant bit in the shift register, and "0" is set to the other bits. Thereafter, when a count-up enable is input, the shift-up is sequentially performed in synchronization with the clock timing. Therefore, the encoder converts the value into a binary value according to the position of “1”. In FIG. 5, 256 FFs are connected in cascade to obtain an 8-bit binary value.

【0006】[0006]

【発明が解決しようとする課題】上述したように、カウ
ンタ回路を構成するためにはバイナリカウンタとシフト
カウンタという2種類のカウンタ回路が存在する。
As described above, there are two types of counter circuits, a binary counter and a shift counter, for constructing a counter circuit.

【0007】しかし、バイナリカウンタは回路構成が小
さいので小規模のカウンタを作成することが可能である
が、各ビットの値は、それより下位の全てのビットの論
理積とそのビットの値自身との排他的論理和の演算によ
り得られる。従って、カウントできる値が大きくなると
カウンタのビット長が大きくなるので、上位のビットほ
ど演算量が増し、それに伴い遅延時間が大きくなってし
まう。これにより、高速クロックによりカウンタを動作
させた場合、遅延時間の影響により動作不安定となる問
題点があった。
However, since the binary counter has a small circuit configuration, it is possible to create a small-sized counter. However, the value of each bit is determined by the logical product of all lower bits and the value of the bit itself. Is obtained by an exclusive OR operation of Therefore, as the countable value increases, the bit length of the counter increases, so that the higher-order bits increase the amount of calculation, and the delay time increases accordingly. As a result, when the counter is operated by the high-speed clock, the operation becomes unstable due to the influence of the delay time.

【0008】一方、シフトカウンタはバイナリカウンタ
のような演算を経ることなく動作できるため遅延が問題
とならないが、カウンタのビット長が大きくなるとそれ
に伴い回路が増大し、カウンタが大規模となる問題点が
あった。
On the other hand, the shift counter can operate without going through an operation like a binary counter, so that there is no problem of delay. However, when the bit length of the counter is increased, the circuit is increased and the counter is enlarged. was there.

【0009】そこで本発明は、高速クロックでも安定し
た動作を保証すると共に、回路規模を極力小さくできる
カウンタ回路を提供することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide a counter circuit capable of ensuring stable operation even with a high-speed clock and minimizing the circuit scale.

【0010】更に本発明は、よりフレキシブルなカウン
ト動作を可能とするため、各桁毎に繰り上がり値を任意
に変更することができる変則的なカウンタ回路を提供す
ることを目的とする。
A further object of the present invention is to provide an irregular counter circuit capable of arbitrarily changing a carry value for each digit in order to enable more flexible counting operation.

【0011】[0011]

【課題を解決するための手段】本発明はかかる目的を達
成するために、複数のビットが接続されたシフトレジス
タによって構成されカウントアップイネーブルが入力さ
れると設定された値を順次シフトアップするカウンタ回
路において、前記シフトレジスタを複数個有し、当該シ
フトレジスタの最上位ビットの値をシフト動作イネーブ
ル信号とし、当該シフト動作イネーブル信号がイネーブ
ルの時のみカウントアップイネーブルを次段のシフトレ
ジスタに入力させることとする。
In order to achieve the above object, the present invention provides a counter which is constituted by a shift register to which a plurality of bits are connected, and which sequentially shifts up a set value when a count-up enable is inputted. The circuit has a plurality of the shift registers, uses the value of the most significant bit of the shift register as a shift operation enable signal, and inputs a count-up enable to the next-stage shift register only when the shift operation enable signal is enabled. It shall be.

【0012】この場合、前記シフトレジスタには、任意
のビットに他のビットと異なる値を設定し、より現実的
には最下位ビットのみ1を設定し、リセット信号の入力
により、前記シフトレジスタに値を設定することが望ま
しい。
In this case, an arbitrary bit is set to a different value from the other bits in the shift register. More practically, only the least significant bit is set to 1 and a reset signal is input to the shift register. It is desirable to set a value.

【0013】また、シフト動作イネーブル信号がイネー
ブルの時にカウントアップイネーブルを通過させるバッ
ファを有し、前記シフトレジスタの出力をバイナリ値に
変換するエンコーダを有することとする。
[0013] Further, it is provided that there is provided a buffer for passing the count-up enable when the shift operation enable signal is enabled, and an encoder for converting the output of the shift register into a binary value.

【0014】さらに、より様々な状況に対応すべく、前
記1又は2以上のシフトレジスタと、1又は2以上のバ
イナリカウンタとを混在させることとし、前記シフトレ
ジスタ及び前記バイナリカウンタは、各段毎に任意のビ
ット数を設定可能とすることとする。
Further, in order to cope with various situations, the one or more shift registers and the one or more binary counters are mixed, and the shift register and the binary counter are provided for each stage. Can be set to any number of bits.

【0015】[0015]

【発明の実施の形態】次に本発明の第一の実施の形態に
ついて図を参照して説明する。図1は本発明のカウンタ
回路の構成を示しており、複数のFFから構成され、カ
ウントアップイネーブルの入力により保持している値を
順次シフトアップし、最上位ビットの値を再開ビットに
入力すると共にシフト動作イネーブル信号として出力す
るシフトレジスタ1〜4と、シフトレジスタ1〜4の各
FFの値をコード値として入力し、バイナリ値に変換す
るエンコーダ5〜8と、シフトレジスタ1〜4の最上位
ビットの値、つまりシフト動作イネーブル信号がイネー
ブルである場合にカウントアップイネーブルを次段のシ
フトレジスタに通過させる論理積ゲートであるバッファ
10〜13とから構成される。
Next, a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 shows a configuration of a counter circuit according to the present invention. The counter circuit is composed of a plurality of FFs, and sequentially shifts up a value held by a count-up enable input, and inputs the value of the most significant bit to a restart bit. Shift registers 1 to 4 for output as shift operation enable signals, encoders 5 to 8 for inputting the values of the respective FFs of the shift registers 1 to 4 as code values and converting them into binary values, Buffers 10 to 13 are AND gates for passing the count-up enable to the next-stage shift register when the value of the upper bit, that is, the shift operation enable signal is enabled.

【0016】本実施例では8ビットのシフトカウンタを
4段構成にしている。従って、各段のシフトカウンタか
らは0〜8の値が得られ、これが4段構成になっている
のでカウンタ回路全体で8進法の4桁のカウント値を得
ることができる。つまり、各段のシフトカウンタのビッ
ト数は何進法なのかを意味し、段数は桁数を意味するも
のである。
In this embodiment, the 8-bit shift counter has a four-stage configuration. Therefore, the values of 0 to 8 are obtained from the shift counters of each stage, and the values are formed in four stages, so that the whole counter circuit can obtain a 4-digit count value in the octal system. In other words, the number of bits of the shift counter of each stage means the number system, and the number of stages means the number of digits.

【0017】次に第一の実施例の動作について説明す
る。
Next, the operation of the first embodiment will be described.

【0018】動作を行う前の初期設定として、各シフト
レジスタ1〜4にリセット信号を入力し、シフトレジス
タに設定される値を”10000000”にロードする
(左端が最下位ビット、右端が最上位ビットとする)。
つまり最下位ビットに1が設定され、他のビットは全て
0が設定する。この時、シフトレジスタ1〜4は全て”
10000000”となっているので、エンコーダ5〜
8はこれをコード値として入力し、”000”のバイナ
リ値を出力する。またシフトレジスタ1〜4の出力デー
タ信号の内最上位ビット信号は”0”であるため、バッ
ファ10〜13はイネーブルされず、カウントアップイ
ネーブルはバッファ10〜13を通過できない状態にあ
る。
As an initial setting before the operation is performed, a reset signal is input to each of the shift registers 1 to 4 and a value set in the shift register is loaded into “10000000” (the leftmost bit is the least significant bit, and the rightmost is the most significant bit). Bits).
That is, 1 is set to the least significant bit, and 0 is set to all other bits. At this time, all the shift registers 1 to 4 are "
10000000 ", so encoder 5
8 inputs this as a code value and outputs a binary value of “000”. Since the most significant bit signal of the output data signals of the shift registers 1 to 4 is "0", the buffers 10 to 13 are not enabled, and the count-up enable cannot pass through the buffers 10 to 13.

【0019】カウントアップイネーブルが入力される
と、一定の間隔で到来するクロックに同期して以下に示
すようにシフトレジスタが動作する。
When the count-up enable is input, the shift register operates in synchronism with a clock that arrives at regular intervals as described below.

【0020】1つ目のクロックにより、シフトレジスタ
1は保持している値を後段に1つシフトすると同時に最
上位ビットの値を最下位ビットにフィードバックするの
で”01000000”となる。エンコーダ5はこのシ
フトレジスタ1の値をコード値として入力し、バイナリ
値に変換して”001”を出力する。
With the first clock, the shift register 1 shifts the held value by one to the subsequent stage and at the same time feeds back the value of the most significant bit to the least significant bit, so that it becomes "01000000". The encoder 5 inputs the value of the shift register 1 as a code value, converts the code value into a binary value, and outputs “001”.

【0021】なお、クロック入力前のシフトレジスタ1
〜4の最上位ビットの値は全て”0”、つまりシフト動
作イネーブル信号は”0”となるので、バッファ10〜
13はイネーブルされないためカウントアップイネーブ
ルは次段のシフトカウンタに入力されない。従って、エ
ンコーダ6〜8からは初期状態と同様に”000”のバ
イナリ値が出力される。
Note that the shift register 1 before the clock is input
4 are all "0", that is, the shift operation enable signal is "0".
Since 13 is not enabled, the count-up enable is not input to the next-stage shift counter. Therefore, a binary value of “000” is output from the encoders 6 to 8 as in the initial state.

【0022】よって、カウンタ回路全体のカウンタ値は
8進数の”1”を示す。
Therefore, the counter value of the entire counter circuit indicates "1" in octal.

【0023】次に2つ目のクロックにより、シフトレジ
スタ1は保持している値を後段に1つシフトすると同時
に最上位ビットの値を最下位ビットにフィードバックす
るので”00100000”となる。エンコーダ5はこ
のシフトレジスタ1の値をコード値として入力し、バイ
ナリ値に変換して”010”を出力する。
Next, with the second clock, the shift register 1 shifts the held value by one to the subsequent stage and at the same time feeds back the value of the most significant bit to the least significant bit, so that the value becomes "00100000". The encoder 5 inputs the value of the shift register 1 as a code value, converts the value into a binary value, and outputs "010".

【0024】なお、クロック入力前のシフトレジスタ1
〜4の最上位ビットの値は全て”0”、つまりシフト動
作イネーブル信号は”0”となるので、バッファ10〜
13はイネーブルされないためカウントアップイネーブ
ルは次段のシフトカウンタに入力されない。従って、エ
ンコーダ6〜8からは初期状態と同様に”000”のバ
イナリ値が出力される。
Note that the shift register 1 before the clock is input
4 are all "0", that is, the shift operation enable signal is "0".
Since 13 is not enabled, the count-up enable is not input to the next-stage shift counter. Therefore, a binary value of “000” is output from the encoders 6 to 8 as in the initial state.

【0025】よって、カウンタ回路全体のカウンタ値は
8進数の”2”を示す。
Therefore, the counter value of the entire counter circuit indicates octal "2".

【0026】同様に7クロック目まで動作が繰り返され
ると、シフトレジスタ1には”00000001”とな
る。
Similarly, when the operation is repeated up to the seventh clock, "00000001" is stored in the shift register 1.

【0027】次に8つ目のクロックにより、シフトレジ
スタ1は保持している値を後段に1つシフトすると同時
に最上位ビットの値を最下位ビットにフィードバックす
るので”10000000”となる。エンコーダ5はこ
のシフトレジスタ1の値をコード値として入力し、バイ
ナリ値に変換して”000”を出力する。
Next, by the eighth clock, the shift register 1 shifts the held value by one to the subsequent stage and simultaneously feeds back the value of the most significant bit to the least significant bit, so that the value becomes "10000000". The encoder 5 inputs the value of the shift register 1 as a code value, converts it into a binary value, and outputs "000".

【0028】このとき、クロックが入力される前のシフ
トレジスタ1の最上位ビットの値は”1”、つまりシフ
ト動作イネーブル信号は”1”となるので、バッファ1
0はイネーブルされてカウントアップイネーブルを通過
させて2段目のシフトカウンタに入力することになる。
At this time, the value of the most significant bit of the shift register 1 before the clock is input is "1", that is, the shift operation enable signal is "1".
0 is enabled, passes through the count-up enable, and is input to the second-stage shift counter.

【0029】2段目のシフトカウンタにカウントアップ
イネーブルが入力すると、シフトレジスタ2は保持して
いる値を後段に1つシフトすると同時に最上位ビットの
値を最下位ビットにフィードバックするので”0100
0000”となる。エンコーダ5はこのシフトレジスタ
2の値をコード値として入力し、バイナリ値に変換し
て”001”を出力する。
When the count-up enable is input to the second-stage shift counter, the shift register 2 shifts the held value by one to the subsequent stage and feeds back the value of the most significant bit to the least significant bit.
The encoder 5 inputs the value of the shift register 2 as a code value, converts it into a binary value, and outputs "001".

【0030】なお、クロック入力前のシフトレジスタ2
〜4の最上位ビットの値は全て”0”、つまりシフト動
作イネーブル信号は”0”となるので、バッファ11〜
13はイネーブルされないためにカウントアップイネー
ブルは次段のシフトカウンタに入力されない。従って、
エンコーダ7、8からは初期状態と同様に”000”の
バイナリ値が出力される。
Note that the shift register 2 before the clock is input
4 are all “0”, that is, the shift operation enable signal is “0”.
Since 13 is not enabled, the count-up enable is not input to the next-stage shift counter. Therefore,
A binary value of “000” is output from the encoders 7 and 8 as in the initial state.

【0031】よって、カウンタ回路全体のカウンタ値は
8進数の”10”を示し、桁が一つ上がる。
Therefore, the counter value of the entire counter circuit indicates octal "10", and the digit increases by one.

【0032】同様にカウントアップイネーブルが入力さ
れる間はクロック入力により順次シフト動作が行われ、
1段目のシフトレジスタ1で保持している値が一巡する
と2段目のシフトレジスタ2で保持している値がシフト
アップされるので、クロックが8進数で100回(10
進数で64回)入力すると2段目のシフトレジスタ2で
保持している値が一巡することになり、カウントアップ
イネーブルはバッファ11を通過して3段目のシフトカ
ウンタに入力されることになる。この様にカウントアッ
プ・桁上がりは順次3段目、4段目へと繰り返され、第
一の実施例の構成では8進数で10000をカウント可
能となる。
Similarly, while the count-up enable is input, the shift operation is sequentially performed by the clock input.
When the value held by the first-stage shift register 1 makes one cycle, the value held by the second-stage shift register 2 is shifted up, so that the clock is octal 100 times (10 times).
(64 times in hexadecimal), the value held in the second-stage shift register 2 makes one cycle, and the count-up enable passes through the buffer 11 and is input to the third-stage shift counter. . In this way, the count-up / carry is sequentially repeated to the third and fourth stages, and in the configuration of the first embodiment, 10,000 can be counted in octal.

【0033】ここで、8進数で10000をカウントす
るための最大遅延時間を生じさせる素子を考えてみる
と、バッファ10〜12、及びシフトレジスタ内の8つ
のFFのみ(全てのシフトレジスタではなく一つのシフ
トレジスタのみ)となるので、実用上問題となる遅延を
生じることはない。
Here, considering an element that causes a maximum delay time for counting 10000 in octal, only buffers 10 to 12 and eight FFs in the shift register (one FF instead of all shift registers) Only one shift register), so that there is no practically problematic delay.

【0034】なお、第一の実施例では各段のシフトレジ
スタのビット数は等しくしているが、設計上等の理由に
より桁毎にカウント数を変えたい場合は、適宜シフトレ
ジスタのビット数を変更すれば可能となる。また、第一
の実施例では全ての段をシフトカウンタで構成している
が、設計上等の理由により、適宜段毎にシフトカウンタ
とバイナリカウンタとを混合させることも可能である。
In the first embodiment, the number of bits of the shift register in each stage is equal. However, if it is desired to change the count number for each digit for design reasons or the like, the number of bits of the shift register is appropriately changed. It can be made by changing it. Further, in the first embodiment, all the stages are constituted by shift counters. However, the shift counter and the binary counter can be appropriately mixed for each stage for reasons such as design.

【0035】これらの場合を第二の実施例として図2に
示す。図において、1、3、4段目はシフトカウンタで
あるが、2段目はバイナリカウンタ25である。また、
1、4段目は図1と同様に3ビットのバイナリ値を出力
するシフトカウンタであるが、3段目は2ビットのバイ
ナリ値を出力するシフトカウンタであり、2段目は4ビ
ットのバイナリ値を出力するバイナリカウンタである。
FIG. 2 shows these cases as a second embodiment. In the figure, the first, third and fourth stages are shift counters, while the second stage is a binary counter 25. Also,
The first and fourth stages are shift counters that output a 3-bit binary value as in FIG. 1, but the third stage is a shift counter that outputs a 2-bit binary value, and the second stage is a 4-bit binary value. It is a binary counter that outputs a value.

【0036】従って、1、4段目のシフトカウンタは図
1と同様の構成であるが、3段目のシフトカウンタにお
けるシフトレジスタ15は4ビット構成となっており、
エンコーダ18は4ビットのデータをコード値として入
力して2ビットのバイナリ値を出力する構成となってい
る。
Therefore, the first and fourth stage shift counters have the same configuration as that of FIG. 1, but the shift register 15 in the third stage shift counter has a 4-bit configuration.
The encoder 18 is configured to input 4-bit data as a code value and output a 2-bit binary value.

【0037】なお、2段目のバイナリカウンタは従来技
術で示したバイナリカウンタを4列構成として4ビット
のバイナリ値を出力できるカウンタとなっており、全て
のFFが”1”になると次段のシフトカウンタに桁上が
り信号を出力、つまりバッファ22をイネーブルする構
成となっている。
The second-stage binary counter is a counter which can output a 4-bit binary value by forming the binary counter shown in the prior art into a 4-row configuration. When all FFs become "1", the next-stage binary counter becomes the next stage. The carry signal is output to the shift counter, that is, the buffer 22 is enabled.

【0038】次に動作を説明すると、基本的には図1の
実施例と同様に、カウントアップイネーブル20が入力
されると一定の間隔で到来するクロックに同期して、シ
フトレジスタ14に保持されている値が順次後段にシフ
トされ、エンコーダ17はシフトレジスタ14の値をコ
ード値として入力し、これをバイナリ値に変換して”
1、2・・・7”と順次カウント値を出力する。
Next, the operation will be described. Basically, as in the embodiment of FIG. 1, when the count-up enable 20 is input, the count-up enable 20 is held in the shift register 14 in synchronization with a clock arriving at a fixed interval. Are sequentially shifted to the subsequent stage, and the encoder 17 inputs the value of the shift register 14 as a code value, converts this to a binary value,
1, 2,... 7 "are sequentially output.

【0039】次にシフトレジスタ14からのシフト動作
イネーブル信号が”1”となり、カウントアップイネー
ブルがバッファ21を通過して2段目のバイナリカウン
タ25に入力すると、従来技術で示したように、バッフ
ァと排他的論理和とFFとによって順次バイナリ値がカ
ウントアップされていき、バイナリカウンタ25から
は”1、2・・・F”と順次カウント値が出力されてい
く。本実施例では4ビットのバイナリカウンタによって
構成しているので、このバイナリ値は16進数で表され
た値を表す。
Next, when the shift operation enable signal from the shift register 14 becomes "1" and the count-up enable passes through the buffer 21 and is input to the second-stage binary counter 25, as shown in the prior art, , The exclusive OR and the FF, the binary value is sequentially counted up, and the binary counter 25 sequentially outputs the count value as “1, 2,... F”. In this embodiment, since this embodiment is constituted by a 4-bit binary counter, this binary value represents a value represented by a hexadecimal number.

【0040】このとき、バッファ22,23はイネーブ
ルされていないので、3、4段目のシフトカウンタには
未だカウントアップイネーブルが入力されておらず、そ
れぞれのカウント値は”0”のままである。従って、バ
イナリカウンタ25のカウントが一巡するまでに”0〜
F7”のカウント値が出力される。前述したように2桁
目の”F”は16進数、1桁目の”7”は8進数で表さ
れた値である。
At this time, since the buffers 22 and 23 have not been enabled, the count-up enable has not yet been input to the third and fourth shift counters, and their respective count values remain "0". . Therefore, “0” is set by the time the binary counter 25 makes one cycle.
The count value of F7 "is output. As described above," F "in the second digit is a value expressed in hexadecimal, and" 7 "in the first digit is a value expressed in octal.

【0041】更にバイナリカウンタ25のFFが全て”
1”になるとバッファ22にはシフト動作イネーブル信
号として”1”が入力されるので、カウントアップイネ
ーブルがバッファ22を通過して3段目のシフトカウン
タに入力する。
Furthermore, all the FFs of the binary counter 25 are "
When the value becomes "1", "1" is input to the buffer 22 as a shift operation enable signal. Therefore, the count-up enable passes through the buffer 22 and is input to the third-stage shift counter.

【0042】なお、3段目のシフトカウンタは4ビット
のシフトレジスタ15を用いてカウントし、エンコーダ
18で2ビットのバイナリ値を出力するので、3桁目は
4進数で”0〜3”のカウント値が出力される。
The third-stage shift counter counts using the 4-bit shift register 15 and outputs a 2-bit binary value by the encoder 18. Therefore, the third digit is a quaternary number "0-3". The count value is output.

【0043】この様にカウンタ全体では、”0〜73F
7”のカウント値を出力することができる。なお、4桁
目の”7”は8進数、3桁目の”3”は4進数、2桁目
の”F”は16進数、1桁目の”7”は8進数を表され
た値である。
As described above, in the whole counter, "0 to 73F
A count value of 7 "can be output. Note that the fourth digit" 7 "is an octal number, the third digit" 3 "is a quaternary number, the second digit" F "is a hexadecimal number, and the first digit "7" is a value represented by an octal number.

【0044】[0044]

【発明の効果】以上説明したように、本発明では、シフ
トレジスタを複数構成とし、カウント値の各桁毎にシフ
トレジスタを構成することで、従来のシフトカウンタで
問題となっていた、回路規模の増大が解消され、大きな
カウント値を得たい場合であっても小規模な回路構成で
可能となる。
As described above, according to the present invention, a plurality of shift registers are provided, and a shift register is provided for each digit of the count value. Is eliminated, and even when it is desired to obtain a large count value, it becomes possible with a small-scale circuit configuration.

【0045】また、回路構成が単純で、演算も必要ない
ことから、従来のバイナリカウンタで問題となっていた
遅延時間による高速クロックでの誤動作が防止され、安
定した動作が可能となる。
Further, since the circuit configuration is simple and no operation is required, a malfunction due to a delay time, which is a problem in the conventional binary counter, due to a delay time in a high-speed clock is prevented, and a stable operation is possible.

【0046】更に、本発明によれば、シフトカウンタと
バイナリカウンタを自由に組み合わせることができるの
で、設計上等の理由から、各桁毎にシフトカウンタ、バ
イナリカウンタの特性に応じた選択が可能となる。
Further, according to the present invention, since the shift counter and the binary counter can be freely combined, it is possible to select each digit according to the characteristics of the shift counter and the binary counter for each digit for reasons such as design. Become.

【0047】また各シフトカウンタ及びバイナリカウン
タは、そのビット数を適宜変更することができるので、
設計上等の理由から、各桁毎にカウントしたい値に応じ
た選択が可能となる。
Each shift counter and binary counter can appropriately change the number of bits.
For design reasons or the like, it is possible to make a selection according to the value to be counted for each digit.

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

【図1】本発明にかかる第一の実施例を示した図。FIG. 1 is a diagram showing a first embodiment according to the present invention.

【図2】本発明にかかる第二の実施例を示した図。FIG. 2 is a diagram showing a second embodiment according to the present invention.

【図3】従来のバイナリカウンタを示した図。FIG. 3 is a diagram showing a conventional binary counter.

【図4】従来のシフトカウンタを示した図。FIG. 4 is a diagram showing a conventional shift counter.

【符号の説明】[Explanation of symbols]

1〜4 シフトレジスタ 5〜8 エンコーダ 9 カウントアップイネーブル 10〜13 バッファ 1-4 shift register 5-8 encoder 9 count-up enable 10-13 buffer

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 複数のビットが接続されたシフトレジス
タによって構成されカウントアップイネーブルが入力さ
れると設定された値を順次シフトアップするカウンタ回
路において、 前記シフトレジスタを複数個有し、当該シフトレジスタ
の最上位ビットの値をシフト動作イネーブル信号とし、
当該シフト動作イネーブル信号がイネーブルの時のみカ
ウントアップイネーブルを次段のシフトレジスタに入力
させることを特徴とするカウンタ回路。
1. A counter circuit comprising a shift register to which a plurality of bits are connected and sequentially shifting up a set value when a count-up enable is input, comprising: a plurality of said shift registers; The value of the most significant bit of
A counter circuit wherein a count-up enable is input to a shift register of the next stage only when the shift operation enable signal is enabled.
【請求項2】 前記シフトレジスタには、任意のビット
に他のビットと異なる値を設定することを特徴とする請
求項1記載のカウンタ回路。
2. The counter circuit according to claim 1, wherein an arbitrary bit is set to a value different from other bits in the shift register.
【請求項3】 前記シフトレジスタには、最下位ビット
のみ1を設定することを特徴とする請求項1記載のカウ
ンタ回路。
3. The counter circuit according to claim 1, wherein only the least significant bit is set to 1 in the shift register.
【請求項4】 リセット信号の入力により、前記シフト
レジスタに値を設定することを特徴とする請求項2又は
3に記載のカウンタ回路。
4. The counter circuit according to claim 2, wherein a value is set in the shift register in response to input of a reset signal.
【請求項5】 シフト動作イネーブル信号がイネーブル
の時にカウントアップイネーブルを通過させるバッファ
を有することを特徴とする請求項1〜4の何れか1に記
載のカウンタ回路。
5. The counter circuit according to claim 1, further comprising a buffer for passing the count-up enable when the shift operation enable signal is enabled.
【請求項6】 前記シフトレジスタの出力をバイナリ値
に変換するエンコーダを有することを特徴とする請求項
1〜5の何れか1に記載のカウンタ回路。
6. The counter circuit according to claim 1, further comprising an encoder for converting an output of said shift register into a binary value.
【請求項7】 前記1又は2以上のシフトレジスタと、
1又は2以上のバイナリカウンタとを混在させることを
特徴とする請求項1〜6の何れか1に記載のカウンタ回
路。
7. The one or more shift registers,
7. The counter circuit according to claim 1, wherein one or two or more binary counters are mixed.
【請求項8】 前記シフトレジスタ及び前記バイナリカ
ウンタは、各段毎に任意のビット数を設定可能であるこ
とを特徴とする請求項1〜7の何れか1に記載のカウン
タ回路。
8. The counter circuit according to claim 1, wherein the shift register and the binary counter can set an arbitrary number of bits for each stage.
JP2000401125A 2000-12-28 2000-12-28 Counter circuit Withdrawn JP2002204157A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000401125A JP2002204157A (en) 2000-12-28 2000-12-28 Counter circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000401125A JP2002204157A (en) 2000-12-28 2000-12-28 Counter circuit

Publications (1)

Publication Number Publication Date
JP2002204157A true JP2002204157A (en) 2002-07-19

Family

ID=18865606

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000401125A Withdrawn JP2002204157A (en) 2000-12-28 2000-12-28 Counter circuit

Country Status (1)

Country Link
JP (1) JP2002204157A (en)

Similar Documents

Publication Publication Date Title
US4410960A (en) Sorting circuit for three or more inputs
US6826249B1 (en) High-speed synchronous counters with reduced logic complexity
JPS6352494B2 (en)
JP2002204157A (en) Counter circuit
CN107888166B (en) Multi-phase non-overlapping clock signal generation circuit and corresponding method
US4692640A (en) Majority circuit comprising binary counter
US8165263B2 (en) Counting circuit and address counter using the same
US6091794A (en) Fast synchronous counter
JP2555978B2 (en) Divider circuit
JPH08162946A (en) Counter circuit
JP2020048183A (en) Gray code counter
KR100199187B1 (en) Frame shift sync. circuit of digital transmission system
CN114927156B (en) Shift register method and shift register structure comprising redundant storage unit
US3862401A (en) Multi-phase pulse counter
US10516413B2 (en) Digital-to-time converter and information processing apparatus
JP2001308719A (en) Signal processor
JPH08212794A (en) Shift register
JP2003037504A (en) Device for generating gray code
JPH09147594A (en) Shift register circuit
JP2529902B2 (en) Bit correlation judgment circuit
JPH0683066B2 (en) Counter circuit
JPH0248823A (en) Asynchronous logic counter
JPH0757492A (en) Data shifting circuit
JP3025516B2 (en) Demultiplexer circuit
JPS6061831A (en) Continuous sorting circuit with module structure

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20080304