JPH02272613A - Counter - Google Patents

Counter

Info

Publication number
JPH02272613A
JPH02272613A JP9483689A JP9483689A JPH02272613A JP H02272613 A JPH02272613 A JP H02272613A JP 9483689 A JP9483689 A JP 9483689A JP 9483689 A JP9483689 A JP 9483689A JP H02272613 A JPH02272613 A JP H02272613A
Authority
JP
Japan
Prior art keywords
data
input
counter
output
memory
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
JP9483689A
Other languages
Japanese (ja)
Inventor
Itsuo Segi
逸雄 世木
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP9483689A priority Critical patent/JPH02272613A/en
Publication of JPH02272613A publication Critical patent/JPH02272613A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To speed up counting operation by means of simple constitution by providing the counter with a memory circuit for storing binary data obtained by adding N bits to a certain binary data and outputting data counted up by N bits in each data input. CONSTITUTION:Data obtained of adding '1' to an address signal to be binary data for specifying a data area in a rapid memory 12 are stored in a data table as count-up data. In the case of outputting data obtained by counting up input data ID to be prescribed data by '1', the input data ID are inputted to the address pins AP0 to APn of the memory as address signals and a reading signal 13 is activated, so that binary data counted out from the input data by '1' are outputted from data pins DP0 to DPn as output data OD. Consequently, the counter capable of high speed counting operation can be obtained.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は高速メモリ素子を利用したカウンタに関する
ものである。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a counter using a high-speed memory element.

〔従来の技術〕[Conventional technology]

