JPH11340817A - Counter - Google Patents

Counter

Info

Publication number
JPH11340817A
JPH11340817A JP16426198A JP16426198A JPH11340817A JP H11340817 A JPH11340817 A JP H11340817A JP 16426198 A JP16426198 A JP 16426198A JP 16426198 A JP16426198 A JP 16426198A JP H11340817 A JPH11340817 A JP H11340817A
Authority
JP
Japan
Prior art keywords
circuit
data
counting
output
shift register
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.)
Granted
Application number
JP16426198A
Other languages
Japanese (ja)
Other versions
JP3168514B2 (en
Inventor
Seiji Uchino
政治 内野
Haruhiko Hosoya
晴彦 細谷
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.)
KANKYO DENJI GIJUTSU KENKYUSHO
Anritsu Corp
Electromagnetic Compatibility Research Laboratories Co., Ltd.
Original Assignee
KANKYO DENJI GIJUTSU KENKYUSHO
Anritsu Corp
Electromagnetic Compatibility Research Laboratories Co., 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 KANKYO DENJI GIJUTSU KENKYUSHO, Anritsu Corp, Electromagnetic Compatibility Research Laboratories Co., Ltd. filed Critical KANKYO DENJI GIJUTSU KENKYUSHO
Priority to JP16426198A priority Critical patent/JP3168514B2/en
Priority to US09/314,346 priority patent/US6509728B1/en
Publication of JPH11340817A publication Critical patent/JPH11340817A/en
Application granted granted Critical
Publication of JP3168514B2 publication Critical patent/JP3168514B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To accurately count clock signals at a high speed. SOLUTION: A counter circuit 11 is constituted of a 7-stage shift register circuit, consisting of 7 flip-flop circuits 121 -127 that receive clock signals CL of count objects in parallel and an EXOR circuit 13 that feeds back an exclusive OR of 6th stage and 7th stage data of the shift register circuit to the 1st stage, a latch circuit 14 latches the output data of the counter circuit 11, and a data conversion circuit 15 converts the latched data into data which denote the number of times of stepping of output data of the counter circuit 11 and provides an output.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、事象の発生回数を
計数するための計数装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a counting device for counting the number of occurrences of an event.

【0002】[0002]

【従来の技術】種々の事象の所定時間当りの発生回数を
計数し、その計数結果に対する処理をコンピュータで行
なう計測システムでは、その計数処理を行なうために従
来から2進カウンタによって計数対象のクロック信号の
計数を行なっていた。
2. Description of the Related Art In a measurement system which counts the number of occurrences of various events per predetermined time and processes the counted result by a computer, a clock signal to be counted by a binary counter has conventionally been used for performing the counting process. Was counted.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、このよ
うに2進カウンタを用いた計数装置では、2進カウンタ
の桁送りの速度に制限されて高速なクロック信号の計数
を正確に行なうことができないという問題があった。
However, in such a counting device using a binary counter, the counting speed of the binary counter is limited, and the counting of the high-speed clock signal cannot be performed accurately. There was a problem.

【0004】例えば周期が20ナノ秒のクロック信号の
計数を1秒間行なおうとすると、その最大計数値はほぼ
5×107 となり、26桁の2進カウンタが必要にな
り、各桁の桁送り時間の26倍の遅延が発生してしま
う。
For example, if the counting of a clock signal having a cycle of 20 nanoseconds is to be performed for 1 second, the maximum count value is approximately 5 × 10 7 , a 26-digit binary counter is required, and each digit is shifted. A delay of 26 times the time occurs.

【0005】つまり、桁数によって計数可能なクロック
信号の速度が制限されてしまい、例えば数ナノ秒以下の
計数速度を実現することは現状では極めて困難であっ
た。本発明は、この問題を解決した計数装置を提供する
ことを目的としている。
That is, the speed of the clock signal that can be counted is limited by the number of digits, and it is extremely difficult at present to realize a counting speed of several nanoseconds or less. An object of the present invention is to provide a counting device that solves this problem.

【0006】[0006]

【課題を解決するための手段】前記目的を達成するため
に、本発明の請求項1の計数装置は、計数対象のクロッ
ク信号を受けるn段シフトレジスタ回路と、該n段シフ
トレジスタ回路のnビットの出力データのうちの複数の
データの排他的論理和を該n段シフトレジスタ回路に帰
還する排他的論理和回路とからなり、前記クロック信号
を受ける毎にnビットの出力データを歩進させる線形帰
還型の計数回路と、前記計数回路の出力データをラッチ
するラッチ回路と、前記ラッチ回路がラッチしたデータ
を、前記計数回路の出力データが歩進した回数を表すデ
ータに変換するデータ変換手段とを備えている。
In order to achieve the above object, according to a first aspect of the present invention, there is provided a counting apparatus comprising: an n-stage shift register circuit for receiving a clock signal to be counted; An exclusive-OR circuit for feeding an exclusive-OR of a plurality of data out of the bit output data to the n-stage shift register circuit. Each time the clock signal is received, the n-bit output data is incremented. A linear feedback type counting circuit, a latch circuit for latching output data of the counting circuit, and data conversion means for converting the data latched by the latch circuit into data representing the number of steps of the output data of the counting circuit And

【0007】また、本発明の請求項2の計数装置は、2
のべき乗から1を減じた結果(2ni−1)が互いに素と
なる複数の値(n1、n2 、…nr )毎にそれぞれ設け
られ、計数対象のクロック信号を受けるni段シフトレ
ジスタ回路と、該ni 段シフトレジスタ回路のni ビッ
トの出力データのうちの複数のデータの排他的論理和を
該ni 段シフトレジスタ回路に帰還する排他的論理和回
路とによって構成され、前記クロック信号を受ける毎に
1 、n2 、…nr ビットの出力データをそれぞれ歩進
させる線形帰還型の複数の計数回路と、前記複数の計数
回路の各出力データをラッチするラッチ回路と、前記ラ
ッチ回路がラッチしたデータを、前記複数の計数回路の
各出力データが歩進した回数を表すデータにそれぞれ変
換するデータ変換手段と、前記データ変換手段から出力
される各変換データに基づいて、前記複数の計数回路に
入力されたクロック信号の入力数を算出する計数値算出
手段とを備えている。
Further, the counting device according to claim 2 of the present invention provides
Multiple values result obtained by subtracting the power from the first (2 ni -1) is relatively prime (n 1, n 2, ... n r) respectively provided for each, n i-stage shift receiving the clock signal of the counting target a register circuit, configured to exclusive-OR of a plurality of data among the output data of n i bits of the n i-stage shift register circuit by an exclusive OR circuit is fed back to the n i-stage shift register circuit, A plurality of linear feedback type counting circuits for incrementing n 1 , n 2 ,... N r bits of output data each time the clock signal is received, and a latch circuit for latching each output data of the plurality of counting circuits. Data conversion means for converting the data latched by the latch circuit into data representing the number of times each output data of the plurality of counting circuits has advanced, and each conversion data output from the data conversion means. Based on, and a count value calculating means for calculating the number of inputs of the input clock signal to said plurality of counter circuits.

【0008】また、本発明の請求項3の計数装置は、請
求項1または請求項2記載の計数装置において、前記ラ
ッチ回路はラッチした前記計数回路の出力データをシリ
アルに出力できるように、前記計数回路の出力データの
ビット数に対応した段数のシフトレジスタ回路によって
構成されており、該ラッチ回路から出力されるシリアル
データをパラレルデータに変換して、前記データ変換回
路に入力することを特徴としている。
According to a third aspect of the present invention, there is provided the counting apparatus according to the first or second aspect, wherein the latch circuit outputs the latched output data of the counting circuit serially. It is constituted by a shift register circuit of the number of stages corresponding to the number of bits of the output data of the counting circuit, and converts serial data output from the latch circuit into parallel data and inputs the parallel data to the data conversion circuit. I have.

