JPH0784886A - Method and unit for cache memory control - Google Patents

Method and unit for cache memory control

Info

Publication number
JPH0784886A
JPH0784886A JP5226989A JP22698993A JPH0784886A JP H0784886 A JPH0784886 A JP H0784886A JP 5226989 A JP5226989 A JP 5226989A JP 22698993 A JP22698993 A JP 22698993A JP H0784886 A JPH0784886 A JP H0784886A
Authority
JP
Japan
Prior art keywords
data
cache memory
storage device
empty area
existence
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
JP5226989A
Other languages
Japanese (ja)
Inventor
Makoto Tazumi
誠 田積
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial Co 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP5226989A priority Critical patent/JPH0784886A/en
Publication of JPH0784886A publication Critical patent/JPH0784886A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To provide the cache memory control method and cache memory control unit which can shorten the process time of even an information processor, using a device which is rewritten only in block units of constant size like a flash memory and long in rewriting time, as a storage device. CONSTITUTION:An address comparison part 4 when reading data out of a cache memory 3 to the flash memory 2 confirms the addresses of all the data on the cache memory 3 and counts the data in address ranges at certain intervals to select the address range containing the largest number of data as an object to be written out. A replacement execution part 5 writes all the data in the address range, selected by the address comparison part 4, out of the cache memory 3 to the flash memory 2.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、情報処理装置における
記憶装置ならびにキャッシュメモリの制御方法および制
御装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a control method and a control device for a storage device and a cache memory in an information processing device.

【0002】[0002]

【従来の技術】一般に、情報処理装置を構成する際に
は、処理装置と記憶装置との間に高速にアクセスできる
小容量のキャッシュメモリを設け、頻繁に利用するデー
タを記憶装置からキャッシュメモリにコピーして処理装
置が使用するという方法がよく用いられる。
2. Description of the Related Art Generally, when configuring an information processing apparatus, a small-capacity cache memory that can be accessed at high speed is provided between a processing apparatus and a storage apparatus, and frequently used data is transferred from the storage apparatus to the cache memory. A method of copying and using by the processing device is often used.

【0003】このキャッシュメモリは、システムのスタ
ート時にはまったくデータをもっておらず、処理装置が
記憶装置にアクセス、すなわちデータの読み出しまたは
書き込みをするたびに、アクセスしたデータがコピーさ
れる。そして、すでにキャッシュメモリにコピーされた
データを処理装置が使用する際には、記憶装置にはアク
セスせず、高速のキャッシュメモリのみにアクセスす
る。
This cache memory has no data at the start of the system, and the accessed data is copied every time the processing device accesses the storage device, that is, reads or writes the data. When the processing device uses the data already copied to the cache memory, the storage device is not accessed, and only the high-speed cache memory is accessed.

【0004】しかし、キャッシュメモリは記憶装置に比
較すると小量のデータ容量しかないため、いずれはキャ
ッシュメモリの領域にすべてデータがコピーされ、新た
なデータをキャッシュメモリにコピーするためには、す
でにキャッシュメモリにあるデータを記憶装置に書き出
して空領域をつくり、その空領域に新たなデータをコピ
ーする必要がある。
However, since the cache memory has a small amount of data capacity as compared with the storage device, eventually all the data is copied to the area of the cache memory, and in order to copy new data to the cache memory, the cache memory has already been cached. It is necessary to write the data in the memory to the storage device, create an empty area, and copy new data to the empty area.

【0005】そこで従来は、処理装置からのデータの書
き込みの際にも、キャッシュメモリに該当データがあれ
ばキャッシュメモリのデータのみを変更して、記憶装置
のデータは変更せず、キャッシュメモリが一杯になって
新たなデータをキャッシュメモリにコピーする必要が生
じた際に、はじめてリプレースすなわち記憶装置にデー
タを書き出すというコピーバック方式が採用されてい
た。
Therefore, conventionally, even when data is written from the processor, if there is corresponding data in the cache memory, only the data in the cache memory is changed, the data in the storage device is not changed, and the cache memory is full. Then, when it became necessary to copy new data to the cache memory, the copy back method of replacing the data, that is, writing the data to the storage device, was adopted for the first time.

【0006】このコピーバック方式以外にも、処理装置
からのデータの書き込みの際に、キャッシュメモリのデ
ータだけでなく記憶装置のデータも変更するライトスル
ー方式があるが、コピーバック方式の方が記憶装置への
アクセスを削減することができ、システム性能が向上す
るため、よく用いられている。なお、コピーバック方式
の場合、キャッシュメモリが一杯になった場合に、記憶
装置にキャッシュメモリのどのデータを書き出すかを決
定する必要があるが、その方式には、最も過去に参照さ
れたデータを選択するLRU(Least RecentlyUsed )
方式、任意に選択するランダム方式、最も過去にコピー
してきたデータを選択するFIFO(First In Last Ou
t )方式などがある。
In addition to the copy-back method, there is a write-through method in which not only the data in the cache memory but also the data in the storage device is changed when writing data from the processing device. It is commonly used because it can reduce access to devices and improve system performance. In the case of the copy-back method, it is necessary to decide which data in the cache memory should be written to the storage device when the cache memory is full. LRU (Least Recently Used) to select
Method, random method to select arbitrarily, FIFO (First In Last Ou) to select the data copied most in the past
t) method.

【0007】[0007]

【発明が解決しようとする課題】しかし上記従来のコピ
ーバック方式では、記憶装置がSRAMやDRAMのよ
うな個々のデータ単位で読み出しおよび書き込みが可能
なデバイスで構成される場合には問題ないが、NOR型
フラッシュメモリのように、読み出しは個々のデータ単
位で可能であるが、データの書換えは一定の個数のデー
タがまとまったブロックと呼ばれる単位でないとできな
いデバイスで構成したときには、記憶装置への書き込み
処理による性能低下が発生するという問題点を有してい
た。
However, in the above-mentioned conventional copy-back method, there is no problem if the memory device is composed of a device such as SRAM or DRAM that can read and write in individual data units. Like NOR-type flash memory, reading is possible in individual data units, but data rewriting can be performed in a storage device when it is configured by a device that can only be in units called blocks in which a fixed number of data are collected. There is a problem that performance is deteriorated due to the processing.

【0008】すなわち、NOR型フラッシュメモリの場
合、データの読み出しは、通常のDRAM等と同様の速
度でバイト単位に実行できるものの、すでに書き込まれ
ているデータを変更するためには、一度データを消去し
てから書き込む必要がある。このデータ消去は、ブロッ
クと呼ばれる数kバイト〜数10kバイト単位でしか実
行できないため、実際にはブロック単位のデータを一旦
読み出して、ブロックを消去し、もう一度ブロック単位
でデータを書き込むという処理が必要となる。また、デ
ータの消去および書き込みは、通常のDRAM等と比較
して非常に時間がかかるため、データの書換えが多い場
合に処理時間が長くなる。
That is, in the case of the NOR type flash memory, although reading of data can be executed in byte units at a speed similar to that of a normal DRAM or the like, in order to change the already written data, the data is once erased. Then you need to write. Since this data erasing can be executed only in units of several kbytes to tens of kbytes called a block, it is necessary to actually read the data in block units once, erase the blocks, and write the data again in block units. Becomes Further, since erasing and writing of data takes much time as compared with a normal DRAM or the like, the processing time becomes long when data is rewritten frequently.

【0009】このように従来のキャッシュメモリ制御方
式では、ブロック単位の書換えを減少させるように考慮
されていないので、記憶装置としてフラッシュメモリを
用いた場合などには、記憶装置の書換え回数が増加し、
処理時間が増加してしまうという問題があった。本発明
はかかる事情に鑑みて成されたものであり、フラッシュ
メモリのように書換えが一定サイズのブロック単位でし
か実行できず、書換え時間が長いデバイスを記憶装置と
して用いた情報処理装置においても、処理時間を短縮で
きるキャッシュメモリ制御方法およびキャッシュメモリ
制御を提供することを目的とする。
As described above, the conventional cache memory control system does not consider rewriting in block units. Therefore, when a flash memory is used as the storage device, the number of times of rewriting of the storage device increases. ,
There is a problem that the processing time increases. The present invention has been made in view of such circumstances, and even in an information processing apparatus that uses a device having a long rewriting time as a storage device, such as a flash memory, in which rewriting can be executed only in units of blocks of a certain size, An object of the present invention is to provide a cache memory control method and a cache memory control that can reduce the processing time.

【0010】[0010]

