JPS6194142A - First-in/first-out type memory - Google Patents

First-in/first-out type memory

Info

Publication number
JPS6194142A
JPS6194142A JP59214012A JP21401284A JPS6194142A JP S6194142 A JPS6194142 A JP S6194142A JP 59214012 A JP59214012 A JP 59214012A JP 21401284 A JP21401284 A JP 21401284A JP S6194142 A JPS6194142 A JP S6194142A
Authority
JP
Japan
Prior art keywords
data
register
input
read
output
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
JP59214012A
Other languages
Japanese (ja)
Inventor
Junichi Sakakibara
榊原 純一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP59214012A priority Critical patent/JPS6194142A/en
Publication of JPS6194142A publication Critical patent/JPS6194142A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

PURPOSE:To attain a first-in/first-out (FIFO) type memory of a high speed and large capacity by applying a system where data are written and read to the RAM addresses in the ascending order and therefore using a RAM in place of a transfer register. CONSTITUTION:The data supplied from outside via a signal line 105 are latched by an input register 17. Thus the data given from a control circuit 19 cannot be supplied and the data of the register 17 are written to a RAM11 via an address counter 12. Thus the input of data is possible again with a signal line 102. When a writing action is over, an up-down counter 14 is counted up. Then a maximum value detecting circuit 15 checks whether the buffer of the RAM11 is filled up or not. If the buffer is filled up, an input unable state is set. While the output on a signal line 106 is set under an unable state when it is decided by a minimum value detecting circuit that no data to be read out exists.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、高速で大容量を必要とするファーストイン/
ファーストアウト(FIFO)形メモリに関する。・ (従来の技術) 従来からFIFO形メモダメモリ2図に示すように入力
レジスタから出力レジスタへ複数段の転送レジスタを設
けて構成していた。第2図において21は入力レジスタ
、22〜24はそれぞれ転送レジスタ、25は出力レジ
スタ、26は制御回路である。
DETAILED DESCRIPTION OF THE INVENTION (Industrial Application Field) The present invention is applicable to first-in/first-in systems that require high speed and large capacity.
It relates to first-out (FIFO) type memory. - (Prior Art) FIFO type memorandum memory has conventionally been configured by providing multiple stages of transfer registers from input registers to output registers, as shown in Figure 2. In FIG. 2, 21 is an input register, 22 to 24 are transfer registers, 25 is an output register, and 26 is a control circuit.

第2図において入力レジスタ21の内容が空の時に、F
IFO形メモダメモリ可能状態になって外部からのデー
タを要求する。ここで、入力データが入力レジスタ21
にセットされ、入力ストロープを入力すると入力データ
レジスタ21の内容は一杯になって入力不可能状態にな
る。入力レジスタ21にデータがあると、第1段の転送
レジスタ22に上記のデータが転送され、入力レジスタ
21の内容が再び空になって入力可能状態にな9次のデ
ータが要求される。第1段の転送レジスタ22のデータ
は第2段の転送レジスタ23の内容が空の時に転送され
、第1段の転送レジスタ22の内容は空になって入力レ
ジスタ21からの次のデータを待つ。
In FIG. 2, when the contents of the input register 21 are empty, F
The IFO type memorandum becomes available and requests data from the outside. Here, the input data is input to the input register 21.
When the input strobe is input, the contents of the input data register 21 becomes full and input becomes impossible. When there is data in the input register 21, the data is transferred to the first-stage transfer register 22, and the contents of the input register 21 become empty again and the ninth data is requested. The data in the first stage transfer register 22 is transferred when the second stage transfer register 23 is empty, and the first stage transfer register 22 is empty and waits for the next data from the input register 21. .

以上のような動作を繰返して転送レジスタ22に入力す
れば、出力レジスタ25までデータが転送される。この
時、FIFO形メモリは出力可能状態となって外部から
の引取シが要求される。出力レジスタ25のデータは出
力ストロープによシ引取られ、引取りと同時にFIFO
形メモリは出力不可能状態となる。
By repeating the above operations and inputting data to the transfer register 22, the data is transferred to the output register 25. At this time, the FIFO type memory becomes ready for output and an external request is made. The data in the output register 25 is taken over by the output strop, and at the same time it is taken up, the data is transferred to the FIFO.
The shape memory becomes unable to output.