【0009】また、本発明の請求項4の計数装置は、請
求項3記載の計数装置において、前記計数回路のシフト
レジスタ回路には、シフトレジスタを構成する複数のフ
リップフロップの各データ端子に少なくとも該フリップ
フロップの出力または前段のフリップフロップの出力の
いずれかを選択的に入力するための複数の入力切換スイ
ッチが設けられ、前記ラッチ回路のシフトレジスタ回路
には、シフトレジスタを構成する複数のフリップフロッ
プの各データ端子に該フリップフロップの出力、前段の
フリップフロップの出力または前記計数回路のフリップ
フロップの出力のいずれかを選択的に入力するための複
数の入力切換スイッチが設けられている。
According to a fourth aspect of the present invention, in the counting device of the third aspect, the shift register circuit of the counting circuit has at least one data terminal of each of a plurality of flip-flops constituting the shift register. A plurality of input changeover switches for selectively inputting either the output of the flip-flop or the output of the preceding flip-flop are provided, and the shift register circuit of the latch circuit includes a plurality of flip-flops constituting a shift register. Each data terminal of the flip-flop is provided with a plurality of input changeover switches for selectively inputting any of the output of the flip-flop, the output of the preceding flip-flop and the output of the flip-flop of the counting circuit.

【0010】[0010]

【発明の実施の形態】以下、図面に基づいて本発明の実
施の形態を説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0011】(第1の実施形態)図1は、比較的ビット
数の少ない計数を高速に行なう第1の実施形態の計数装
置10の構成を示している。
(First Embodiment) FIG. 1 shows a configuration of a counting device 10 according to a first embodiment for performing counting with a relatively small number of bits at high speed.

【0012】この計数装置10は、線形帰還型の計数回
路11と、ラッチ回路14と、データ変換回路15によ
って構成されている。
The counting device 10 comprises a linear feedback type counting circuit 11, a latch circuit 14, and a data conversion circuit 15.

【0013】線形帰還型の計数回路は、所定次数の生成
多項式に対応して構成されるものであり、図1に示す計
数回路11は7次原始多項式(1+x+x7 )に対応し
ている。この計数回路11は、フィナボッチ型接続のM
系列の線形帰還型シフトレジスタ回路によって構成され
ている。
The linear feedback type counting circuit is configured to correspond to a generator polynomial of a predetermined order, and the counting circuit 11 shown in FIG. 1 corresponds to a 7th-order primitive polynomial (1 + x + x 7 ). The counting circuit 11 has a Finabocci type connection M
It is constituted by a series of linear feedback shift register circuits.

【0014】即ち、7個のD型のフリップフロップ12
1 〜127 で7段シフトレジスタが構成され、6段目と
7段目のフリップフロップ126 、127 の出力の排他
的論理和をEXOR回路13から初段のフリップフロッ
プ121 へ帰還し、計数対象のクロック信号CLを全て
のフリップフロップ121 〜127 へ並列に入力する。
また、各フリップフロップ121 〜127 のセット端子
には、各フリップフロップ121 〜127 の出力を全ビ
ット1の初期データにセットするためのセット信号Sが
入力される。
That is, seven D-type flip-flops 12
1-12 7 7-stage shift register is configured, the feedback of the exclusive OR of the output of the sixth stage and the seventh stage flip flop 12 6, 12 7 to the first stage of flip-flop 12 1 from the EXOR circuit 13, the counting target clock signal CL to all the flip-flops 12 1 to 12 7 and inputs in parallel.
In addition, the set terminal of the flip-flops 12 1 to 12 7, the set signal S to set the output of the flip-flops 12 1 to 12 7 in the initial data of all 1s are input.

【0015】このように構成された計数回路11では、
図2に示すように、フリップフロップ121 〜127
対して全ビット0以外の初期データ(この例では全ビッ
ト1)を予め設定しておけば、その7ビットの出力デー
タd0 〜d6 は、クロック信号CLの入力数Fが0〜1
26までの範囲で、1〜127の値のいずれかを重複し
ないでとることになる。ただし、クロック信号CLの入
力数Fと出力データとは一致していないが、これは、後
述のデータ変換回路15によってクロック信号の入力数
Fに変換される。
In the counting circuit 11 configured as described above,
As shown in FIG. 2, if (in this example all bits 1) the initial data other than all bits zero for flip flops 12 1 to 12 7 by setting in advance, the output data d 0 of the 7-bit ~d 6 indicates that the input number F of the clock signal CL is 0 to 1
In the range up to 26, any one of the values 1 to 127 is taken without duplication. However, although the input number F of the clock signal CL does not match the output data, this is converted into the clock signal input number F by the data conversion circuit 15 described later.

【0016】計数回路11の7ビットの出力データは、
ラッチ信号Lを受けたラッチ回路14によってラッチさ
れ、データ変換回路15へ出力される。
The 7-bit output data of the counting circuit 11 is
The data is latched by the latch circuit 14 receiving the latch signal L and output to the data conversion circuit 15.

【0017】データ変換回路15は、図2に示した入力
数Fがその入力数Fに対応する出力データで指定される
アドレスに予め記憶されたメモリによって構成され、ラ
ッチ回路14でラッチされた出力データに対応する入力
数Fを出力する。
The data conversion circuit 15 is composed of a memory in which the number of inputs F shown in FIG. 2 is stored in advance at an address designated by output data corresponding to the number of inputs F, and the output latched by the latch circuit 14 The input number F corresponding to the data is output.

【0018】なお、計数回路11へのセット信号Sとラ
ッチ回路14へのラッチ信号Lは、図示しない制御回路
から入力される。
The set signal S to the counting circuit 11 and the latch signal L to the latch circuit 14 are input from a control circuit (not shown).

【0019】このように構成された計数装置では、計数
回路11にセット信号Sが入力された直後からラッチ信
号Lがラッチ回路14に入力されるまでの間のクロック
信号CLの入力数Fがデータ変換回路15から出力され
る。
In the counting device configured as described above, the input number F of the clock signal CL between the time immediately after the set signal S is input to the counting circuit 11 and the time when the latch signal L is input to the latch circuit 14 is represented by the data F. Output from the conversion circuit 15.

【0020】この第1の実施形態の計数装置10は、シ
フトレジスタ回路の出力を帰還する線形帰還型の計数回
路で計数対象のクロック信号を受けて、出力データを歩
進させ、その出力データをクロック信号の入力数を示す
データに変換するように構成されているので、桁数に制
限されることなく、高速なクロック信号の計数が行なえ
る。
The counting device 10 of the first embodiment receives a clock signal to be counted by a linear feedback type counting circuit that feeds back the output of the shift register circuit, increments output data, and converts the output data. Since it is configured to convert the data into the data indicating the number of input clock signals, high-speed counting of clock signals can be performed without being limited by the number of digits.

【0021】また、ここでは7桁の計数の場合について
説明したが、計数回路11の構成をより次数の高い生成
多項式に対応するように構成すれば、7桁以上の計数を
行なうことができ、十数桁程度までの高速計数を行なう
計数装置を簡単な構成で実現できる。
Although the case of counting seven digits has been described here, if the configuration of the counting circuit 11 is configured to correspond to a higher-order generator polynomial, counting of seven digits or more can be performed. A counting device that performs high-speed counting up to about ten and several digits can be realized with a simple configuration.

【0022】(第2の実施の形態)前記第1の実施形態
は桁数が比較的少ない場合のものであり、十数桁程度ま
で適用することができるが、より桁数が多い場合、例え
ば26ビットの計数を(1+x+x2 +x6 +x26)の
26次の生成多項式に対応した計数回路で実現しようと
すると、データ変換回路15のメモリ容量が約210M
バイト以上となってしまい通常のメモリで構成すること
は困難となる。
(Second Embodiment) The first embodiment is for a case where the number of digits is relatively small, and can be applied up to about ten and several digits. If a 26-bit count is to be realized by a counting circuit corresponding to the (1 + x + x 2 + x 6 + x 26 ) 26th-order generator polynomial, the memory capacity of the data conversion circuit 15 is about 210 M
It becomes more than bytes, and it is difficult to configure with a normal memory.

