JPH02172320A - Counter circuit - Google Patents

Counter circuit

Info

Publication number
JPH02172320A
JPH02172320A JP32718688A JP32718688A JPH02172320A JP H02172320 A JPH02172320 A JP H02172320A JP 32718688 A JP32718688 A JP 32718688A JP 32718688 A JP32718688 A JP 32718688A JP H02172320 A JPH02172320 A JP H02172320A
Authority
JP
Japan
Prior art keywords
output
circuit
prescribed
random signal
state
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
JP32718688A
Other languages
Japanese (ja)
Inventor
Akira Fukuda
晃 福田
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.)
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Electric Industries 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 Sumitomo Electric Industries Ltd filed Critical Sumitomo Electric Industries Ltd
Priority to JP32718688A priority Critical patent/JPH02172320A/en
Publication of JPH02172320A publication Critical patent/JPH02172320A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To simplify the constitution and to attain high speed operation by applying logic arithmetic operation based on the output of a prescribed data flip-flop of a pseudo random signal generating circuit using plural data flip-flops and an exclusive OR circuit. CONSTITUTION:A pseudo random signal generating circuit 100 generating a prescribed primitive polynomial using plural data flip-flops (D-F/F) 1-5 and an exclusive OR circuit 6 and a logic arithmetic gate 7 applying the logic arithmetic operation based on an output of a prescribed D-F/F of the pseudo random signal generating circuit 100 are provided. The D-F/F 1-5 causes the state as specified corresponding to the arrival of the clock but it is not a sequential advance by a binary number. However, each one state appears in response to the arrival clock number, the output of the prescribed F/F of the D-F/F 1-5 is extracted by the logical arithmetic gate 7 so as to detect the state and an output representing the completion of the prescribed number is obtained. Thus, the part of the logic arithmetic gate is simplified and high speed operation is attained.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は所要数をカウントするカウンタ回路に関するも
のである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a counter circuit for counting a required number.

〔従来の技術〕[Conventional technology]

従来、カウンタ回路を構成する場合、データフリップフ
ロップ(以下、D−F/Fという。)によって2進数で
所定の値まで連続的にそれぞれのD−F/Fの状態で表
現できるよう、複数のDF/Fと論理演算ケートを用い
て接続を行う手法が採られていた。
Conventionally, when configuring a counter circuit, a plurality of data flip-flops (hereinafter referred to as DF/F) are used to continuously represent the state of each DF/F up to a predetermined value in binary numbers. A method was adopted in which connections were made using DF/F and logical operation gates.

例えば、16進カウンタは第4図に示されるように、4
個のD−FF31〜34と、排他的論理和回路35〜3
7と、アンドゲート38,39とから構成される。この
16進カウンタでは、クロック信号線40にクロックを
0〜16個与えると、出力端子0UT41 〜414の
信号は、次の表1のように変化する。即ち、D−FF3
1〜34が16通りの状態変化を生じるときに、その出
力が2進数で0〜15までを表現していることになる。
For example, the hexadecimal counter is 4 as shown in FIG.
D-FFs 31 to 34 and exclusive OR circuits 35 to 3
7 and AND gates 38 and 39. In this hexadecimal counter, when 0 to 16 clocks are applied to the clock signal line 40, the signals at the output terminals 0UT41 to 414 change as shown in Table 1 below. That is, D-FF3
When 1 to 34 cause 16 state changes, the output represents 0 to 15 in binary.

表  1 〔発明が解決しようとする課題〕 しかしながら、このような従来のカウンタ回路では、各
])−F/Fの状態で2進数によりカウント値を表現す
るよう構成するため、論理演算ゲトの数が、−数的に(
2n−1,)進のカウンタ回路を実現するためには(2
n−3)個必要となり、構成が複雑となる問題点が生し
ていた。更に、アンドゲートへの入力信号線も(2n−
1)進のカウンタ回路においては(n−1)本となり、
大きな数をカウントするカウンタ回路はど高速動作を保
証し1!−)なくなる問題点があった。
Table 1 [Problems to be Solved by the Invention] However, in such a conventional counter circuit, since the count value is expressed by a binary number in each ])-F/F state, the number of logical operation gates is large. is -numerically (
In order to realize a 2n-1,) base counter circuit, (2
n-3) pieces are required, resulting in a problem that the configuration is complicated. Furthermore, the input signal line to the AND gate is also (2n-
1) In a base counter circuit, there are (n-1) pieces,
A counter circuit that counts large numbers guarantees high-speed operation.1! -) There was a problem that would disappear.

そこで本発明では、構成を簡素化し得るとともに、大き
な数をカウントする場合でも高速動作を保証し得るカウ
ンタ回路を提供することを目的とする。
SUMMARY OF THE INVENTION Therefore, it is an object of the present invention to provide a counter circuit that can simplify the configuration and ensure high-speed operation even when counting large numbers.

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