(発明が解決しようとする問題点) 以上のような動作をするFIFO形メモリでは、入力レ
ジスタ1にデータをセットしてから出力レジスタ5にデ
ータが出力されるまでn段のレジスタ22〜24を経由
するため、長時間が費やされると云う欠点があった。ま
た、それぞれのレジスタを縦続接続しているため、レジ
スタ間の転送制御が複雑であって大容量化に適していな
いと云う欠点があった。
(Problem to be Solved by the Invention) In a FIFO memory that operates as described above, n stages of registers 22 to 24 are operated after data is set in input register 1 until data is output to output register 5. The disadvantage is that it takes a long time to go through the route. Furthermore, since the respective registers are connected in series, transfer control between the registers is complicated, making it unsuitable for increasing capacity.

本発明の目的は、書込みアドレスと読出しアドレスとに
より昇順に従ってRAMアドレスにデータを書込み、読
出す方式を採用することによシ上記欠点を除去し、高速
度、大容量に構成した7アーストイン/フアーストアウ
ト(FIFO)形メモリ全提供することにある。
An object of the present invention is to eliminate the above-mentioned drawbacks by adopting a method of writing and reading data to and from RAM addresses in ascending order using a write address and a read address. The purpose is to provide a complete store-out (FIFO) type memory.

(問題点を解決するための手段) 本発明によるファーストイン/ファーストアウト形メモ
リは入力レジスタと、出力レジスタと、RAMと、書込
みアドレスカウンタと、読出しアドレスカウンタと、ア
ップダウンカウンタと、最小値検出回路と、最大値検出
回路とを具備して構成したものである。
(Means for Solving the Problems) The first-in/first-out memory according to the present invention includes an input register, an output register, a RAM, a write address counter, a read address counter, an up/down counter, and a minimum value detector. This configuration includes a circuit and a maximum value detection circuit.

入力レジスタは、外部からのデータをラッチするための
ものでちる。
The input register is used to latch data from the outside.

出力レジスタは、外部へのデータをラッチするためのも
のでちる。
The output register is used to latch data to the outside.

RAMは、入力レジスタに入力されたデータを格納する
ためのものである。
The RAM is for storing data input to the input register.

書込みアドレスカウンタは、RAMへの書込みアドレス
を与え、書込みごとにカウントアツプするためのもので
ある。
The write address counter provides a write address to the RAM and is incremented each time a write is made.

読出しアドレスカウンタは、RAM\の読出しアドレス
を与え、読出しごとにカウントアツプするためのもので
ある。
The read address counter is used to give a read address of the RAM\ and count up each time it is read.

アップダウンカウンタは、書込み/読出しの回数の差を
カウントするためのものである。
The up/down counter is for counting the difference in the number of writes/reads.

最小値検出回路は、アップダウンカウンタの出力の最小
値を検出して読出し動作を禁止するためのものである。
The minimum value detection circuit is for detecting the minimum value of the output of the up/down counter and inhibiting the read operation.

最大値検出回路は、アップダウンカウンタの出力の最大
値を検出して書込み動作を禁止するためのものである。
The maximum value detection circuit is for detecting the maximum value of the output of the up/down counter and inhibiting a write operation.

(実施例) 次に、本発明の実施例について図面を参照して説明する
(Example) Next, an example of the present invention will be described with reference to the drawings.

第1図は、本発明によるファーストイン/ファーストア
ウト(FIFO)形メモリの一実施例を示すブロック図
である。第1図において11はRAM112は書込みア
ドレスカウンタ、13は読出しカウンタ、14はアップ
ダウンカウンタ、15は最大値検出回路、16は最小値
検出回路、17は入力レジスタ、18は出力レジスタ、
19は制御回路である。
FIG. 1 is a block diagram illustrating one embodiment of a first-in/first-out (FIFO) type memory according to the present invention. In FIG. 1, 11 is a RAM 112 is a write address counter, 13 is a read counter, 14 is an up/down counter, 15 is a maximum value detection circuit, 16 is a minimum value detection circuit, 17 is an input register, 18 is an output register,
19 is a control circuit.

第1図において、外部から信号線105を介して入力さ
れたデータは入力レジスタ17へ入力ストロープによっ
てラッチされる。データがラッチされると制御回路19
からのデータは入力不可能状態になる。入力レジスタ1
7上のデータは書込みアドレスカウンタ12により示さ
れたアドレスでRAM11に書込まれる。この書込みが
行われると、信号線102は再び入力可能状態になる。
In FIG. 1, data input from the outside via a signal line 105 is latched into an input register 17 by an input strobe. When the data is latched, the control circuit 19
The data from will be in a state where it cannot be input. input register 1
The data on 7 is written to the RAM 11 at the address indicated by the write address counter 12. When this writing is performed, the signal line 102 becomes ready for input again.