【0023】そこで、次に多数桁の高速計数をデータ変
換のメモリ容量を少ない状態で行なえる第2の実施形態
の計数装置について説明する。
Next, a description will be given of a counting apparatus according to a second embodiment capable of performing high-speed counting of many digits with a small memory capacity for data conversion.

【0024】この計数装置では、2のべき乗から1を減
じた値(2ni−1)が互いに素となり、その総和(n1
+n2 +…+nr )が26に等しくなるような次数の複
数の原始多項式にそれぞれ対応した複数の計数回路によ
ってクロック信号を計数することでデータ変換のための
メモリ容量を少なくしている。
In this counter, a value (2 ni -1) obtained by subtracting 1 from a power of 2 is relatively prime, and the sum (n 1)
The number of clock signals is counted by a plurality of counting circuits respectively corresponding to a plurality of primitive polynomials of order such that + n 2 +... + N r ) is equal to 26, thereby reducing the memory capacity for data conversion.

【0025】ただし、このように分割した場合、データ
変換回路で変換したデータからクロック信号の入力数は
直接得られないが、前記したように、各分割したデータ
のビット数について、その2のべき乗から1を減じた値
が互いに素なので、剰余数系または中華剰余定理と呼ば
れる方法によってクロック入力数を得ることができる。
In this case, the number of input clock signals cannot be directly obtained from the data converted by the data conversion circuit. However, as described above, the number of bits of each divided data is a power of two. Since the value obtained by subtracting 1 from is relatively prime, the number of clock inputs can be obtained by a method called the remainder number system or the Chinese remainder theorem.

【0026】図3は、第2の実施形態の計数装置20の
構成を示している。この計数装置20は、26ビットの
高速計数を実現するために7次(n1 =7)、9次(n
2 =9)、10次(n3 =10)の原始多項式にそれぞ
れ対応した線形帰還型の計数回路21a〜21c、各計
数回路21a〜21cにそれぞれ対応して設けられた3
つのラッチ回路31a〜31c、制御回路40、シリア
ルパラレル変換回路41、データ変換回路42および計
数値演算回路43によって構成されている。
FIG. 3 shows the configuration of the counting device 20 according to the second embodiment. The counting device 20 has a seventh order (n 1 = 7) and a ninth order (n
2 = 9), linear feedback type counting circuits 21a to 21c respectively corresponding to the 10th order (n 3 = 10) primitive polynomials, and 3 provided respectively for the counting circuits 21a to 21c.
It is composed of one latch circuit 31a to 31c, a control circuit 40, a serial / parallel conversion circuit 41, a data conversion circuit 42, and a count value calculation circuit 43.

【0027】図4は計数回路21aとラッチ回路31a
の内部の構成を示している。計数回路21aは、7次原
始多項式(1+x+x7 )に対応して、7段のシフトレ
ジスタ回路を構成するための7つのD型のフリップフロ
ップ221 〜227と、入力切換スイッチ231 〜23
7 と、EXOR回路24によって構成されている。
FIG. 4 shows a counting circuit 21a and a latch circuit 31a.
Shows the internal configuration of the device. Counting circuit 21a, corresponding to the 7-order primitive polynomial (1 + x + x 7) , a flip-flop 22 1-22 7 seven D-type to constitute a shift register circuit of the seven stages, input switch 23 1 to 23
7 and an EXOR circuit 24.

【0028】各フリップフロップ221 〜227 の各ク
ロック端子には、計数対象のクロック信号CLが並列に
入力されており、各データ端子には各入力切換スイッチ
231 〜237 が接続されている。
[0028] Each clock terminals of the flip-flops 22 1 to 22 7, and the clock signal CL of the counter object is input in parallel, each data terminal is connected the input switch 23 1 to 23 7 I have.

【0029】各入力切換スイッチ231 〜237 は、3
つの入力端子a〜cをそれぞれ有している。第1の入力
端子aはリセット用の端子で初期設定のためのデータ
(ここではすべて1)が入力され、第2の入力端子bは
計数用の端子で前段のフリップフロップの出力が入力さ
れる。また、第3の入力端子cはホールド用の端子であ
り、接続されているフリップフロップ自身の出力が入力
される。
[0029] each input selector switch 23 1 to 23 7, 3
It has two input terminals ac. The first input terminal a is a reset terminal to which data for initial setting (here, all 1s) are inputted, and the second input terminal b is a counting terminal to which the output of the preceding flip-flop is inputted. . The third input terminal c is a terminal for hold, and receives the output of the connected flip-flop itself.

【0030】入力切換スイッチ231 〜237 は、制御
回路40から出力される2ビットのモード信号S0
The input switch 23 1 to 23 7, the mode signal S 0 of the 2-bit output from the control circuit 40

〔00〕のときに第1の入力端子a、〔10〕のときに
第2の入力端子b、〔11〕のときに第3の入力端子c
をフリップフロップのデータ端子に接続する。
The first input terminal a at [00], the second input terminal b at [10], and the third input terminal c at [11].
To the data terminal of the flip-flop.

【0031】6段目と7段目のフリップフロップ2
6 、227 の出力は、EXOR回路25に入力され、
両者の排他的論理和が入力切換スイッチ231 の第2の
入力端子bに入力される。
6th and 7th stage flip-flop 2
Output of 2 6, 22 7, are inputted to the EXOR circuit 25,
The exclusive OR of the two is input to the second input terminal b of the input switch 23 1 .

【0032】一方、ラッチ回路31aは、計数回路21
aの各フリップフロップ221 〜227 の出力をラッチ
するための7つのD型のフリップフロップ321 〜32
7 と、入力切換スイッチ331 〜337 によって構成さ
れている。
On the other hand, the latch circuit 31a is
seven D-type flip-flop for latching the output of each flip-flop 22 1-22 7 of a 32 1 to 32
7, and an input changeover switch 33 to 333 7.

【0033】各フリップフロップ321 〜327 の各ク
ロック端子には、クロック信号CLが転送用のクロック
信号として並列に入力されており、各データ端子には入
力切換スイッチ331 〜337 がそれぞれ接続されてい
る。
A clock signal CL is inputted in parallel to each clock terminal of each of the flip-flops 32 1 to 32 7 as a transfer clock signal, and each of the data terminals is provided with an input switch 33 1 to 33 7. It is connected.

【0034】各入力切換スイッチ331 〜337 は、3
つの入力端子a〜cをそれぞれ有している。第1の入力
端子aはロード用の端子で計数回路21aの各フリップ
フロップ221 〜227 の出力が入力され、第2の入力
端子bは転送用の端子で前段のフリップフロップの出力
が入力される。また、第3の入力端子cはホールド用の
端子であり、接続されているフリップフロップ自身の出
力が入力される。
[0034] each input selector switch 33 to 333 7, 3
It has two input terminals ac. The first input terminal a output of the flip-flops 22 1 to 22 7 of the counter circuit 21a at the terminal for the load is input, a second input terminal b is output of the preceding flip-flop in the terminal for transfer input Is done. The third input terminal c is a terminal for hold, and receives the output of the connected flip-flop itself.

【0035】入力切換スイッチ331 〜337 は、制御
回路40から出力される2ビットのモード信号S1
The input changeover switches 33 1 to 33 7 receive the 2-bit mode signal S 1 output from the control circuit 40.

〔00〕のときには第1の入力端子a、〔10〕のとき
には第2の入力端子b、〔11〕のときには第3の入力
端子cをフリップフロップのデータ端子に接続する。
At [00], the first input terminal a is connected, at [10], the second input terminal b, and at [11], the third input terminal c is connected to the data terminal of the flip-flop.

