JPH0520188A - Cache controller - Google Patents

Cache controller

Info

Publication number
JPH0520188A
JPH0520188A JP3168607A JP16860791A JPH0520188A JP H0520188 A JPH0520188 A JP H0520188A JP 3168607 A JP3168607 A JP 3168607A JP 16860791 A JP16860791 A JP 16860791A JP H0520188 A JPH0520188 A JP H0520188A
Authority
JP
Japan
Prior art keywords
data
replacement
cache
memory
read
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
JP3168607A
Other languages
Japanese (ja)
Inventor
Noriyuki Tachibana
則行 橘
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 JP3168607A priority Critical patent/JPH0520188A/en
Publication of JPH0520188A publication Critical patent/JPH0520188A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To improve the prereading effect, to shorten the replacement time, and to prevent the read of the invalid data by increasing the replacement value between the programs and the instructions having the space locality and reducing the replacement value between the programs and the data having the reduced space locality. CONSTITUTION:When a main storage 2 of a CPU 1 is read, a cache control part 3 decides whether the data are already stored in a cache memory 4 or not by the information on an address line 6. If not, a replacement data value deciding part 12 decides the replacement data value based on the information on a control information line 8. A bus control part 13 controls a system bus control part 5 and then takes the data out of the storage 2 to write them into the memory 4. Then a valid flag of a cache control table 14 is set.

Description

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

【0001】[0001]

【産業上の利用分野】本発明はキャッシュ制御装置に関
し、特にミスヒット時の入替制御方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a cache control device, and more particularly to a replacement control system at the time of a mishit.

【0002】[0002]

【従来の技術】従来のキャッシャ制御装置のキャッシュ
ミスヒット時の入替え方法は、ただ一つブロックを入替
えるかキャッシュアクセスのあったブロックのアドレス
上の次のブロックをプリフェッチの対象とするかをメモ
リ読出しの種類に関係なく固定的に決定していた。
2. Description of the Related Art A conventional cashier control device has a replacement method at the time of a cache miss hit whether a single block is replaced or a next block on an address of a block having a cache access is a prefetch target. It was fixed regardless of the type of reading.

【0003】また、メモリ読出しの種類でブロックサイ
ズを変えるためには、キャッシュ制御装置を複数用意し
ていた。
Further, in order to change the block size depending on the type of memory read, a plurality of cache control devices have been prepared.

【0004】[0004]

【発明が解決しようとする課題】この従来のキャッシュ
制御装置は、入替量がアドレスまたは命令またはデータ
読出しとは無関係であったため、入替がいつも固定的で
あり、入替えのデータ量が少いと先読み効果が減少しヒ
ット率を下げ、入替データ量が多いと入替処理のため処
理装置の次のメモリ要求が待たされ、また先取りデータ
が無効の率が高くなるという欠点があった。
In this conventional cache control device, since the replacement amount has nothing to do with the reading of the address, the instruction, or the data, the replacement is always fixed, and if the replacement data amount is small, the prefetch effect is obtained. However, if the amount of replacement data is large, the next memory request of the processing device is made to wait for replacement processing, and the prefetch data becomes invalid.

【0005】又、メモリ読出しの種類で、キャッシュ制
御装置を複数個用意するのは金物量が多くなるという欠
点があった。さらに、データの入替単位がブロック単位
であるため、入替単位が大きくなりすぎるという欠点が
あった。
In addition, preparing a plurality of cache control devices as a memory read type has a drawback that the amount of metal is large. Further, since the data replacement unit is a block unit, there is a drawback that the replacement unit becomes too large.

【0006】[0006]

【課題を解決するための手段】本発明のキャッシュ制御
装置は、処理装置と主記憶装置の間のバッファ記録であ
るキャッシュメモリを制御するキャッシュ制御装置にお
いて、キャッシュミスヒットが発生した場合にアドレス
情報及び命令読出しかデータ読出しかの情報により入替
メモリ量を決定する手段と、前記入替メモリ量に応じた
回数だけ前記主記憶装置メモリリード要求を行いリード
データを該当ブロックへ取込みキャッシュ管理テーブル
上の取込みデータに対応するキャッシュメモリ有効/無
効フラグを有効にする手段とを備えている。
SUMMARY OF THE INVENTION A cache control device of the present invention is a cache control device for controlling a cache memory which is a buffer record between a processing device and a main storage device, and when a cache mishit occurs, address information is generated. And means for determining the replacement memory amount based on the information of instruction read or data read, and the main memory memory read request is made a number of times corresponding to the replacement memory amount, and the read data is fetched to the corresponding block and fetched on the cache management table. And means for validating the cache memory valid / invalid flag corresponding to the data.

