JPH01223545A - Buffer memory - Google Patents

Buffer memory

Info

Publication number
JPH01223545A
JPH01223545A JP63048612A JP4861288A JPH01223545A JP H01223545 A JPH01223545 A JP H01223545A JP 63048612 A JP63048612 A JP 63048612A JP 4861288 A JP4861288 A JP 4861288A JP H01223545 A JPH01223545 A JP H01223545A
Authority
JP
Japan
Prior art keywords
data
memory
address
read
buffer
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
JP63048612A
Other languages
Japanese (ja)
Inventor
Nobuteru Morita
森田 信輝
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 JP63048612A priority Critical patent/JPH01223545A/en
Publication of JPH01223545A publication Critical patent/JPH01223545A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To increase the probability that request data exist in a buffer memory and to improve the use efficiency of a bus by providing an adder means to add the block size of a data memory, a comparing means, a buffer memory control means, etc. CONSTITUTION:After the request address from an I/O is stored from an input output bus 6 through an input output bus interface 21 to an input output address register 19, it is compared with the address information read from a directory memory 12 by a comparator 14. As the result, at the time of non-consistency, a buffer memory control part 11 adds a block size (k) to an address in the register 19 with an adder 16 and it is decided with the address after adding whether or not the data exist in a buffer memory 11. As the result, when the data are absent, the control part 11 outputs the address after adding to the bus 6, requests the data and thus, the data read from a main memory device are, written and updated to the memory 12 and a data storing memory 13. Consequently, the probability that the request data exist in the device 1 is increased and the use efficiency of the bus 6 can be improved.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はバッファ記憶装置に関し特に入出力制御部と主
記憶との間に設けられるバッファ記憶装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a buffer storage device, and particularly to a buffer storage device provided between an input/output control section and a main memory.

〔従来の技術〕[Conventional technology]

従来、入出力制御装置と主記憶との間に設けられるバッ
ファ装置としては、 FIFOがあった。これは入出力
制御装置内に組込まれて、接続装置と主記憶とのスピー
ドの差を吸収しようと考えていた。
Conventionally, FIFO has been used as a buffer device provided between an input/output control device and main memory. The idea was to incorporate this into the input/output control unit to absorb the difference in speed between the connected device and the main memory.

又、バッファ記憶装置は、要求元から要求されるデータ
巾より広いデータ巾(ブロックサイズ)で。
Also, the buffer storage device has a data width (block size) that is wider than the data width requested by the request source.

主記憶から読み出し、バッファ記憶内に格納している。It is read from main memory and stored in buffer memory.

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

ところが最近、主記憶と入出力制御部とをパスで結合す
る装置か増えている。高速な主記憶パスと入出力バスと
をバス結合装置で接続する形式の場合、 FIFOをバ
ス結合装置に組込むと、 FIFOの本数と、それをデ
ータ転送装置に割当てるという作業が必要だった。又、
従来から中央処理装置に用いられているキャッジ−メモ
リーだと1周辺装置の連続アクセスという動作に対して
、ブロック内のデータの有無をチエツクし、無い場合に
、ブロックサイズ分のデータを取りに行くと、働いてし
まう為に、ブロックサイズ分のFIFOとしか働かず。
However, recently, there has been an increase in the number of devices that connect the main memory and the input/output control section through a path. In the case of a format in which a high-speed main memory path and an input/output bus are connected by a bus coupling device, incorporating FIFOs into the bus coupling device requires work to determine the number of FIFOs and allocate them to data transfer devices. or,
Cache memory, which has traditionally been used in central processing units, checks whether or not there is data in a block for continuous access by one peripheral device, and if it does not, fetches data equivalent to the block size. Because it works, it only works as a FIFO for the block size.

その効果が低かった。The effect was low.

そこで9本発明の技術的課題は、上記欠点に鑑み、要求
データがバッファ記憶に存在する確率を高め、バスの利
用率を向上させたバッファ記憶装置を提供することであ
る。
In view of the above drawbacks, a technical object of the present invention is to provide a buffer storage device that increases the probability that requested data exists in the buffer storage and improves the bus utilization rate.

〔問題点を解決するための手段〕 即ち本発明によれば9通常のキャッシュメモリーに、さ
らに、要求アドレスにデータメモリのブロックサイズを
加算する手段と、その結果とディレクトリメモリの中に
格納されたアドレスとを比較する比較手段と、不一致の
時には、加算結果を用いて、主記憶をアクセスし、主記
憶からの読み出しデータと加算結果とでデータメモリの
内容とディレクトリメモリの内容とを書き換えるバッフ
ァ記憶制御手段とを有することを特徴とするバッファ装
置が得られる。
[Means for Solving the Problems] That is, according to the present invention, in addition to the ordinary cache memory, there is also a means for adding the block size of the data memory to the request address, and the result is stored in the directory memory. A buffer memory that accesses the main memory using the addition result and rewrites the contents of the data memory and the directory memory with the data read from the main memory and the addition result when there is a mismatch. A buffer device characterized in that it has a control means is obtained.

