JPH0421123A - Fifo register - Google Patents

Fifo register

Info

Publication number
JPH0421123A
JPH0421123A JP2126212A JP12621290A JPH0421123A JP H0421123 A JPH0421123 A JP H0421123A JP 2126212 A JP2126212 A JP 2126212A JP 12621290 A JP12621290 A JP 12621290A JP H0421123 A JPH0421123 A JP H0421123A
Authority
JP
Japan
Prior art keywords
data
address
output signal
holding
control circuit
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
JP2126212A
Other languages
Japanese (ja)
Other versions
JP2604482B2 (en
Inventor
Masato Sakamoto
正人 坂本
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 Communication Systems Ltd
Original Assignee
NEC Communication Systems 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 NEC Communication Systems Ltd filed Critical NEC Communication Systems Ltd
Priority to JP2126212A priority Critical patent/JP2604482B2/en
Publication of JPH0421123A publication Critical patent/JPH0421123A/en
Application granted granted Critical
Publication of JP2604482B2 publication Critical patent/JP2604482B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To previously recognize the using state of a memory by optionally setting up the set point of set data, comparing the set point with data stored in a memory, and when the data value exceeds the set data value, outputting a set output signal. CONSTITUTION:An address comparator 7 always receives writing and reading addresses, compares both addresses with each other, and when a dual port RAM 4 becomes an overflow state, outputs an overflow output signal and turns a write control circuit 5 to a write disabled state. In addition, the circuit 7 computes a difference between the writing and reading addresses and outputs the number of words stored in the RAM 4 as address comparing data. Comparators 10, 11 receiving the address comparing data compare the set-1 holding data and set-2 holding the data respectively stored in holding circuits 8, 9. When the address comparing data exceeds the holding data by the comparator 10, the set-1 output signal is outputted, and when the address comparing data are less than the holding data by the comparator 11, the set-2 output signal is outputted.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はFIFOレジスタに間し、特にメモリ使用状態
通知機能を持つF I FOレジスタに関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to FIFO registers, and particularly to FIFO registers having a memory usage status notification function.

〔従来の技術〕[Conventional technology]

従来のFIFOレジスタは、メモリ使用状態通知として
、内部メモリ容量をすべて使用した状態を通知するオー
バーフロー出力信号と、メモリをまったく使用していな
い状態を通知するエンプティー出力信号とを有したもの
がほとんどであり、一部のものにメモリ容量の中間まで
使用した状態を通知するハーフフル出力信号を持つもの
があった。
Most conventional FIFO registers have an overflow output signal to notify when all internal memory capacity is used, and an empty output signal to notify when no memory is used, as memory usage status notifications. Some of them had a half-full output signal to notify when the middle of the memory capacity was used.

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

上述した従来のFIFOレジスタではメモリの使用状態
がオーバーフローとエンプティーにハーフフルの状態し
か示すことができないため、完全にオーバーフロー状態
になること、あるいは完全に空状態になることを事前に
知り、オーバーフロー防止およびエンプティー防止を行
いたい場合には、外部に専用の制御回路を設けなければ
ならす機器実装面積も増大し経済的負担も大きくなると
いう問題点がある。また、数ビットあるいは数バイトの
単位で意味を持つデータの入力及び出力を行わなければ
ならない場合には、1単位分のメモリ空き容量があるか
ないが、および1単位分のデータが既に蓄積されている
か否が等の情報を必要とし、このため、新たに1単位分
のデータを認識する回路を設けなければならないので前
述と同一の問題点がある。
With the conventional FIFO register mentioned above, the memory usage state can only indicate overflow and empty half-full states, so it is necessary to know in advance that it will become completely overflow state or completely empty state, and to prevent overflow and If empty prevention is desired, there is a problem in that a dedicated control circuit must be provided externally, which increases the mounting area of the device and increases the economic burden. Also, if you need to input or output meaningful data in units of several bits or bytes, it is important to note that there may or may not be enough free memory space for one unit, and that one unit of data has already been stored. Information such as whether or not the data is present is required, and therefore a new circuit for recognizing one unit of data must be provided, resulting in the same problem as described above.

本発明の目的は、機器実装面積を増加せず、組込みとす
ることによりコストも低減させた、予め定める閾値での
警報を出力できるFIFOレジスタを提供することにあ
る。
An object of the present invention is to provide a FIFO register that can output an alarm at a predetermined threshold, without increasing the device mounting area, and by incorporating it, reducing the cost.

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

本発明のFIFOレジスタは、書き込みポートおよび読
み出しポートを持つデュアルポートRAMと、前記デュ
アルポートRAMへのデータの書き込み時にアドレスを
制御する書き込み制御回路と、前記デュアルボー)RA
Mからのデータの読み出し時に読み出しアドレスを制御
する読み出し制御回路と、前記書き込み制御回路の最新
アドレスと前記読み出し制御回路の最新アドレスとを比
較し結果を出力するアドレス比較回路を有するFIFO
レジスタにおいて、保有データ量検出閾値として任意の
値を設定しそれぞれ保持する2つの保持回路と、前記ア
ドレス比較回路の出力する前記デュアルポートRAM内
の保有データ量と前記保持回路に設定流の保有データ量
検出閾値とを比較し警報を出力する2つの比較回路とを
設ける構成である。
The FIFO register of the present invention includes a dual port RAM having a write port and a read port, a write control circuit that controls an address when writing data to the dual port RAM, and the dual port RAM.
A FIFO having a read control circuit that controls a read address when reading data from M, and an address comparison circuit that compares the latest address of the write control circuit with the latest address of the read control circuit and outputs the result.
In the register, two holding circuits each set an arbitrary value as a threshold for detecting the amount of held data and hold it, and the amount of held data in the dual port RAM output from the address comparison circuit and the held data set in the holding circuit. This configuration includes two comparison circuits that compare the amount with the amount detection threshold and output an alarm.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例のブロック図である。FIG. 1 is a block diagram of one embodiment of the present invention.