【0036】また、図5に示しているように、9次の原
始多項式(1+x4 +x9 )に対応した計数回路21b
は、9個のフリップフロップ251 〜259 、3つの入
力端子a〜cをそれぞれ有する入力切換スイッチ261
〜269 およびEXOR回路27によって構成され、ラ
ッチ回路31bは、9個のフリップフロップ351 〜3
9 、3つの入力端子a〜cを有する入力切換スイッチ
361 〜369 によって構成されている。
As shown in FIG. 5, a counting circuit 21b corresponding to a ninth-order primitive polynomial (1 + x 4 + x 9 )
Is an input switch 26 1 having nine flip-flops 25 1 to 25 9 and three input terminals a to c, respectively.
Is constituted by -26 9 and EXOR circuit 27, the latch circuit 31b is nine flip-flops 35 1 to 3
Is constituted by 5 9, input switch 36 1 to 36 9 having three input terminals a to c.

【0037】この計数回路21bでは、9次の原始多項
式(1+x4 +x9 )に対応して5段目と9段目のフリ
ップフロップ255 、259 の出力が、EXOR回路2
7に入力され、両者の排他的論理和が入力切換スイッチ
261 の第2の入力端子bに入力される。
[0037] In the counter circuit 21b, 9-order output primitive polynomial (1 + x 4 + x 9 ) flip-flop 25 of the fifth stage and ninth stage corresponding to 5, 25 9, EXOR circuit 2
7 and the exclusive OR of the two is input to the second input terminal b of the input switch 26 1 .

【0038】同様に、図6に示すように、10次の原始
多項式(1+x3 +x10)に対応した計数回路21c
は、10個のフリップフロップ281 〜2810、3つの
入力端子a〜cをそれぞれ有する入力切換スイッチ29
1 〜2910およびEXOR回路30によって構成され、
ラッチ回路31cは、10個のフリップフロップ381
〜3810、3つの入力端子a〜cをそれぞれ有する入力
切換スイッチ391 〜3910によって構成されている。
Similarly, as shown in FIG. 6, a counting circuit 21c corresponding to a tenth-order primitive polynomial (1 + x 3 + x 10 )
Is an input changeover switch 29 having ten flip-flops 28 1 to 28 10 and three input terminals a to c, respectively.
Is constituted by 1 to 29 10 and the EXOR circuit 30,
The latch circuit 31c has ten flip-flops 38 1
To 38 10 , and input changeover switches 39 1 to 39 10 having three input terminals a to c, respectively.

【0039】この計数回路21cでは、10次の原始多
項式(1+x3 +x10)に対応して7段目と10段目の
フリップフロップ287 、2810の出力が、EXOR回
路30に入力され、両者の排他的論理和が入力切換スイ
ッチ291 の第2の入力端子bに入力される。
In the counting circuit 21c, the outputs of the seventh and tenth flip-flops 28 7 and 28 10 are input to the EXOR circuit 30 corresponding to the tenth-order primitive polynomial (1 + x 3 + x 10 ). The exclusive OR of the two is input to the second input terminal b of the input switch 29 1 .

【0040】また、ラッチ回路31aのシリアル出力S
Oa(フリップフロップ327 の出力)は、ラッチ回路
31bのシリアル入力SIb(入力切換スイッチ361
の第2の入力端子36b)に入力され、ラッチ回路32
aのシリアル出力SOb(フリップフロップ357 の出
力)は、ラッチ回路31cのシリアル入力SIb(入力
切換スイッチ391 の第2の入力端子39b)に入力さ
れている。
The serial output S of the latch circuit 31a is
Oa (output of the flip-flop 32 7), serial input SIb of the latch circuit 31b (input switch 36 1
To the second input terminal 36b) of the latch circuit 32
a serial output SOb (output of the flip-flop 35 7) are inputted to the serial input SIb of the latch circuit 31c (second input terminal 39b of the input switch 39 1).

【0041】制御回路40は、計数の開始を指示する計
数指示信号を受けると、図7の(a)に示すように、モ
ード信号S0
When the control circuit 40 receives the count instruction signal for instructing the start of the counting, the control circuit 40 changes the mode signal S 0 as shown in FIG.

〔00〕にセットして、計数回路21a
〜21cの全てのフリップフロップに〔1〕を入力し、
クロック信号CLによって全ビット1のデータに初期化
する。そして、この初期化の後にモード信号S0 を所定
の測定時間Tだけ〔10〕にして計数回路21a〜21
cでクロック信号CLを計数させ、測定時間が経過した
後にモード信号S0 を〔11〕にセットして計数回路2
1a〜21cの計数結果Da〜Dcをホールドする。
Set to [00] and count circuit 21a
[1] is input to all the flip-flops to 21c,
All bits are initialized to 1 data by the clock signal CL. After this initialization, the mode signal S 0 is set to [10] for a predetermined measurement time T, and the counting circuits 21 a to 21
c to count the clock signal CL. After the measurement time has elapsed, the mode signal S 0 is set to [11] and the counting circuit 2
The counting results Da to Dc of 1a to 21c are held.

【0042】また、この計数結果をホールドした直後
に、図7の(b)のように、モード信号S1
Immediately after the count result is held, the mode signal S 1 is output as shown in FIG.

〔00〕
にセットして、計数回路21a〜21cの計数結果をラ
ッチ回路31a〜31cの全てのフリップフロップに入
力させ、クロック信号CL(この場合26個のクロック
信号の入力が必要)によってラッチ回路31a〜31c
に記憶させる。そして、モード信号S1 を〔10〕にセ
ットしてラッチ回路31a〜31cに記憶された計数結
果Da、Db、Dcをシリアルに出力させる。また、連
続測定を行なう場合には、この間にモード信号S0
[00]
, The count results of the counting circuits 21a to 21c are input to all flip-flops of the latch circuits 31a to 31c, and the latch circuits 31a to 31c are input by a clock signal CL (in this case, 26 clock signals need to be input).
To memorize. Then, the mode signals S 1 [10] to set counts stored in the latch circuit 31a~31c with results Da, Db, is output Dc serially. When performing continuous measurement, the mode signal S 0 is output during this time.

〔00〕にセットして、計数回路21a〜21cを初期
化して、計数を開始する。
Set to [00] to initialize the counting circuits 21a to 21c and start counting.

【0043】なお、計数回路21a〜21cとラッチ回
路31a〜31cは、各フリップフロップのデータ端子
に入力切換スイッチによってそのフリップフロップの出
力を入力することでデータをホールドしているので、計
数対象のクロック信号を常時入力した状態にすることが
できる。
The counting circuits 21a to 21c and the latch circuits 31a to 31c hold the data by inputting the output of the flip-flop to the data terminal of each flip-flop by the input changeover switch. The clock signal can be always input.

【0044】また、ラッチ回路31a〜31cが全体と
して循環するように接続されているので、次の計数結果
のラッチが行なわれるまでは、各計数結果の転送を何回
でも行なうことができる。
Since the latch circuits 31a to 31c are connected so as to circulate as a whole, each count result can be transferred any number of times until the next count result is latched.

【0045】ラッチ回路31a〜31cから出力された
データは、シリアルパラレル変換回路41によってパラ
レルのデータDa、Db、Dcに戻され、データ変換回
路42に入力される。
The data output from the latch circuits 31a to 31c is returned to parallel data Da, Db, and Dc by the serial / parallel conversion circuit 41 and input to the data conversion circuit 42.

【0046】データ変換回路42には、各計数回路21
a〜21cにそれぞれ対応する第1〜第3のメモリ42
a、42b、42cが設けられている。
The data conversion circuit 42 includes the counting circuits 21
The first to third memories 42 respectively corresponding to a to 21c
a, 42b, and 42c are provided.

【0047】第1のメモリ42aは、計数回路21aの
計数結果Daで指定されるアドレスに、初期データから
その計数結果Daになるまでに歩進した回数を表すデー
タKa(0〜126)が予め記憶されており、シリアル
パラレル変換回路41からのデータDaに対応したデー
タKaを出力する。
The first memory 42a stores, in advance, data Ka (0 to 126) indicating the number of steps performed from the initial data to the count result Da at an address designated by the count result Da of the count circuit 21a. The stored data Ka outputs data Ka corresponding to the data Da from the serial / parallel conversion circuit 41.