書込みが完了すると書込みアドレスをカウントアツプす
るため、アップダウンカウンタ14がカウントアツプさ
れる。アップダウンカウンタ14の値は、最大値検出回
路15でRAMI iのバッファ容量一杯にデータが書
込まれたか否かを検出するためのものである。RAMI
 1の内容が一杯であることを検出した時には、制御回
路19で信号線105上の入力を不可能状態にして入力
動作を禁止する。逆に、アップダウンカウンタ14の値
は最小値検出回路16でRAMI 1のバッファに淋込
まれたデータがなく、読出すべきデータがない旨が検出
された時には、制御回路19で信号線106上の出力を
不可能状態にして出力動作を禁止する。
When writing is completed, the up/down counter 14 counts up the write address. The value of the up/down counter 14 is used by the maximum value detection circuit 15 to detect whether data has been written to the full buffer capacity of RAMI i. RAMI
When it is detected that the contents of 1 are full, the control circuit 19 disables input on the signal line 105 and prohibits the input operation. Conversely, when the minimum value detection circuit 16 detects that there is no data stored in the RAMI 1 buffer and there is no data to be read, the value of the up/down counter 14 is changed to the value of the up/down counter 14 on the signal line 106 by the control circuit 19. Disables output and prohibits output operation.

RAMIIに読出しデータが残っている場合には、書込
み動作と合致しないタイミングで読出しアドレスカウン
タ13の指示するアドレスからデータを読出し、出力レ
ジスタ18にラッチし、信号線104上の出力可能信号
を可の状態にする。
If read data remains in RAMII, the data is read from the address indicated by the read address counter 13 at a timing that does not match the write operation, latched into the output register 18, and the output enable signal on the signal line 104 is enabled. state.

出力可能の状態ではデータは読出されない。出力可能の
状態の時には、外部へのデータが読出し可能な状態であ
る。上記データが信号線103上の出力ストローブによ
り読出された時には、即時に信号線104上の出力可能
信号が不可能状態に変シ、次のデータ読出し動作に入る
。出力レジスタ18への読出し完了時には読出しアドレ
スカウンタ15がカウントアツプされ、アップダウンカ
ウンタ14がカウントダウンされる。アップダウンカウ
ンタ14は上に説明した書込み動作と読出し動作とでア
ップダウンを行い、RAM11上に読出されるべきデー
タの数量をカウントしている。
Data is not read out in the output enabled state. When the output is possible, data can be read to the outside. When the above data is read by the output strobe on the signal line 103, the output enable signal on the signal line 104 immediately changes to the disabled state and the next data read operation begins. When reading to the output register 18 is completed, the read address counter 15 counts up and the up/down counter 14 counts down. The up/down counter 14 performs up/down operations during the write operation and read operation described above, and counts the amount of data to be read onto the RAM 11.

(発明の効果) 本発明は以上説明したよう番こ、書込みアドレスと読出
しアドレスとにより昇;頃に従ってRAMアドレスにデ
ータを書込み、読出す方式を採用することにより、RA
Mを転送レジスタの代りに使用することができ、高速で
大容量のFIFO形メモシを容易に実現できるという効
果がある。
(Effects of the Invention) As explained above, the present invention employs a method of writing and reading data to and from RAM addresses according to the write address and read address.
M can be used in place of a transfer register, and there is an effect that a high-speed, large-capacity FIFO type memory can be easily realized.

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

第1図は、本発明によるFIFO形メモリの一実施例を
示すブロック図でおる。 第2図は、従来技術によるF I ’F O形メモリの
−f4Jを示すブロック図でbる。 11・・畳RAM 12〜14・・・カウンタ 15・・・最大値検出回路 16・・・最小値検出回路 17.11.21〜25・・・レジスタ19.26・・
弗制御回路
FIG. 1 is a block diagram showing an embodiment of a FIFO type memory according to the present invention. FIG. 2 is a block diagram illustrating -f4J of a FI'FO type memory according to the prior art. 11...Tatami RAM 12-14...Counter 15...Maximum value detection circuit 16...Minimum value detection circuit 17.11.21-25...Register 19.26...
Furu control circuit

Claims (1)