【課題を解決するための手段】請求項1の発明は、処理
装置が記憶装置のデータをアクセスする際に、該当デー
タがキャッシュメモリにコピーされているか否かを判断
するコピー存在確認ステップと、コピー存在確認ステッ
プにおいてコピーの存在が確認されれば、キャッシュメ
モリ上のデータのみをアクセスするキャッシュメモリア
クセスステップと、コピー存在確認ステップにおいてコ
ピーの存在が確認されなければ、キャッシュメモリ上に
該当データをコピーする空領域があるか否かを確認する
空領域存在確認ステップと、空領域存在確認ステップに
おいて空領域の存在が確認されれば、該当データを記憶
装置からキャッシュメモリにコピーする第1のコピース
テップと、空領域存在確認ステップにおいて空領域の存
在が確認されなければ、キャッシュメモリ上のデータを
記憶装置に書き出して空領域を作る空領域作成ステップ
と、空領域作成ステップにおいて作成された空領域に該
当データを記憶装置からコピーする第2のコピーステッ
プと、を実行するコピーバック方式のキャッシュメモリ
制御方法において、キャッシュメモリから記憶装置にデ
ータを書き出す際に、キャッシュメモリ上の全てのデー
タのアドレスを確認するアドレス確認ステップと、アド
レス確認ステップにおいて確認されたアドレスに基づい
て、一定間隔のアドレス範囲に含まれるデータの数が最
も多いアドレス範囲を書き出し対象として選択する書き
出し対象選択ステップと、書き出し対象選択ステップに
おいて選択されたアドレス範囲に含まれる全てのデータ
をキャッシュメモリから記憶装置に書き出す書き出しス
テップと、を実行することを特徴としている。
According to a first aspect of the present invention, when a processing device accesses data in a storage device, a copy existence confirmation step of determining whether or not the corresponding data has been copied to a cache memory, If the existence of the copy is confirmed in the copy existence confirmation step, the cache memory access step in which only the data in the cache memory is accessed, and if the copy existence is not confirmed in the copy existence confirmation step, the corresponding data is stored in the cache memory. An empty area existence confirmation step for confirming whether or not there is an empty area to be copied, and a first copy for copying the corresponding data from the storage device to the cache memory if the existence of the empty area is confirmed in the empty area existence confirmation step. The existence of an empty area must be confirmed in the step and the empty area existence confirmation step. For example, a step of creating an empty area by writing the data in the cache memory to the storage device to create an empty area, and a second copying step of copying the corresponding data from the storage device to the empty area created in the step of creating the empty area. In the cache memory control method of the copy-back method to be executed, when writing data from the cache memory to the storage device, the address confirmation step for confirming the addresses of all the data in the cache memory, and the address confirmed in the address confirmation step Based on this, the write target selection step that selects the write target address range that has the largest number of data items in the fixed address range, and the cache memory that stores all the data that is included in the write target selection step From storage to storage It is characterized by performing a and writing steps out come.

【0011】請求項2の発明は、処理装置と記憶装置と
の間にキャッシュメモリを有し、処理装置が記憶装置の
データをアクセスする際に、該当データがキャッシュメ
モリにコピーされていれば、キャッシュメモリ上のデー
タのみをアクセスし、コピーされていなければ、キャッ
シュメモリ上に該当データをコピーする空領域があるか
否かを確認し、空領域があれば該当データを記憶装置か
らキャッシュメモリにコピーし、空領域がなければキャ
ッシュメモリ上のデータを記憶装置に書き出して空領域
を作り、その空領域に該当データを記憶装置からコピー
する、コピーバック方式のキャッシュメモリ制御装置に
おいて、キャッシュメモリから記憶装置にデータを書き
出す際に、キャッシュメモリ上の全てのデータのアドレ
スを確認し、一定間隔のアドレス範囲に含まれるデータ
の数を数えて最もデータ数の多いアドレス範囲を書き出
し対象として選択する選択部と、選択部により選択され
たアドレス範囲に含まれる全てのデータをキャッシュメ
モリから記憶装置に書き出す書き出し部と、を備えたこ
とを特徴としている。
According to a second aspect of the present invention, a cache memory is provided between the processing device and the storage device, and when the processing device accesses data in the storage device, if the corresponding data is copied to the cache memory, If only the data in the cache memory is accessed and it is not copied, it is confirmed whether there is an empty area in the cache memory to copy the corresponding data. If there is an empty area, the corresponding data is transferred from the storage device to the cache memory. If there is no free area, write the data in the cache memory to the storage device to create an empty area, and copy the relevant data from the storage device to the empty area. When writing data to the storage device, check the addresses of all data in the cache memory A selection unit that counts the number of data included in the remote address range and selects the address range having the largest number of data as a write target, and all data included in the address range selected by the selection unit from the cache memory to a storage device. It is characterized by having a writing section for writing to.

【0012】請求項3の発明は、処理装置が記憶装置の
データをアクセスする際に、該当データがキャッシュメ
モリにコピーされているか否かを判断するコピー存在確
認ステップと、コピー存在確認ステップにおいてコピー
の存在が確認されれば、キャッシュメモリ上のデータの
みをアクセスするキャッシュメモリアクセスステップ
と、コピー存在確認ステップにおいてコピーの存在が確
認されなければ、キャッシュメモリ上に該当データをコ
ピーする空領域があるか否かを確認する空領域存在確認
ステップと、空領域存在確認ステップにおいて空領域の
存在が確認されれば、該当データを記憶装置からキャッ
シュメモリにコピーする第1のコピーステップと、空領
域存在確認ステップにおいて空領域の存在が確認されな
ければ、キャッシュメモリ上のデータを記憶装置に書き
出して空領域を作る空領域作成ステップと、空領域作成
ステップにおいて作成された空領域に該当データを記憶
装置からコピーする第2のコピーステップと、を実行す
るコピーバック方式のキャッシュメモリ制御方法におい
て、キャッシュメモリから記憶装置にデータを書き出す
際に、キャッシュメモリ上のデータのアドレスを順に確
認するアドレス確認ステップと、アドレス確認ステップ
において確認されたアドレスに基づいて、一定間隔のア
ドレス範囲に含まれるデータの数が特定の個数を越える
アドレス範囲を書き出し対象として選択する書き出し対
象選択ステップと、書き出し対象選択ステップにおいて
選択されたアドレス範囲に含まれる全てのデータをキャ
ッシュメモリから記憶装置に書き出す書き出しステップ
と、を実行することを特徴としている。
According to a third aspect of the present invention, when the processing device accesses the data in the storage device, a copy existence confirmation step of determining whether or not the corresponding data is copied to the cache memory, and a copy existence confirmation step are performed. If the existence of the copy is confirmed, the cache memory access step for accessing only the data in the cache memory, and if the copy existence confirmation step does not confirm the existence of the copy, there is an empty area for copying the corresponding data in the cache memory. Whether there is an empty area in the empty area existence confirmation step, and if there is an empty area existence in the empty area existence confirmation step, a first copy step of copying the corresponding data from the storage device to the cache memory, and an empty area existence If empty space is not confirmed in the confirmation step, cache Copy for executing an empty area creating step for writing the data on the memory to the storage device to create an empty area, and a second copying step for copying the corresponding data from the storage apparatus to the empty area created in the empty area creating step In the cache memory control method of the back method, when writing data from the cache memory to the storage device, a constant is determined based on the address confirmation step of sequentially confirming the address of the data in the cache memory and the address confirmed in the address confirmation step. The address range in which the number of data included in the address range of the interval exceeds a specific number is selected as the write target, and all the data included in the address range selected in the write target selection step is written from the cache memory. Write to storage Is characterized by performing the out come step.

【0013】請求項4の発明は、処理装置と記憶装置と
の間にキャッシュメモリを有し、処理装置が記憶装置の
データをアクセスする際に、該当データがキャッシュメ
モリにコピーされていれば、キャッシュメモリ上のデー
タのみをアクセスし、コピーされていなければ、キャッ
シュメモリ上に該当データをコピーする空領域があるか
否かを確認し、空領域があれば該当データを記憶装置か
らキャッシュメモリにコピーし、空領域がなければキャ
ッシュメモリ上のデータを記憶装置に書き出して空領域
を作り、その空領域に該当データを記憶装置からコピー
する、コピーバック方式のキャッシュメモリ制御装置に
おいて、キャッシュメモリから記憶装置にデータを書き
出す際に、キャッシュメモリ上のデータのアドレスを順
に確認し、一定間隔のアドレス範囲に含まれるデータの
数が特定の個数を越えるアドレス範囲を書き出し対象と
して選択する選択部と、選択部により選択されたアドレ
ス範囲に含まれる全てのデータをキャッシュメモリから
記憶装置に書き出す書き出し部と、を備えたことを特徴
としている。
According to a fourth aspect of the present invention, a cache memory is provided between the processing device and the storage device, and when the processing device accesses data in the storage device, if the corresponding data is copied to the cache memory, If only the data in the cache memory is accessed and it is not copied, it is confirmed whether there is an empty area in the cache memory to copy the corresponding data. If there is an empty area, the corresponding data is transferred from the storage device to the cache memory. If there is no free area, write the data in the cache memory to the storage device to create an empty area, and copy the relevant data from the storage device to the empty area. When writing data to the storage device, check the address of the data in the cache memory in order and A selection unit that selects an address range in which the number of data included in the address range exceeds a specific number as a writing target, and writing all data included in the address range selected by the selection unit from the cache memory to the storage device It is characterized by having a section and.

