JPH0353718A - Plural numerical values counting type counter circuit - Google Patents

Plural numerical values counting type counter circuit

Info

Publication number
JPH0353718A
JPH0353718A JP18959589A JP18959589A JPH0353718A JP H0353718 A JPH0353718 A JP H0353718A JP 18959589 A JP18959589 A JP 18959589A JP 18959589 A JP18959589 A JP 18959589A JP H0353718 A JPH0353718 A JP H0353718A
Authority
JP
Japan
Prior art keywords
memory
circuit
counting
counter
flip
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
JP18959589A
Other languages
Japanese (ja)
Inventor
Tomohiro Ishihara
智宏 石原
Haruo Yamashita
治雄 山下
Mitsuki Taniguchi
谷口 充己
Takaaki Wakizaka
脇坂 孝明
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP18959589A priority Critical patent/JPH0353718A/en
Publication of JPH0353718A publication Critical patent/JPH0353718A/en
Pending legal-status Critical Current

Links

Landscapes

  • Measurement Of Radiation (AREA)

Abstract

PURPOSE:To count plural numerical values individually with less circuit scale constitution by using a very less circuit scale memory whose equivalent gate number is nearly 0.1 in place of plural data storage flip-flop circuits employing many flip-flops. CONSTITUTION:A very less circuit scale memory whose equivalent gate number is nearly 0.1 is used in place of plural data storage flip-flop circuits. For example, when 6 kinds of counted values are stored in the memory 2, a counted value AO stored in an address of the memory 2 is read, and inputted to a counting arithmetic circuit 3, where arithmetic calculation or the like is implemented. The outputted counted value BO is written again in the same address of the memory 2. A counted value Al is read and inputted to the counting arithmetic circuit 3, and a counted value Bl calculated and outputted from the counting arithmetic circuit 3 is written again in the memory 2.

Description

【発明の詳細な説明】 [概 要] 複数の値について個別に計数できる複数値計数式カウン
タ回路に関し, 回路規模(ゲート数)の少ない構成で、複数の値につい
て個別に計数できるようにすることを目的とし, 複数のカウンタ値を保持しうるメモリと、該メモリで保
持されているカウント値に基づいて所要の計数演算を行
なう計数演算回路と,該メモリから該計数演算回路へ入
力すべきカウンタ値を該メモリから読み出すとともに該
計数演算回路で演算されて出力されてきたカウンタ{直
を該メモリに書き込むメモリ制御回路とをそなえるよう
に構成する。
[Detailed Description of the Invention] [Summary] To enable a multi-value counting type counter circuit that can individually count multiple values to be able to count multiple values individually with a small circuit scale (number of gates). A memory capable of holding a plurality of counter values, a counting operation circuit that performs necessary counting operations based on the count values held in the memory, and a counter that is to be input from the memory to the counting operation circuit. The device is configured to include a memory control circuit that reads a value from the memory and writes a counter value calculated and outputted by the counting operation circuit to the memory.

[産業上の利用分野] 本発明は、複数の値について個別に計数できる複数値計
数式カウンタ回路に関する。
[Industrial Application Field] The present invention relates to a multi-value counting type counter circuit that can individually count a plurality of values.

例えば伝送技術においては、1つの伝送フレーム中から
複数のタイムスロット情報を取り出したい場合がある。
For example, in transmission technology, there are cases where it is desired to extract multiple time slot information from one transmission frame.

このような場合は、フレーム先頭からのカウント値が複
数必要であるため、複数の値について個別に計数できる
カウンタ回路が必要となる。
In such a case, since a plurality of count values from the beginning of the frame are required, a counter circuit that can individually count the plurality of values is required.

[従来の技術] 第4図は従来例を示すブロック図であるが、この第4図
において、1−1.1−2.1−Nはカウンタ回路で、
各カウンタ回路1−i(i=1〜N)は、データ保持用
フリップフリップ回路2一iおよび演算回路3−iをそ
なえて構成されている。
[Prior Art] Fig. 4 is a block diagram showing a conventional example. In Fig. 4, 1-1.1-2.1-N is a counter circuit;
Each counter circuit 1-i (i=1 to N) includes a data holding flip-flip circuit 2-i and an arithmetic circuit 3-i.

ここで、データ保持用フリップフリップ回路2−1は、
複数(4)のDフリップフロップ21i ,  2 2
 − i ,  2 3 − i ,  2 4 − 
jを有しており、Dフリップフロップ21−iのQ出力
Q。が第1ビットl]の出力となり、Dフリツプフロツ
プ22−iのQ出力Q1が第2ビット目の出力となり、
Dフリップフロップ23−1のQ出力Q2が第3ビット
目の出力となり、Dフリップフロップ24−iのQ出力
Q3が第4ビット目の出力となっている。
Here, the data holding flip-flip circuit 2-1 is
Plural (4) D flip-flops 21i, 2 2
- i, 2 3 - i, 2 4 -
j, and the Q output Q of the D flip-flop 21-i. becomes the output of the first bit l], the Q output Q1 of the D flip-flop 22-i becomes the output of the second bit,
The Q output Q2 of the D flip-flop 23-1 is the output of the third bit, and the Q output Q3 of the D flip-flop 24-i is the output of the fourth bit.