【特許請求の範囲】[Claims]  外部からのデータをラッチするための入力レジスタと
、外部へのデータをラッチするための出力レジスタと、
前記入力レジスタに入力されたデータを格納するための
RAMと、前記RAMへの書込みアドレスを与え、書込
みごとにカウントアップするための書込みアドレスカウ
ンタと、前記RAMへの読出しアドレスを与え、読出し
ごとにカウントアップするための読出しアドレスカウン
タと、前記書込み/読出しの回数の差をカウントするた
めのアップダウンカウンタと、前記アップダウンカウン
タの出力の最小値を検出して読出し動作を禁止するため
の最小値検出回路と、前記アップダウンカウンタの出力
の最大値を検出して書込み動作を禁止するための最大値
検出回路とを具備して構成したことを特徴とするファー
ストイン/ファーストアウト形メモリ。
An input register for latching data from the outside, an output register for latching data to the outside,
a RAM for storing data input to the input register; a write address counter for providing a write address to the RAM and counting up each time a write is provided; and a write address counter for providing a read address to the RAM and for each read. A read address counter for counting up, an up/down counter for counting the difference between the number of writes/reads, and a minimum value for detecting the minimum value of the output of the up/down counter and prohibiting a read operation. A first-in/first-out type memory comprising: a detection circuit; and a maximum value detection circuit for detecting the maximum value of the output of the up-down counter and inhibiting a write operation.
JP59214012A 1984-10-12 1984-10-12 First-in/first-out type memory Pending JPS6194142A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59214012A JPS6194142A (en) 1984-10-12 1984-10-12 First-in/first-out type memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59214012A JPS6194142A (en) 1984-10-12 1984-10-12 First-in/first-out type memory

Publications (1)

Publication Number Publication Date
JPS6194142A true JPS6194142A (en) 1986-05-13

Family

ID=16648806

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59214012A Pending JPS6194142A (en) 1984-10-12 1984-10-12 First-in/first-out type memory

Country Status (1)

Country Link
JP (1) JPS6194142A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6373324A (en) * 1986-09-05 1988-04-02 Fujitsu Ltd Memory control system for bar code reader
US4878197A (en) * 1987-08-17 1989-10-31 Control Data Corporation Data communication apparatus
JPH038015A (en) * 1989-06-06 1991-01-16 Hitachi Ltd Disk drive controller
JPH0464868U (en) * 1990-10-18 1992-06-04
JP2007035120A (en) * 2005-07-25 2007-02-08 Seiko Epson Corp Sequential access memory
JP2012522986A (en) * 2009-04-03 2012-09-27 アナログ デバイシス, インコーポレイテッド Digital output sensor FIFO buffer with single port memory

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6373324A (en) * 1986-09-05 1988-04-02 Fujitsu Ltd Memory control system for bar code reader
US4878197A (en) * 1987-08-17 1989-10-31 Control Data Corporation Data communication apparatus
JPH038015A (en) * 1989-06-06 1991-01-16 Hitachi Ltd Disk drive controller
JPH0464868U (en) * 1990-10-18 1992-06-04
JP2007035120A (en) * 2005-07-25 2007-02-08 Seiko Epson Corp Sequential access memory
JP2012522986A (en) * 2009-04-03 2012-09-27 アナログ デバイシス, インコーポレイテッド Digital output sensor FIFO buffer with single port memory

Similar Documents

Publication Publication Date Title
KR100337056B1 (en) Buffering data that flows between buses operating at different frequencies
EP0468454B1 (en) Interrupt controller
JPS6055848B2 (en) information processing equipment
JPS6194142A (en) First-in/first-out type memory
JPS6216294A (en) Memory device
JPH07210468A (en) Semiconductor auxiliary memory
JPS607529A (en) Buffer memory device
JPS63200232A (en) Serial processing system for large-capacity data
JP2000003332A (en) Bi-directional bus size conversion circuit
JPS62216046A (en) Record control system for logical simulation device
JPH03100851A (en) Fifo storage device
JPS6180447A (en) Store control system of memory
JPH0833869B2 (en) Data processing device
KR950011061B1 (en) A i/o data control circuit for shared memory
JPH04321993A (en) Storage control device
JPS6375927A (en) Buffer control system
JPS58189719A (en) Data transfer control system
JPH11175312A (en) Data transfer control unit
JPS6084632A (en) Disk controller
JPS62144263A (en) Data input and output device
JPS63245745A (en) Buffer storage controller
JPH01188959A (en) Information history memory
JPH0482077A (en) Fifo memory
JPH0628204A (en) Register protecting circuit
JPS6050792A (en) Control system of magnetic bubble memroy