従来の高速カウンタとしては、ルックアヘッドキャリー
カウンタがある。その内部構成としては、第4図に示す
ように複数論理ゲートと、カウンタクロック信号の立ち
上がりに同期して人力データをラッチ出力する複数のD
型フリップフロップ(以下、D −F/Fと略記する)
より構成されている。図において、(1)はANDゲー
ト(A I ’)〜(A4)を通して人力された人力デ
ータID0〜ID、。
A conventional high-speed counter is a look-ahead carry counter. As shown in Fig. 4, its internal configuration includes multiple logic gates and multiple Ds that latch and output human input data in synchronization with the rising edge of the counter clock signal.
type flip-flop (hereinafter abbreviated as D-F/F)
It is composed of In the figure, (1) is human data ID0 to ID input through AND gates (AI') to (A4).

(2)〜(5)を、ORゲート(OI)〜(04)を介
してD−F/F (Fl)〜(F4)にラッチ可能とす
るロード信号、上記各入力データID0〜Ion−,(
2) 〜(5)はD−F/F (Fl)〜(F4)に入
力されるカウンタクロック(11)の立ち上がりにより
ラッチされ、出力データODo〜0Dn−+ (7)〜
(10)として出力される。又、ロード信号(1)をノ
ンアクイブにするとラッチされている出力データODo
〜00n−I(7)〜(lO)は、カウンタクロック(
11)の立ち上がり毎にカウントアツプされ、出力デー
タOD0〜QDn−+ (7)〜(10)は+1加算さ
れて出力される。尚、(6)は前ステージからのキャリ
信号で、第。−1番目では。−。
A load signal that enables latching of (2) to (5) to D-F/F (Fl) to (F4) via OR gates (OI) to (04), each of the above input data ID0 to Ion-, (
2) - (5) are latched by the rise of the counter clock (11) input to D-F/F (Fl) - (F4), and the output data ODo - 0Dn-+ (7) -
(10) is output. Also, when the load signal (1) is made non-aquive, the latched output data ODo
~00n-I(7) ~(lO) is the counter clock (
11) is counted up every time the signal rises, and the output data OD0 to QDn-+ (7) to (10) are incremented by +1 and output. Note that (6) is the carry signal from the previous stage, and is the carry signal from the previous stage. -In the first place. −.

ヶ航、又はステージすべてのキャリ信号((:RYo)
〜((:1IYn−2)が含まれる。
Carry signal for all stages ((:RYo)
~((:1IYn-2) is included.

次に動作について説明する。入力データ■D0〜IDn
−+ (2)〜(5)をプラスカウントアツプする場合
、まず、ロード信号LOへD (1)をアクティブ(L
owレヘル)にし、インバータ(N1)を介して人力デ
ータが入力されているANDケート(AI)〜(八、)
にして入力し、データIDo ”=IDn−+ (2)
 〜(5)を確定後、カウンタクロックCLに(11)
を立ち上げる。すると、カウンタ内部のD  F/F 
(F+)〜(F4)が各ANDゲート(AI)〜(A4
)及びORゲート(01)〜(04)を通して人力され
た人力データ10.〜10.。
Next, the operation will be explained. Input data■D0~IDn
-+ When counting up (2) to (5), first activate (L) D (1) to the load signal LO.
AND Kate (AI) ~ (8,) in which human data is input via the inverter (N1)
and input the data IDo ”=IDn-+ (2)
After determining ~(5), set (11) to counter clock CL.
launch. Then, the D F/F inside the counter
(F+) to (F4) are each AND gate (AI) to (A4
) and the human-powered data 10. ~10. .

(2)〜(5)をラッチし、出力データODo〜OD、
(2) to (5) are latched, output data ODo to OD,
.

(7)〜(16)にそのまま入力データ■Do〜In、
(7) - (16) input data as is ■Do - In,
.

(2)〜(5)を出力する。出力データが確定後その反
転がD −F/F (F、)〜(F4)のQ端子より次
段の入力ヘキャリ信号CRYo” (:RY、−+ (
6)として各インバータ(N4)〜(N6)を介してN
ANDゲート(N、)〜(N3)のそわぞれに入力され
、カウントアツプデータを次のカウンタクロック(11
)までに生成する。その後ロート信号しOA[1(1)
をノンアクティブ(Highレベル)にし、カウンタク
ロックCLに(11)を立ち上げると、上記のカウント
アツプデータなNANDゲート(N1)〜(N3)、A
NDゲート(A5)〜(AI2)   ORゲート(0
1)〜(04)を通してD −F/F (F、)〜(F
4)にラッチし、出力データ00o”00.−+ (7
)〜(16)をプラス1カウントアツプする。
Output (2) to (5). After the output data is determined, its inversion is transferred from the Q terminal of D -F/F (F, ) to (F4) to the next stage input carry signal CRYo'' (:RY, -+ (
6) through each inverter (N4) to (N6)
The count-up data is input to each of the AND gates (N,) to (N3) and is sent to the next counter clock (11).
) to be generated. After that, the rot signal is OA [1 (1)
When the counter clock CL is made non-active (High level) and the counter clock CL is turned on (11), the count-up data of the NAND gates (N1) to (N3) and A
ND gate (A5) ~ (AI2) OR gate (0
1) through (04) D -F/F (F,) ~ (F
4) and output data 00o"00.-+ (7
) to (16) are incremented by one count.

(発明が解決しようとする課題 〕 従来のカウンタは以上のように構成されているため、入
力データをカウントアツプする場合、確定した入力デー
タをロード信号入力によってロードする動作と、人力デ
ータをカウントアツプして出力データとして出力するた
めのカウントアツプ動作の2サイクルを必要とせねばな
らずカウント動作の高速化に制限を来すことになった。
(Problem to be Solved by the Invention) Since the conventional counter is configured as described above, when counting up input data, it requires the operation of loading confirmed input data by inputting a load signal, and the operation of counting up manual data. This requires two cycles of count-up operation to output the data as output data, which limits the speed of the count operation.

また、人力データのピッド数(桁数)が増え、カウンタ
の段数が増えると前段のカウンタからのキャリ信号も増
え、そのため論理積をとるためのゲート入力が増加し、
回路が複雑化するなどの問題点があった。
Additionally, as the number of pids (number of digits) of human data increases and the number of counter stages increases, the carry signal from the previous counter also increases, which increases the number of gate inputs for performing logical AND.
There were problems such as the circuit becoming complicated.

この発明は上記のような問題点を解消するためになされ
たもので、入力データ確定後1サイクル分の時間でカウ
ントアツプでき、しかも前段からのキャリ人力をとるこ
ともない極めて単純な構成でカウンタを得ることを目的
とする。
This invention was made to solve the above-mentioned problems, and has an extremely simple configuration that allows the counter to be counted up in one cycle of time after the input data is determined, and does not require manual labor from the previous stage. The purpose is to obtain.

〔課題を解決するための手段〕[Means to solve the problem]

この発明に係るカウンタは、複数ビット構成の2進数値
データをアドレス信号として入力し、アドレス信号対応
のデータ領域には上記2進数値データに対しNビットを
加算した2進数値データをデータテーブルとして記憶し
たメモリ回路を備え、各2進数値データ入力毎に、Nビ
ット歩進した2進数値データをカウント出力として読み
出すようにしたものである。
In the counter according to the present invention, binary value data having a plurality of bits is input as an address signal, and in a data area corresponding to the address signal, binary value data obtained by adding N bits to the binary value data is stored as a data table. The device is equipped with a memory circuit for storing data, and is configured to read binary value data incremented by N bits as a count output every time binary value data is input.

〔作用〕[Effect]

この発明によるメモリ回路は、被加算数としての2進数
値データをアドレス信号として入力したならば、該アド
レス信号によって指定されるデータテーブルより、上記
2進数値データにNビットを加算した2進数値データを
カウントアツプされた加算数として読み出し出力するた
め、メモリ回路のアクセスタイムと同等の速度でカウン
ト動作を行なうことかできる。
In the memory circuit according to the present invention, when binary value data as an augend is input as an address signal, a binary value obtained by adding N bits to the binary value data is obtained from a data table specified by the address signal. Since the data is read and output as a counted up addition number, the counting operation can be performed at a speed equivalent to the access time of the memory circuit.

(実施例〕 以下、この発明の一実施例を図について説明する。第1
図は本実施例によるカウンタを構成する高速メモリであ
り、図において、(12)は高速メモリ素子であり、ア
ドレスピン(AP、)〜(APo)にはアドレス信号と
しての複数ビットの入力データIDo ”IDo(2)
〜(5)が人力され、データピン(DPo)〜(op、
)にはカウントアツプデータとして出力データ00.〜
00n(7)〜(lO)が出力される。
(Example) Hereinafter, an example of the present invention will be explained with reference to the drawings.
The figure shows a high-speed memory constituting the counter according to this embodiment. In the figure, (12) is a high-speed memory element, and address pins (AP, ) to (APo) have multiple bits of input data IDo as an address signal. “IDo(2)
〜(5) is manually input and the data pin (DPo)〜(op,
) has output data 00. as count-up data. ~
00n(7) to (lO) are output.

(13)は高速メモリ(12)のリード信号READで
これをアクティブにすることにより、カウントアツプデ
ータを取り出すことができる。(14)はメモリへカウ
ントアツプデータを書き込んでおくためのライト信号W
RITIEである。
By activating (13) with the read signal READ of the high speed memory (12), count up data can be taken out. (14) is a write signal W for writing count up data to memory.
It is RITIE.

上記高速メモリ(I2)のデータ領域には第2図に示す
如く、データ領域を指定する2進データのアドレス信号
に対し1を加算したデータ、例えばアドレスがro−0
002Jであれば、該アドレスに対応するデータ領域に
はro−00124がカウントアツプデータとしてデー
タテーブルに格納されている。従って、所定の2進数値
データである人力データIDを+1カウントアツプして
出力する場合は、入力データ10をアドレス信号として
メモリのアドレスビン(APo)〜(AP、、)に入力
し、リード信号(13)をアクティブにすれば、入力デ
ータより+1カウントアツプされた2進数値データが出
力データODとしてデータピン(opo)〜(op、)
より出力される。
As shown in FIG. 2, the data area of the high speed memory (I2) has data obtained by adding 1 to the binary data address signal specifying the data area, for example, the address is ro-0.
If it is 002J, ro-00124 is stored in the data table as count-up data in the data area corresponding to the address. Therefore, when counting up and outputting the manual data ID, which is predetermined binary value data, by +1, input data 10 as an address signal to the address bins (APo) to (AP, , ) of the memory, and then output the read signal. When (13) is activated, the binary value data counted up by +1 from the input data is output as the output data OD at the data pins (opo) to (op,).
It is output from

又、メモリは出力データビン数と入力アドレスビン数が
異なってもよく、入力アドレスビン数と出力データビン
数が同じになるよう複数のメモリを使用しても良い。第
3図は256に×1ビットのメモリを18ケ使用した1
8ビツトカウンタの例であり、メモリのリード時間が1
5nsならば、15nsでデータのカウントアツプが可
能となる。
Further, the number of output data bins and the number of input address bins of the memories may be different, or a plurality of memories may be used so that the number of input address bins and the number of output data bins are the same. Figure 3 shows 1 using 18 256 x 1 bit memories.
This is an example of an 8-bit counter, and the memory read time is 1
If it is 5 ns, data can be counted up in 15 ns.

尚、上記実施例では、入力データIDo〜ID、を設定
し、リード信号をアクティブ動作にしてカウントアツプ
データを出力したが、カウントアツプデータ000〜O
DnをアドレスピンAP0〜AP、側に帰還させると共
に、帰還タイミングより時間差をおいてリード信号をア
クティブにすることで、連続的なカウントアツプ出力が
可能となる。
In the above embodiment, the input data IDo to ID are set and the read signal is activated to output count-up data, but the count-up data 000 to O
Continuous count-up output is possible by returning Dn to the address pins AP0 to AP and activating the read signal with a time difference from the feedback timing.

(発明の効果〕 以上のように、この発明によれば2進数値データよりな
る被加算数をメモリのアドレス信号とし、メモリのデー
タ領域にはアドレス信号に+1を加算したデータを格納
しであるため、被加算数のカウントアツプデータをメモ
リのリード動作のみで出力することができる。よって、
極めて単純な回路構成で高速カウント動作が可能なカウ
ンタか得られる効果がある。
(Effects of the Invention) As described above, according to the present invention, the augend consisting of binary value data is used as the address signal of the memory, and the data obtained by adding +1 to the address signal is stored in the data area of the memory. Therefore, the count-up data of the augend can be output only by reading the memory.
This has the advantage of providing a counter that can perform high-speed counting operations with an extremely simple circuit configuration.

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

第1図はこの発明の一実施例によるカウンタの構成図、
第2図はメモリのアドレスとデータの関係を示すテーブ
ル図、第3図は複数のメモリを使用したカウンタの例を
示す図、第4図は従来のカウンタの構成図である。 図において、(2)〜(5)は入力データIDo〜ID
n、  (7)〜(8)は出力データODo〜00. 
、(12)はメモリ、(13)はリード信号である。 なお、各図中、同一符号は同−又は相当部分を示す。
FIG. 1 is a configuration diagram of a counter according to an embodiment of the present invention;
FIG. 2 is a table diagram showing the relationship between memory addresses and data, FIG. 3 is a diagram showing an example of a counter using a plurality of memories, and FIG. 4 is a configuration diagram of a conventional counter. In the figure, (2) to (5) are input data IDo to ID
n, (7) to (8) are output data ODo to 00.
, (12) is a memory, and (13) is a read signal. In each figure, the same reference numerals indicate the same or corresponding parts.

Claims (1)

【特許請求の範囲】[Claims] 複数ビット構成の2進数値データをアドレス信号として
入力し、アドレス信号対応のデータ領域には上記2進数
値データに対しNビットを加算した2進数値データをデ
ータテーブルとして記憶したメモリ回路を備え、各2進
データ数値入力毎に、Nビット歩進した2進数値データ
をカウント出力として読み出すことを特徴とするカウン
タ。
A memory circuit is provided in which binary value data having a plurality of bits is input as an address signal, and in a data area corresponding to the address signal, binary value data obtained by adding N bits to the binary value data is stored as a data table. A counter characterized in that for each binary data numerical value input, binary numerical data incremented by N bits is read out as a count output.
JP9483689A 1989-04-14 1989-04-14 Counter Pending JPH02272613A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9483689A JPH02272613A (en) 1989-04-14 1989-04-14 Counter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9483689A JPH02272613A (en) 1989-04-14 1989-04-14 Counter

Publications (1)

Publication Number Publication Date
JPH02272613A true JPH02272613A (en) 1990-11-07

Family

ID=14121130

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9483689A Pending JPH02272613A (en) 1989-04-14 1989-04-14 Counter

Country Status (1)

Country Link
JP (1) JPH02272613A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04292075A (en) * 1991-03-20 1992-10-16 Fanuc Ltd Picture processor

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04292075A (en) * 1991-03-20 1992-10-16 Fanuc Ltd Picture processor

Similar Documents

Publication Publication Date Title
US6564289B2 (en) Method and apparatus for performing a read next highest priority match instruction in a content addressable memory device
US5099481A (en) Registered RAM array with parallel and serial interface
JPH04233825A (en) Programmable logic device, circuit block used in this device, method for determining whether input to aforesaid device is used in logic function and method for making input buffer of aforesaid device unusable
EP0554489A1 (en) Multi-port static random access memory with fast write-thru scheme
US4045779A (en) Self-correcting memory circuit
KR900000048B1 (en) The lsi memory circuit
KR960042730A (en) Semiconductor storage device
US5021994A (en) Look-ahead flag generator
US4641278A (en) Memory device with a register interchange function
JPH03180933A (en) Stack memory
JPH0863975A (en) Staic ram and processing unit having this static ram
JP2960752B2 (en) Semiconductor storage device
US10262737B2 (en) Semiconductor integrated circuit
JPH02272613A (en) Counter
JPH0855471A (en) Synchronous semiconductor memory device
JP3071435B2 (en) Multi-bit match circuit
WO2016100582A1 (en) System and method for fast modification of register content
JPH01138694A (en) Memory device
JPS60554A (en) Memory control device
US6002858A (en) Cycle time optimization for self-timed read only memory compilers
JPH1049444A (en) Storage device and its control method
KR100211146B1 (en) Register access method
JPH0573703A (en) Semiconductor integrated circuit device
JPH01233514A (en) Write/read asynchronous fifo type buffer
JPS59106028A (en) Key input control circuit