また、演算回路3−iは、桁上げ演算あるいは桁下げ演
算を行なうもので、排他的論理和ゲート(EXゲート)
31−i,32−it 33−iやアンドゲート(AN
Dゲート)34−i,35−iを第4図に示すように組
合わせた論理回路として構成されている。
Further, the arithmetic circuit 3-i performs a carry operation or a carry down operation, and is an exclusive OR gate (EX gate).
31-i, 32-it 33-i and AND gate (AN
It is configured as a logic circuit in which D gates 34-i and 35-i are combined as shown in FIG.

このような構成により、各カウンタ回路1−iはそれぞ
れクロックが入力される毎にアップカウントまたはダウ
ンカウントして,その計数結果を各出力Q0〜Q,に4
ビット出力として出す。そして、アップカウントの場合
は、以下のように出力が変化していく。
With this configuration, each counter circuit 1-i counts up or down each time a clock is input, and outputs the counting result to each output Q0 to Q.
Output as bit output. In the case of up-counting, the output changes as shown below.

roooOJ −4 roo01」−+ roo10J
 −}「0011」→rQ100J→r0 1 0 1
J→ro 1 1 0J→ro 1 1 1J→rlo
oOJ→rlooIJ→rl O 1 0J→rlo1
1」→rlloOJ−)riioiJ  +  rll
lOJ  −+rl 1 1 1J そして、もしフレーム先頭から4番目と5番目のタイム
スロット情報を取り込みたければ、例えばカウンタ回路
1−1,1−2の出力が「0100J,ro101Jと
なったところのデータをそれぞれ取り込めばよい。
roooOJ -4 roo01''-+roo10J
-} "0011" → rQ100J → r0 1 0 1
J→ro 1 1 0J→ro 1 1 1J→rlo
oOJ→rlooIJ→rl O 1 0J→rlo1
1”→rlloOJ-)riioiJ + rll
lOJ -+rl 1 1 1J Then, if you want to capture the 4th and 5th time slot information from the beginning of the frame, for example, take the data where the outputs of the counter circuits 1-1 and 1-2 become "0100J, ro101J". You can incorporate each one.

[発明が解決しようとする課題] しかしながら、このような従来のカウンタ回路では、複
数の値をカウント(値の1ずつ加算または減算する)た
めには、第4図に示すように、通常のカウンタ回路1−
iを必要個数(N)だけ並設しなければならないので、
カウンタ回路の数が多くなると、その回路規模が非常に
大きくなる。
[Problems to be Solved by the Invention] However, in such conventional counter circuits, in order to count multiple values (add or subtract values by 1), as shown in FIG. Circuit 1-
Since the required number (N) of i must be arranged in parallel,
As the number of counter circuits increases, the circuit scale becomes extremely large.

特に、LSI化をする場合、フリップフロツプは1個あ
たり10ゲート程度のゲート規模を必要とするので、フ
リノプフロップを多用する従来の回路は、回路規模の点
でLSI化には向いていないという問題点がある。
In particular, when converting into an LSI, each flip-flop requires a gate size of about 10 gates, so conventional circuits that use many flip-flops have the problem of not being suitable for LSI in terms of circuit size. be.

本発明は,このような問題点を解決しようとするもので
、回路規模(ゲート数)の少ない構戒で、複数の値につ
いて個別に計数できるようにした,複数値計数式カウン
タ回路を提供することを目的としている。
The present invention aims to solve these problems, and provides a multi-value counting type counter circuit that is capable of individually counting multiple values with a small circuit scale (number of gates). The purpose is to

