JPH0594367A - Buffer storage device - Google Patents
Buffer storage deviceInfo
- Publication number
- JPH0594367A JPH0594367A JP3254902A JP25490291A JPH0594367A JP H0594367 A JPH0594367 A JP H0594367A JP 3254902 A JP3254902 A JP 3254902A JP 25490291 A JP25490291 A JP 25490291A JP H0594367 A JPH0594367 A JP H0594367A
- Authority
- JP
- Japan
- Prior art keywords
- data
- resident
- tag
- storage unit
- storage device
- 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
Links
Landscapes
- Memory System Of A Hierarchy Structure (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明はバッファ記憶装置に関
し、特に任意のデータを常駐させることが可能なバッフ
ァ記憶装置に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a buffer storage device, and more particularly to a buffer storage device capable of resident arbitrary data.
【0002】[0002]
【従来の技術】バッファ記憶装置は、CPUと主記憶の
間に設けられた高速動作の可能な記憶装置であり、主記
憶のデータをブロック単位で転送して格納し、格納され
たデータが繰り返し使用される際の時間短縮により、処
理全体の高速化を企図したものである。従来のバッファ
記憶装置は、装置内のデータ記憶領域に空きがなくなる
と、既に格納されているデータをあらかじめ定めた順序
で消去して新たに読み込んだデータで置換する構成とな
っており、任意のデータをバッファ装置内に常駐させる
ことはできなかった。2. Description of the Related Art A buffer storage device is a storage device provided between a CPU and a main memory and capable of high-speed operation. Data in the main storage is transferred and stored in blocks, and the stored data is repeated. It is intended to speed up the whole process by shortening the time when it is used. The conventional buffer storage device has a configuration in which when the data storage area in the device becomes full, the already stored data is erased in a predetermined order and replaced with newly read data. The data could not be made resident in the buffer device.
【0003】[0003]
【発明が解決しようとする課題】上述した従来のバッフ
ァ記憶装置は、任意のデータを常駐させることができな
いため、たまたま使用頻度の低い異なるデータが相次い
で使用され、バッファ記憶装置内に格納されると、使用
頻度の高いデータが消去されてしまい、処理性能が大幅
に低下する欠点がある。In the above-mentioned conventional buffer storage device, arbitrary data cannot be made resident, so that different data which are infrequently used are used one after another and stored in the buffer storage device. As a result, the frequently used data is erased, and the processing performance is significantly reduced.
【0004】本発明の目的は、任意の指定したデータを
消去することなく装置内に常駐させることのできるバッ
ファ記憶装置を提供することにある。It is an object of the present invention to provide a buffer storage device which can be made resident in the device without erasing any specified data.
【0005】[0005]
【課題を解決するための手段】本発明のバッファ記憶装
置は、CPUにより読み出されたデータを格納するため
のデータ記憶部と、このデータ記憶部に格納されたデー
タに対応するアドレス情報とデータの有無を示す有効ビ
ットと常駐か非常駐かを示す常駐ビットとを有するタグ
データを格納するためのタグ記憶部と、常駐ビット制御
線により与えられる常駐対象データか否かを示す制御情
報と前記タグ記憶部からのタグデータ情報とによって前
記データ記憶部およびタグ記憶部を制御する制御部とを
備えて構成されている。SUMMARY OF THE INVENTION A buffer storage device according to the present invention includes a data storage unit for storing data read by a CPU, address information and data corresponding to the data stored in the data storage unit. Tag storage unit for storing tag data having a valid bit indicating presence or absence and a resident bit indicating resident or non-resident, control information indicating whether or not resident target data given by a resident bit control line, and the tag. And a control unit for controlling the data storage unit and the tag storage unit according to the tag data information from the storage unit.
【0006】[0006]
【実施例】次に、本発明の実施例について図面を参照し
て説明する。Embodiments of the present invention will now be described with reference to the drawings.
【0007】図1は本発明の一実施例の構成を示すブロ
ック図である。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention.
【0008】本実施例のバッファ記憶装置は、図1に示
すように、データを格納するためのデータ記憶部2と、
格納データに対応するアドレスと格納データの有無を示
す有効ビットに加えて常駐か否かを示す常駐ビットを有
するタグデータを格納するためのタグ記憶部1と、上位
アドレス情報および常駐ビット制御線10の制御情報を
タグ記憶部1からのタグデータ情報と比較してデータ記
憶部2及びタグ記憶部1を制御する制御部3とを備えて
いる。なお、図2はタグ記憶部1に格納されるタグデー
タの構成を示す。As shown in FIG. 1, the buffer storage device of this embodiment includes a data storage unit 2 for storing data,
A tag storage unit 1 for storing tag data having an address corresponding to stored data and a valid bit indicating presence / absence of stored data, and a resident bit indicating whether or not resident, upper address information and resident bit control line 10 The control information of 1 is compared with the tag data information from the tag storage unit 1 to control the data storage unit 2 and the tag storage unit 1. 2 shows the structure of the tag data stored in the tag storage unit 1.
【0009】以下、図1及び図2を参照して本実施例の
動作を詳細に説明する。The operation of this embodiment will be described in detail below with reference to FIGS.
【0010】下位アドレスパス4を通して与えられた下
位アドレスによってタグ記憶部1から読み出されたタグ
データは、タグデータパス7を通して制御部3に渡され
る。これと同時に、制御部3には、上位アドレスパス5
を通して上位アドレスが、常駐ビット制御線10を通し
てアクセスデータが常駐対象のデータであるか否かを示
す制御情報が与えられる。The tag data read from the tag storage unit 1 by the lower address given through the lower address path 4 is passed to the control unit 3 through the tag data path 7. At the same time, the control unit 3 is provided with the upper address path 5
Control information indicating whether or not the access data is resident target data is given through the resident bit control line 10 through.
【0011】制御部3は、まずタグデータ中の有効ビッ
ト12を検査し、有効ビット12が“1”(有効)であ
れば上位アドレスとタグデータ中のアドレス部11とを
比較する。上位アドレスとアドレス部11の内容が一致
しており、且つ読み出し動作であれば、下位アドレスに
よってデータ記憶部2から読み出したデータをデータパ
ス6に出力する。又、書き込み動作であれば、データパ
ス6を通して与えられるデータをデータ記憶部2に格納
する。The control unit 3 first checks the valid bit 12 in the tag data, and if the valid bit 12 is "1" (valid), compares the upper address with the address unit 11 in the tag data. If the contents of the upper address and the contents of the address section 11 are the same and if it is a read operation, the data read from the data storage section 2 by the lower address is output to the data path 6. If it is a write operation, the data given through the data path 6 is stored in the data storage unit 2.
【0012】上位アドレスとアドレス部11の内容が不
一致で、且つ書き込み動作の場合には、主記憶要求線8
により動作要求を主記憶に対して通知し、CPUからの
データを直接主記憶に書き込み、データ記憶部2及びタ
グ記憶部1の更新を行わずに動作を完了する。When the contents of the upper address and the address portion 11 do not match and the write operation is performed, the main memory request line 8
To notify the operation request to the main memory, write the data from the CPU directly to the main memory, and complete the operation without updating the data storage unit 2 and the tag storage unit 1.
【0013】上位アドレスとアドレス部11の内容が不
一致で読み出し動作の場合には、常駐ビット制御線10
の状態とタグデータ中の常駐ビット13とを比較する。
常駐ビット制御線10の状態が“0”(非常駐)で常駐
ビット13が“1”(常駐)の場合は、主記憶に対して
動作要求を通知し、主記憶のデータを直接CPUに渡
し、データ記憶部2及びタグ記憶部1の更新は行わずに
動作を完了する。When the contents of the upper address and the address portion 11 do not match and the reading operation is performed, the resident bit control line 10
And the resident bit 13 in the tag data are compared.
When the state of the resident bit control line 10 is "0" (nonresident) and the resident bit 13 is "1" (resident), an operation request is sent to the main memory, and the data in the main memory is directly passed to the CPU. The operation is completed without updating the data storage unit 2 and the tag storage unit 1.
【0014】常駐ビット制御線10と常駐ビット13と
が上記以外の組み合わせの場合、及び有効ビット12が
“0”(無効)の場合には、CPUは主記憶から直接デ
ータを読み込まず、バッファ記憶装置に対象データを含
むデータブロックを格納し、対象データをその中から読
み出す処理をする。すなわち、主記憶に対してデータブ
ロックの読み出しを要求し、主記憶から読み出されたデ
ータブロックをデータパス6を通してデータ記憶部2に
格納する。このとき、タグ記憶部1には、タグデータパ
ス7を通して、対応する上位アドレスがアドレス部11
に格納される。又、常駐ビット13には、常駐ビット制
御線10の内容が格納され、有効ビット12には“1”
(有効)が格納される。なお、データ記憶部2及びタグ
記憶部1の制御は、記憶部制御線9により行われる。When the resident bit control line 10 and the resident bit 13 are in a combination other than the above, and when the valid bit 12 is "0" (invalid), the CPU does not directly read the data from the main memory but the buffer memory. A data block containing the target data is stored in the device, and the target data is read out from the data block. That is, the main memory is requested to read the data block, and the data block read from the main memory is stored in the data storage unit 2 through the data path 6. At this time, the corresponding upper address is stored in the tag storage unit 1 through the tag data path 7 as the address unit 11
Stored in. The resident bit 13 stores the contents of the resident bit control line 10, and the valid bit 12 has "1".
(Valid) is stored. The data storage unit 2 and the tag storage unit 1 are controlled by the storage unit control line 9.
【0015】以上詳細に説明したように、本実施例のバ
ッファ記憶装置では、任意のデータの読み出しを行う際
に、常駐ビット制御線10を“1”(常駐)に設定して
おけば、そのデータをバッファ記憶装置内に常駐させる
ことができる。従って、使用頻度の高いデータを常駐に
設定し使用頻度の低いデータを非常駐に設定すると、使
用頻度の低いデータは主として主記憶から読み出され、
使用頻度の高いデータは主としてバッファ記憶装置から
読み出されることになる。As described in detail above, in the buffer storage device of this embodiment, when the resident bit control line 10 is set to "1" (resident) when reading arbitrary data, The data can reside in buffer storage. Therefore, if frequently used data is set to be resident and infrequently used data is set to be nonresident, infrequently used data is mainly read from the main memory,
Frequently used data is mainly read from the buffer storage device.
【0016】[0016]
【発明の効果】以上説明したように、本発明のバッファ
記憶装置は、任意のデータをバッファ記憶装置内に常駐
させることができるため、バッファ記憶装置の使用効率
を向上させることができる効果がある。As described above, in the buffer storage device of the present invention, arbitrary data can be made resident in the buffer storage device, so that there is an effect that the use efficiency of the buffer storage device can be improved. ..
【図1】本発明の一実施例の構成を示すブロック図であ
る。FIG. 1 is a block diagram showing a configuration of an exemplary embodiment of the present invention.
【図2】本実施例のタグ記憶部に格納されるタグデータ
の構成図である。FIG. 2 is a configuration diagram of tag data stored in a tag storage unit of the present embodiment.
1 タグ記憶部 2 データ記憶部 3 制御部 4 下位アドレスパス 5 上位アドレスパス 6 データパス 7 タグデータパス 8 主記憶要求線 9 記憶部制御線 10 常駐ビット制御線 11 アドレス部 12 有効ビット 13 常駐ビット 1 Tag Storage Section 2 Data Storage Section 3 Control Section 4 Lower Address Path 5 Upper Address Path 6 Data Path 7 Tag Data Path 8 Main Memory Request Line 9 Storage Section Control Line 10 Resident Bit Control Line 11 Address Section 12 Valid Bit 13 Resident Bit
Claims (1)
するためのデータ記憶部と、このデータ記憶部に格納さ
れたデータに対応するアドレス情報とデータの有無を示
す有効ビットと常駐か非常駐かを示す常駐ビットとを有
するタグデータを格納するためのタグ記憶部と、常駐ビ
ット制御線により与えられる常駐対象データか否かを示
す制御情報と前記タグ記憶部からのタグデータ情報とに
よって前記データ記憶部およびタグ記憶部を制御する制
御部とを備えたことを特徴とするバッファ記憶装置。1. A data storage unit for storing data read by a CPU, address information corresponding to the data stored in the data storage unit, and a valid bit indicating presence / absence of data, and resident or nonresident. A tag storage unit for storing tag data having a resident bit indicating the data stored by the tag data information from the tag storage unit and control information indicating whether the data is resident target data given by a resident bit control line. And a control unit for controlling the tag storage unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3254902A JPH0594367A (en) | 1991-10-02 | 1991-10-02 | Buffer storage device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP3254902A JPH0594367A (en) | 1991-10-02 | 1991-10-02 | Buffer storage device |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH0594367A true JPH0594367A (en) | 1993-04-16 |
Family
ID=17271435
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP3254902A Pending JPH0594367A (en) | 1991-10-02 | 1991-10-02 | Buffer storage device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH0594367A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008181399A (en) * | 2007-01-25 | 2008-08-07 | Megachips Lsi Solutions Inc | Memory controller |
-
1991
- 1991-10-02 JP JP3254902A patent/JPH0594367A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008181399A (en) * | 2007-01-25 | 2008-08-07 | Megachips Lsi Solutions Inc | Memory controller |
US8375169B2 (en) | 2007-01-25 | 2013-02-12 | Megachips Corporation | Memory controller |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP4562919B2 (en) | Method and apparatus for implementing dynamic display memory | |
JPH09237225A (en) | Computer having cache function and method for controlling cache memory | |
JP3798049B2 (en) | Data memory and operation method thereof | |
JPH0816886B2 (en) | Fast writing method | |
JPH0594367A (en) | Buffer storage device | |
JPS6258351A (en) | Optical disk cache system | |
JPH01303547A (en) | Control system for information memory | |
JP4826873B2 (en) | Microprocessor system with hot routine memory | |
KR860007590A (en) | Buffer Memory Control System | |
JP2964504B2 (en) | Document processing device | |
JP3190661B2 (en) | Information processing system | |
JPH0728706A (en) | Cache memory device | |
JPS603224B2 (en) | Data creation method for adjusting the number of page storage areas in page buffer memory | |
JPH06282487A (en) | Cache device | |
JPH10254781A (en) | Auxiliary storage device | |
JPH0728990A (en) | Graphic memory access circuit | |
JPH05120139A (en) | Cache memory device | |
JPH05189315A (en) | Cache control system | |
JPH02253358A (en) | Cache memory | |
JPS6135583B2 (en) | ||
JPH03220645A (en) | Information processor | |
JPH04239944A (en) | Cache lock system | |
JPH06149677A (en) | Cache memory system | |
JPH04264641A (en) | Cache memory system | |
JPH05233451A (en) | Disk cache memory controller system |