FIF○レジスタ1は、書き込みポート2および読み出
しポート3を持つデュアルポートRAM4と、デュアル
ポートRAM4へのデータの書き込み時にアドレスを制
御する書き込み制御回路5と、デュアルボ=?−RAM
Jがらのデータの読み出し時に読み出しアドレスを制御
する読み出し制御回路6と、書き込み制御回路5の最新
アドレスと読み出し制御回路6の最新アドレスとを比較
し結果を出力するアドレス比較回路7と設定1データと
設定2データとをそれぞれ入力し設定1保持データと設
定2保持データとをそれぞれ呂カする保持回路8.9と
、保持回路8,9の出力する設定1保持データおよび設
定2保持データのいずれか一方とアドレス比較回路7の
出力するアドレス比較データとをそれぞれ入力し設定1
出力信号と設定2出力信号を出力する比較回路10.1
1とから成る。
The FIF○ register 1 includes a dual port RAM 4 having a write port 2 and a read port 3, a write control circuit 5 that controls the address when writing data to the dual port RAM 4, and a dual port RAM 4 that has a write port 2 and a read port 3. -RAM
A read control circuit 6 that controls the read address when reading data from J, an address comparison circuit 7 that compares the latest address of the write control circuit 5 with the latest address of the read control circuit 6, and outputs the result, and setting 1 data. A holding circuit 8.9 inputs the setting 2 data and stores the setting 1 held data and the setting 2 held data, respectively, and either the setting 1 held data or the setting 2 held data output from the holding circuits 8 and 9. Input one side and the address comparison data output from the address comparison circuit 7, respectively, and set 1.
Comparison circuit 10.1 that outputs the output signal and the setting 2 output signal
Consists of 1.

次に、動作について説明する。Next, the operation will be explained.