【0014】請求項5の発明は、処理装置が記憶装置の
データをアクセスする際に、該当データがキャッシュメ
モリにコピーされているか否かを判断するコピー存在確
認ステップと、コピー存在確認ステップにおいてコピー
の存在が確認されれば、キャッシュメモリ上のデータの
みをアクセスするキャッシュメモリアクセスステップ
と、コピー存在確認ステップにおいてコピーの存在が確
認されなければ、キャッシュメモリ上に該当データをコ
ピーする空領域があるか否かを確認する空領域存在確認
ステップと、空領域存在確認ステップにおいて空領域の
存在が確認されれば、該当データを記憶装置からキャッ
シュメモリにコピーする第1のコピーステップと、空領
域存在確認ステップにおいて空領域の存在が確認されな
ければ、キャッシュメモリ上のデータを記憶装置に書き
出して空領域を作る空領域作成ステップと、空領域作成
ステップにおいて作成された空領域に該当データを記憶
装置からコピーする第2のコピーステップと、を実行す
るコピーバック方式のキャッシュメモリ制御方法におい
て、キャッシュメモリのデータ領域を特定の個数ごとに
グループ分けし、グループごとに選択確認フラグを設定
し、記憶装置からキャッシュメモリへ該当データをコピ
ーする際に、キャッシュメモリ上に該当データと同じア
ドレス範囲に含まれるデータがすでに存在するか否かを
判断するデータ存在確認ステップと、データ存在確認ス
テップにおいてデータの存在が確認されれば、同じグル
ープ内に該当データをコピーする第3のコピーステップ
と、データ存在確認ステップにおいてデータの存在が確
認されなければ、データが1つもコピーされていない新
しいグループに該当データをコピーする第4のコピース
テップと、いずれかのグループにすべて同じアドレス範
囲に含まれるデータがコピーされたら該当グループの選
択確認フラグをオンする選択確認フラグオンステップ
と、を実行し、キャッシュメモリから記憶装置にデータ
を書き出す際に、選択フラグがオンであるグループのど
れかを書き出し対象として選択する書き出し対象選択ス
テップと、書き出し対象選択ステップにおいて選択され
たグループ内のデータのアドレス範囲に含まれる全ての
データをキャッシュメモリから記憶装置に書き出す書き
出しステップと、を実行することを特徴としている。
According to a fifth aspect of the present invention, when the processing device accesses the data in the storage device, a copy existence confirmation step of determining whether or not the corresponding data has been copied to the cache memory and a copy existence confirmation step are performed. If the existence of the copy is confirmed, the cache memory access step for accessing only the data in the cache memory, and if the copy existence confirmation step does not confirm the existence of the copy, there is an empty area for copying the corresponding data in the cache memory. Whether there is an empty area in the empty area existence confirmation step, and if there is an empty area existence in the empty area existence confirmation step, a first copy step of copying the corresponding data from the storage device to the cache memory, and an empty area existence If empty space is not confirmed in the confirmation step, cache Copy for executing an empty area creating step for writing the data on the memory to the storage device to create an empty area, and a second copying step for copying the corresponding data from the storage apparatus to the empty area created in the empty area creating step In the back-type cache memory control method, the data area of the cache memory is divided into groups by a specific number, a selection confirmation flag is set for each group, and the cache memory is copied when the corresponding data is copied from the storage device to the cache memory. If the existence of the data is confirmed in the data existence confirmation step and the data existence confirmation step that determines whether the data included in the same address range as the above data already exists, copy the corresponding data in the same group. In the third copy step and the data existence confirmation step If the existence of the data is not confirmed, the fourth copy step of copying the corresponding data to a new group where no data has been copied, and if the data included in the same address range is copied to one of the groups When the selection confirmation flag ON step that turns on the selection confirmation flag of the corresponding group is executed and the data is written from the cache memory to the storage device, one of the groups for which the selection flag is on is selected as the write target It is characterized in that the selecting step and the writing step of writing all the data included in the address range of the data in the group selected in the writing target selecting step from the cache memory to the storage device are executed.

【0015】請求項6の発明は、処理装置と記憶装置と
の間にキャッシュメモリを有し、処理装置が記憶装置の
データをアクセスする際に、該当データがキャッシュメ
モリにコピーされていれば、キャッシュメモリ上のデー
タのみをアクセスし、コピーされていなければ、キャッ
シュメモリ上に該当データをコピーする空領域があるか
否かを確認し、空領域があれば該当データを記憶装置か
らキャッシュメモリにコピーし、空領域がなければキャ
ッシュメモリ上のデータを記憶装置に書き出して空領域
を作り、その空領域に該当データを記憶装置からコピー
する、コピーバック方式のキャッシュメモリ制御装置に
おいて、キャッシュメモリのデータ領域を特定の個数ご
とにグループ分けし、グループごとに選択確認フラグを
設定し、記憶装置からキャッシュメモリへ該当データを
コピーする際に、キャッシュメモリ上に該当データと同
じアドレス範囲に含まれるデータがすでにあれば同じグ
ループ内に該当データをコピーし、なければデータが1
つもコピーされていない新しいグループに該当データを
コピーし、そのグループにすべて同じアドレス範囲に含
まれるデータがコピーされたら該当グループの選択確認
フラグをオンするデータ登録部と、キャッシュメモリか
ら記憶装置にデータを書き出す際に、選択フラグがオン
であるグループのどれかを書き出し対象として選択する
選択部と、選択部により選択されたグループ内のデータ
のアドレス範囲に含まれる全てのデータをキャッシュメ
モリから記憶装置に書き出す書き出し部と、を備えたこ
とを特徴としている。
According to a sixth aspect of the present invention, a cache memory is provided between the processing device and the storage device, and when the processing device accesses data in the storage device, if the corresponding data is copied to the cache memory, If only the data in the cache memory is accessed and it is not copied, it is confirmed whether there is an empty area in the cache memory to copy the corresponding data. If there is an empty area, the corresponding data is transferred from the storage device to the cache memory. If there is no empty area, the data in the cache memory is written to the storage device to create an empty area, and the corresponding data is copied from the storage device to the empty area. The data area is divided into groups by a specific number, a selection confirmation flag is set for each group, and When copying the relevant data to Luo cache memory, copies the corresponding data into the same group if the data is already included in the same address range as the corresponding data in the cache memory, there if the data is 1
Data is copied from the cache memory to the storage device by copying the relevant data to a new group that has not been copied at all, and turning on the selection confirmation flag of the relevant group when all the data included in the same address range is copied to that group. When writing out, the selection unit that selects one of the groups whose selection flag is on as the writing target, and all the data included in the address range of the data in the group selected by the selection unit from the cache memory It is characterized by having a writing section for writing to.

【0016】[0016]

【作用】請求項1の発明においては、キャッシュメモリ
から記憶装置にデータを書き出す際に、アドレス確認ス
テップで、キャッシュメモリ上の全てのデータのアドレ
スを確認し、書き出し対象選択ステップで、アドレス確
認ステップにおいて確認されたアドレスに基づいて、一
定間隔のアドレス範囲に含まれるデータの数が最も多い
アドレス範囲を書き出し対象として選択し、書き出しス
テップで、書き出し対象選択ステップにおいて選択され
たアドレス範囲に含まれる全てのデータをキャッシュメ
モリから記憶装置に書き出す。
According to the first aspect of the present invention, when writing data from the cache memory to the storage device, the address confirmation step confirms the addresses of all the data in the cache memory, and the write target selection step performs the address confirmation step. Based on the addresses confirmed in, select the address range with the largest number of data included in the address range of the constant interval as the write target, and in the write step, select all the addresses included in the address range selected in the write target selection step. Data is written from the cache memory to the storage device.

【0017】請求項2の発明において、選択部は、キャ
ッシュメモリから記憶装置にデータを書き出す際に、キ
ャッシュメモリ上の全てのデータのアドレスを確認し、
一定間隔のアドレス範囲に含まれるデータの数を数えて
最もデータ数の多いアドレス範囲を書き出し対象として
選択する。書き出し部は、選択部により選択されたアド
レス範囲に含まれる全てのデータをキャッシュメモリか
ら記憶装置に書き出す。
In the invention of claim 2, when the data is written from the cache memory to the storage device, the selection unit confirms the addresses of all the data in the cache memory,
The number of data included in the address range at regular intervals is counted, and the address range having the largest number of data is selected as the writing target. The writing unit writes all data included in the address range selected by the selecting unit from the cache memory to the storage device.

【0018】請求項3の発明においては、キャッシュメ
モリから記憶装置にデータを書き出す際に、アドレス確
認ステップで、キャッシュメモリ上のデータのアドレス
を順に確認し、書き出し対象選択ステップで、アドレス
確認ステップにおいて確認されたアドレスに基づいて、
一定間隔のアドレス範囲に含まれるデータの数が特定の
個数を越えるアドレス範囲を書き出し対象として選択
し、書き出しステップで、書き出し対象選択ステップに
おいて選択されたアドレス範囲に含まれる全てのデータ
をキャッシュメモリから記憶装置に書き出す。
According to the third aspect of the present invention, when writing data from the cache memory to the storage device, the address confirmation step sequentially confirms the address of the data on the cache memory, and the write target selection step includes the address confirmation step. Based on the confirmed address,
Select an address range in which the number of data included in the address range at regular intervals exceeds a specific number as the write target, and in the write step, write all the data included in the address range selected in the write target selection step from the cache memory. Write to storage.

【0019】請求項4の発明において、選択部は、キャ
ッシュメモリから記憶装置にデータを書き出す際に、キ
ャッシュメモリ上のデータのアドレスを順に確認し、一
定間隔のアドレス範囲に含まれるデータの数が特定の個
数を越えるアドレス範囲を書き出し対象として選択す
る。書き出し部は、選択部により選択されたアドレス範
囲に含まれる全てのデータをキャッシュメモリから記憶
装置に書き出す。
In the invention of claim 4, when the data is written from the cache memory to the storage device, the selection unit sequentially checks the addresses of the data on the cache memory, and determines the number of data included in the address range at a constant interval. Select an address range that exceeds a specified number for writing. The writing unit writes all data included in the address range selected by the selecting unit from the cache memory to the storage device.

【0020】請求項5の発明においては、キャッシュメ
モリのデータ領域を特定の個数ごとにグループ分けし、
グループごとに選択確認フラグを設定し、記憶装置から
キャッシュメモリへ該当データをコピーする際に、デー
タ存在確認ステップで、キャッシュメモリ上に該当デー
タと同じアドレス範囲に含まれるデータがすでに存在す
るか否かを判断し、第3のコピーステップで、データ存
在確認ステップにおいてデータの存在が確認されれば、
同じグループ内に該当データをコピーし、第4のコピー
ステップで、データ存在確認ステップにおいてデータの
存在が確認されなければ、データが1つもコピーされて
いない新しいグループに該当データをコピーし、選択確
認フラグオンステップで、いずれかのグループにすべて
同じアドレス範囲に含まれるデータがコピーされたら該
当グループの選択確認フラグをオンし、キャッシュメモ
リから記憶装置にデータを書き出す際に、書き出し対象
選択ステップで、選択フラグがオンであるグループのど
れかを書き出し対象として選択し、書き出しステップ
で、書き出し対象選択ステップにおいて選択されたグル
ープ内のデータのアドレス範囲に含まれる全てのデータ
をキャッシュメモリから記憶装置に書き出す。
According to the invention of claim 5, the data area of the cache memory is divided into groups by a specific number,
When setting the selection confirmation flag for each group and copying the corresponding data from the storage device to the cache memory, in the data existence confirmation step, whether data included in the same address range as the corresponding data already exists in the cache memory. If the existence of data is confirmed in the data existence confirmation step in the third copy step,
If the existence of data is not confirmed in the data existence confirmation step in the fourth copy step, the corresponding data is copied into the same group, and the corresponding data is copied to a new group in which no data is copied, and the selection confirmation When data included in the same address range is copied to any of the groups in the flag on step, the selection confirmation flag of the corresponding group is turned on, and when writing the data from the cache memory to the storage device, in the write target selection step, Select one of the groups whose selection flag is on as the write target, and in the write step, write all the data included in the address range of the data in the group selected in the write target selection step from the cache memory to the storage device. .