[課題を解決するための手段] 第1図は本発明の原理ブロック図である。[Means to solve the problem] FIG. 1 is a block diagram of the principle of the present invention.

この第1図において、2はデータ保持用メモリで、この
メモリ2は、複数のカウンタ値を保持しうるものである
In FIG. 1, 2 is a data holding memory, and this memory 2 can hold a plurality of counter values.

3は計数演算回路で、この計数演算回路3は、メモリ2
で保持されているカウント値に基づいて所要の計数演算
を行なうものである。
3 is a counting operation circuit, and this counting operation circuit 3 is connected to the memory 2.
Necessary counting operations are performed based on the count values held in the .

4はメモリ制御回路で、このメモリ制御回路4は、メモ
リ2から計数演算回路3へ入力すべきカウンタ値をメモ
リ2から読み出すとともに、計数演算回路3で演算され
て出力されてきたカウンタ値をメモリ2に書き込むため
のものである。
Reference numeral 4 denotes a memory control circuit, and this memory control circuit 4 reads the counter value to be input from the memory 2 to the counting operation circuit 3 from the memory 2, and also reads out the counter value calculated and output from the counting operation circuit 3 to the memory. This is for writing to 2.

[作 用] 上述の本発明の複数値計数式カウンタ回路では、メモリ
2のあるアドレスに保持されているカウント値が読み出
され、これが計数演算同路3へ入力されて、所要の計数
演算が行なわれる。そして、計数演算回路3で演算され
て出力されてきたカウンタ値は、再度メモリ2に書き込
まれる。
[Function] In the multi-value counting type counter circuit of the present invention described above, the count value held at a certain address in the memory 2 is read out, this is input to the counting operation circuit 3, and the required counting operation is performed. It is done. Then, the counter value calculated and outputted by the counting calculation circuit 3 is written into the memory 2 again.

ついで、メモリ2の他のアドレスに保持されているカウ
ント値が読み出され,これが計数演算回路3へ入力・さ
れて、これについても所要の計数演算が行なわれ,この
計数演算回路3で演算されて出力されてきたカウンタ値
が、再度メモリ2に書き込まれる. そして、上記のような処理がメモリ2に保持されている
必要個数分だけ行なわれる。
Next, the count value held at another address in the memory 2 is read out and inputted to the counting operation circuit 3, where the required counting operation is also performed. The counter value that has been output is written to memory 2 again. Then, the above-mentioned processing is performed for the required number of data stored in the memory 2.

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

第2図は本発明の一実施例を示すブロック図で、この第
2図において、2はデータ保持用メモリで、このメモリ
2は、複数のカウンタ値を保持しつるメモリエリアを有
するもので、このメモリ2として、例えばRAMが使用
される.ここで、このメモリ2は等価ゲート数が0.1
程度と非名(に少ない回路規模で構戊することができる
ものである。
FIG. 2 is a block diagram showing an embodiment of the present invention. In FIG. 2, 2 is a data holding memory, and this memory 2 has a continuous memory area that holds a plurality of counter values. As this memory 2, for example, a RAM is used. Here, this memory 2 has an equivalent number of gates of 0.1
It is something that can be constructed with a small circuit scale.

3は計数演算回路で、この計数演算回路3は、メモリ2
で保持されているカウント値に基づい″・て桁上げ演算
あるいは桁下げ演勢を行なうもので、排他的論理和ゲー
ト(EXゲート)31,32,33,アンドゲート(A
NDゲート)34.35反転ゲート(NOTゲート)3
6を第2図に示すように組合わせた論理回路として構成
されている。
3 is a counting operation circuit, and this counting operation circuit 3 is connected to the memory 2.
It performs a carry operation or a carry down operation based on the count value held in the exclusive OR gate (EX gate) 31, 32, 33, and
ND gate) 34.35 Inversion gate (NOT gate) 3
6 are combined as a logic circuit as shown in FIG.