まずデュアルポートRAM4の記憶ワード数がmである
とき、保持回路8にmより小さいnを設定1データとし
て設定し、保持回路9にm−nを設定2データとして設
定しておく。この設定は、外部から直に1ルアツブ・プ
ルダウン制御してもマイクロプロセッサ等で制御しても
良い。
First, when the number of memory words of the dual port RAM 4 is m, n smaller than m is set in the holding circuit 8 as setting 1 data, and m-n is set in the holding circuit 9 as setting 2 data. This setting may be controlled directly from the outside by one pull-down control, or may be controlled by a microprocessor or the like.

次に、書き込みポート2がら入力データが入力され、書
き込み制御回F!@5の出力する書き込み制御クロック
と書き込みアドレスとにより所定のアドレスに入力デー
タが書き込まれて行く。次に、読み出し制御回路6が起
動されて、読み出し制御クロックと読み出しアドレスと
により所定のアドレスから出力データを読み出しポート
3に出方する。
Next, input data is input from the write port 2, and the write control circuit F! Input data is written to a predetermined address by the write control clock outputted by @5 and the write address. Next, the read control circuit 6 is activated, and output data is output from a predetermined address to the read port 3 using the read control clock and the read address.

一方、アドレス比較回f¥37は、常に書き込みアドレ
スと読み呂しアドレスとを受信し、両者を比較し、デュ
アルポートRAM4がオーバーフロー状態になった時は
オーバーフロー出カ信号を出力し、書き込み制御回路5
も書き込み許可信号を非許可とする。又完全に空き状態
の時はエンプティー出力信号を出力し読み出し制御回路
6も読み出し許可信号を非許可にする。又、アドレス比
較回路7は、書き込みアドレスと読み出しアドレスとの
差を演算し、現在デュアルポートRAM4に蓄積されて
いるワード数をアドレス比較データとして出力する。こ
のアドレス比較データを受信した比較回路10.11に
は、それぞれ保持回路89に保持されている設定1保持
データおよび設定2保持データと比較する。この結果、
比較回路10でアドレス比較データが上回った場合には
、設定1出力信号が出力される。同様に、比較回路11
でアドレス比較データが下回った場合には、設定2出力
信号が出力される。
On the other hand, the address comparison circuit f\37 always receives the write address and the read address, compares them, and outputs an overflow output signal when the dual port RAM 4 is in an overflow state, and outputs an overflow output signal to the write control circuit. 5
Also disables the write permission signal. Moreover, when it is in a completely empty state, an empty output signal is output, and the read control circuit 6 also disables the read permission signal. Further, the address comparison circuit 7 calculates the difference between the write address and the read address, and outputs the number of words currently stored in the dual port RAM 4 as address comparison data. Comparing circuits 10 and 11 that receive this address comparison data compare it with the setting 1 holding data and setting 2 holding data held in the holding circuit 89, respectively. As a result,
If the address comparison data exceeds the address comparison data in the comparison circuit 10, a setting 1 output signal is output. Similarly, comparison circuit 11
If the address comparison data is below, the setting 2 output signal is output.

本実施例の場合には、設定1データをnに設定しである
ため、オーバーフローするm −nワード前にオーバー
フローしそうであることを知ることができる。この信号
により本発明のFIFOレジスタのデータ入力側では、
データ書き込み禁止を行うことができる。
In the case of this embodiment, since the setting 1 data is set to n, it is possible to know that an overflow is likely to occur before m - n words that overflow. Due to this signal, on the data input side of the FIFO register of the present invention,
Data writing can be prohibited.

同様に、設定2データをm−nに設定しであるため、エ
ンプティーになるm −nワード前にエンプティーにな
りそうであることを知ることができる。この信号により
本発明のFIF○レジスタのデータ出力側回路にm−n
ワード分のデータの有無を知らせることができm−nワ
ード分蓄積していないにもかかわらず読み出してしまう
ことを防ぐことができる。
Similarly, since the setting 2 data is set to m-n, it can be known that the word is likely to become empty before m-n words become empty. This signal causes the data output side circuit of the FIF○ register of the present invention to
The presence or absence of data for words can be notified, and it is possible to prevent data from being read even though m-n words have not been stored.