【0021】請求項6の発明において、データ登録部
は、記憶装置からキャッシュメモリへ該当データをコピ
ーする際に、キャッシュメモリ上に該当データと同じア
ドレス範囲に含まれるデータがすでにあれば同じグルー
プ内に該当データをコピーし、なければデータが1つも
コピーされていない新しいグループに該当データをコピ
ーし、そのグループにすべて同じアドレス範囲に含まれ
るデータがコピーされたら該当グループの選択確認フラ
グをオンする。選択部は、キャッシュメモリから記憶装
置にデータを書き出す際に、選択フラグがオンであるグ
ループのどれかを書き出し対象として選択する。書き出
し部は、選択部により選択されたグループ内のデータの
アドレス範囲に含まれる全てのデータをキャッシュメモ
リから記憶装置に書き出す。
In the invention of claim 6, when the data registration unit copies the relevant data from the storage device to the cache memory, if there is already data included in the same address range as the relevant data in the cache memory, the data registration unit To the new group where no data has been copied, and if all the data in the same address range is copied to that group, the selection confirmation flag of the corresponding group is turned on. . When writing the data from the cache memory to the storage device, the selection unit selects any of the groups for which the selection flag is on as the writing target. The writing unit writes all the data included in the address range of the data in the group selected by the selecting unit from the cache memory to the storage device.

【0022】[0022]

【実施例】以下、本発明の実施例を図面を用いて詳細に
説明する。 (実施例1)図1は本発明の実施例1におけるキャッシ
ュメモリ制御装置を備えた情報処理システムの構成図
で、この情報処理システムは、CPU1と、フラッシュ
メモリ2と、キャッシュメモリ3と、アドレス比較部4
と、リプレース実行部5と、退避メモリ6とを備えてい
る。CPU1は、各種の演算処理を行う。フラッシュメ
モリ2は、容量が1Mバイトで、消去可能なブロックは
1kバイト単位とする。キャッシュメモリ3は、容量が
100エントリで、1エントリごとに1バイトのデータ
とそのデータのフラッシュメモリ上のアドレスとを記憶
する。アドレス比較部4は、キャッシュメモリ3の各エ
ントリのアドレスを見て、フラッシュメモリ2のブロッ
ク単位に含まれるデータの個数をカウントし、最も多い
ブロックを調べる。リプレース実行部5は、キャッシュ
メモリ3とフラッシュメモリ2とのリプレースを実行す
る。退避メモリ6は、リプレース実行部5がフラッシュ
メモリ2のブロックを消去する際に、ブロック内のデー
タを退避する。すなわち、CPU1は処理装置を構成し
ており、フラッシュメモリ2は記憶装置を構成してお
り、アドレス比較部4は選択部を構成しており、リプレ
ース実行部5および退避メモリ6は書き出し部を構成し
ている。
Embodiments of the present invention will now be described in detail with reference to the drawings. (Embodiment 1) FIG. 1 is a block diagram of an information processing system including a cache memory control device according to a first embodiment of the present invention. This information processing system includes a CPU 1, a flash memory 2, a cache memory 3 and an address. Comparison unit 4
And a replacement execution unit 5 and a save memory 6. The CPU 1 performs various kinds of arithmetic processing. The flash memory 2 has a capacity of 1 Mbyte, and erasable blocks are in units of 1 kbyte. The cache memory 3 has a capacity of 100 entries and stores 1-byte data and an address of the data in the flash memory for each entry. The address comparison unit 4 looks at the address of each entry of the cache memory 3, counts the number of data included in the block unit of the flash memory 2, and checks the block having the largest number. The replacement execution unit 5 executes replacement of the cache memory 3 and the flash memory 2. The save memory 6 saves the data in the block when the replace executing unit 5 erases the block of the flash memory 2. That is, the CPU 1 constitutes a processing device, the flash memory 2 constitutes a storage device, the address comparison unit 4 constitutes a selection unit, and the replacement execution unit 5 and the save memory 6 constitute a writing unit. is doing.

【0023】次に動作を説明する。CPU1は、フラッ
シュメモリ2をアクセスする場合に、先ずキャッシュメ
モリ3にそのデータがあるか否かをキャッシュメモリ3
の各エントリのアドレスを比較して判断し、もしあれば
キャッシュメモリ3をアクセスする。そしてCPU1
は、キャッシュメモリ3に該当データがなければ、キャ
ッシュメモリ3の全てのエントリが一杯になるまでは、
リードアクセスの場合はフラッシュメモリ2から該当デ
ータを取り出してキャッシュメモリ3にコピーした後に
読み込み、ライトアクセスの場合はキャッシュメモリ3
に該当データを書き込む。なお以上の動作は、従来のキ
ャッシュメモリ制御装置と同様である。
Next, the operation will be described. When accessing the flash memory 2, the CPU 1 first determines whether or not the cache memory 3 has the data.
The address of each entry is compared and judged, and if there is, the cache memory 3 is accessed. And CPU1
If there is no corresponding data in the cache memory 3, until all entries in the cache memory 3 are full,
In the case of read access, the relevant data is fetched from the flash memory 2, copied to the cache memory 3 and then read, and in the case of write access, the cache memory 3
Write the relevant data to. The above operation is similar to that of the conventional cache memory control device.

【0024】次に、キャッシュメモリ3の全てのエント
リが一杯になった状態で、CPU1がキャッシュメモリ
3にないデータをアクセスした場合、キャッシュメモリ
3にあるデータをフラッシュメモリ2に書き出してエン
トリを空にし、その空エントリにアクセスデータを登録
する必要がある。この場合の動作について、図2のフロ
ーチャートを参照しながら説明する。先ずアドレス比較
部4が、キャッシュメモリ3の100個のエントリのア
ドレスを読み、1kバイトのブロック単位に個数を数え
て、最も個数の多いブロックをリプレース実行部5に通
知する(ステップS1)。これによりリプレース実行部
5が、該当するブロックの1kバイトのデータをフラッ
シュメモリ2から退避メモリ6に読み出し(ステップS
2)、フラッシュメモリ2の該当するブロックの全ての
データを消去する(ステップS3)。そして、該当する
ブロックに含まれるキャッシュメモリ3上の全てのデー
タを、退避メモリ6の該当位置に書き出す(ステップS
4)。最後に、退避メモリ6のデータをフラッシュメモ
リ2のもとのブロックに書き込む(ステップS5)。
Next, when the CPU 1 accesses data that is not in the cache memory 3 when all the entries in the cache memory 3 are full, the data in the cache memory 3 is written to the flash memory 2 and the entry is emptied. Then, it is necessary to register the access data in the empty entry. The operation in this case will be described with reference to the flowchart of FIG. First, the address comparison unit 4 reads the addresses of 100 entries in the cache memory 3, counts the number in 1 kbyte block units, and notifies the replacement execution unit 5 of the block having the largest number (step S1). As a result, the replacement execution unit 5 reads the 1 kbyte data of the corresponding block from the flash memory 2 to the save memory 6 (step S
2) Erase all data in the corresponding block of the flash memory 2 (step S3). Then, all the data in the cache memory 3 included in the corresponding block are written to the corresponding position in the save memory 6 (step S
4). Finally, the data in the save memory 6 is written in the original block of the flash memory 2 (step S5).

【0025】このように、最もキャッシュメモリ3上の
データの個数の多いブロックをリプレース対象とするの
で、フラッシュメモリ2の書換え回数を減少し、効率的
にキャッシュメモリ3の空エントリを増加させることが
できる。 (実施例2)実施例2におけるキャッシュメモリ制御装
置は、図1と同じ構成であり、リプレース時のアドレス
比較部4の動作のみが異なる。すなわち図3のように、
リプレースが必要となった場合、アドレス比較部4が、
キャッシュメモリ3の第1のエントリのアドレスを読み
出す(ステップS11)。そして、第2〜100のエン
トリと順に比較し(ステップS12)、第1のエントリ
のアドレスと同じブロックに含まれるエントリが、予め
設定された個数、例えば5個以上あるか否かを判断し
(ステップS13)、5個以上あれば、そのブロックを
リプレース実行部5に通知する(ステップS14)。な
ければ、n=n+1として(ステップS15)、ステッ
プS11に戻る。すなわち、第2のエントリのアドレス
を読み出し、第3〜100のエントリと順に比較して、
第2のエントリのアドレスと同じブロックに含まれるエ
ントリが5個あれば、そのブロックをリプレース実行部
5に通知する。同様の処理を第3のエントリ以降につい
ても繰り返して、リプレース対象となるブロックを決定
する。なお、図3には図示していないが、もし、5個以
上のデータが同じブロックに含まれない場合は、適当
に、例えばランダム方式などを用いて、リプレース対象
を決定する。
As described above, since the block having the largest number of data on the cache memory 3 is to be replaced, the number of times of rewriting of the flash memory 2 can be reduced and the empty entries of the cache memory 3 can be efficiently increased. it can. (Embodiment 2) The cache memory control device in Embodiment 2 has the same configuration as that of FIG. 1, but only the operation of the address comparison unit 4 at the time of replacement is different. That is, as shown in FIG.
When the replacement becomes necessary, the address comparison unit 4
The address of the first entry of the cache memory 3 is read (step S11). Then, it is sequentially compared with the 2nd to 100th entries (step S12), and it is determined whether or not there are a preset number of entries, for example, 5 or more, included in the same block as the address of the first entry ( Step S13) If there are five or more blocks, the replacement execution unit 5 is notified of the block (step S14). If not, n = n + 1 is set (step S15), and the process returns to step S11. That is, the address of the second entry is read and compared with the third to 100th entries in order,
If there are five entries included in the same block as the address of the second entry, the replacement execution unit 5 is notified of the block. The same process is repeated for the third entry and thereafter, and the block to be replaced is determined. Although not shown in FIG. 3, if five or more data are not included in the same block, the replacement target is appropriately determined using, for example, a random method.