【0048】第2のメモリ42bは、計数回路21bの
計数結果Dbで指定されるアドレスに、初期データから
その計数結果Dbになるまでに歩進した回数を表すデー
タKb(0〜510)が予め記憶されており、シリアル
パラレル変換回路41からのデータDbに対応したデー
タKbを出力する。
The second memory 42b stores, in advance, data Kb (0 to 510) representing the number of steps from the initial data to the count result Db at an address designated by the count result Db of the count circuit 21b. The data Kb stored therein and corresponding to the data Db from the serial / parallel conversion circuit 41 is output.

【0049】第3のメモリ42cは、計数回路21cの
計数結果Dcで指定されるアドレスに、初期データから
その計数結果Dcになるまでに歩進した回数を表すデー
タKc(0〜1022)が予め記憶されており、シリア
ルパラレル変換回路41からのデータDcに対応したデ
ータKcを出力する。
The third memory 42c stores in advance the data Kc (0 to 1022) representing the number of steps from the initial data to the count result Dc at the address specified by the count result Dc of the count circuit 21c. The data Kc stored therein and corresponding to the data Dc from the serial / parallel conversion circuit 41 is output.

【0050】ここで、各計数回路21a〜21cに対す
るクロック信号CLの入力数Fと、各メモリ42a〜4
2cの出力値Ka、Kb、Kcの関係を図8に示す。
Here, the input number F of the clock signal CL to each of the counting circuits 21a to 21c and each of the memories 42a to 42c
FIG. 8 shows the relationship between the output values Ka, Kb, and Kc of 2c.

【0051】この図において、前記したように127
(=27 −1)、511(=29 −1)、1023(=
10−1)は互いに素なので、メモリ41a〜41cか
ら出力される値Ka、Kb、Kcが共に等しくなるの
は、0〜126までの範囲である。したがって、この範
囲で、Ka=Kb=Kcが成立する場合には、その値が
実際のクロック信号の入力数Fを表すことになる。
As shown in FIG.
(= 2 7 -1), 511 (= 2 9 -1), and 1023 (=
Since 2 10 -1) is relatively prime, the values Ka, Kb, and Kc output from the memories 41a to 41c are all equal in the range from 0 to 126. Therefore, if Ka = Kb = Kc is satisfied in this range, the value indicates the actual input number F of the clock signal.

【0052】しかし、入力数Fが126回を越えた場
合、メモリ42a〜42cから出力される値Ka、K
b、Kcから真の入力数Fを直接求めることはできな
い。
However, if the number of inputs F exceeds 126, the values Ka, K output from the memories 42a to 42c
The true input number F cannot be directly obtained from b and Kc.

【0053】そこで、この実施形態では、各メモリ42
a〜42cから出力される値Ka、Kb、Kcを計数値
演算手段43に入力して、剰余数系または中華剰余定理
と呼ばれる方法を用いて実際の入力数Fを求めている。
Therefore, in this embodiment, each memory 42
The values Ka, Kb, and Kc output from a to 42c are input to the count value calculating means 43, and the actual input number F is obtained by using a method called a remainder number system or a Chinese remainder theorem.

【0054】以下、前記方法の一演算手順であるGar
ner法を示す。即ち、計数値演算手段43は、予めm
1 =27 −1、m2 =29 −1、m3 =210−1の各
値、m1 ・m2 の値、m1 ・m2 ・m3 の値、および次
の合同式(1) Uij・mi ≡1(mod mj ) ……(1) (ここで、(mod y)は演算結果をyで割ったとき
の余りを示す)を満たす3個の係数Uij(i<j)を記
憶している。
In the following, one operation procedure of the above method, Gar
The ner method is shown. That is, the count value calculating means 43 determines in advance m
1 = 2 7 -1, m 2 = 2 9 -1, m 3 = 2 10 -1 values, m 1 · m 2 values, m 1 · m 2 · m 3 values, and the following congruence: (1) Three coefficients U ij satisfying U ij · m i ≡ 1 (mod m j ) (1) (where (mod y) indicates the remainder when the operation result is divided by y) (I <j).

【0055】そして、以下の漸化式により、Ka、K
b、KcからVa、Vb、Vcを計算する。 Va=Ka Vb=(Kb−Va)U12 mod m2 Vc=〔(Kc−Va)U13−Vb〕U23 mod m
3
Then, according to the following recurrence formula, Ka, K
Va, Vb, and Vc are calculated from b and Kc. Va = Ka Vb = (Kb−Va) U 12 mod m 2 Vc = [(Kc−Va) U 13 −Vb] U 23 mod m
Three

【0056】そして、入力数Fを次式(2) F=(Va+m1 Vb+m1 2 Vc)mod m1 2 3 ……(2) の演算によって求める。[0056] Then, obtained by calculating the following equation input number F (2) F = (Va + m 1 Vb + m 1 m 2 Vc) mod m 1 m 2 m 3 ...... (2).

【0057】計数値演算手段43は、上記演算をメモリ
42a〜42cから出力される値Ka、Kb、Kcに対
して行い、実際のクロック信号CLの入力数Fを求め
る。
The count value calculation means 43 performs the above calculation on the values Ka, Kb, Kc output from the memories 42a to 42c, and obtains the actual input number F of the clock signal CL.

【0058】なお、上記した、27 −1(=127)、
9 −1(=511)、210−1(=1023)は互い
に素な整数であるから、計数回路21a〜21cから
は、(27 −1)・(29 −1)・(210−1)通り
(66389631通り)のデータを出力することがで
き、これは前記したように周期20ナノ秒のクロック信
号を1秒間計数したときの最大計数値5×107 よりも
大きい。
[0058] Incidentally, the above-mentioned, 2 7 -1 (= 127),
Since 2 9 -1 (= 511) and 2 10 -1 (= 1023) are relatively prime integers, (2 7 -1). (2 9 -1). (2 10 -1) can output data of the street (66,389,631 combinations), which is greater than the maximum count 5 × 10 7 when the counted one second clock signal having a period 20 nanoseconds as described above.

【0059】しかもデータ変換回路42の各メモリ42
a〜42cのメモリ容量は、 (7×127)+(9×511)+(10×1023)
=15718 であり、約16kビットで済む。
Moreover, each memory 42 of the data conversion circuit 42
The memory capacity of a to 42c is (7 × 127) + (9 × 511) + (10 × 1023)
= 15718, which is only about 16 kbits.

【0060】このように、第2の実施形態の計数装置
は、2のべき乗から1を減じた値(2ni−1)が互いに
素となり、その総和(n1 +n2 +…+nr )が26に
等しくなるような次数の複数の原始多項式にそれぞれ対
応した複数の線形帰還型の計数回路でクロック信号を並
行して計数し、その計数結果をそれぞれデータ変換し、
そのデータ変換された値からクロック信号の実際の入力
数を求めるようにしているため、前記実施形態と同様
に、桁数に制限されることなく高速なクロック信号の計
数が行なえ、しかも、少ないメモリ容量で多数桁の計数
を行なうことができる。
As described above, in the counting device of the second embodiment, the value (2 ni −1) obtained by subtracting 1 from the power of 2 is relatively prime, and the sum (n 1 + n 2 +... + N r ) is obtained. The clock signals are counted in parallel by a plurality of linear feedback type counting circuits respectively corresponding to a plurality of primitive polynomials of the order equal to 26, and the counting results are converted into data, respectively.
Since the actual input number of the clock signal is obtained from the value obtained by the data conversion, the clock signal can be counted at a high speed without being limited by the number of digits, as in the above-described embodiment. Many digits can be counted by capacity.

【0061】また、上記した各計数回路21a〜21c
は、共に(1+xP +xQ )で表される最小項数の原始
多項式を用いているので、実際の回路構成を簡単化(E
XOR回路が少ない)することができる。
Each of the counting circuits 21a to 21c described above
Are both because of the use of minimum number of terms of the primitive polynomial expressed by (1 + x P + x Q ), simplification of the actual circuit arrangement (E
The number of XOR circuits is small).