第2図は本発明の一実施例の設定値と出力信号との関係
を示した説明図である。
FIG. 2 is an explanatory diagram showing the relationship between set values and output signals in one embodiment of the present invention.

設定1データと設定2データとは、エンプティー出力信
号が出力されるデュアルポートRAM4が空きのときか
らオーバーフロー出力信号が出力されるデュアルポート
RAM4がいっばいになるときまで、任意に値が設定で
き、設定1データを設定することにより設定1出力信号
が、設定2データを設定することにより設定2出力信号
がそれぞれ出力される。
Setting 1 data and setting 2 data can be set to arbitrary values from when the dual port RAM 4 to which the empty output signal is output is empty to when the dual port RAM 4 to which the overflow output signal is output is full. By setting the setting 1 data, a setting 1 output signal is output, and by setting the setting 2 data, a setting 2 output signal is output.

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

以上説明したように本発明のFIFOレジスタは、設定
データの設定値を任意に設定することができ、メモリ内
に蓄積されているデータ数と比較し、設定データ値を超
えた場合に設定出力信号を出力することにより、入力デ
ータ及び出力データが数バイトの単位で意味を持つデー
タの場合や、オーバーフローおよびエンプティーになり
そうな場合にメモリの使用状態があらかじめわがるとい
う効果がある。
As explained above, the FIFO register of the present invention can arbitrarily set the setting value of the setting data, and compares it with the number of data stored in the memory, and if it exceeds the setting data value, the setting output signal is sent. By outputting , the memory usage status can be determined in advance when input data and output data are meaningful data in units of several bytes, or when overflow or empty data is likely to occur.

また本発明のFIF○レジスタと同等な機能を従来のF
IFOレジスタで実現するにはFIFOレジスタの周辺
に論理回路を組む必要があったが、本発明のFIFOを
使用すれば実装面積及び設計コストを含めた全コストを
減少させることができるという効果もある。
In addition, the function equivalent to the FIF○ register of the present invention can be implemented using the conventional FIF○ register.
To realize this with an IFO register, it was necessary to build a logic circuit around the FIFO register, but using the FIFO of the present invention also has the effect of reducing the total cost including the mounting area and design cost. .

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

第1図は本発明の一実施例のブロック図、第2図は本発
明の一実施例の設定値と出力信号の関係を示した説明図
である。 1・・・FIFOレジスタ、2・・・書き込みポート、
3・・・読み出しポート、4・・・デュアルポート、5
・・・書き込み制御回路、6・・・読み出し制御回路、
7・・・アドレス比較回路、8,9・・・保持回路、1
0゜1・・・比較回路。
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is an explanatory diagram showing the relationship between set values and output signals of one embodiment of the present invention. 1...FIFO register, 2...Write port,
3...Reading port, 4...Dual port, 5
...Write control circuit, 6...Read control circuit,
7... Address comparison circuit, 8, 9... Holding circuit, 1
0゜1...Comparison circuit.

Claims (1)

【特許請求の範囲】[Claims] 書き込みポートおよび読み出しポートを持つデュアルポ
ートRAMと、前記デュアルポートRAMへのデータの
書き込み時にアドレスを制御する書き込み制御回路と、
前記デュアルポートRAMからのデータの読み出し時に
読み出しアドレスを制御する読み出し制御回路と、前記
書き込み制御回路の最新アドレスと前記読み出し制御回
路の最新アドレスとを比較し結果を出力するアドレス比
較回路を有するFIFOレジスタにおいて、保有データ
量検出閾値として任意の値を設定しそれぞれ保持する2
つの保持回路と、前記アドレス比較回路の出力する前記
デュアルポートRAM内の保有データ量と前記保持回路
に設定済の保有データ量検出閾値とを比較し警報を出力
する2つの比較回路とを設けることを特徴とするFIF
Oレジスタ。
a dual port RAM having a write port and a read port; a write control circuit that controls an address when writing data to the dual port RAM;
A FIFO register having a read control circuit that controls a read address when reading data from the dual port RAM, and an address comparison circuit that compares the latest address of the write control circuit with the latest address of the read control circuit and outputs a result. 2, set an arbitrary value as the threshold for detecting the amount of retained data and hold each value.
and two comparison circuits that compare the amount of data held in the dual port RAM output by the address comparison circuit with a held data amount detection threshold set in the holding circuit and output an alarm. FIF featuring
O register.
JP2126212A 1990-05-16 1990-05-16 FIFO register Expired - Lifetime JP2604482B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2126212A JP2604482B2 (en) 1990-05-16 1990-05-16 FIFO register

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2126212A JP2604482B2 (en) 1990-05-16 1990-05-16 FIFO register