【0026】このように、キャッシュメモリ3のエント
リを順に確認するので、アドレス比較部4は、キャッシ
ュメモリ3の1個のエントリのアドレスのみを内部に記
憶するだけでよく、ハードウェア量を削減することがで
きる。また、CPU1がアクセスするデータは特定のア
ドレス範囲に集中することが多いため、このようにキャ
ッシュメモリ3上で一定数以上の個数を占めるブロック
を見つけることが、通常は最もデータ数の多いブロック
を発見することに等しくなる。 (実施例3)図4は本発明の実施例3におけるキャッシ
ュメモリ制御装置を備えた情報処理システムの構成図
で、この情報処理システムは、CPU11と、フラッシ
ュメモリ12と、キャッシュメモリ13と、リプレース
実行部14と、退避メモリ15と、データ登録部16
と、フラグ確認部17とを備えている。CPU11は、
各種の演算処理を行う。フラッシュメモリ12は、容量
が1Mバイトで、消去可能なブロックは1kバイト単位
とする。キャッシュメモリ13は、容量が100エント
リで、1エントリごとに1バイトのデータとそのデータ
のフラッシュメモリ12上のアドレスとを記憶する。こ
のキャッシュメモリ13は、5エントリごとにグループ
分けされ、各グループに1ビットのチェックフラグが設
けられる。このチェックフラグは、システムスタート時
に0に初期値が設定される。リプレース実行部14は、
キャッシュメモリ3とフラッシュメモリ2とのリプレー
スを実行する。退避メモリ15は、リプレース実行部1
4がフラッシュメモリ12のブロックを消去する際に、
ブロック内のデータを退避する。データ登録部16は、
キャッシュメモリ3へのデータのコピーとチェックフラ
グのセットとを行う。フラグ確認部17は、キャッシュ
メモリ3のチェックフラグを調べてリプレース対象のブ
ロックを決定する。なお、CPU11は処理装置を構成
しており、フラッシュメモリ12は記憶装置を構成して
おり、リプレース実行部14および退避メモリ15は書
き出し部を構成しており、フラグ確認部17は選択部を
構成している。
As described above, since the entries in the cache memory 3 are sequentially confirmed, the address comparison unit 4 only needs to internally store the address of one entry in the cache memory 3, which reduces the amount of hardware. be able to. In addition, since the data accessed by the CPU 1 is often concentrated in a specific address range, finding a block occupying a certain number or more in the cache memory 3 in this manner normally determines the block having the largest number of data. Equal to discovering. (Third Embodiment) FIG. 4 is a block diagram of an information processing system including a cache memory control device according to a third embodiment of the present invention. This information processing system includes a CPU 11, a flash memory 12, a cache memory 13, and a replacement. Execution unit 14, save memory 15, and data registration unit 16
And a flag confirmation unit 17. CPU11
Performs various arithmetic processes. The flash memory 12 has a capacity of 1 Mbyte, and erasable blocks are in units of 1 kbyte. The cache memory 13 has a capacity of 100 entries, and stores 1-byte data and the address of the data in the flash memory 12 for each entry. The cache memory 13 is divided into groups of 5 entries, and each group is provided with a 1-bit check flag. An initial value of this check flag is set to 0 at the system start. The replacement execution unit 14
The replacement of the cache memory 3 and the flash memory 2 is executed. The save memory 15 is the replacement execution unit 1
4 erases a block of the flash memory 12,
Save the data in the block. The data registration unit 16
Data is copied to the cache memory 3 and a check flag is set. The flag checking unit 17 checks the check flag of the cache memory 3 and determines the block to be replaced. The CPU 11 constitutes a processing device, the flash memory 12 constitutes a storage device, the replacement execution unit 14 and the save memory 15 constitute a writing unit, and the flag confirmation unit 17 constitutes a selection unit. is doing.

【0027】次に動作を説明する。CPU11は、フラ
ッシュメモリ12をアクセスする場合、先ずキャッシュ
メモリ13にそのデータがあるか否かをキャッシュメモ
リ13の各エントリのアドレスを比較して判断し、もし
あればキャッシュメモリ13をアクセスする。以上の動
作は、従来のキャッシュメモリ制御装置と同様である。
キャッシュメモリ13に該当データがなければ、キャッ
シュメモリ13の全てのエントリが一杯になるまでは、
CPU11は、リードアクセスの場合は、フラッシュメ
モリ12から該当データを取り出して、キャッシュメモ
リ13にコピーした後に読み込み、ライトアクセスの場
合は、キャッシュメモリ13に該当データを書き込む。
この際、データ登録部16は、すでにデータがコピーさ
れているキャッシュメモリ13上のエントリのアドレス
を調べ、もし該当データと同じブロックに含まれるデー
タがあり、かつそのデータが所属するグループに空のエ
ントリが残っていれば、その空エントリに該当データを
コピーする。そして、そのグループの5つのエントリが
一杯になれば、グループの5つのデータのアドレスを調
べ、すべて同じブロックに含まれていれば、そのグルー
プのチェックフラグを1にセットする。キャッシュメモ
リ13の全エントリを調べても、同一のブロックに含ま
れるデータがないか、もしくは同一のグループのデータ
があっても、そのグループに空のエントリがない場合
は、データがまだ1つも登録されていない空のグループ
に該当データをコピーする。空のグループもない場合
は、適当な空のエントリに該当データをコピーする。
Next, the operation will be described. When accessing the flash memory 12, the CPU 11 first determines whether or not the data exists in the cache memory 13 by comparing the address of each entry of the cache memory 13, and accesses the cache memory 13 if any. The above operation is similar to that of the conventional cache memory control device.
If there is no corresponding data in the cache memory 13, until all entries in the cache memory 13 are full,
In the case of read access, the CPU 11 takes out the relevant data from the flash memory 12, copies it to the cache memory 13 and then reads it, and in the case of write access, writes the relevant data in the cache memory 13.
At this time, the data registration unit 16 checks the address of the entry in the cache memory 13 to which the data has already been copied, and if there is data included in the same block as the relevant data and the group to which the data belongs is empty. If the entry remains, the corresponding data is copied to the empty entry. Then, when the five entries of the group are full, the addresses of the five data of the group are checked, and if they are all included in the same block, the check flag of the group is set to 1. When all the entries in the cache memory 13 are checked, if there is no data included in the same block, or if there is data in the same group but there is no empty entry in that group, no data is registered yet. Copy the relevant data to an empty group that has not been created. If there is no empty group, copy the corresponding data to an appropriate empty entry.

【0028】次に、キャッシュメモリ13の全てのエン
トリが一杯になった状態で、CPU11がキャッシュメ
モリ13にないデータをアクセスした場合、キャッシュ
メモリ13にあるデータをフラッシュメモリ12に書き
出してエントリを空にし、その空エントリにアクセスデ
ータを登録する必要がある。この場合の動作について、
図5のフローチャートを参照しながら説明する。先ず、
フラグ確認部17が、キャッシュメモリ13の20個の
チェックフラグを順に調べ、チェックフラグが1にセッ
トされているグループがあるか否かを判断し(ステップ
S21)、あれば、そのグループのデータが含まれるブ
ロックをリプレース実行部14に通知する(ステップS
22)。もしチェックフラグがすべて0の場合は、適当
に、例えばランダム方式などを用いて、リプレース対象
のブロックを決定する(ステップS23)。これにより
リプレース実行部14が、フラッシュメモリ12から該
当するブロックの1kバイトのデータを退避メモリ15
に読み出し(ステップS24)、フラッシュメモリ12
の該当するブロックを消去する(ステップS25)。そ
して、該当するブロックに含まれるキャッシュメモリ1
3上の全てのデータを、退避メモリ15の該当位置に書
き出す(ステップS26)。最後に、退避メモリ15の
データをフラッシュメモリ12のもとのブロックに書き
込む(ステップS27)。
Next, when all the entries in the cache memory 13 are full and the CPU 11 accesses data that is not in the cache memory 13, the data in the cache memory 13 is written to the flash memory 12 and the entries are emptied. Then, it is necessary to register the access data in the empty entry. Regarding the operation in this case,
This will be described with reference to the flowchart of FIG. First,
The flag checking unit 17 sequentially checks the 20 check flags of the cache memory 13 and determines whether or not there is a group in which the check flag is set to 1 (step S21). The included block is notified to the replacement executing unit 14 (step S
22). If all the check flags are 0, a block to be replaced is appropriately determined by using, for example, a random method (step S23). As a result, the replacement execution unit 14 saves 1 kbyte of data of the corresponding block from the flash memory 12 to the save memory 15
To the flash memory 12 (step S24).
The corresponding block of is erased (step S25). Then, the cache memory 1 included in the corresponding block
All the data on 3 are written to the corresponding positions in the save memory 15 (step S26). Finally, the data in the save memory 15 is written in the original block of the flash memory 12 (step S27).