〔実施例〕〔Example〕

次に9本発明の実施例に係るバッファ記憶装置について
2図面を参照して説明する。
Next, a buffer storage device according to a ninth embodiment of the present invention will be described with reference to two drawings.

第2図は2本発明が適用、される情報処理システムの概
略的な構成図である。このシステムは、バッファ記憶装
置1.中央処理装置2.主記憶装置3および入出力制御
装置4とにより構成されておシ、それぞれはメモリパス
5.および入出力バス6により相互に接続されている。
FIG. 2 is a schematic diagram of an information processing system to which the present invention is applied. This system consists of a buffer storage device 1. Central processing unit 2. It is composed of a main storage device 3 and an input/output control device 4, each having a memory path 5. and are interconnected by an input/output bus 6.

入出力制御装置4がメモリデータを読み出す時には、入
出力バス6にデータ要求を出す。このデータ要求を受は
取ったバッファ記憶装置1は自装置内にデータが存在す
るか否かを調べ、存在すれば、バッファ記憶装置1内の
データを、入出力バス6を介して、入出力制御装置4へ
転送する。しかし、バッファ記憶装置l内にデータが存
在しない場合には、メモリパス5へ、アドレスを添えて
、読出し要求が出される。この読出し要求に応答して、
主記憶装置3から上記アドレスにより指示されたデータ
が読み出され、入出力バス6を介して、入出力制御装置
4へ転送する。と同時にバッファ記憶装置内部にも記憶
される。
When the input/output control device 4 reads memory data, it issues a data request to the input/output bus 6. Upon receiving this data request, the buffer storage device 1 checks whether data exists within itself, and if it exists, the data in the buffer storage device 1 is input/output via the input/output bus 6. Transfer to the control device 4. However, if there is no data in the buffer storage device l, a read request is issued to the memory path 5 along with an address. In response to this read request,
The data specified by the address is read from the main storage device 3 and transferred to the input/output control device 4 via the input/output bus 6. At the same time, it is also stored inside the buffer storage device.

本実施例のバッファ記憶装置1は、上記の動作ニ続いて
、要求アドレスにブロックサイズを加算して再度自装置
内にデータが存在するか否かを調べ存在すれば動作を終
了させる。存在しなければ加算後のアドレスを用いてメ
モリパス5へ読出し要求を出す。この読出し要求に応答
して、主記憶装置3からデータが読出されると、バッフ
ァ装置1内のメモリに格納する。このようにして次のア
クセスの準備かバッファ装置内で行われる。
Following the above operations, the buffer storage device 1 of this embodiment adds the block size to the requested address, checks again whether or not data exists in its own device, and if so, ends the operation. If it does not exist, a read request is issued to the memory path 5 using the address after the addition. When data is read from the main memory device 3 in response to this read request, it is stored in the memory within the buffer device 1. In this way, preparation for the next access is made within the buffer device.

第1図は1本発明による実施例の構成をブロック図によ
り示したものである。この図において。
FIG. 1 is a block diagram showing the configuration of an embodiment according to the present invention. In this figure.

バッファ記憶装置1は入出力バス6とメモリパス5との
間に接続されている。バッファ記憶装置1は、バッファ
記憶制御部11.ディレクトリメモ!j12jデータ格
納メモリ13.比較器14.アドレス選択回路15.マ
ルチプレクサ17.およびメモリハスインタフェース1
8.アドレスレジスタ19.データレジスタ20 、 
I10バスインタフェニス21によって構成されている
Buffer storage device 1 is connected between input/output bus 6 and memory path 5 . The buffer storage device 1 includes a buffer storage control section 11. Directory memo! j12j data storage memory 13. Comparator 14. Address selection circuit 15. Multiplexer 17. and memory interface 1
8. Address register 19. data register 20,
It is composed of an I10 bus interface 21.