【0062】この実施形態では、26ビットの計数を行
なう場合について説明したが、さらにビット数を大きく
することができる。
In this embodiment, the case where the counting of 26 bits is performed has been described, but the number of bits can be further increased.

【0063】例えば30ビットの計数を行なう場合に
は、9次原始多項式(1+x4 +x9)、10次原始多
項式(1+x3 +x10)および11次原始多項式(1+
2 +x11)にそれぞれ対応する計数回路、ラッチ回路
およびデータ変換回路を用いればよい。
[0063] When performing the example 30 bits of counting, 9-order primitive polynomial (1 + x 4 + x 9 ), 10 -order primitive polynomial (1 + x 3 + x 10 ) and 11-order primitive polynomial (1+
x 2 + x 11 ) may be used.

【0064】また、前記第2の実施形態のラッチ回路3
1a〜31cは、ラッチした計数結果をシリアルに出力
できるように、シフトレジスタ回路を構成しているの
で、複数系列のクロック信号の計数を並行して行なうよ
うに拡張することが容易である。
The latch circuit 3 of the second embodiment
Since 1a to 31c constitute the shift register circuit so that the latched counting result can be serially output, it is easy to extend the counting to a plurality of series of clock signals in parallel.

【0065】即ち、図9に示すように、複数系列のクロ
ック信号CL1 〜CLN に対する計数を並行して行える
ように、計数回路21a〜21cとラッチ回路31a〜
31cの組をN組設けるとともに、各組のラッチ回路3
1a〜31cが全体として直列にとなるように接続すれ
ば、いずれかの組(図9ではクロック信号CLN を計数
する組)のラッチ回路31cから、各クロック信号につ
いての計数結果を1本の信号線のみで出力することがで
き、この計数結果をシリアルパラレル変換回路41へ出
力して、前記同様にデータ変換を行い、各クロック信号
CL1 〜CLN毎の入力数を算出すればよい。
That is, as shown in FIG. 9, the counting circuits 21a to 21c and the latch circuits 31a to 31c are arranged so that the counting for the plural series of clock signals CL 1 to CL N can be performed in parallel.
31c, N sets of latch circuits 3c are provided.
If connected in a series as a whole 1a~31c is, one set of the latch circuit 31c in (set to count the clock signal CL N 9), the counting result for each clock signal one signal line only can be output, the counting result is output to the serial-parallel conversion circuit 41, the performs the same data conversion may be calculated the number of inputs of each clock signal CL 1 -CL N.

【0066】また、この場合に、図9のように、各組の
ラッチ回路31a〜31cが全体として循環するように
接続しておくと、各計数結果の転送を何回でも行なうこ
とができる。
In this case, as shown in FIG. 9, if the latch circuits 31a to 31c of each set are connected so as to circulate as a whole, each count result can be transferred any number of times.

【0067】また、計数対象のクロック信号が1系列だ
けに限定される場合には、ラッチ回路31a〜31c
を、前記第1の実施形態のようにパラレル入力パラレル
出力のラッチ回路で構成し、そのラッチ出力をデータ変
換回路42へ直接入力してもよい。このようにすれば、
計数結果のシリアル転送に必要に時間が不要となるの
で、測定時間が短い場合でも連続測定が可能になる。
When the clock signal to be counted is limited to one series, the latch circuits 31a to 31c
May be configured by a parallel input / parallel output latch circuit as in the first embodiment, and the latch output may be directly input to the data conversion circuit 42. If you do this,
Since time is not required for serial transfer of the counting result, continuous measurement is possible even when the measurement time is short.

【0068】また、前記第2の実施形態では、ラッチ回
路にラッチしたデータを計数対象のクロック信号に同期
させてシリアル出力していたが、制御回路から転送用の
クロック信号を入力して、計数対象のクロック信号とは
非同期にラッチデータを出力させるようにしてもよい。
In the second embodiment, the data latched in the latch circuit is serially output in synchronization with the clock signal to be counted. However, a clock signal for transfer is input from the control circuit to count the data. The latch data may be output asynchronously with the target clock signal.

【0069】また、前記第2の実施形態では、計数回路
のフリップフロップに入力切換スイッチを介して初期デ
ータをセットしていたが、初期データのセットについて
は、入力切換スイッチを介さずに、第1の実施形態のよ
うにフリップフロップに対して直接セット信号を入力し
て初期データをセットしてもよい。
In the second embodiment, the initial data is set to the flip-flop of the counting circuit via the input switch. However, the initial data is set without passing through the input switch. As in the first embodiment, the initial data may be set by directly inputting the set signal to the flip-flop.

【0070】また、前記実施形態では、フィボナッチ型
接続の線形帰還型シフトレジスタ回路を計数回路として
用いていたが、図10〜図12に示す計数回路21
a′、21b′、21c′のように、ガロア型接続の線
形帰還型シフトレジスタ回路で構成してもよい。このガ
ロア型接続では、タップ位置(EXOR回路に入力する
出力)の順番がフィボナッチ型と逆順となり、最終段の
出力を初段と各EXOR回路24、27、30の一方の
入力端子に入力し、初段と最終段以外の所定段の出力を
各EXOR回路24、27、30の他方の入力端子に入
力し、その出力を所定段の次の段に入力するように接続
されている。このガロア型接続の計数回路も、フィボナ
ッチ型と同様に符号周期が最も長いM系列のものであ
り、前記実施形態と同様の作用がある。
In the above-described embodiment, the linear feedback shift register circuit of the Fibonacci type is used as the counting circuit. However, the counting circuit 21 shown in FIGS.
As in a ', 21b', and 21c ', a linear feedback shift register circuit of Galois connection may be used. In this Galois-type connection, the order of tap positions (outputs to be input to the EXOR circuit) is reverse to that of the Fibonacci type, and the output of the final stage is input to the first stage and one input terminal of each of the EXOR circuits 24, 27, 30. And the outputs of predetermined stages other than the last stage are input to the other input terminals of the EXOR circuits 24, 27, and 30, and the outputs are input to the next stage after the predetermined stage. This Galois-type connected counting circuit is also of the M-sequence having the longest code cycle, similarly to the Fibonacci type, and has the same operation as in the above embodiment.

【0071】また、前記実施形態では、線形帰還型の計
数回路として、M系列(最大長系列)のものを用いてい
たが、他の系列、例えばH系列(ホール系列)やTP系
列(双子素数系列)等のものを用いてもよい。
In the above embodiment, the linear feedback type counting circuit uses the M sequence (maximum length sequence). However, other sequences such as the H sequence (Hall sequence) and the TP sequence (twin prime number) are used. Series) or the like may be used.

【0072】[0072]

【発明の効果】以上説明したように、本発明の計数装置
は、複数段のシフトレジスタの出力を排他的論理和回路
を介して帰還する線形帰還型の計数回路で計数対象のク
ロック信号を受けて出力データを歩進させ、その出力デ
ータを、その歩進した回数を示すデータに変換するよう
に構成されているので、桁数に制限されることなく、高
速なクロック信号の計数が行なえる。
As described above, the counting device of the present invention receives a clock signal to be counted by a linear feedback type counting circuit that feeds back the outputs of a plurality of stages of shift registers via an exclusive OR circuit. The output data is incremented by one step, and the output data is converted into data indicating the number of times the increment has been made, so that a high-speed clock signal can be counted without being limited by the number of digits. .