【0029】このように、キャッシュメモリ13へデー
タをコピーする際に、なるべく同一のブロックに含まれ
るデータを1つのグループに登録するようにし、キャッ
シュメモリ13にあらかじめ定めた個数ごとに設けたチ
ェックフラグにより、同一ブロックに含まれるデータが
一定個数以上あることを判別可能にしたので、リプレー
ス実行時のリプレース対象のブロックを決定する処理を
高速化できる。
As described above, when copying data to the cache memory 13, data included in the same block should be registered in one group as much as possible, and a check flag provided in the cache memory 13 for each predetermined number. As a result, it is possible to determine that there is a certain number or more of data included in the same block, so that the process of determining the block to be replaced at the time of executing replacement can be speeded up.

【0030】[0030]

【発明の効果】以上説明したように本発明によれば、処
理装置と記憶装置との間にキャッシュメモリを有し、処
理装置が記憶装置のデータをアクセスする際に、該当デ
ータがキャッシュメモリにコピーされていれば、キャッ
シュメモリ上のデータのみをアクセスし、コピーされて
いなければ、キャッシュメモリ上に該当データをコピー
する空領域があるか否かを確認し、空領域があれば該当
データを記憶装置からキャッシュメモリにコピーし、空
領域がなければキャッシュメモリ上のデータを記憶装置
に書き出して空領域を作り、その空領域に該当データを
記憶装置からコピーする、コピーバック方式のキャッシ
ュメモリ制御装置において、キャッシュメモリから記憶
装置にデータを書き出す際に、キャッシュメモリ上の全
てのデータのアドレスを確認し、一定間隔のアドレス範
囲に含まれるデータの数を数えて最もデータ数の多いア
ドレス範囲を書き出し対象として選択する選択部と、選
択部により選択されたアドレス範囲に含まれる全てのデ
ータをキャッシュメモリから記憶装置に書き出す書き出
し部と、を備えたので、キャッシュメモリ上にあるデー
タのアドレスを確認し、記憶装置のブロック単位に含ま
れるデータの個数を調べてリプレースする対象のデータ
を選択することから、フラッシュメモリのように書換え
が一定サイズのブロック単位でしか実行できず、書換え
時間が長いデバイスを記憶装置として用いた情報処理装
置においても、キャッシュメモリのリプレースによる記
憶装置のブロック単位の書換え回数を減少させることが
でき、処理時間を短縮できる。
As described above, according to the present invention, a cache memory is provided between a processing device and a storage device, and when the processing device accesses data in the storage device, the corresponding data is stored in the cache memory. If it is copied, only the data in the cache memory is accessed.If it is not copied, it is confirmed whether there is an empty area in the cache memory to copy the corresponding data. Copy-back cache memory control that copies from the storage device to the cache memory, writes the data in the cache memory to the storage device if there is no free space, creates a free space, and copies the relevant data from the storage device to the free space When writing data from the cache memory to the storage device in the device, all the data in the cache memory is added. Check the data, count the number of data items in the address range at regular intervals, and select the address range with the largest number of data items for writing, and all the data items included in the address range selected by the selection unit. And a writing unit that writes the data from the cache memory to the storage device. Therefore, the address of the data in the cache memory is confirmed, the number of data contained in the block unit of the storage device is checked, and the data to be replaced is selected. Therefore, rewriting can be executed only in units of blocks of a certain size, such as flash memory, and even in an information processing device that uses a device with a long rewriting time as a storage device, the block unit of the storage device can be changed by replacing the cache memory. The number of rewrites can be reduced, and the processing time can be shortened.

【0031】また、キャッシュメモリから記憶装置にデ
ータを書き出す際に、キャッシュメモリ上のデータのア
ドレスを順に確認し、一定間隔のアドレス範囲に含まれ
るデータの数が特定の個数を越えるアドレス範囲を書き
出し対象として選択する選択部と、選択部により選択さ
れたアドレス範囲に含まれる全てのデータをキャッシュ
メモリから記憶装置に書き出す書き出し部と、を備えれ
ば、上記効果に加えて、キャッシュメモリのエントリを
順に確認することから、確認処理に際して、キャッシュ
メモリの1個のエントリのアドレスのみを記憶するだけ
でよく、ハードウェア量を削減することができる。
Further, when writing data from the cache memory to the storage device, the addresses of the data in the cache memory are checked in order, and the address range in which the number of data included in the address range at a constant interval exceeds a specific number is written. If a selection unit to be selected as a target and a writing unit that writes all the data included in the address range selected by the selection unit from the cache memory to the storage device are provided, in addition to the above effect, the entry of the cache memory Since the confirmation is performed in order, only the address of one entry in the cache memory needs to be stored in the confirmation processing, and the amount of hardware can be reduced.

【0032】また、キャッシュメモリのデータ領域を特
定の個数ごとにグループ分けし、グループごとに選択確
認フラグを設定し、記憶装置からキャッシュメモリへ該
当データをコピーする際に、キャッシュメモリ上に該当
データと同じアドレス範囲に含まれるデータがすでにあ
れば同じグループ内に該当データをコピーし、なければ
データが1つもコピーされていない新しいグループに該
当データをコピーし、そのグループにすべて同じアドレ
ス範囲に含まれるデータがコピーされたら該当グループ
の選択確認フラグをオンするデータ登録部と、キャッシ
ュメモリから記憶装置にデータを書き出す際に、選択フ
ラグがオンであるグループのどれかを書き出し対象とし
て選択する選択部と、選択部により選択されたグループ
内のデータのアドレス範囲に含まれる全てのデータをキ
ャッシュメモリから記憶装置に書き出す書き出し部と、
を備えれば、上記効果に加えて、キャッシュメモリへデ
ータをコピーする際に、なるべく同一のブロックに含ま
れるデータを1つのグループに登録するようにし、キャ
ッシュメモリにあらかじめ定めた個数ごとに設けたチェ
ックフラグにより、同一ブロックに含まれるデータが一
定個数以上あることを判別可能にしたことから、リプレ
ース実行時のリプレース対象のブロックを決定する処理
を高速化できる。
Further, the data area of the cache memory is divided into groups by a specific number, a selection confirmation flag is set for each group, and when the relevant data is copied from the storage device to the cache memory, the relevant data is stored in the cache memory. If there is already data included in the same address range as above, copy the corresponding data in the same group, if not, copy the corresponding data to a new group in which no data is copied, and all the groups include in the same address range. Data registration unit that turns on the selection confirmation flag of the corresponding group when the data to be copied is copied, and a selection unit that selects one of the groups whose selection flag is on when writing the data from the cache memory to the storage device as the write target. And the data in the group selected by the selection part All data included in the scan range of the cache memory and a writing unit that writes to a storage device,
In addition to the above effect, when data is copied to the cache memory, data included in the same block is registered in one group as much as possible, and the data is provided for each predetermined number in the cache memory. Since it is possible to determine that the data included in the same block is a certain number or more by the check flag, it is possible to speed up the process of determining the block to be replaced when the replacement is executed.

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

【図1】本発明の実施例1および実施例2におけるキャ
ッシュメモリ制御装置を備えた情報処理システムの構成
図である。
FIG. 1 is a configuration diagram of an information processing system including a cache memory control device according to a first embodiment and a second embodiment of the present invention.

【図2】本発明の実施例1におけるキャッシュメモリ制
御装置の動作を説明するフローチャートである。
FIG. 2 is a flowchart illustrating an operation of the cache memory control device according to the first embodiment of the present invention.

【図3】本発明の実施例2におけるキャッシュメモリ制
御装置の動作を説明するフローチャートである。
FIG. 3 is a flowchart illustrating an operation of the cache memory control device according to the second embodiment of the present invention.

【図4】本発明の実施例3におけるキャッシュメモリ制
御装置を備えた情報処理システムの構成図である。
FIG. 4 is a configuration diagram of an information processing system including a cache memory control device according to a third embodiment of the present invention.

【図5】本発明の実施例3におけるキャッシュメモリ制
御装置の動作を説明するフローチャートである。
FIG. 5 is a flowchart illustrating an operation of the cache memory control device according to the third embodiment of the present invention.

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