このように構成された実施例において、 I/Q装置か
らの要求アドレスは、入出力バスから、入出カバスイン
タフエース21を経て、入出力アドレスレジスタ19に
格納される。要求されたアドレスのデータがバッファ記
憶装置l内にあるか否かを判定する為に、ディレクトリ
メモリ12から読み出されたアドレス情報と比較される
。両者が−致した場合には、一致信号か、比較器14か
らバッファ記憶制御部11に供給される。これによって
、バッファ記憶制御部11はデータ格納メモリ13から
データを読み出し、同時に、マルチプレクサ17を制御
して、データレジスタ20ヘデータを読み出す。読み出
されたデータは入出カバスインタフエースを経由して入
出力パスへ出力され1沖制御部へ送られる。
In the embodiment configured in this way, the requested address from the I/Q device is stored in the input/output address register 19 via the input/output bus interface 21 from the input/output bus. It is compared with the address information read from directory memory 12 to determine whether the data at the requested address is in buffer storage l. If they match, a match signal is supplied from the comparator 14 to the buffer storage controller 11. As a result, the buffer storage control unit 11 reads data from the data storage memory 13 and simultaneously controls the multiplexer 17 to read the data to the data register 20. The read data is output to the input/output path via the input/output bus interface and sent to the 1st offshore control unit.

一方比較器14の両人力が一致しない時、比較器14か
らの不一致信号を受は取ると、バッファ記憶制御は、デ
ータ要求信号を出力して、パスインタフェースによって
、上記読み出しアドレスをパスに出力して、主記憶装置
3からデータを読出す。読出されたデータは、マルチプ
レクサ15を通シパスへ送られる。それと同時に、バッ
ファ記憶制御部11からの指示をうけて、ディレクトリ
メモリ12には、そのときの読出しアドレス情報を、ま
たデータ格納メモリ13には、データをそれぞれ書き込
む。その後、バッファ記憶制御部11はマルチプレクサ
15を切シ換えて、アドレスレジスタ19のアドレスに
、ブロックサイズkを加算器16を用いて加算し、再度
、加算後のアドレスで、データがバッファ記憶装置l内
にあるか否かを判定する。比較器14の出力が一致すれ
ば、これ以降の動作は行わない。比較器14の出力が不
一致を示す時には、バッファ記憶制御部11はデータ要
求信号を出力して、パスインタフェース21より加算後
のアドレスをパスに出力し。
On the other hand, when the two outputs of the comparator 14 do not match, upon receiving the mismatch signal from the comparator 14, the buffer storage control outputs a data request signal, and the path interface outputs the read address to the path. Then, the data is read from the main storage device 3. The read data is sent to the pass through multiplexer 15. At the same time, upon receiving an instruction from the buffer storage control section 11, the current read address information is written into the directory memory 12, and the data is written into the data storage memory 13, respectively. After that, the buffer storage control unit 11 switches the multiplexer 15 to add the block size k to the address of the address register 19 using the adder 16, and again, the data is stored in the buffer storage device at the address after the addition. Determine whether it is within the range. If the outputs of the comparator 14 match, no further operation is performed. When the output of the comparator 14 indicates a mismatch, the buffer storage control unit 11 outputs a data request signal, and the path interface 21 outputs the address after addition to the path.

主記憶装置3がデータを読み出す。読み出されたデータ
は、バッファ記憶制御部11からの指示により、ディレ
クトリメモリ12に、その読み出しアドレス情報を、又
、データ格納メモリ13にはデータそれぞれ書き込み、
更新される。
Main memory device 3 reads data. According to instructions from the buffer storage control unit 11, read address information of the read data is written in the directory memory 12, and data is written in the data storage memory 13, respectively.
Updated.

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

以上説明したように2本発明は、バッファ記憶装置に、
加算器を付加し、さらに、要求アドレスにブロックサイ
ズを加算するよう制御し、270算後のアドレスに対す
るデータが、バッファ記憶装置にあるかどうか判断し、
データがない場合に、加算後のアドレスを用いて、主記
憶をアクセスし。
As explained above, the present invention provides a buffer storage device with:
Adding an adder, further controlling to add the block size to the requested address, and determining whether data for the address after 270 calculations exists in the buffer storage device,
If there is no data, access the main memory using the address after addition.

バッファ記憶内のディレクトリメモリとデータメモリと
の内容を更新することにより、入出力制御邸のように、
データ転送を連続したメモリ領域に行う装置に対して、
要求データがバッファ記憶に存在する確率を高める効果
かある。又、バッファ記憶に存在する確率が高くなる為
に、入出力パスを1つの制御部が占有する時間が短かく
なシ、パスの利用率が上るといプ効果かある。
By updating the contents of directory memory and data memory in buffer storage, like an input/output control house,
For devices that transfer data to contiguous memory areas,
This has the effect of increasing the probability that the requested data exists in the buffer memory. In addition, since the probability that the information exists in the buffer memory increases, the time that one control unit occupies the input/output path is shortened, which has the effect of increasing the path utilization rate.

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