4はメモリ制御回路で、このメモリ制御回路4は、メモ
リ2から計数演算回路3へ入力すへきカウンタ値をメモ
リ2の出力ポートQ。−QJから読み出すとともに、計
数演算回路3で演算されて山力されてきたカウンタイ直
をメモリ2の入力ポートD0〜D,を通じて書き込むた
めのものである。このために、メモリ制御回路4は,書
込アドレスを設定する書込アドレス設定部41,読出ア
ドレスを設定する続出アドレス設定部42,メモリ2へ
の書込を制御する書込制御部43,メモリ2からの読出
を制御する読出制御部44をそなえている。
4 is a memory control circuit, and this memory control circuit 4 inputs the counter value from the memory 2 to the counting operation circuit 3 and outputs the counter value to the output port Q of the memory 2. -QJ is used to read out the counter value calculated by the counting calculation circuit 3 and written through the input ports D0 to D of the memory 2. For this purpose, the memory control circuit 4 includes a write address setting section 41 that sets a write address, a continuous address setting section 42 that sets a read address, a write control section 43 that controls writing to the memory 2, and a memory control section 43 that controls writing to the memory 2. A readout control unit 44 is provided for controlling readout from 2.

なお,上記のメモリ2やメモリ制御回路4には、第3図
(a)に示すような書込・読出タイミングをとるための
クロックが入力されている。そして、この場合のクロッ
ク速度は、例えば6 Mbit/see〜2 0 Mb
it/see程度のもの(この速度はソフト処理に使用
されるクロック速度よりも迭い)が使用される。
Incidentally, a clock is inputted to the memory 2 and the memory control circuit 4 to set the write/read timing as shown in FIG. 3(a). The clock speed in this case is, for example, 6 Mbit/see to 20 Mb.
It/see (this speed is lower than the clock speed used for software processing) is used.

上述の構成により、例えばメモリ2に6種類のカウント
値が保持されているとした場合,まずメモリ2のあるア
ドレスに保持されているカウント値AOが読み出され、
これが計数演算回路3へ入力されて、上記の桁上げのた
めの演算等が行なわれる。その後、この計数演算回路3
で演算されて出力されてきたカウンタ値BOは、再度メ
モリ2の同一アドレスに書き込まれる。
With the above configuration, for example, if six types of count values are held in the memory 2, the count value AO held at a certain address in the memory 2 is first read out,
This is input to the counting operation circuit 3, where the above-mentioned carry operation and the like are performed. After that, this counting operation circuit 3
The counter value BO calculated and output is written to the same address in the memory 2 again.

ついで、メモリ2の他のアドレスに保持されているカウ
ント値A1が読み出され、これが計数演算回路3へ入力
されて、これについても上記の所要の計数演算が行なわ
れ、この計数演算回路3で演算されて出力されてきたカ
ウンタ値B1が、再度メモリ2に書き込まれる。
Next, the count value A1 held at another address in the memory 2 is read out and inputted to the counting operation circuit 3, whereupon the above-mentioned required counting operation is also performed. The calculated and outputted counter value B1 is written into the memory 2 again.