【0007】[0007]

【実施例】次に、本発明について図面を参照して説明す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings.

【0008】図1は本発明の一実施例のブロック図であ
る。処理装置(CPU)1は、主記憶装置2に命令また
はデータ読出しが発生すると、アドレス線6及び制御情
報線8上に命令/データ種別,メモリ読出要求情報を出
す。キャッシュ制御部3は、キャッシュメモリ4に既に
存在するかどうかをアドレス線6から判断する。
FIG. 1 is a block diagram of an embodiment of the present invention. When a command or data read occurs in the main memory 2, the processing unit (CPU) 1 outputs a command / data type and memory read request information on the address line 6 and the control information line 8. The cache control unit 3 determines from the address line 6 whether or not it already exists in the cache memory 4.

【0009】キャッシュメモリ4に無い場合、入替デー
タ量決定部12は制御情報線8の情報から命令/データ
種別を判定し、アドレス線6の情報とともに入替データ
量を決定する。決定方法は、例えば、アドレス空間を4
つに区切り、入替量をアドレス上位にいくに従って1,
2,4,8倍へ変える。また、命令,データで、命令は
データの2倍入替えとする。
If not in the cache memory 4, the replacement data amount determination unit 12 determines the instruction / data type from the information on the control information line 8 and determines the replacement data amount together with the information on the address line 6. The determination method is, for example, that the address space is 4
Divide into two, and as the replacement amount goes up,
Change to 2, 4, 8 times. In the case of instructions and data, the instructions are exchanged twice as much as the data.

【0010】例えば、命令読出しの場合、16バイト入
れ替えるとすると、バス制御部13に下式で決まるリプ
レースサイクル数だけ、メモリ読出要求を行う。
For example, in the case of instruction reading, if 16 bytes are replaced, memory read requests are issued to the bus control unit 13 for the number of replacement cycles determined by the following equation.

【0011】リプレースサイクル数=16バイト÷リプ
レース時の読出データ幅 バス制御部13は、バス制御情報線9を介して、システ
ムバス制御部5へメモリ読出要求する。システムバス制
御部5は、システムバス10を経て主記憶装置2からデ
ータを取り出し、データ線7により、CPU1とキャッ
シュメモリ4へ渡す。キャッシュメモリ制御線11はキ
ャッシュメモリ4への書き込みを制御する。
Number of replacement cycles = 16 bytes / read data width upon replacement The bus control unit 13 makes a memory read request to the system bus control unit 5 via the bus control information line 9. The system bus control unit 5 takes out data from the main storage device 2 via the system bus 10 and transfers it to the CPU 1 and the cache memory 4 via the data line 7. The cache memory control line 11 controls writing to the cache memory 4.

【0012】次に、CPU1からの読出しがデータの場
合、入替データ量決定部12は、例えば、4バイト入替
えを決定する。バス制御部13は、変式で決まるリプレ
ースサイクル数だけメモリ読出要求を行う。
Next, when the data read from the CPU 1 is data, the replacement data amount determination unit 12 determines, for example, 4-byte replacement. The bus control unit 13 makes a memory read request for the number of replacement cycles determined by the variation.

【0013】リプレースサイクル数=4バイト÷リプレ
ース時の読出データバス幅 データが取り込まれると、キャッシュ管理デーブル14
の有効フラグを設定する。キャッシュヒット時は、キャ
ッシュメモリ4からCPU1へデータを渡す。
Number of replacement cycles = 4 bytes / read data bus width at the time of replacement When data is fetched, the cache management table 14
Set the valid flag for. When there is a cache hit, data is passed from the cache memory 4 to the CPU 1.

【0014】[0014]

【発明の効果】以上説明したように本発明は、キャッシ
ュミスヒット時の入替データ量を、処理装置の要求する
命令/データ種別とアドレス空間情報とで決定すること
により、先読み効果が期待できる命令の場合、つまり空
間的局所性のある場合は入替えデータ量を多くし、デー
タを読む場合、つまり空間的局所性の少ない場合は入替
データ量を少くし、先読みによるメモリ読出時間と、入
替えによる待ち時間と無効な先読みを減少する効果があ
る。
As described above, according to the present invention, a prefetch effect can be expected by determining the replacement data amount at the time of a cache miss by the command / data type requested by the processing device and the address space information. In the case of, that is, when there is spatial locality, the amount of replacement data is increased, and when reading data, that is, when there is little spatial locality, the amount of replacement data is decreased, and the memory read time by pre-reading and waiting by replacement Has the effect of reducing time and invalid lookahead.

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

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

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