第1図は本発明の詳細なブロック図、第2図は本発明の
装置を含む情報処理システムの構成図である。 l・・・バッファ記憶装置、2・・・中央処理装置、3
・・・主記憶装置、4・・・入出力制御装置、5・・・
メモリパス、6・・・入出力パス、11・・・バッファ
記憶制御部、12・・・ディレクトリメモリ、13・・
・データ格納メモ!7115・・・マルチプレクサ、1
6・・・加算器。 18・・・メモリパスインタフェース、21・・・入出
カバスインタフエース。 第1図
FIG. 1 is a detailed block diagram of the present invention, and FIG. 2 is a configuration diagram of an information processing system including the apparatus of the present invention. l...Buffer storage device, 2...Central processing unit, 3
...Main storage device, 4...I/O control device, 5...
Memory path, 6... Input/output path, 11... Buffer storage control unit, 12... Directory memory, 13...
・Data storage memo! 7115...Multiplexer, 1
6...Adder. 18...Memory path interface, 21...Input/output bus interface. Figure 1

Claims (1)

【特許請求の範囲】[Claims] 1、主記憶部のデータの写しを格納するデータメモリと
、前記データの写しに対応する前記主記憶のアドレス、
又はアドレスの一部を格納するディレクトリメモリと、
データ要求元からの要求アドレスと前記ディレクトリの
中に格納されたアドレスとを比較し、その比較結果が一
致した時に、前記データの写しを前記データメモリより
前記要求元に供給し、比較結果が不一致の時には、前記
読み出しアドレスに応じた主記憶部からの読出しデータ
を前記要求元に供給すると共に前記データメモリの内容
と前記ディレクトリメモリの内容とを、それぞれ、読出
しデータと読み出しアドレスとで書き換えるバッファ記
憶装置に於いて、前記要求アドレスに前記データメモリ
のブロックサイズを加算する加算手段と、該加算手段に
より加算された結果と前記ディレクトリメモリの中に格
納されたアドレスとを比較する比較手段と、該不一致の
時には、前記加算結果を用いて、前記主記憶をアクセス
し、前記主記憶からの読み出しデータと加算した後のア
ドレスで、前記データメモリの内容と前記ディレクトリ
メモリの内容とを書きかえるバッファ記憶制御手段とを
有することを特徴とするバッファ記憶装置。
1. a data memory that stores a copy of the data in the main memory, and an address in the main memory that corresponds to the copy of the data;
Or a directory memory that stores part of the address,
The requested address from the data request source is compared with the address stored in the directory, and when the comparison results match, a copy of the data is supplied from the data memory to the request source, and if the comparison result does not match. At the time of , a buffer memory supplies read data from the main memory according to the read address to the request source and rewrites the contents of the data memory and the contents of the directory memory with the read data and the read address, respectively. In the apparatus, an addition means for adding a block size of the data memory to the requested address, a comparison means for comparing the result of addition by the addition means with an address stored in the directory memory, and When there is a mismatch, the main memory is accessed using the addition result, and the buffer memory rewrites the contents of the data memory and the directory memory with the address after the addition with the read data from the main memory. A buffer storage device comprising a control means.
JP63048612A 1988-03-03 1988-03-03 Buffer memory Pending JPH01223545A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63048612A JPH01223545A (en) 1988-03-03 1988-03-03 Buffer memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63048612A JPH01223545A (en) 1988-03-03 1988-03-03 Buffer memory

Publications (1)

Publication Number Publication Date
JPH01223545A true JPH01223545A (en) 1989-09-06

Family

ID=12808234

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63048612A Pending JPH01223545A (en) 1988-03-03 1988-03-03 Buffer memory

Country Status (1)

Country Link
JP (1) JPH01223545A (en)

Similar Documents

Publication Publication Date Title
JPH04290150A (en) Device and method for controlling bidirectional fifo as interface between two buses in multi-task system
US5313602A (en) Multiprocessor system and method of control over order of transfer of data between buffer storages
US5675737A (en) Message receiving system for use in parallel computer system
JPH01223545A (en) Buffer memory
JPH0285941A (en) Data processing system
JPS61165170A (en) Bus controlling system
JPS5853075A (en) Information processor provided with high speed separation buffer
JPH02112039A (en) Buffer storage device
JPS6031647A (en) Data processor
JPH10247182A (en) Multiprocessor system
JPS62274349A (en) Data processing system
JPS6115247A (en) Data processor
JPH05233440A (en) Data transfer system equipped with buffer function
JPH0752423B2 (en) Data transfer control method
JPS61221845A (en) Producing system for invalidated address of buffer memory
JPS62184560A (en) Input/output buffer controller
JPH03269650A (en) Buffer storage
JP2553128B2 (en) Data buffer device
JPH05233443A (en) Multiprocessor system
JPS6031646A (en) Data processor
JPS60123944A (en) Buffer memory controlling system of information processor
JPH01269144A (en) Storing buffer control system
JPH0784875A (en) Write buffer control mechanism
JPH039431A (en) Interruption processing system
JPH0528041A (en) Cache memory control system