1 CPU 2 フラッシュメモリ 3 キャッシュメモリ 4 アドレス比較部 5 リプレース実行部 6 退避メモリ 11 CPU 12 フラッシュメモリ 13 キャッシュメモリ 14 リプレース実行部 15 退避メモリ 16 データ登録部 17 フラグ確認部 1 CPU 2 flash memory 3 cache memory 4 address comparison unit 5 replacement execution unit 6 save memory 11 CPU 12 flash memory 13 cache memory 14 replacement execution unit 15 save memory 16 data registration unit 17 flag confirmation unit

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 処理装置が記憶装置のデータをアクセス
する際に、 該当データがキャッシュメモリにコピーされているか否
かを判断するコピー存在確認ステップと、 前記コピー存在確認ステップにおいてコピーの存在が確
認されれば、前記キャッシュメモリ上のデータのみをア
クセスするキャッシュメモリアクセスステップと、 前記コピー存在確認ステップにおいてコピーの存在が確
認されなければ、前記キャッシュメモリ上に該当データ
をコピーする空領域があるか否かを確認する空領域存在
確認ステップと、 前記空領域存在確認ステップにおいて空領域の存在が確
認されれば、該当データを前記記憶装置から前記キャッ
シュメモリにコピーする第1のコピーステップと、 前記空領域存在確認ステップにおいて空領域の存在が確
認されなければ、前記キャッシュメモリ上のデータを前
記記憶装置に書き出して空領域を作る空領域作成ステッ
プと、 前記空領域作成ステップにおいて作成された空領域に該
当データを前記記憶装置からコピーする第2のコピース
テップと、 を実行するコピーバック方式のキャッシュメモリ制御方
法において、 前記キャッシュメモリから前記記憶装置にデータを書き
出す際に、 前記キャッシュメモリ上の全てのデータのアドレスを確
認するアドレス確認ステップと、 前記アドレス確認ステップにおいて確認されたアドレス
に基づいて、一定間隔のアドレス範囲に含まれるデータ
の数が最も多いアドレス範囲を書き出し対象として選択
する書き出し対象選択ステップと、 前記書き出し対象選択ステップにおいて選択されたアド
レス範囲に含まれる全てのデータを前記キャッシュメモ
リから前記記憶装置に書き出す書き出しステップと、 を実行することを特徴とするキャッシュメモリ制御方
法。
1. A copy existence confirmation step of determining whether or not the data is copied to a cache memory when the processing device accesses data in the storage device, and existence of a copy is confirmed in the copy existence confirmation step. If so, a cache memory access step for accessing only the data on the cache memory, and if there is no copy existence confirmed in the copy existence confirmation step, is there an empty area for copying the corresponding data on the cache memory? An empty area existence confirming step of confirming whether there is any, and a first copy step of copying the corresponding data from the storage device to the cache memory if existence of an empty area is confirmed in the empty area existence confirming step, In the empty area existence confirmation step, the existence of empty area is not confirmed. In this case, an empty area creating step of writing data in the cache memory to the storage device to create an empty area, and a second step of copying the corresponding data from the storage device to the empty area created in the empty area creating step In a cache memory control method of a copy back method that executes a copying step, an address checking step of checking addresses of all data on the cache memory when writing data from the cache memory to the storage device, Based on the addresses confirmed in the address confirmation step, the write target selection step of selecting the address range having the largest number of data included in the address range of the constant interval as the write target, and the address selected in the write target selection step All in range Cache memory control method characterized by the data execution and a writing step of writing to the storage device from the cache memory.
【請求項2】 処理装置と記憶装置との間にキャッシュ
メモリを有し、前記処理装置が前記記憶装置のデータを
アクセスする際に、該当データが前記キャッシュメモリ
にコピーされていれば、前記キャッシュメモリ上のデー
タのみをアクセスし、コピーされていなければ、前記キ
ャッシュメモリ上に該当データをコピーする空領域があ
るか否かを確認し、空領域があれば該当データを前記記
憶装置から前記キャッシュメモリにコピーし、空領域が
なければ前記キャッシュメモリ上のデータを前記記憶装
置に書き出して空領域を作り、その空領域に該当データ
を前記記憶装置からコピーする、コピーバック方式のキ
ャッシュメモリ制御装置において、 前記キャッシュメモリから前記記憶装置にデータを書き
出す際に、前記キャッシュメモリ上の全てのデータのア
ドレスを確認し、一定間隔のアドレス範囲に含まれるデ
ータの数を数えて最もデータ数の多いアドレス範囲を書
き出し対象として選択する選択部と、 前記選択部により選択されたアドレス範囲に含まれる全
てのデータを前記キャッシュメモリから前記記憶装置に
書き出す書き出し部と、 を備えたことを特徴とするキャッシュメモリ制御装置。
2. A cache memory is provided between a processing device and a storage device, and when the processing device accesses data in the storage device, if the corresponding data is copied to the cache memory, the cache memory. If only the data in the memory is accessed and if it is not copied, it is confirmed whether or not there is an empty area in the cache memory for copying the corresponding data. If there is an empty area, the corresponding data is cached from the storage device. Copy-back type cache memory control device for copying to memory, writing data in the cache memory to the storage device to create an empty region if there is no empty region, and copying the corresponding data to the empty region from the storage device In writing the data from the cache memory to the storage device, Check the address of all the data, count the number of data included in the address range at regular intervals, and select the address range with the largest number of data as the write target, and the address range selected by the selecting unit. A cache memory control device, comprising: a writing unit that writes all included data from the cache memory to the storage device.
【請求項3】 処理装置が記憶装置のデータをアクセス
する際に、 該当データがキャッシュメモリにコピーされているか否
かを判断するコピー存在確認ステップと、 前記コピー存在確認ステップにおいてコピーの存在が確
認されれば、前記キャッシュメモリ上のデータのみをア
クセスするキャッシュメモリアクセスステップと、 前記コピー存在確認ステップにおいてコピーの存在が確
認されなければ、前記キャッシュメモリ上に該当データ
をコピーする空領域があるか否かを確認する空領域存在
確認ステップと、 前記空領域存在確認ステップにおいて空領域の存在が確
認されれば、該当データを前記記憶装置から前記キャッ
シュメモリにコピーする第1のコピーステップと、 前記空領域存在確認ステップにおいて空領域の存在が確
認されなければ、前記キャッシュメモリ上のデータを前
記記憶装置に書き出して空領域を作る空領域作成ステッ
プと、 前記空領域作成ステップにおいて作成された空領域に該
当データを前記記憶装置からコピーする第2のコピース
テップと、 を実行するコピーバック方式のキャッシュメモリ制御方
法において、 前記キャッシュメモリから前記記憶装置にデータを書き
出す際に、 前記キャッシュメモリ上のデータのアドレスを順に確認
するアドレス確認ステップと、 前記アドレス確認ステップにおいて確認されたアドレス
に基づいて、一定間隔のアドレス範囲に含まれるデータ
の数が特定の個数を越えるアドレス範囲を書き出し対象
として選択する書き出し対象選択ステップと、 前記書き出し対象選択ステップにおいて選択されたアド
レス範囲に含まれる全てのデータを前記キャッシュメモ
リから前記記憶装置に書き出す書き出しステップと、 を実行することを特徴とするキャッシュメモリ制御方
法。
3. A copy existence confirming step of judging whether or not the corresponding data is copied to the cache memory when the processing device accesses the data of the storage device, and the existence of the copy is confirmed in the copy existence confirming step. If so, a cache memory access step for accessing only the data on the cache memory, and if there is no copy existence confirmed in the copy existence confirmation step, is there an empty area for copying the corresponding data on the cache memory? An empty area existence confirming step of confirming whether there is any, and a first copy step of copying the corresponding data from the storage device to the cache memory if existence of an empty area is confirmed in the empty area existence confirming step, In the empty area existence confirmation step, the existence of empty area is not confirmed. In this case, an empty area creating step of writing data in the cache memory to the storage device to create an empty area, and a second step of copying the corresponding data from the storage device to the empty area created in the empty area creating step A copy-back type cache memory control method that executes a copy step, and an address check step that sequentially checks the address of the data in the cache memory when writing data from the cache memory to the storage device; Based on the addresses confirmed in the confirming step, a write target selecting step of selecting a write target as an address range in which the number of data included in the address range of a certain interval exceeds a specific number, and the write target selecting step is selected in the write target selecting step. Included in the address range Cache memory control method characterized by all data executes a writing step of writing to the storage device from the cache memory.
【請求項4】 処理装置と記憶装置との間にキャッシュ
メモリを有し、前記処理装置が前記記憶装置のデータを
アクセスする際に、該当データが前記キャッシュメモリ
にコピーされていれば、前記キャッシュメモリ上のデー
タのみをアクセスし、コピーされていなければ、前記キ
ャッシュメモリ上に該当データをコピーする空領域があ
るか否かを確認し、空領域があれば該当データを前記記
憶装置から前記キャッシュメモリにコピーし、空領域が
なければ前記キャッシュメモリ上のデータを前記記憶装
置に書き出して空領域を作り、その空領域に該当データ
を前記記憶装置からコピーする、コピーバック方式のキ
ャッシュメモリ制御装置において、 前記キャッシュメモリから前記記憶装置にデータを書き
出す際に、前記キャッシュメモリ上のデータのアドレス
を順に確認し、一定間隔のアドレス範囲に含まれるデー
タの数が特定の個数を越えるアドレス範囲を書き出し対
象として選択する選択部と、 前記選択部により選択されたアドレス範囲に含まれる全
てのデータを前記キャッシュメモリから前記記憶装置に
書き出す書き出し部と、 を備えたことを特徴とするキャッシュメモリ制御装置。
4. A cache memory is provided between a processing device and a storage device, and when the processing device accesses data in the storage device, if the corresponding data is copied to the cache memory, the cache memory. If only the data in the memory is accessed and if it is not copied, it is confirmed whether or not there is an empty area in the cache memory for copying the corresponding data. If there is an empty area, the corresponding data is cached from the storage device. Copy-back type cache memory control device for copying to memory, writing data in the cache memory to the storage device to create an empty region if there is no empty region, and copying the corresponding data to the empty region from the storage device In writing the data from the cache memory to the storage device, The address of the data is sequentially checked, and a selection unit that selects an address range in which the number of data included in the address range at a constant interval exceeds a specific number as a writing target, and an address range selected by the selection unit A cache memory control device comprising: a writing unit that writes all data from the cache memory to the storage device.
【請求項5】 処理装置が記憶装置のデータをアクセス
する際に、 該当データがキャッシュメモリにコピーされているか否
かを判断するコピー存在確認ステップと、 前記コピー存在確認ステップにおいてコピーの存在が確
認されれば、前記キャッシュメモリ上のデータのみをア
クセスするキャッシュメモリアクセスステップと、 前記コピー存在確認ステップにおいてコピーの存在が確
認されなければ、前記キャッシュメモリ上に該当データ
をコピーする空領域があるか否かを確認する空領域存在
確認ステップと、 前記空領域存在確認ステップにおいて空領域の存在が確
認されれば、該当データを前記記憶装置から前記キャッ
シュメモリにコピーする第1のコピーステップと、 前記空領域存在確認ステップにおいて空領域の存在が確
認されなければ、前記キャッシュメモリ上のデータを前
記記憶装置に書き出して空領域を作る空領域作成ステッ
プと、 前記空領域作成ステップにおいて作成された空領域に該
当データを前記記憶装置からコピーする第2のコピース
テップと、 を実行するコピーバック方式のキャッシュメモリ制御方
法において、 前記キャッシュメモリのデータ領域を特定の個数ごとに
グループ分けし、グループごとに選択確認フラグを設定
し、 前記記憶装置から前記キャッシュメモリへ該当データを
コピーする際に、 前記キャッシュメモリ上に該当データと同じアドレス範
囲に含まれるデータがすでに存在するか否かを判断する
データ存在確認ステップと、 前記データ存在確認ステップにおいてデータの存在が確
認されれば、同じグループ内に該当データをコピーする
第3のコピーステップと、 前記データ存在確認ステップにおいてデータの存在が確
認されなければ、データが1つもコピーされていない新
しいグループに該当データをコピーする第4のコピース
テップと、 いずれかのグループにすべて同じアドレス範囲に含まれ
るデータがコピーされたら該当グループの前記選択確認
フラグをオンする選択確認フラグオンステップと、 を実行し、 前記キャッシュメモリから前記記憶装置にデータを書き
出す際に、 前記選択フラグがオンであるグループのどれかを書き出
し対象として選択する書き出し対象選択ステップと、 前記書き出し対象選択ステップにおいて選択されたグル
ープ内のデータのアドレス範囲に含まれる全てのデータ
を前記キャッシュメモリから前記記憶装置に書き出す書
き出しステップと、 を実行することを特徴とするキャッシュメモリ制御方
法。
5. A copy existence confirmation step of determining whether or not the data is copied to a cache memory when the processing device accesses the data of the storage device, and the existence of the copy is confirmed in the copy existence confirmation step. If so, a cache memory access step for accessing only the data on the cache memory, and if there is no copy existence confirmed in the copy existence confirmation step, is there an empty area for copying the corresponding data on the cache memory? An empty area existence confirming step of confirming whether there is any, and a first copy step of copying the corresponding data from the storage device to the cache memory if existence of an empty area is confirmed in the empty area existence confirming step, In the empty area existence confirmation step, the existence of empty area is not confirmed. In this case, an empty area creating step of writing data in the cache memory to the storage device to create an empty area, and a second step of copying the corresponding data from the storage device to the empty area created in the empty area creating step A copy-back type cache memory control method for executing the copying step, wherein a data area of the cache memory is divided into groups by a specific number, a selection confirmation flag is set for each group, and the cache memory from the storage device is set. When the corresponding data is copied to, the data existence confirmation step of determining whether or not the data included in the same address range as the corresponding data already exists in the cache memory, and the existence of the data in the data existence confirmation step If confirmed, copy the corresponding data in the same group A third copying step, and a fourth copying step, in which if the existence of the data is not confirmed in the data existence confirming step, the corresponding data is copied to a new group in which no data is copied, When all the data included in the same address range is copied, the selection confirmation flag ON step of turning on the selection confirmation flag of the corresponding group is executed, and when the data is written from the cache memory to the storage device, the selection is performed. A write target selection step of selecting one of the groups whose flags are on as a write target; and storing all data included in the address range of the data in the group selected in the write target selection step from the cache memory Export step to export to the device And a cache memory control method characterized by executing the following.
【請求項6】 処理装置と記憶装置との間にキャッシュ
メモリを有し、前記処理装置が前記記憶装置のデータを
アクセスする際に、該当データが前記キャッシュメモリ
にコピーされていれば、前記キャッシュメモリ上のデー
タのみをアクセスし、コピーされていなければ、前記キ
ャッシュメモリ上に該当データをコピーする空領域があ
るか否かを確認し、空領域があれば該当データを前記記
憶装置から前記キャッシュメモリにコピーし、空領域が
なければ前記キャッシュメモリ上のデータを前記記憶装
置に書き出して空領域を作り、その空領域に該当データ
を前記記憶装置からコピーする、コピーバック方式のキ
ャッシュメモリ制御装置において、 前記キャッシュメモリのデータ領域を特定の個数ごとに
グループ分けし、グループごとに選択確認フラグを設定
し、 前記記憶装置から前記キャッシュメモリへ該当データを
コピーする際に、前記キャッシュメモリ上に該当データ
と同じアドレス範囲に含まれるデータがすでにあれば同
じグループ内に該当データをコピーし、なければデータ
が1つもコピーされていない新しいグループに該当デー
タをコピーし、そのグループにすべて同じアドレス範囲
に含まれるデータがコピーされたら該当グループの前記
選択確認フラグをオンするデータ登録部と、 前記キャッシュメモリから前記記憶装置にデータを書き
出す際に、前記選択フラグがオンであるグループのどれ
かを書き出し対象として選択する選択部と、 前記選択部により選択されたグループ内のデータのアド
レス範囲に含まれる全てのデータを前記キャッシュメモ
リから前記記憶装置に書き出す書き出し部と、を備えた
ことを特徴とするキャッシュメモリ制御装置。
6. A cache memory is provided between a processing device and a storage device, and when the processing device accesses data in the storage device, if the corresponding data is copied to the cache memory, the cache memory is provided. If only the data in the memory is accessed and if it is not copied, it is confirmed whether or not there is an empty area in the cache memory for copying the corresponding data. If there is an empty area, the corresponding data is cached from the storage device. Copy-back type cache memory control device for copying to memory, writing data in the cache memory to the storage device to create an empty region if there is no empty region, and copying the corresponding data to the empty region from the storage device In, the data area of the cache memory is divided into groups by a specific number and selected for each group. When a corresponding flag is set and the corresponding data is copied from the storage device to the cache memory, if the data included in the same address range as the corresponding data already exists in the cache memory, the corresponding data is copied into the same group. If there is none, copy the corresponding data to a new group in which no data is copied, and if the data included in the same address range is copied to the group, a data registration unit that turns on the selection confirmation flag of the corresponding group, When writing data from the cache memory to the storage device, a selection unit that selects one of the groups in which the selection flag is turned on for writing, and an address range of data in the group selected by the selection unit All the data contained in the cache memory is stored in the storage device. A cache memory control device comprising: a writing unit for writing data to a storage device.
JP5226989A 1993-09-13 1993-09-13 Method and unit for cache memory control Pending JPH0784886A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5226989A JPH0784886A (en) 1993-09-13 1993-09-13 Method and unit for cache memory control

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5226989A JPH0784886A (en) 1993-09-13 1993-09-13 Method and unit for cache memory control