本発明に係るカウンタ回路は、複数のデータフリップフ
ロップと排他的論理和回路とを用いて所定の原始多項式
により実現される擬似ランダム信号発生回路と、この擬
似ランダム信号発生回路の所定のデータフリップフロッ
プの出力に基づいて論理演算を行う論理演算ケ−1・と
か備えられていることを特徴とする。
A counter circuit according to the present invention includes a pseudo-random signal generation circuit realized by a predetermined primitive polynomial using a plurality of data flip-flops and an exclusive OR circuit, and a predetermined data flip-flop of the pseudo-random signal generation circuit. It is characterized in that it is equipped with a logical operation key 1 for performing logical operations based on the output of the .

〔作用〕[Effect]

本発明に係るカウンタ回路は、以上の通りに構成される
ので、擬似ランダム信号発生回路か複数のll−F/F
と排他的論理和回路とから構成されて、これらのD−F
/Fがクロックの到来に対応して所定通りの状態を現出
する。ただし、この所定通りの状態は2進数による順次
の歩進ではない。
Since the counter circuit according to the present invention is configured as described above, the counter circuit includes a pseudo random signal generating circuit or a plurality of ll-F/Fs.
and an exclusive OR circuit, these D-F
/F manifests a predetermined state in response to the arrival of the clock. However, this predetermined state is not a sequential step by binary number.

しかし、到来するクロック数に応じてそれぞれ1通りの
状態を現用するから、この状態を検出するように論理演
算ゲートで所定のD’−F/Fの出力を取り出す構成と
すると、本発明のカウンタ回路はカウントの途中に各D
−F/Fがどのような状態となっているかとは無関係に
、所定のD−F/Fが上記状態となったときに所定数を
カウントしたことを示す出力を得ることができる。
However, since one state is currently used depending on the number of clocks that arrive, if a logic operation gate is configured to take out the output of a predetermined D'-F/F to detect this state, the counter of the present invention The circuit performs each D during counting.
- Regardless of what state the F/F is in, it is possible to obtain an output indicating that a predetermined number has been counted when a predetermined D-F/F is in the above state.

〔実施例〕〔Example〕

以下、添付図面の第1図、第2図を参照して本発明の一
実施例を説明する。
Hereinafter, one embodiment of the present invention will be described with reference to FIGS. 1 and 2 of the accompanying drawings.

第1図は本発明の一実施例に係る16進のカウンタ回路
を示す。擬似ランダム信号発生回路100はI)−F/
Fl〜5と排他的論理和回路(EX−OR)6で構成さ
れている。D−F/F3とD−F/F5との出力がEX
−OR6の入力端子へ与えられ、EX□OR6の出力が
1)−F/FlのD端子へ与えられている。D−F/F
 l〜5は縦続接続されている。このように、本実施例
の擬似ランダム信号発生回路100は原始多項式1+X
24−X4により実現されるものである。
FIG. 1 shows a hexadecimal counter circuit according to an embodiment of the present invention. The pseudo random signal generation circuit 100 is I)-F/
It is composed of Fl-5 and an exclusive OR circuit (EX-OR) 6. The output of D-F/F3 and D-F/F5 is EX
It is applied to the input terminal of -OR6, and the output of EX□OR6 is applied to the D terminal of 1)-F/Fl. D-F/F
1 to 5 are connected in cascade. In this way, the pseudo-random signal generation circuit 100 of this embodiment uses the primitive polynomial 1+X
24-X4.

D−F/Fl、D−F/F2.I)−F/、F4の出力
は、負論理の信号(L)に対して論理積演算を行う3人
力のアンドゲート7へ与えられ、アンドゲート7の出力
がH(正論理の信号)となるとき「]5」のクロックか
到来したことが検出される。
D-F/Fl, D-F/F2. I) -F/, the output of F4 is given to a three-man AND gate 7 that performs an AND operation on the negative logic signal (L), and the output of the AND gate 7 becomes H (positive logic signal). When this happens, it is detected that the clock "]5" has arrived.

つまり1,16進のカウンタ回路となっている。In other words, it is a hexadecimal counter circuit.

このカウンタ回路では、測定(カウント)を開始する前
に、D−F/F1〜5のプリセット端子PRへ第2図(
a)に示すようなHレベルからLレベルへ遷移するプリ
セット信号を与えて、D−F/F 1〜5に「1」をセ
ットしておく。次に、クロック端子CKに第2図(b)
に示すようにクロックが到来すると、クロック数に応じ
て擬似ランダム信号発生回路1.00のI)−F/Fl
〜5は表2のように状態を変化させる。
In this counter circuit, before starting measurement (counting), the preset terminals PR of DF/F1 to 5 are connected to the preset terminals shown in FIG.
A preset signal that transitions from H level to L level as shown in a) is given, and DF/Fs 1 to 5 are set to "1". Next, connect the clock terminal CK to the clock terminal CK as shown in Fig. 2(b).
As shown in FIG.
~5 changes the state as shown in Table 2.