【0073】また、2のべき乗から1を減じた値(2ni
−1)が互いに素となる次数の複数の生成多項式にそれ
ぞれ対応した複数の線形帰還型の計数回路でクロック信
号を並行して計数し、その出力データをそれぞれ歩進し
た回数を示すデータに変換し、その変換値からクロック
信号の実際の入力数を求めるようにした計数装置では、
データ変換のためのメモリ容量を少なくでき多数桁の高
速計数を容易に実現できる。
A value obtained by subtracting 1 from a power of 2 (2 ni
-1) The clock signals are counted in parallel by a plurality of linear feedback type counting circuits respectively corresponding to a plurality of generator polynomials of orders which are relatively prime, and the output data is converted into data indicating the number of steps performed. Then, in the counting device that obtains the actual number of inputs of the clock signal from the converted value,
The memory capacity for data conversion can be reduced, and high-speed counting of many digits can be easily realized.

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

【図1】本発明の第1の実施形態の構成を示すブロック
FIG. 1 is a block diagram showing a configuration of a first embodiment of the present invention.

【図2】第1の実施形態の動作を説明するための図FIG. 2 is a diagram for explaining the operation of the first embodiment;

【図3】本発明の第2の実施形態の構成を示す図FIG. 3 is a diagram showing a configuration of a second embodiment of the present invention.

【図4】第2の実施形態の要部の構成を示すブロック図FIG. 4 is a block diagram showing a configuration of a main part of the second embodiment.

【図5】第2の実施形態の要部の構成を示すブロック図FIG. 5 is a block diagram showing a configuration of a main part of the second embodiment.

【図6】第2の実施形態の要部の構成を示すブロック図FIG. 6 is a block diagram showing a configuration of a main part of the second embodiment.

【図7】第2の実施形態の動作を説明するための図FIG. 7 is a view for explaining the operation of the second embodiment;

【図8】第2の実施形態の動作を説明するための図FIG. 8 is a diagram for explaining the operation of the second embodiment;

【図9】複数の事象の計数を並行して行なう場合の構成
を示すブロック図
FIG. 9 is a block diagram showing a configuration in which counting of a plurality of events is performed in parallel;

【図10】計数回路の変形例を示すブロック図FIG. 10 is a block diagram showing a modification of the counting circuit.

【図11】計数回路の変形例を示すブロック図FIG. 11 is a block diagram showing a modification of the counting circuit.

【図12】計数回路の変形例を示すブロック図FIG. 12 is a block diagram showing a modification of the counting circuit.

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

10 計数装置 11 計数回路 12 フリップフロップ 13 EXOR回路 14 ラッチ回路 15 データ変換回路 20 計数装置 21a〜21c 計数回路 22、25、28 フリップフロップ 23、26、29 入力切換スイッチ 24、27、30 EXOR回路 31a〜31c ラッチ回路 32、35、38 フリップフロップ 33、36、39 入力切換スイッチ 40 制御回路 41 シリアルパラレル変換回路 42 データ変換回路 43 計数値演算回路 REFERENCE SIGNS LIST 10 counting device 11 counting circuit 12 flip-flop 13 EXOR circuit 14 latch circuit 15 data conversion circuit 20 counting device 21 a to 21 c counting circuit 22, 25, 28 flip-flop 23, 26, 29 input selector switch 24, 27, 30 EXOR circuit 31 a 31c Latch circuit 32, 35, 38 Flip-flop 33, 36, 39 Input changeover switch 40 Control circuit 41 Serial / parallel conversion circuit 42 Data conversion circuit 43 Count value calculation circuit

─────────────────────────────────────────────────────
────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成11年4月23日[Submission date] April 23, 1999

【手続補正1】[Procedure amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】特許請求の範囲[Correction target item name] Claims

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【特許請求の範囲】[Claims]

【手続補正2】[Procedure amendment 2]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0006[Correction target item name] 0006

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【0006】[0006]

【課題を解決するための手段】前記目的を達成するため
に、本発明の請求項1の計数装置は、計数対象のクロッ
ク信号を受けるn段シフトレジスタ回路と、該n段シフ
トレジスタ回路のnビットの出力データのうちの複数の
データの排他的論理和を該n段シフトレジスタ回路に帰
還する排他的論理和回路とからなり、前記クロック信号
を受ける毎にnビットの出力データを歩進させる線形帰
還型の計数回路(11、21a〜21c)と、前記計数
回路の出力データをラッチするラッチ回路(14、31
a〜31c)と、前記計数回路が歩進させる出力データ
の値に対応するアドレスにクロック信号を受けた回数を
示すデータを予め記憶しているメモリからなり、前記ラ
ッチ回路がラッチしたデータを、前記計数回路の出力デ
ータが歩進した回数を表すデータに変換するデータ変換
手段(15、42)とを備えている。
In order to achieve the above object, according to a first aspect of the present invention, there is provided a counting apparatus comprising: an n-stage shift register circuit for receiving a clock signal to be counted; An exclusive-OR circuit for feeding an exclusive-OR of a plurality of data out of the bit output data to the n-stage shift register circuit. Each time the clock signal is received, the n-bit output data is incremented. A linear feedback type counting circuit (11, 21a to 21c); and a latch circuit (14, 31) for latching output data of the counting circuit.
a to 31c) and a memory in which data indicating the number of times a clock signal has been received is stored in an address corresponding to the value of the output data to be incremented by the counting circuit, and the data latched by the latch circuit is Data conversion means (15, 42) for converting the output data of the counting circuit into data representing the number of steps performed.

【手続補正3】[Procedure amendment 3]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0007[Correction target item name] 0007

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【0007】また、本発明の請求項2の計数装置は、2
のべき乗から1を減じた結果(2ni−1)が互いに素と
なる複数の値(n1、n2 、…nr )毎にそれぞれ設け
られ、計数対象のクロック信号を共通に受けるni 段シ
フトレジスタ回路と、該ni 段シフトレジスタ回路のn
i ビットの出力データのうちの複数のデータの排他的論
理和を該ni 段シフトレジスタ回路に帰還する排他的論
理和回路とによって構成され、前記クロック信号を受け
る毎にn1 、n2 、…nr ビットの出力データをそれぞ
れ歩進させる線形帰還型の複数の計数回路(21a〜2
1c)と、前記複数の計数回路の各出力データをラッチ
する複数のラッチ回路(31a〜31c)と、前記各計
数回路が歩進させる出力データの値に対応するアドレス
にクロック信号を受けた回数を示すデータを予めそれぞ
れ記憶しているメモリからなり、前記ラッチ回路がラッ
チしたデータを、前記複数の計数回路の各出力データが
歩進した回数を表すデータにそれぞれ変換する複数のデ
ータ変換手段(42a〜42c)と、前記複数のデータ
変換手段から出力される各変換データに基づいて、前記
複数の計数回路に共通に入力されたクロック信号の入力
数を算出する計数値算出手段(43)とを備えている。
Further, the counting device according to claim 2 of the present invention provides
The result (2 ni -1) obtained by subtracting 1 from the power of is provided for each of a plurality of mutually prime values (n 1 , n 2 ,..., N r ), and n i commonly receives the clock signal to be counted. Stage shift register circuit, and n of the ni stage shift register circuit.
an exclusive-OR circuit that feeds back an exclusive-OR of a plurality of data of the i- bit output data to the n i- stage shift register circuit, and receives n 1 , n 2 , ... A plurality of linear feedback type counting circuits (21a to 21a) for respectively increasing the nr- bit output data
1c), a plurality of latch circuits (31a to 31c) for latching each output data of the plurality of counting circuits, and the number of times a clock signal is received at an address corresponding to the value of the output data to be incremented by each of the counting circuits. And a plurality of data converting means for converting the data latched by the latch circuit into data representing the number of times each output data of the plurality of counting circuits has stepped up. 42a to 42c); and a count value calculating means (43) for calculating the number of clock signals input commonly to the plurality of counting circuits based on each converted data output from the plurality of data converting means. It has.

【手続補正4】[Procedure amendment 4]

【補正対象書類名】図面[Document name to be amended] Drawing

【補正対象項目名】図3[Correction target item name] Figure 3

【補正方法】変更[Correction method] Change

【補正内容】[Correction contents]