1 処理装置(CPU) 2 主記憶装置 3 キャッシュ制御部 4 キャッシュメモリ 5 システムバス制御部 12 入替データ量決定部 13 バス制御部 14 キャッシュ管理テーブル 1 Processor (CPU) 2 Main Storage Device 3 Cache Control Unit 4 Cache Memory 5 System Bus Control Unit 12 Replacement Data Amount Determination Unit 13 Bus Control Unit 14 Cache Management Table

Claims (1)

【特許請求の範囲】 【請求項1】 処理装置と主記憶装置の間のバッファ記
録であるキャッシュメモリを制御するキャッシュ制御装
置において、キャッシュミスヒットが発生した場合にア
ドレス情報及び命令読出しかデータ読出しかの情報によ
り入替メモリ量を決定する手段と、前記入替メモリ量に
応じた回数だけ前記主記憶装置メモリリード要求を行い
リードデータを該当ブロックへ取込みキャッシュ管理テ
ーブル上の取込みデータに対応するキャッシュメモリ有
効/無効フラグを有効にする手段とを備えることを特徴
とするキャッシュ制御装置。
Claim: What is claimed is: 1. A cache control device for controlling a cache memory, which is a buffer recording between a processing device and a main memory device, in case of a cache mishit, read address information and instruction or data read. Means for determining the amount of replacement memory based on the information, and a read request is made to the main memory device for a number of times corresponding to the amount of replacement memory, and read data is fetched into the corresponding block. A cache control device comprising means for validating a valid / invalid flag.
JP3168607A 1991-07-10 1991-07-10 Cache controller Pending JPH0520188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3168607A JPH0520188A (en) 1991-07-10 1991-07-10 Cache controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3168607A JPH0520188A (en) 1991-07-10 1991-07-10 Cache controller

Publications (1)

Publication Number Publication Date
JPH0520188A true JPH0520188A (en) 1993-01-29

Family

ID=15871195

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3168607A Pending JPH0520188A (en) 1991-07-10 1991-07-10 Cache controller

Country Status (1)

Country Link
JP (1) JPH0520188A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0773027A (en) * 1993-06-24 1995-03-17 Nec Corp System recovery method for general-purpose computer
US6535960B1 (en) 1994-12-12 2003-03-18 Fujitsu Limited Partitioned cache memory with switchable access paths

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6027967A (en) * 1983-07-27 1985-02-13 Hitachi Ltd Block transfer control system of buffer storage device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6027967A (en) * 1983-07-27 1985-02-13 Hitachi Ltd Block transfer control system of buffer storage device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0773027A (en) * 1993-06-24 1995-03-17 Nec Corp System recovery method for general-purpose computer
US6535960B1 (en) 1994-12-12 2003-03-18 Fujitsu Limited Partitioned cache memory with switchable access paths

Similar Documents

Publication Publication Date Title
EP1769364B1 (en) Information processing apparatus and information processing method
JP3289661B2 (en) Cache memory system
US5265236A (en) Method and apparatus for increasing the speed of memory access in a virtual memory system having fast page mode
JPH0512116A (en) Cache memory controller
US6216208B1 (en) Prefetch queue responsive to read request sequences
US6345320B1 (en) DMA address buffer and cache-memory control system
JPH06222992A (en) Cache system and method for control of cache controller
JP2001060169A (en) Cache controller and computer system
JP4019073B2 (en) Cacheable DMA
US5367657A (en) Method and apparatus for efficient read prefetching of instruction code data in computer memory subsystems
JP3506024B2 (en) Information processing equipment
US5619673A (en) Virtual access cache protection bits handling method and apparatus
JP2001014212A5 (en)
KR960007833B1 (en) Method and apparatus for fast page mode selection
JPH0520188A (en) Cache controller
JPH06243037A (en) Data look-ahead device
JPH0784879A (en) Cache memory device
JPH02301843A (en) Pre-fetch controlling system
JPH04340637A (en) Cache control system
JPH08314803A (en) Disk cache controller
JP3378270B2 (en) Multiprocessor system
JPH01150953A (en) Disk cache device
JP3503480B2 (en) Cache memory control method and device
US7840757B2 (en) Method and apparatus for providing high speed memory for a processing unit
JP2000035918A (en) Cache memory device

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 19970401