表  2 上記においてクロック数が115」となったとき、D−
F/F1.、D−F/F2.D−F/F4かrOJ =
Lレベルとなるため、アンドゲート7の出力がはじめて
Hレベルとなり、16進カウンタを実現する(第2図(
C))。この状態で更にカウントしてゆくと、表2から
明らかなように、カウント数が「20」て再びアンドゲ
ート7からHレベルの信号か圧力されることになるが、
これを防止するため「15」の次にプリセット信号で1
)−F/Fl〜5に「1」をセツトシ、再びクロック数
「0」へ戻して動作を開始するようにする(第2図(a
))。このようにして、本実施例ではカウントの途中に
おける各D−F/F1〜5の値はともかく、クロックか
「15」到来したことを検1]1するカウンタ回路を実
現できる。
Table 2 In the above, when the clock number is 115'', D-
F/F1. , D-F/F2. DF/F4 or rOJ =
Since it goes to L level, the output of AND gate 7 goes to H level for the first time, realizing a hexadecimal counter (see Figure 2).
C)). If the count is continued in this state, as is clear from Table 2, the count will reach "20" and an H level signal will be applied again from the AND gate 7.
In order to prevent this, the preset signal is set to 1 after "15".
) - Set "1" in F/Fl~5, return the clock number to "0" and start operation (see Figure 2 (a)
)). In this way, in this embodiment, it is possible to realize a counter circuit that detects the arrival of clock "15" regardless of the values of each of DF/F1 to 5 during counting.

本発明においては、擬似ランダム信号発生回路を実現す
るための原始多項式を、例えば表3のようにする。
In the present invention, the primitive polynomials for realizing the pseudorandom signal generation circuit are as shown in Table 3, for example.

表  3 そして、一般にn次の原始多項式により実現される擬似
ランダム信号発生回路は(2n−1−)個のクロックで
元の状態に戻り、各クロック数に応じて(2n−1)の
状態を現出する。例えば、上記の2次多項式1 +x、
 + x 2により、第3図に示されるEX−OR44
を有する擬似ランダム信号発生回路が実現されるか、そ
れぞれのD−F/F4]〜43は到来するクロックの数
に対応して表4に示すような変化をする。
Table 3 In general, a pseudorandom signal generation circuit realized by an n-th order primitive polynomial returns to the original state with (2n-1-) clocks, and changes to the (2n-1) state depending on the number of clocks. appear. For example, the above quadratic polynomial 1 +x,
+ x 2, EX-OR44 shown in FIG.
If a pseudo-random signal generation circuit having the following is realized, each of the D-F/F4] to 43 changes as shown in Table 4 in response to the number of arriving clocks.

] O そこで、カウンタ回路を実現する場合、得たいカウント
値に対応して必要なり−F/Fから出力を取り出し、所
定の論理演算ゲートへ導けばよい。
] O Therefore, when realizing a counter circuit, it is sufficient to take out the output from the necessary F/F corresponding to the desired count value and guide it to a predetermined logic operation gate.

例えば、第3図の擬似ランダム信号発生回路を用いて7
進のカウンタ回路を実現するときには、D−F/F41
.I>F/F42の出力を2人力のアントゲートに導き
、アントゲ−1・の出力がHレベルとなることを検出す
るようにすればよい。
For example, using the pseudo-random signal generation circuit shown in FIG.
When realizing a digital counter circuit, D-F/F41
.. The output of the I>F/F 42 may be led to a two-man powered ant gate, and it may be detected that the output of the ant gate 1 becomes H level.

本発明は上記の実施例に限定されるものではなく、種々
の変形が可能である。
The present invention is not limited to the above embodiments, and various modifications are possible.

例えば、原始多項式は上記に例示のもの以外の式を用い
てもよい。また、論理演算ゲートはアントゲ−1・に限
らないことはいうまでもない。要は、n次の原始多項式
により実現される擬似ランダム信号発生回路は(2°−
1)通りの状態を持つから、このうちの1つの状態を論
理演算ゲートで捕えるようにするならば、必要なカウン
タ回路を実現できるのであり、この状態を捕えるために
全てのD−F/Fの圧力を検出する必要はないから、従
来より論理演算ゲートの構成を簡素化できる。
For example, as the primitive polynomial, expressions other than those exemplified above may be used. Furthermore, it goes without saying that the logic operation gate is not limited to Antogame 1. In short, the pseudo-random signal generation circuit realized by the n-th order primitive polynomial is (2°-
1) Since there are several states, if one of these states is captured by a logic operation gate, the necessary counter circuit can be realized, and in order to capture this state, all D-F/F Since it is not necessary to detect the pressure of

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