【図3】 FIG. 3

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】計数対象のクロック信号を受けるn段シフ
トレジスタ回路と、該n段シフトレジスタ回路のnビッ
トの出力データのうちの複数のデータの排他的論理和を
該n段シフトレジスタ回路に帰還する排他的論理和回路
とからなり、前記クロック信号を受ける毎にnビットの
出力データを歩進させる線形帰還型の計数回路と、 前記計数回路の出力データをラッチするラッチ回路と、 前記ラッチ回路がラッチしたデータを、前記計数回路の
出力データが歩進した回数を表すデータに変換するデー
タ変換手段とを備えた計数装置。
1. An n-stage shift register circuit for receiving a clock signal to be counted, and an exclusive-OR of a plurality of data among n-bit output data of the n-stage shift register circuit is sent to the n-stage shift register circuit. A linear feedback type counting circuit that comprises an exclusive OR circuit that feeds back and increments n-bit output data each time the clock signal is received; a latch circuit that latches output data of the counting circuit; A data conversion means for converting data latched by the circuit into data representing the number of times output data of the counting circuit has advanced.
【請求項2】2のべき乗から1を減じた結果(2ni
1)が互いに素となる複数の値(n1、n2 、…nr
毎にそれぞれ設けられ、計数対象のクロック信号を受け
るni段シフトレジスタ回路と、該ni 段シフトレジス
タ回路のni ビットの出力データのうちの複数のデータ
の排他的論理和を該ni 段シフトレジスタ回路に帰還す
る排他的論理和回路とによって構成され、前記クロック
信号を受ける毎にn1 、n2 、…nr ビットの出力デー
タをそれぞれ歩進させる線形帰還型の複数の計数回路
と、 前記複数の計数回路の各出力データをラッチするラッチ
回路と、 前記ラッチ回路がラッチしたデータを、前記複数の計数
回路の各出力データが歩進した回数を表すデータにそれ
ぞれ変換するデータ変換手段と、 前記データ変換手段から出力される各変換データに基づ
いて、前記複数の計数回路に入力されたクロック信号の
入力数を算出する計数値算出手段とを備えた計数装置。
2. The result of subtracting 1 from a power of 2 (2 ni
A plurality of values (n 1 , n 2 ,..., N r ) in which 1) is relatively prime
Respectively provided for each, and n i-stage shift register circuit for receiving a clock signal of the counting target, the n i-stage shift register circuit of n i the exclusive OR of the plurality of data among the output data of the bit the n i is constituted by an exclusive OR circuit is fed back to stage shift register circuit, said n 1 for each receive a clock signal, n 2, ... n r linear feedback of a plurality of counting circuits for each increment of output data bits A latch circuit for latching each output data of the plurality of counting circuits; and a data conversion for converting the data latched by the latch circuits into data representing the number of times each output data of the plurality of counting circuits has stepped. Means for calculating the number of clock signals input to the plurality of counting circuits based on each conversion data output from the data conversion means. And a counting device comprising:
【請求項3】前記ラッチ回路はラッチした前記計数回路
の出力データをシリアルに出力できるように、前記計数
回路の出力データのビット数に対応した段数のシフトレ
ジスタ回路によって構成されており、 該ラッチ回路から出力されるシリアルデータをパラレル
データに変換して、前記データ変換回路に入力すること
を特徴とする請求項1または請求項2記載の計数装置。
3. The latch circuit includes a shift register circuit having a number of stages corresponding to the number of bits of the output data of the counting circuit so as to serially output the latched output data of the counting circuit. 3. The counting device according to claim 1, wherein the serial data output from the circuit is converted into parallel data and input to the data conversion circuit.
【請求項4】前記計数回路のシフトレジスタ回路には、 シフトレジスタを構成する複数のフリップフロップの各
データ端子に少なくとも該フリップフロップの出力また
は前段のフリップフロップの出力のいずれかを選択的に
入力するための複数の入力切換スイッチが設けられ、 前記ラッチ回路のシフトレジスタ回路には、 シフトレジスタを構成する複数のフリップフロップの各
データ端子に該フリップフロップの出力、前段のフリッ
プフロップの出力または前記計数回路のフリップフロッ
プの出力のいずれかを選択的に入力するための複数の入
力切換スイッチが設けられていることを特徴とする請求
項3記載の計数装置。
4. A shift register circuit of the counting circuit, wherein at least one of an output of the flip-flop or an output of a preceding flip-flop is selectively input to each data terminal of a plurality of flip-flops constituting the shift register. The shift register circuit of the latch circuit includes an output of the flip-flop, an output of the preceding flip-flop, and a data terminal of each flip-flop constituting the shift register. 4. The counting device according to claim 3, further comprising a plurality of input changeover switches for selectively inputting any one of the outputs of the flip-flop of the counting circuit.
JP16426198A 1998-05-28 1998-05-28 Counter Expired - Fee Related JP3168514B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP16426198A JP3168514B2 (en) 1998-05-28 1998-05-28 Counter
US09/314,346 US6509728B1 (en) 1998-05-28 1999-05-19 Spectrum analyzer having function of displaying amplitude probability distribution effectively

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP16426198A JP3168514B2 (en) 1998-05-28 1998-05-28 Counter

Publications (2)

Publication Number Publication Date
JPH11340817A true JPH11340817A (en) 1999-12-10
JP3168514B2 JP3168514B2 (en) 2001-05-21

Family

ID=15789736

Family Applications (1)

Application Number Title Priority Date Filing Date
JP16426198A Expired - Fee Related JP3168514B2 (en) 1998-05-28 1998-05-28 Counter

Country Status (1)

Country Link
JP (1) JP3168514B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120119806A1 (en) * 2010-11-16 2012-05-17 Hynix Semiconductor Inc. Data output circuit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120119806A1 (en) * 2010-11-16 2012-05-17 Hynix Semiconductor Inc. Data output circuit
US8837254B2 (en) * 2010-11-16 2014-09-16 SK Hynix Inc. Data output control circuit of semiconductor apparatus

Also Published As

Publication number Publication date
JP3168514B2 (en) 2001-05-21

Similar Documents

Publication Publication Date Title
Campobello et al. Parallel CRC realization
Goresky et al. Arithmetic crosscorrelations of feedback with carry shift register sequences
CN112214349B (en) Data cyclic redundancy check device and method
JPH0368022A (en) Parallel pseudo-random number sequence generator for emulating serial pseudorandom number sequence generator and method of executing the same
TW200522531A (en) High performance CRC calculation method and system with a matrix transformation strategy
Yu et al. New binary sequences with optimal autocorrelation magnitude
EP0416869A2 (en) Digital adder/accumulator
TWI405122B (en) Linear feedback shift register system and method to generate output stream
US6745219B1 (en) Arithmetic unit using stochastic data processing
Premkumar et al. Improved memoryless RNS forward converter based on the periodicity of residues
JPH1032492A (en) Code conversion circuit
JP3168514B2 (en) Counter
US7071855B1 (en) Gray code conversion method and apparatus embodying the same
Fúster-Sabater et al. An efficient algorithm to generate binary sequences for cryptographic purposes
CN1601913B (en) Parallelized CRC calculation method and system
KR100327856B1 (en) Circuit and method for arbitrarily shifting M series
US20020158663A1 (en) Non-binary digital logic element and circuit design therefor
JPH10170574A (en) Amplitude probability distribution measuring device
CN109495107B (en) Frequency division method, shift register and system on chip
CN113835333A (en) Time-to-digital conversion device and time-to-digital conversion method
US6138134A (en) Computational method and apparatus for finite field multiplication
US3569956A (en) Minimal logic block encoder
US7472147B2 (en) Random number string output apparatus, random number string output method, program, and information recording medium
JPH0918354A (en) Error detection code generator and error detector for cyclic redundancy checking system
EP0431416A2 (en) Apparatus and method for accessing a cyclic redundancy error check code generated in parallel

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313532

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080316

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090316

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090316

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100316

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100316

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110316

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110316

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120316

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120316

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130316

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130316

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140316

Year of fee payment: 13

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees