JPH0836482A - Memory device - Google Patents

Memory device

Info

Publication number
JPH0836482A
JPH0836482A JP17228294A JP17228294A JPH0836482A JP H0836482 A JPH0836482 A JP H0836482A JP 17228294 A JP17228294 A JP 17228294A JP 17228294 A JP17228294 A JP 17228294A JP H0836482 A JPH0836482 A JP H0836482A
Authority
JP
Japan
Prior art keywords
input
output
data
address
area
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
JP17228294A
Other languages
Japanese (ja)
Inventor
Yoshio Kiyonari
能夫 清成
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP17228294A priority Critical patent/JPH0836482A/en
Publication of JPH0836482A publication Critical patent/JPH0836482A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Systems (AREA)

Abstract

PURPOSE:To carry out the exchange of the input/output order as a data group, to eliminate data loss and to improve the degree of the control freedom by providing a means preserving input/output addresses for existing data on an internal address control part and adding a function performing a new input/ output address control for the data inputted from this means. CONSTITUTION:The input/output address selector parts 9 and 10 of an internal address control part 4 have the functions which are capable of preserving plural input/output addresses and selecting the input/output addresses by external request signals and preserve the value of the input/output address counter to be being used at present by external request instructions. The internal address control part 4 sets and controls the storage area which is already inputted and preserved from this input/output address counter value as a use inhibition area. Next, the internal address control part 4 sets the new address within a use possible area to the input/output address counter.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、記憶素子特にFIFO
の制御に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a memory device, particularly a FIFO.
Concerning the control of.

【0002】[0002]

【従来の技術】データを書き込んだ順番に読み出すこと
が可能なFIFOにおいて、すでに保存されたデータ
(書き込まれたが読み出されていないデータ)があるに
もかかわらず新たに入力されるデータを先に出力したい
場合には、従来はその保存されたデータを捨て(リセッ
ト)その後書き込み,読み出しを行う必要があり、この
リセットによる保存データの破壊が余儀なくされてい
た。そのため、この保存されたデータを破壊せずに後の
データを先に出力させるためには、FIFOを別にもう
一つもうけ、別経路により後段に送る方法を用いざるを
得なかった。
2. Description of the Related Art In a FIFO in which data can be read in the order in which data is written, newly input data is written first even though there is already stored data (data written but not read). When it is desired to output to, the stored data must be discarded (reset) and then written and read, and the stored data must be destroyed by this reset. Therefore, in order to output the subsequent data first without destroying the stored data, it was necessary to use another method in which another FIFO was provided and the data was sent to the subsequent stage via another route.

【0003】[0003]

【発明が解決しようとする課題】前述の如く、データを
書き込んだ順番に読み出すことが可能なFIFOにおい
て、既に保存されたデータを損なうことなく、後からの
データを先に出力させることが出来るようにするために
は、FIFOを複数個持たせる必要があり、回路が大き
くなってしまうという問題があった。本発明の目的は、
従来技術に比べて回路量が小さく、さらに実用的なFI
FOを供給することにある。
As described above, in a FIFO in which data can be read in the order in which data is written, it is possible to output later data first without damaging the data already stored. In order to achieve this, it is necessary to have a plurality of FIFOs, which causes a problem that the circuit becomes large. The purpose of the present invention is to
FI with smaller circuit size compared to conventional technology and more practical
To supply FO.

【0004】[0004]

【課題を解決するための手段】従来、FIFOはRAM
と入力アドレスカウンタ,出力アドレスカウンタを持
ち、内部制御として入出力アドレスの制御(カウントア
ップ,アドレス比較等)を行うことにより構成すること
ができた。既に保存されたデータを損なうことなく後か
らのデータを先に出力させたいという本発明の目的のた
めには、内部アドレス制御部に既存データ用の入出力ア
ドレスを保存する手段を設け、既に入力された記憶領域
を使用禁止領域とするとともに、これから入力されるデ
ータに関し新たに入出力アドレス制御する機能を付加す
る。
Conventionally, a FIFO is a RAM
It has an input address counter and an output address counter, and can be configured by internally controlling input / output addresses (counting up, address comparison, etc.). For the purpose of the present invention to output the subsequent data first without damaging the already stored data, the internal address control unit is provided with means for storing the input / output address for the existing data, and the already input data is already input. The specified storage area is set as a prohibited area, and a new input / output address control function is added to the data to be input.

【0005】[0005]

【作用】外部要求命令により、まず現在使用している入
出力アドレスカウンタの値を保存する。そして内部アド
レス制御部は、この入出力アドレスカウンタ値から、既
に入力保存された記憶領域を使用禁止領域として設定,
管理する。次に内部アドレス制御部は、入出力アドレス
カウンタに、使用可能領域内の新しいアドレスをセット
する。これらの設定により、これ以降に入出力されるデ
ータが、既存データを破壊することなく、後からのデー
タを先に出力させることが可能となる。
According to the external request instruction, the value of the input / output address counter currently in use is first saved. Then, the internal address control unit sets, from the input / output address counter value, the storage area that has already been input and saved as the use prohibited area,
to manage. Next, the internal address control unit sets a new address in the usable area in the input / output address counter. By these settings, it becomes possible for the data input / output thereafter to output the subsequent data first without destroying the existing data.

【0006】本機能を満たす別案としては、切り替え要
求が入った場合、FIFOに入っているデータを一時R
AMなどに退避させ、FIFOを空にした後FIFOを
使用する。使用後一時退避していたデータをFIFO入
力側から再び入力する方法が考えられる。この方式は、
既に保存されているデータが少ない場合は良いが、多量
の場合転送時間がかかってしまう。
As another alternative for satisfying this function, when a switching request is input, the data stored in the FIFO is temporarily read.
Use the FIFO after evacuating it to AM or the like and emptying the FIFO. A method of re-inputting the data temporarily saved after use from the FIFO input side can be considered. This method is
It is good if the amount of data that has already been saved is small, but if it is large, it will take time to transfer.

【0007】[0007]

【実施例】以下、本発明の詳細を図示の実施例により説
明する。
The details of the present invention will be described below with reference to the illustrated embodiments.

【0008】通常のFIFO5は図1に示すように、入
出力データに対する入力データバッファ1,出力データ
バッファ2,データを保持するRAM(あるいはデュア
ルポートメモリなど)3と、内部アドレス制御部4から
なる。図2に内部アドレス制御部4の構成例を示す。内
部アドレス制御部4は、シフトIN(入力要求信号),
シフトOUT(出力要求信号),リセット,外部出力用
ステータスを入出力信号とし、内部アドレスを制御する
出力アドレスカウンタ制御部6,入力アドレスカウンタ
制御部7,アドレス比較制御部8等から構成される。ア
ドレス比較制御部8は、入力アドレスと出力アドレスを
比較することにより外部出力用ステータスを出力する。
これに加え内部アドレス制御部4の実際の回路ではFul
l,Empty状態時の入力,出力不許可(アドレスカウント
アップ禁止)などを制御する。本発明の一例として図3
に内部アドレス制御部の内部ブロック図を示す。これ
は、図2で示した従来のものに加え、出力アドレスセレ
クト部9,入力アドレスセレクト部10を持つ。この入
出力アドレスセレクト部9,10は、複数の入出力アド
レスを保存できるとともに、外部要求信号によりその入
出力アドレス領域を選択しうる機能を有する。この外部
要求の方式としては、以下の2方式が考えられる。1)
外部要求として割込み用いる。つまり割込み入力により
これまでの入出力アドレスを保持し、これより使用禁止
アドレス領域を決め、その後の入出力アドレスを新しく
制御することにより、割込み以前のデータを保存し、か
つ割込み後のデータから入出力することが可能となる。
そして割込み後のデータ処理終了後、終了割込み等を外
部から受け、旧アドレスを出力アドレスカウンタ制御部
6,入力アドレスカウンタ制御部7にセットしなおし、
旧データの制御を再開する。2)外部要求信号として複
数本の入出力制御信号を持つ。これにより領域をセレク
トし、入出力アドレスセレクト部9,10で複数のアド
レスを保持,制御を可能となり、擬似的に複数個のFI
FOを所有するものと同様に扱うことができる。この複
数のデータ群を制御するアドレス制御方法としては、入
力順にアドレス領域を確保し、アドレス領域を可変とす
るものと、あらかじめセレクトNo.によりアドレス領
域を決めておくものとがある。後者のあらかじめ領域を
決めておく方法にも、図4に示すように(a)アドレス領
域等分分割方式と(b)アドレス領域重み分割方式とがあ
るが、必要に応じて選択する。
As shown in FIG. 1, a normal FIFO 5 comprises an input data buffer 1, an output data buffer 2 for input / output data, a RAM (or a dual port memory etc.) 3 for holding data, and an internal address control section 4. . FIG. 2 shows a configuration example of the internal address control unit 4. The internal address control unit 4 uses the shift IN (input request signal),
It is composed of an output address counter control unit 6, an input address counter control unit 7, an address comparison control unit 8 and the like for controlling internal addresses by using shift OUT (output request signal), reset, and external output status as input / output signals. The address comparison controller 8 outputs the external output status by comparing the input address with the output address.
In addition to this, in the actual circuit of the internal address control unit 4, Ful
Controls input and output disabling (address count-up prohibited) in the l and Empty states. As an example of the present invention, FIG.
An internal block diagram of the internal address controller is shown in FIG. This has an output address select section 9 and an input address select section 10 in addition to the conventional one shown in FIG. The input / output address select units 9 and 10 have a function of storing a plurality of input / output addresses and a function of selecting the input / output address area by an external request signal. The following two methods can be considered as the method of the external request. 1)
Uses an interrupt as an external request. In other words, the interrupt input holds the previous input / output address, determines the prohibited address area from this, and newly controls the subsequent input / output address to save the data before the interrupt and input the data after the interrupt. It becomes possible to output.
Then, after the data processing after the interruption is completed, a termination interrupt or the like is received from the outside, and the old address is reset in the output address counter control unit 6 and the input address counter control unit 7,
Restart control of old data. 2) It has a plurality of input / output control signals as external request signals. As a result, a region is selected, and a plurality of addresses can be held and controlled by the input / output address select units 9 and 10, and a plurality of FIs can be simulated.
It can be treated like having a FO. As an address control method for controlling the plurality of data groups, an address area is secured in the order of input, and the address area is made variable. In some cases, the address area is decided by. The latter method of predetermining the area also includes (a) address area equal division method and (b) address area weight division method, as shown in FIG. 4, but these are selected as necessary.

【0009】本方式を適用したシステム例を図5に示
す。入力データに対し演算1を行いその結果をFIFO
1に入力し、このFIFO1の出力を入力として演算2
を行いその結果をFIFO2に入力する。同様にこのF
IFO2の出力を入力として演算3を行いその結果をF
IFO3に入力する、というものである。ここで初めに
外部要求として、アドレス領域“1”を選択する。これ
により入出力アドレスセレクト制御部9,10は、アド
レス領域“1”における現在の入出力アドレスを入出力
アドレスレジスタにセットする。入力データを演算し、
演算結果をFIFO1〜3のアドレス領域“1”に入力す
る。ここで割込み処理としてFIFO1〜3に格納され
ているデータよりも先に別の入力データにおける演算結
果を得たい場合、外部要求として、アドレス領域“2”
を選択する。これにより入出力アドレスセレクト部9,
10は、入出力アドレスレジスタから現在の入出力アド
レスを保存する。次に入出力アドレスセレクト部9,1
0は、アドレス領域“2”における現在の入出力アドレ
スを入出力アドレスレジスタにセットする。この後入力
データにより演算を開始すれば、FIFO1〜3にある
既存データを保存したままに、アドレス領域“2”を用
いて後からの処理データを出力することができる。
FIG. 5 shows an example of a system to which this method is applied. Performs operation 1 on the input data and outputs the result to FIFO
1 is input, and the output of this FIFO 1 is used as an input for calculation 2
And the result is input to the FIFO2. Similarly this F
Calculation 3 is performed with the output of IFO2 as input, and the result is F
It is input to IFO3. Here, the address area "1" is first selected as an external request. As a result, the input / output address select control units 9 and 10 set the current input / output address in the address area “1” in the input / output address register. Calculate the input data,
The calculation result is input to the address area “1” of FIFO1 to 3. If it is desired to obtain the operation result of another input data before the data stored in the FIFOs 1 to 3 as an interrupt process, the address area “2” is set as an external request.
Select As a result, the input / output address select unit 9,
10 stores the current input / output address from the input / output address register. Next, the input / output address select units 9 and 1
0 sets the current input / output address in the address area “2” in the input / output address register. After this, if the calculation is started with the input data, it is possible to output the later processed data using the address area “2” while keeping the existing data in the FIFOs 1 to 3.

【0010】また、この後FIFOのアドレス領域
“2”のデータが残っていても、外部要求によりアドレ
ス領域“1”もしくはアドレス領域“3”を選択可能で
あり、この方式によりデータ群毎の入出力順番を自由に
制御しうる。
After that, even if the data in the address area "2" of the FIFO remains, the address area "1" or the address area "3" can be selected by an external request. The output order can be freely controlled.

【0011】[0011]