Publications (2)

Publication Number Publication Date
JPH0421123A true JPH0421123A (en) 1992-01-24
JP2604482B2 JP2604482B2 (en) 1997-04-30

Family

ID=14929506

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2126212A Expired - Lifetime JP2604482B2 (en) 1990-05-16 1990-05-16 FIFO register

Country Status (1)

Country Link
JP (1) JP2604482B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08305544A (en) * 1995-05-01 1996-11-22 Nec Corp Graphic data processing system in graphic processing system
JP2007505536A (en) * 2003-09-10 2007-03-08 テールズ ホールディングス ユーケー ピーエルシー Video system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53109437A (en) * 1977-03-01 1978-09-25 Ericsson Telefon Ab L M Address and break signal generator
JPS55129823A (en) * 1979-03-27 1980-10-08 Toshiba Corp Information processing system
JPH0277836A (en) * 1988-05-09 1990-03-16 Sgs Thomson Microelectron Inc Fifo having approximately full/approximately empty flag

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS53109437A (en) * 1977-03-01 1978-09-25 Ericsson Telefon Ab L M Address and break signal generator
JPS55129823A (en) * 1979-03-27 1980-10-08 Toshiba Corp Information processing system
JPH0277836A (en) * 1988-05-09 1990-03-16 Sgs Thomson Microelectron Inc Fifo having approximately full/approximately empty flag

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08305544A (en) * 1995-05-01 1996-11-22 Nec Corp Graphic data processing system in graphic processing system
JP2007505536A (en) * 2003-09-10 2007-03-08 テールズ ホールディングス ユーケー ピーエルシー Video system

Also Published As

Publication number Publication date
JP2604482B2 (en) 1997-04-30

Similar Documents

Publication Publication Date Title
US5963979A (en) System for updating inactive system memory using dual port memory
US5974482A (en) Single port first-in-first-out (FIFO) device having overwrite protection and diagnostic capabilities
KR960018880A (en) Data Processor with Transparent Operation in Background Mode and Its Method
JPH0421123A (en) Fifo register
KR100293133B1 (en) Output delay circuit
KR100397920B1 (en) Read/Write Cancelable and Variable Depth First In First Out Communication System
JP2739786B2 (en) Multi-processor system
JPH06290581A (en) Control system for writing first-in first-out memory
JPH0535443A (en) Buffer control system
JPH04107659A (en) Preventing circuit for miswrite of data to memory
JPS63292342A (en) Error detecting circuit
KR19990011456A (en) Peel Status Check Circuit and FIFO Memory Using the Same
KR920004436B1 (en) R.a.m. error detecting circuit
JPH01238345A (en) Signal interruption detection circuit
JPS62219390A (en) Fifo memory
JPH05143788A (en) Memory card
JPH04311244A (en) Microcomputer
JPS6037936B2 (en) monitoring device
JP2002063079A (en) Information-writing method
JPH01300490A (en) First-in first-out memory
JPH05241968A (en) Register device
JPH11282650A (en) Hazard prevention circuit for fifo memory
JPH0287245A (en) Option memory discriminating system
KR950025548A (en) Besa Local Bus and Isa Bus
JPH08194647A (en) External solid-state memory