Publications (1)

Publication Number Publication Date
JPH0784886A true JPH0784886A (en) 1995-03-31

Family

ID=16853769

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5226989A Pending JPH0784886A (en) 1993-09-13 1993-09-13 Method and unit for cache memory control

Country Status (1)

Country Link
JP (1) JPH0784886A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100339837C (en) * 2004-03-23 2007-09-26 国际商业机器公司 System for balancing multiple memory buffer sizes and method therefor
JP2009020833A (en) * 2007-07-13 2009-01-29 Internatl Business Mach Corp <Ibm> Technology for caching data
JP2010097333A (en) * 2008-10-15 2010-04-30 Tdk Corp Memory controller, flash memory system equipped with memory controller and method for controlling flash memory
JP2010538385A (en) * 2007-09-05 2010-12-09 サムスン エレクトロニクス カンパニー リミテッド Cache operating method and cache device using a set of sectors

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100339837C (en) * 2004-03-23 2007-09-26 国际商业机器公司 System for balancing multiple memory buffer sizes and method therefor
JP2009020833A (en) * 2007-07-13 2009-01-29 Internatl Business Mach Corp <Ibm> Technology for caching data
JP2010538385A (en) * 2007-09-05 2010-12-09 サムスン エレクトロニクス カンパニー リミテッド Cache operating method and cache device using a set of sectors
JP2010097333A (en) * 2008-10-15 2010-04-30 Tdk Corp Memory controller, flash memory system equipped with memory controller and method for controlling flash memory
JP4632180B2 (en) * 2008-10-15 2011-02-16 Tdk株式会社 MEMORY CONTROLLER, FLASH MEMORY SYSTEM HAVING MEMORY CONTROLLER, AND FLASH MEMORY CONTROL METHOD

Similar Documents

Publication Publication Date Title
JP4044067B2 (en) Priority-based flash memory control device for XIP in serial flash memory, memory management method using the same, and flash memory chip using the same
US7275135B2 (en) Hardware updated metadata for non-volatile mass storage cache
US7373452B2 (en) Controller for controlling nonvolatile memory
US6205521B1 (en) Inclusion map for accelerated cache flush
US20070016719A1 (en) Memory device including nonvolatile memory and memory controller
US20100088459A1 (en) Improved Hybrid Drive
US6272587B1 (en) Method and apparatus for transfer of data between cache and flash memory in an internal combustion engine control system
US5317704A (en) Storage relocating method and hierarchy storage system utilizing a cache memory
JP2013097416A (en) Storage device and computer
US7058784B2 (en) Method for managing access operation on nonvolatile memory and block structure thereof
JP2004303238A (en) Flash memory access device and method
JPH0748190B2 (en) Microprocessor with cache memory
JP2004151962A (en) Cache memory, processor, and cache control method
JPH07114500A (en) Nonvolatile memory device
JPH0784886A (en) Method and unit for cache memory control
US7099998B1 (en) Method for reducing an importance level of a cache line
KR100801814B1 (en) Cache memory and control method thereof
JP2003058420A (en) Method for reading data out of nand type flash memory
JPH0628258A (en) Microprocessor
JP2927160B2 (en) Register device
JPH08305634A (en) Information processing method and device therefor
KR100281102B1 (en) ATA card using the flash memory
JPH06282487A (en) Cache device
JP2001209578A (en) Management system for memory update history
JPH04288647A (en) Substitution controller for cache memory