【発明の効果】本発明によれば、次のような効果があ
る。(1)FIFOを複数個並列的にもつ必要がなくな
ることによりハード量の削減することができ、ハード占
有面積,値段における低減効果がある。(2)既に入力
されたデータを破壊することがない為、このデータの連
続性による出力結果(製造製品など)のムダ,作り直し
等がない。(3)データ群毎の入出力順番を自由に制御
しうるので、入力と出力の外部要求制御を別々に行うこ
とにより、待ち時間などのムダ時間を低減することがで
きる。
The present invention has the following effects. (1) Since it is not necessary to have a plurality of FIFOs in parallel, the amount of hardware can be reduced, and the hardware occupying area and cost can be reduced. (2) Since the data that has already been input is not destroyed, the output results (manufactured products, etc.) are not wasted or recreated due to the continuity of this data. (3) Since the input / output order for each data group can be freely controlled, wasteful time such as waiting time can be reduced by separately controlling external request for input and output.

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

【図1】FIFOの構成例を示す図である。FIG. 1 is a diagram illustrating a configuration example of a FIFO.

【図2】内部アドレス制御部の構成例を示す図である。FIG. 2 is a diagram showing a configuration example of an internal address control unit.

【図3】本発明によるFIFOの構成例を示す図であ
る。
FIG. 3 is a diagram showing a configuration example of a FIFO according to the present invention.

【図4】FIFOのアドレス分割例(a)等分分割方式、
(b)重み分割方式を示す図である。
FIG. 4 is an example of FIFO address division (a) equal division method,
(b) A diagram showing a weight division method.

【図5】システム適用例を示す図である。FIG. 5 is a diagram illustrating a system application example.

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

1…入力データバッファ、2…出力データバッファ、3
…RAM(もしくはデュアルポートメモリ)、4…内部
アドレス制御部、5…FIFO、6…出力アドレスカウ
ンタ制御部、7…入力アドレスカウンタ制御部、8…ア
ドレス比較制御部、9…出力アドレスセレクト部、10
…入力アドレスセレクト部。
1 ... Input data buffer, 2 ... Output data buffer, 3
RAM (or dual port memory), 4 internal address control unit, 5 FIFO, 6 output address counter control unit, 7 input address counter control unit, 8 address comparison control unit, 9 output address select unit, 10
... Input address select section.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】大容量記憶媒体(例えばRAM)を内部ア
ドレス制御することにより、データを書き込んだ順番に
読み出すことが可能な記憶素子(以下FIFO(First
InFirst Out)とする。)において、外部より内部アドレ
スを制御する手段を持ち、すでに保存されたデータ(書
き込まれたが読み出されていないデータ)を損なうこと
なく次に書き込まれるデータからも先に読み出すことが
可能なことを特徴とするメモリ装置。
1. A storage element capable of reading data in the order in which data is written by controlling an internal address of a large-capacity storage medium (eg, RAM) (hereinafter referred to as FIFO (First
InFirst Out). ), It has a means to control the internal address from the outside, and it is possible to read earlier from the data to be written next without damaging the already saved data (data written but not read). Memory device characterized by.
JP17228294A 1994-07-25 1994-07-25 Memory device Pending JPH0836482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17228294A JPH0836482A (en) 1994-07-25 1994-07-25 Memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17228294A JPH0836482A (en) 1994-07-25 1994-07-25 Memory device

Publications (1)

Publication Number Publication Date
JPH0836482A true JPH0836482A (en) 1996-02-06

Family

ID=15939039

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17228294A Pending JPH0836482A (en) 1994-07-25 1994-07-25 Memory device

Country Status (1)

Country Link
JP (1) JPH0836482A (en)

Similar Documents

Publication Publication Date Title
JP2001521246A (en) Buffering data exchanged between buses operating at different frequencies
JPH0836482A (en) Memory device
JP2577604Y2 (en) Image memory and data processing device
JP2000227895A (en) Device and method for transferring image data
JPH0198017A (en) Printer controller
JPH11328383A (en) Image processor
JPH11212729A (en) Duplex disk device
JP2797836B2 (en) Double buffer memory system
JPH05204830A (en) Input/output controller
JP2773767B2 (en) Data setting method
JPH0520253A (en) Data processor
JPH03158943A (en) Buffer storage/transfer system
JPH1011351A (en) Computer system
JPS5977535A (en) Data buffer controlling system
JPS58181134A (en) Data transfer circuit
JPS5920030A (en) Controlling system of input and output instruction
JPH09326832A (en) Common use buffer device and its control method
JPS61127025A (en) Optical disk controller
JP2000077978A (en) Digital filter
JPH06301799A (en) Data supply controller
JPH04165440A (en) Device for operation mode changing by bank switching
JPH0652101A (en) Multiport memory for data buffer
JPS63217444A (en) Multiple port memory
JPH06274405A (en) Memory write control circuit
JPH04361348A (en) Data transfer method