そして、上記のような処理がメモリ2に保持されている
必要個数(6〉分だけ行なわれる。
Then, the above processing is performed for the required number (6>) held in the memory 2.

このときのタイムチャートを示すと、第3図(a)〜(
c)のようになる。
The time charts at this time are shown in Figures 3(a) to (
c).

このように、等価ゲート数が0.1程度と非常に少ない
回路規模のメモリ2を,複数のデータ保持用フリップフ
ロップ回路(各データ保持回路はフリップフロップを多
用している)の代わりに使用することが行なわれ,しか
も、計数演算回路の共用化をはかっているので,回路規
模(ゲート数)の少ない構成で,複数の値について個別
に計数しうるカウンタ回路を提9tすることができる。
In this way, the memory 2, which has a very small circuit size with an equivalent gate number of about 0.1, is used instead of multiple data retention flip-flop circuits (each data retention circuit uses many flip-flops). Moreover, since the counting operation circuit is shared, it is possible to provide a counter circuit that can individually count a plurality of values with a small circuit scale (number of gates).

なお、上記の実施例では、4ビット出力のカウンタ回路
を例にして説明したが,他のビット出力のカウンタ回路
についても,同様にして本発明を適用できることはいう
までもない。
Although the above embodiment has been described using a 4-bit output counter circuit as an example, it goes without saying that the present invention can be similarly applied to other bit output counter circuits.

[発明の効果] 以上詳述したように、本発明の複数値計数式カウンタ回
路によれば、等価ゲート数が0.1程度と非常に少ない
回路規模のメモリを、フリップフロップを多用している
複数のデータ保持用フリップフロップ回路の代わりに使
用することが行なわれ,しかも,計数演算回路の共用化
をはかっているので,回路規模の少ない構成で、複数の
値について個別に計数しうるカウンタ回路を提供できる
利点がある。
[Effects of the Invention] As detailed above, according to the multi-value counting type counter circuit of the present invention, the memory has a very small circuit scale with an equivalent number of gates of about 0.1, and uses many flip-flops. This counter circuit is used in place of multiple data holding flip-flop circuits, and since the counting operation circuit is shared, it has a small circuit configuration and can count multiple values individually. It has the advantage of being able to provide

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

第1図は本発明の原理ブロック図、 第2図は本発明の一実施例を示すブロック図、第3図は
本複数値計数式カウンタ回路のタイムチャート、 第4図は従来例を示すブロック図である。 図において, 2はメモリ、 3は計数演算回路、 4はメモリ制御回路、 31〜33は排他的論理和ゲート、 34,35はアンドゲート、 36は反転ゲート、 41は書込アドレス設定部, 42は続出アドレス設定部、 43は書込制御部, 44は続出制御部である。
Fig. 1 is a block diagram of the principle of the present invention, Fig. 2 is a block diagram showing an embodiment of the present invention, Fig. 3 is a time chart of the present multi-value counting type counter circuit, and Fig. 4 is a block diagram showing a conventional example. It is a diagram. In the figure, 2 is a memory, 3 is a counting circuit, 4 is a memory control circuit, 31 to 33 are exclusive OR gates, 34 and 35 are AND gates, 36 is an inversion gate, 41 is a write address setting section, 42 43 is a write control unit; and 44 is a continuation control unit.

Claims (1)

【特許請求の範囲】 複数のカウンタ値を保持しうるメモリ(2)と、該メモ
リ(2)で保持されているカウント値に基づいて所要の
計数演算を行なう計数演算回路(3)と、 該メモリ(2)から該計数演算回路(3)へ入力すべき
カウンタ値を該メモリ(2)から読み出すとともに該計
数演算回路(3)で演算されて出力されてきたカウンタ
値を該メモリ(2)に書き込むメモリ制御回路(4)と
をそなえて構成されたことを特徴とする、複数値計数式
カウンタ回路。
[Claims] A memory (2) that can hold a plurality of counter values, a counting operation circuit (3) that performs necessary counting operations based on the count values held in the memory (2); The counter value to be input from the memory (2) to the counting operation circuit (3) is read from the memory (2), and the counter value calculated and output by the counting operation circuit (3) is read out from the memory (2). 1. A multi-value counting type counter circuit comprising: a memory control circuit (4) for writing data into a memory control circuit (4).
JP18959589A 1989-07-21 1989-07-21 Plural numerical values counting type counter circuit Pending JPH0353718A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18959589A JPH0353718A (en) 1989-07-21 1989-07-21 Plural numerical values counting type counter circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18959589A JPH0353718A (en) 1989-07-21 1989-07-21 Plural numerical values counting type counter circuit

Publications (1)

Publication Number Publication Date
JPH0353718A true JPH0353718A (en) 1991-03-07

Family

ID=16243947

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18959589A Pending JPH0353718A (en) 1989-07-21 1989-07-21 Plural numerical values counting type counter circuit

Country Status (1)

Country Link
JP (1) JPH0353718A (en)

Similar Documents

Publication Publication Date Title
EP0057096A2 (en) Information processing unit
JPH0353718A (en) Plural numerical values counting type counter circuit
JPH04188243A (en) Storage device
JP2841456B2 (en) Data transfer method and data buffer device
JPS61120260A (en) Access device for sequential data memory circuit
JPS6067990A (en) Picture information processor having density converting function
SU911623A1 (en) Storage
JP2953169B2 (en) Data processing device
JPS5849960B2 (en) Information check method
JPS61187190A (en) Semiconductor memory
JPH01296362A (en) System for protecting secrecy of recording medium
JPS6364141A (en) Storage device
JPS6234253A (en) Memory access controller
JPS63231548A (en) Data writing method
JPS6297048A (en) Interface circuit
JPS63138591A (en) First in first out memory circuit
JPS63298545A (en) Memory device
JPH04219879A (en) Arithmetic unit
JPS63182779A (en) Image processing device
JPS63144490A (en) Semiconductor storage device
JPH0444699A (en) Series input parallel output memory circuit
JPS61236094A (en) Serial data input memory
JPH02172090A (en) Storage device
JPH02267650A (en) semiconductor storage device
JPH04172524A (en) Arithmetic device