以」二、詳細に説明したように本発明によれば、擬似ラ
ンダム信号発生回路がn次の原始多項式に(2°−1)
通りの状態を現出するから、このうちの1つの状態を論
理演算ケートて検出する構成により論理演算ケ−1・の
部分を簡素化できる。また、大きな数をカウントする場
合にも、全てのブタフリップフロップの出力を用いる必
要がないので、高速動作を保証することが可能になる。
2. As described in detail, according to the present invention, the pseudo-random signal generation circuit generates a primitive polynomial of order n (2°-1).
Since the following states are expressed, the logical operation part can be simplified by detecting one of these states by performing a logical operation. Furthermore, even when counting large numbers, it is not necessary to use the outputs of all pig flip-flops, so high-speed operation can be guaranteed.

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

第1図は、本発明の一実施例に係るカウンタ回路の構成
図、第2図は、本発明の一実施例に係るカウンタ回路の
動作を説明するためのタイミングチャート、第3図は、
擬似ランダム信号発生回路の構成図、第4図は、従来の
カウンタ回路の構成図である。 1 ] ] 2 1〜5.41〜43・・・D EX−OR,7・・・アントゲ F/F、  6. 44 ・・ ト、100・・・擬似ラ ンダム信号発生回路。 特許出願人  住友電気工業株式会社
FIG. 1 is a block diagram of a counter circuit according to an embodiment of the present invention, FIG. 2 is a timing chart for explaining the operation of the counter circuit according to an embodiment of the present invention, and FIG.
FIG. 4 is a block diagram of a pseudo-random signal generation circuit, and is a block diagram of a conventional counter circuit. 1 ] ] 2 1-5. 41-43...D EX-OR, 7... Antoge F/F, 6. 44..., 100...pseudo random signal generation circuit. Patent applicant: Sumitomo Electric Industries, Ltd.

Claims (1)

【特許請求の範囲】  複数のデータフリップフロップと排他的論理和回路と
を用いて所定の原始多項式により実現される擬似ランダ
ム信号発生回路と、 この擬似ランダム信号発生回路の所定のデータフリップ
フロップの出力に基づいて論理演算を行う論理演算ゲー
トとを備えたカウンタ回路。
[Claims] A pseudo-random signal generation circuit realized by a predetermined primitive polynomial using a plurality of data flip-flops and an exclusive OR circuit, and an output of a predetermined data flip-flop of this pseudo-random signal generation circuit. A counter circuit comprising a logic operation gate that performs logic operations based on.
JP32718688A 1988-12-24 1988-12-24 Counter circuit Pending JPH02172320A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP32718688A JPH02172320A (en) 1988-12-24 1988-12-24 Counter circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP32718688A JPH02172320A (en) 1988-12-24 1988-12-24 Counter circuit

Publications (1)

Publication Number Publication Date
JPH02172320A true JPH02172320A (en) 1990-07-03

Family

ID=18196271

Family Applications (1)

Application Number Title Priority Date Filing Date
JP32718688A Pending JPH02172320A (en) 1988-12-24 1988-12-24 Counter circuit

Country Status (1)

Country Link
JP (1) JPH02172320A (en)

Similar Documents

Publication Publication Date Title
US4775840A (en) Noise removing circuit
US3946379A (en) Serial to parallel converter for data transmission
JPH08307247A (en) N+1 frequency dividing counter and its method
US4786823A (en) Noise pulse suppressing circuit in digital system
US20020075989A1 (en) High-speed counter with sequential binary count order and method thereof
GB1143694A (en)
JPH02172320A (en) Counter circuit
US3745315A (en) Ripple-through counters having minimum output propagation delay times
US4924484A (en) High speed digital counter
KR19990029006A (en) Extended chip select reset device and method
JP3504316B2 (en) Multi-bit counter
KR100366793B1 (en) Apparatus for pulse sequence generation using Shift Register
JP2752654B2 (en) Data transmission method of scrambled code
KR20020053267A (en) Glitch masking method for switching signal and apparatus thereof
KR100266001B1 (en) Counter circuit
JP2504190B2 (en) Chattering prevention circuit
JPH0683066B2 (en) Counter circuit
JP2953713B2 (en) Semiconductor integrated circuit
KR940004997Y1 (en) Error detecting apparatus of digital data signal
JPH10126228A (en) Digital waveform shaping circuit
JPH0310546A (en) Signal reception system
EP0187758A1 (en) Counting apparatus having independent subcounters
SU1736007A2 (en) Unit for majority decoding of binary codes
RU2017209C1 (en) Signature analyzer
JPS63312754A (en) Error generation circuit