JPH06295263A - Memory system - Google Patents

Memory system

Info

Publication number
JPH06295263A
JPH06295263A JP5106139A JP10613993A JPH06295263A JP H06295263 A JPH06295263 A JP H06295263A JP 5106139 A JP5106139 A JP 5106139A JP 10613993 A JP10613993 A JP 10613993A JP H06295263 A JPH06295263 A JP H06295263A
Authority
JP
Japan
Prior art keywords
cache memory
memory
area
data
cache
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
JP5106139A
Other languages
Japanese (ja)
Inventor
Yasunori Ido
靖則 伊戸
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP5106139A priority Critical patent/JPH06295263A/en
Publication of JPH06295263A publication Critical patent/JPH06295263A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

(57)【要約】 【目的】 主メモリをキャッシュメモリ適用領域及び非
適用領域に分割して使用することにより、処理速度の安
定した、常に高速動作可能なコンピュータシステムを実
現する。 【構成】 主メモリ3におけるデータを格納するアドレ
スに基づいて、キャッシュメモリ2を使用する領域と使
用しない領域とに分ける。そして使用頻度の高いデータ
の読み出し時は、キャッシュメモリ使用・不使用切り換
え機構6を切り換えることによりキャッシュメモリ2を
使用し、使用頻度の低いデータの読み出し時はキャッシ
ュメモリ2を使用しない。
(57) [Summary] [Object] To realize a computer system with stable processing speed and always high-speed operation by dividing the main memory into a cache memory application area and a non-application area. [Structure] Based on an address for storing data in the main memory 3, the cache memory 2 is divided into an area where it is used and an area where it is not used. Then, when reading frequently used data, the cache memory 2 is used by switching the cache memory use / non-use switching mechanism 6, and when reading frequently used data, the cache memory 2 is not used.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、例えば、各種監視表
示装置や産業用計算機装置等に使用されるキャッシュメ
モリをもつコンピュータシステムに関し、特に主メモリ
に格納されたデータのアドレスに基づいて、キャッシュ
メモリの使用・不使用を決定するメモリシステムに関す
るものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a computer system having a cache memory used for, for example, various monitor display devices and industrial computer devices, and more particularly to a cache system based on an address of data stored in a main memory. The present invention relates to a memory system that decides whether or not to use a memory.

【0002】[0002]

【従来の技術】図4は、例えば、「日経エレクトロニク
ス」(1992年6月8日号)に記載された従来のコン
ピュータシステムのメモリシステム構成を示す図であ
る。図4において、1はCPU、2はキャッシュメモ
リ、3は主メモリ、4はデータバスである。このコンピ
ュータシステムでは、CPU1とデータアクセス速度が
低速な主メモリ3の間にデータアクセス速度が高速なキ
ャッシュメモリ2を配置している。
2. Description of the Related Art FIG. 4 is a diagram showing a memory system configuration of a conventional computer system described, for example, in "Nikkei Electronics" (June 8, 1992). In FIG. 4, 1 is a CPU, 2 is a cache memory, 3 is a main memory, and 4 is a data bus. In this computer system, a cache memory 2 having a high data access speed is arranged between a CPU 1 and a main memory 3 having a low data access speed.

【0003】また、図5は従来のコンピュータシステム
におけるメモリアクセス制御を説明するフローチャート
である。次に、この従来のコンピュータシステムにおけ
る動作を説明する。CPU1からのデータ要求があった
場合、このデータがキャッシュメモリ2内に存在するか
否かを判定する(ステップS51)。そのデータがキャ
ッシュメモリ2内に存在する場合(以後キャッシュヒッ
トと呼ぶ)、CPU1はキャッシュメモリ2よりデータ
を読み出すことで、データ読み込み時間を短縮する(ス
テップS52)。一方、キャッシュメモリ2内に必要と
するデータが存在しない場合は、CPU1は主メモリ3
よりデータを読み出し(ステップS53)、それ以後、
そのデータがキャッシュヒットするよう、キャッシュメ
モリ2を更新する(ステップS54)。
FIG. 5 is a flow chart for explaining memory access control in a conventional computer system. Next, the operation of this conventional computer system will be described. When there is a data request from the CPU 1, it is determined whether or not this data exists in the cache memory 2 (step S51). If the data exists in the cache memory 2 (hereinafter referred to as cache hit), the CPU 1 reads the data from the cache memory 2 to shorten the data read time (step S52). On the other hand, when the required data does not exist in the cache memory 2, the CPU 1 determines that the main memory 3
More data is read (step S53), and thereafter
The cache memory 2 is updated so that the data hits the cache (step S54).

【0004】[0004]

【発明が解決しようとする課題】従来のコンピュータシ
ステムは以上のように構成されていたので、例えば、キ
ャッシュメモリ2において使用頻度の低いデータの読み
出しが連続した場合、キャッシュメモリ2に存在しない
データの読み出しが連続し、主メモリ3からのデータ読
み出し及びキャッシュメモリ2の更新が連続して行われ
るため、CPU1がデータ読み込みに要する時間が増大
する問題点がある。
Since the conventional computer system is configured as described above, for example, when data with a low frequency of use is continuously read in the cache memory 2, data that does not exist in the cache memory 2 can be read. Since the reading is continuous and the data reading from the main memory 3 and the updating of the cache memory 2 are continuously performed, there is a problem that the time required for the CPU 1 to read the data increases.

【0005】この発明は上記のような課題を解決するた
めになされたもので、キャッシュメモリをもつコンピュ
ータシステムにおいて、キャッシュメモリの使用、不使
用を切り換える機構、及び主メモリ内の任意の領域をキ
ャッシュメモリを使用するキャッシュメモリ適用領域と
キャッシュメモリを使用しないキャッシュメモリ非適用
領域に設定する機構をもつメモリシステムを得ることを
目的とする。
The present invention has been made to solve the above problems, and in a computer system having a cache memory, a mechanism for switching between use and non-use of the cache memory, and an arbitrary area in the main memory are cached. An object of the present invention is to obtain a memory system having a mechanism for setting a cache memory application area that uses memory and a cache memory non-application area that does not use cache memory.

【0006】[0006]

【課題を解決するための手段】この第1の発明に係るメ
モリシステムは、主メモリ3のデータを格納するアドレ
ス値に基づき、この主メモリをキャッシュメモリを使用
する領域とキャッシュメモリを使用しない領域とに分け
る設定を行う使用・不使用領域設定部(キャッシュメモ
リ使用領域設定部8)と、この使用・不使用領域設定部
の設定により、CPUが使用する上記主メモリ上のデー
タアドレス値に基づき、上記キャッシュメモリを使用す
るか否かを決定する使用・不使用決定部(キャッシュメ
モリ使用・不使用決定部7)と、この使用・不使用決定
部の指示に従って、上記主メモリ又はキャッシュメモリ
と上記CPUとを接続する接続手段(キャッシュメモリ
使用・不使用切り換え機構6)とを備えている。この第
2の発明に係るメモリシステムは、キャッシュメモリを
使用するデータ領域を上記主メモリの可変長領域とし、
キャッシュメモリを使用しないデータ領域を上記主メモ
リの可変長領域以外の領域とするように、上記使用・不
使用領域設定部により設定した。この第3の発明に係る
メモリシステムは、上記主メモリ上におけるキャッシュ
メモリの使用・不使用領域を、使用者が上記使用・不使
用設定部に指示する設定指示手段(マンマシンインタフ
ェース部30)を設けた。
The memory system according to the first aspect of the present invention is based on an address value for storing data in the main memory 3, and the main memory is an area that uses a cache memory and an area that does not use a cache memory. Based on the data address value on the main memory used by the CPU, the use / non-use area setting unit (cache memory use area setting unit 8) which performs separate setting and the setting of the use / non-use area setting unit A use / non-use determining unit (cache memory use / non-use determining unit 7) for determining whether to use the cache memory, and the main memory or the cache memory according to an instruction of the use / non-use determining unit. A connection means (cache memory use / non-use switching mechanism 6) for connecting to the CPU is provided. In the memory system according to the second aspect of the present invention, the data area using the cache memory is the variable length area of the main memory,
The use / non-use area setting unit sets the data area not using the cache memory to an area other than the variable length area of the main memory. In the memory system according to the third aspect of the present invention, a setting instruction means (man-machine interface section 30) for instructing the use / non-use area of the cache memory on the main memory by the user to the use / non-use setting section is provided. Provided.

【0007】[0007]

【作用】この第1の発明によるメモリシステムは、始め
に、使用・不使用領域設定部(キャッシュメモリ使用領
域設定部8)により、上記主メモリのデータを格納する
アドレス値に基づき、この主メモリをキャッシュメモリ
を使用する領域とキャッシュメモリを使用しない領域と
に分ける設定を行う。次に、使用・不使用決定部(キャ
ッシュメモリ使用・不使用決定部8)により、この使用
・不使用領域設定部の設定により、CPUが使用する上
記主メモリ上のデータのアドレス値に基づき、上記キャ
ッシュメモリを使用するか否かを決定する。最後に、接
続手段(キャッシュメモリ使用・不使用切り換え機構
6)により、上記使用・不使用決定部の指示に従って、
上記主メモリ又はキャッシュメモリと上記CPUとを接
続する。この第2の発明によるメモリシステムは、上記
主メモリをキャッシュメモリを使用する領域と使用しな
い領域とに分ける場合に、キャッシュメモリを使用する
データ領域を上記主メモリの可変長領域とし、キャッシ
ュメモリを使用しないデータ領域を上記主メモリの可変
長領域以外の領域とする。この第3の発明によるメモリ
システムは、使用者が上記設定指示手段(マンマシンイ
ンタフェース部30)から上記使用・不使用設定部に、
上記主メモリ上におけるキャッシュメモリの使用・不使
用領域を設定する。
In the memory system according to the first aspect of the present invention, first, the use / non-use area setting unit (cache memory use area setting unit 8) determines the main memory based on the address value for storing the data in the main memory. Is divided into areas that use cache memory and areas that do not use cache memory. Next, the use / non-use determining unit (cache memory use / non-use determining unit 8) sets the use / non-use area setting unit, based on the address value of the data on the main memory used by the CPU, It is determined whether to use the cache memory. Finally, by the connection means (cache memory use / non-use switching mechanism 6), according to the instruction of the use / non-use determination unit,
The main memory or cache memory is connected to the CPU. In the memory system according to the second aspect of the present invention, when the main memory is divided into an area using the cache memory and an area not using the cache memory, the data area using the cache memory is a variable length area of the main memory, and the cache memory is The unused data area is an area other than the variable length area of the main memory. In the memory system according to the third aspect of the present invention, the user changes from the setting instruction means (man-machine interface unit 30) to the use / non-use setting unit,
The use / non-use area of the cache memory on the main memory is set.

【0008】[0008]

【実施例】【Example】

実施例1.図1は、この発明の実施例1によるコンピュ
ータシステムの構成を示す図である。なお、従来例(図
4)と同一又は相当する部分には同一符号を付して説明
を省略する。5はキャッシュメモリ制御部、6は接続手
段としてのキャッシュメモリ使用・不使用切り換え機
構、7は使用・不使用決定部としてのキャッシュメモリ
使用・不使用決定部、8は使用・不使用領域決定部とし
てのキャッシュメモリ使用領域設定部、101はキャッ
シュメモリ適用領域、102はキャッシュメモリ非適用
領域である。CPU1は、キャッシュメモリ2の使用、
不使用を切り換えるキャッシュメモリ使用・不使用切り
換え機構6により、キャッシュメモリを使用するか否か
を切り換える。また、上記キャッシュメモリ使用・不使
用切り換え機構6の制御は、キャッシュメモリ制御部5
により行う。そして、これらの設定はソフトウェアを用
いて簡単に設定する。例えば、キーボードから画面表示
されたデータに対応して、予め定められた記号(1)を
入力すればキャッシュメモリ使用(0)を入力すればキ
ャッシュメモリ不使用というように設定する。このよう
にして、キャッシュメモリ使用・不使用切り換え機構6
を切り換えるため、主メモリ3のデータを格納する場所
を示すアドレスにより、キャッシュメモリ2の使用・不
使用を決定する。すなわち、始めにソフトウェアの設計
者は主メモリ3内を予め複数個のメモリ領域(固定長ブ
ロック)に分割し、これら各ブロック毎に、キャッシュ
メモリ2を使用するキャッシュメモリ適用領域101、
キャッシュメモリ2を使用しないキャッシュメモリ非適
用領域102のどちらとして使用するかを選択する。そ
して、これらの各ブロックにおけるキャッシュメモリ2
の使用又は不使用は、キャッシュメモリ使用領域設定部
8に登録される。キャッシュメモリ使用・不使用決定部
7は、キャッシュメモリ使用領域設定部8の設定内容に
従い、キャッシュメモリ使用・不使用切り換え機構6を
制御する。上記キャッシュメモリ使用領域設定部8にお
ける主メモリ3内各ブロックの設定内容は、ダイナミッ
クに設定可能である。すなわち、ソフトウェアによりコ
ンピュータシステムの動作中でも、メモリ領域における
データのキャッシュメモリ使用/不使用を設定できる。
従って、例えば、主メモリ3の内容が書き換えられた場
合は、キャッシュメモリ適用領域101、キャッシュメ
モリ非適用領域102の再設定を行うことができる。
Example 1. 1 is a diagram showing the configuration of a computer system according to a first embodiment of the present invention. Incidentally, the same or corresponding parts as those of the conventional example (FIG. 4) are designated by the same reference numerals and the description thereof will be omitted. Reference numeral 5 is a cache memory control unit, 6 is a cache memory use / non-use switching mechanism as a connecting unit, 7 is a cache memory use / non-use determination unit as a use / non-use determination unit, and 8 is a use / non-use area determination unit. Is a cache memory application area setting unit, 101 is a cache memory application area, and 102 is a cache memory non-application area. The CPU 1 uses the cache memory 2,
The cache memory use / non-use switching mechanism 6 for switching the non-use switches the use or non-use of the cache memory. The cache memory use / non-use switching mechanism 6 is controlled by the cache memory control unit 5
By. Then, these settings are easily set using software. For example, if a predetermined symbol (1) is input corresponding to the data displayed on the screen from the keyboard and the cache memory use (0) is input, the cache memory is not used. In this way, the cache memory use / non-use switching mechanism 6
In order to switch between, the use / non-use of the cache memory 2 is determined by the address indicating the location where the data of the main memory 3 is stored. That is, first, the software designer divides the main memory 3 into a plurality of memory areas (fixed length blocks) in advance, and for each of these blocks, the cache memory application area 101 that uses the cache memory 2,
It is selected which of the cache memory non-application areas 102 that does not use the cache memory 2 is used. Then, the cache memory 2 in each of these blocks
The use or non-use of is registered in the cache memory use area setting unit 8. The cache memory use / non-use determination unit 7 controls the cache memory use / non-use switching mechanism 6 according to the setting contents of the cache memory use area setting unit 8. The setting contents of each block in the main memory 3 in the cache memory use area setting unit 8 can be dynamically set. That is, the use / non-use of the cache memory of data in the memory area can be set by the software even while the computer system is operating.
Therefore, for example, when the content of the main memory 3 is rewritten, the cache memory applicable area 101 and the cache memory non-applicable area 102 can be reset.

【0009】図2は、この発明の実施例1のメモリシス
テムにおけるメモリアクセス制御の動作を示すフローチ
ャートである。次に、この実施例1のメモリシステムの
動作について説明する。CPU1からのデータ要求があ
った場合、キャッシュメモリ使用・不使用決定部7は、
主メモリ3のデータ読み出しアドレスがキャッシュメモ
リ適用領域101か否か判定する(ステップS21)。
そして、この読み出しアドレスが、キャッシュメモリ適
用領域101内の場合は、データがキャッシュメモリ2
内に存在するか否か判定し(ステップS22)、存在す
る場合は、CPU1はキャッシュメモリ2よりデータを
読み出し(ステップS23)、存在しない場合は、PC
U1は主メモリ3よりデータを読み出す(ステップS2
4)。以後、このデータがキャッシュヒットするよう、
キャッシュメモリ2を更新する(ステップS25)。そ
して、この読み出しアドレスが、キャッシュメモリ非適
用領域102内の場合は、CPU1は主メモリ3よりデ
ータを読み出す(ステップS26)。
FIG. 2 is a flow chart showing the operation of memory access control in the memory system of the first embodiment of the present invention. Next, the operation of the memory system of the first embodiment will be described. When there is a data request from the CPU 1, the cache memory use / nonuse determination unit 7
It is determined whether the data read address of the main memory 3 is the cache memory applicable area 101 (step S21).
If this read address is in the cache memory applicable area 101, the data is in the cache memory 2
It is determined whether or not it exists in the cache memory (step S22), and if it exists, the CPU 1 reads the data from the cache memory 2 (step S23).
U1 reads data from the main memory 3 (step S2
4). After that, to make this data hit the cache,
The cache memory 2 is updated (step S25). If the read address is within the cache memory non-applicable area 102, the CPU 1 reads data from the main memory 3 (step S26).

【0010】実施例2.図3は、この発明の実施例2に
よるコンピュータシステムの構成を示す図である。な
お、実施例1(図1)と同一又は相当部分には同一符号
を付している。この実施例2では、主メモリ3内の可変
長領域を、データ読み出し時にキャッシュメモリ2を使
用するキャッシュメモリ適用領域101とし、その他の
領域をキャッシュメモリ2を使用しないキャッシュメモ
リ非適用領域102に設定する。このように、キャッシ
ュメモリ適用領域101の開始アドレス、終了アドレス
を指定して、キャッシュメモリ適用領域101を設定す
ることにより、主メモリ3内の任意の領域に任意の容量
のキャッシュメモリ適用領域101を設定することが可
能である。また、キャッシュメモリ適用領域101の設
定は、上記実施例1と同様に、キャッシュメモリ使用領
域設定部8にて行う。キャッシュメモリ使用領域設定部
8における主メモリ3内キャッシュメモリ適用領域10
1及びキャッシュメモリ非適用領域102の設定内容
は、実施例2と同様に、ダイナミックに設定可能であ
る。また、この実施例におけるメモリアクセス制御動作
は、実施例1と同様に、図2のフローチャートに従って
いる。
Embodiment 2. FIG. 3 is a diagram showing the configuration of a computer system according to the second embodiment of the present invention. The same or corresponding parts as those of the first embodiment (FIG. 1) are designated by the same reference numerals. In the second embodiment, the variable length area in the main memory 3 is set as the cache memory applicable area 101 that uses the cache memory 2 at the time of reading data, and the other area is set as the cache memory non-applicable area 102 that does not use the cache memory 2. To do. In this way, by designating the start address and the end address of the cache memory application area 101 and setting the cache memory application area 101, an arbitrary capacity of the cache memory application area 101 is set in an arbitrary area in the main memory 3. It is possible to set. The cache memory applicable area 101 is set by the cache memory use area setting unit 8 as in the first embodiment. Cache memory application area 10 in main memory 3 in cache memory use area setting unit 8
1 and the setting contents of the cache memory non-application area 102 can be dynamically set, as in the second embodiment. Further, the memory access control operation in this embodiment follows the flowchart of FIG. 2 as in the first embodiment.

【0011】実施例3.この発明の実施例3では、30
の設定指示手段としてのマンマシンインタフェース部を
設ける。このマンマシンインタフェース部30からキャ
ッシュメモリ使用・不使用設定部7に、主メモリ上にお
けるデータを、キャッシュメモリを使用するものとキャ
ッシュメモリを使用しないものに自由に設定する。
Embodiment 3. In the third embodiment of the present invention, 30
A man-machine interface unit is provided as a setting instruction means of the. From the man-machine interface unit 30, the cache memory use / non-use setting unit 7 freely sets the data on the main memory to those using the cache memory and those not using the cache memory.

【0012】[0012]

【発明の効果】以上のように、この第1の発明によれ
ば、主メモリのデータを格納するアドレス値に基づき、
この主メモリをキャッシュメモリを使用する領域とキャ
ッシュメモリを使用しない領域とに分ける設定を行う使
用・不使用領域設定部と、この使用・不使用領域設定部
の設定により、CPUが使用する上記主メモリ上のデー
タのアドレス値に基づき、上記キャッシュメモリを使用
するか否かを決定する使用・不使用決定部と、この使用
・不使用決定部の指示に従って、上記主メモリ又はキャ
ッシュメモリと上記CPUとを接続する接続手段とを備
える構成としたので、低速な主メモリからのデータ読み
出し回数が減少し、高速動作可能なコンピュータシステ
ムを実現できる効果がある。この第2の発明によれば、
キャッシュメモリを使用するデータ領域を上記主メモリ
の可変長領域とし、キャッシュメモリを使用しないデー
タ領域を上記主メモリの可変長領域以外の領域とするよ
うにしたので、使用データの影響が少なく、処理速度の
安定した、常に高速動作可能なコンピュータシステムを
実現できる効果がある。この第3の発明によれば、上記
主メモリ上におけるキャッシュメモリの使用・不使用領
域を、使用者が設定できるようにしたので、上記第1の
発明の効果に加えて、ユーザの都合に応じて主メモリを
無駄なく使用することができる効果がある。
As described above, according to the first invention, based on the address value for storing the data in the main memory,
The main memory used by the CPU is set according to the use / non-use area setting section for setting the main memory into an area using the cache memory and an area not using the cache memory, and the setting of the use / non-use area setting section. Based on the address value of the data on the memory, the use / non-use determining unit for determining whether to use the cache memory, and the main memory or cache memory and the CPU according to the instruction of the use / non-use determining unit. Since the configuration is provided with the connection means for connecting the and, the number of times data is read from the low-speed main memory is reduced, and a computer system capable of high-speed operation can be realized. According to this second invention,
Since the data area that uses the cache memory is the variable length area of the main memory and the data area that does not use the cache memory is the area other than the variable length area of the main memory, the influence of the used data is small, This has the effect of realizing a computer system with stable speed and capable of always operating at high speed. According to the third invention, since the user can set the used / unused area of the cache memory on the main memory, in addition to the effect of the first invention, it is possible to meet the convenience of the user. Therefore, the main memory can be used without waste.

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

【図1】この発明の実施例1によるメモリシステムの構
成を示す図である。
FIG. 1 is a diagram showing a configuration of a memory system according to a first embodiment of the present invention.

【図2】図1のメモリシステムにおけるメモリアクセス
制御動作を示すフローチャートである。
2 is a flowchart showing a memory access control operation in the memory system of FIG.

【図3】この発明の実施例2によるメモリシステムの構
成を示す図である。
FIG. 3 is a diagram showing a configuration of a memory system according to a second embodiment of the present invention.

【図4】従来例のコンピュータシステムの構成を示す図
である。
FIG. 4 is a diagram showing a configuration of a conventional computer system.

【図5】図4のシステムのメモリアクセス制御動作を示
すフローチャートである。
5 is a flowchart showing a memory access control operation of the system of FIG.

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

1 CPU 2 キャッシュメモリ 3 主メモリ 4 データバス 5 キャッシュメモリ制御部 6 キャッシュメモリ使用・不使用切り換え機構 7 キャッシュメモリ使用・不使用決定部 8 キャッシュメモリ使用領域設定部 101 キャッシュメモリ適用領域 102 キャッシュメモリ非適用領域 1 CPU 2 cache memory 3 main memory 4 data bus 5 cache memory control unit 6 cache memory use / non-use switching mechanism 7 cache memory use / non-use determination unit 8 cache memory use area setting unit 101 cache memory applicable area 102 cache memory non Application area

─────────────────────────────────────────────────────
─────────────────────────────────────────────────── ───

【手続補正書】[Procedure amendment]

【提出日】平成5年9月6日[Submission date] September 6, 1993

【手続補正1】[Procedure Amendment 1]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0007[Correction target item name] 0007

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0007】[0007]

【作用】この第1の発明によるメモリシステムは、始め
に、使用・不使用領域設定部(キャッシュメモリ使用領
域設定部8)により、上記主メモリのデータを格納する
アドレス値に基づき、この主メモリをキャッシュメモリ
を使用する領域とキャッシュメモリを使用しない領域と
に分ける設定を行う。次に、使用・不使用決定部(キャ
ッシュメモリ使用・不使用決定部8)により、この使用
・不使用領域設定部の設定により、CPUが使用する上
記主メモリ上のデータのアドレス値に基づき、上記キャ
ッシュメモリを使用するか否かを決定する。最後に、接
続手段(キャッシュメモリ使用・不使用切り換え機構
6)により、上記使用・不使用決定部の指示に従って、
上記主メモリ又はキャッシュメモリと上記CPUとを接
続する。この第2の発明によるメモリシステムは、上記
主メモリをキャッシュメモリを使用する領域と使用しな
い領域とに分ける場合に、キャッシュメモリを使用する
データ領域を上記主メモリの可変長領域とし、キャッシ
ュメモリを使用しないデータ領域を上記主メモリの可変
長領域以外の領域とする。この第3の発明によるメモリ
システムは、使用者によるキャッシュメモリの使用,
不使用の設定はキャッシュメモリ使用領域設定部8(図
3)にて行う。
In the memory system according to the first aspect of the present invention, first, the use / non-use area setting unit (cache memory use area setting unit 8) determines the main memory based on the address value for storing the data in the main memory. Is divided into areas that use cache memory and areas that do not use cache memory. Next, the use / non-use determining unit (cache memory use / non-use determining unit 8) sets the use / non-use area setting unit, based on the address value of the data on the main memory used by the CPU, It is determined whether to use the cache memory. Finally, by the connection means (cache memory use / non-use switching mechanism 6), according to the instruction of the use / non-use determination unit,
The main memory or cache memory is connected to the CPU. In the memory system according to the second aspect of the present invention, when the main memory is divided into an area using the cache memory and an area not using the cache memory, the data area using the cache memory is a variable length area of the main memory, and the cache memory is The unused data area is an area other than the variable length area of the main memory. In the third memory system according to the invention, use of the cache memory by the user,
The unused setting is made by the cache memory use area setting unit 8 (see
Perform in 3).

【手続補正2】[Procedure Amendment 2]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0008[Correction target item name] 0008

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0008】[0008]

【実施例】 実施例1.図1は、この発明の実施例1によるコンピュ
ータシステムの構成を示す図である。なお、従来例(図
4)と同一又は相当する部分には同一符号を付して説明
を省略する。5はキャッシュメモリ制御部、6は接続手
段としてのキャッシュメモリ使用・不使用切り換え機
構、7は使用・不使用決定部としてのキャッシュメモリ
使用・不使用決定部、8は使用・不使用領域決定部とし
てのキャッシュメモリ使用領域設定部、101はキャッ
シュメモリ適用領域、102はキャッシュメモリ非適用
領域である。キャッシュメモリ2の使用不使用を切り
換えるキャッシュメモリ使用・不使用切り換え機構6に
より、CPU1がキャッシュメモリを使用するか否かを
切り換える。また、上記キャッシュメモリ使用・不使用
切り換え機構6の制御は、キャッシュメモリ制御部5に
より行う。そして、キャッシュメモリ使用・不使用領域
の設定はキャッシュメモリ使用領域設定部にて行う。こ
設定はソフトウェアを用いて簡単に設定する。例え
ば、予め定められた記号(1)を入力すればキャッシュ
メモリ使用(0)を入力すればキャッシュメモリ不使用
というように設定する。このようにして、キャッシュメ
モリ使用・不使用切り換え機構6を切り換えるため、主
メモリ3のデータを格納する場所を示すアドレスによ
り、キャッシュメモリ2の使用・不使用を決定する。す
なわち、主メモリ3内を予め複数個のメモリ領域(固定
長ブロック)に分割し、これら各ブロック毎に、例え
ば、キャッシュメモリ使用領域を示す記号“1”、又は
キャッシュメモリ不使用領域を示す記号“0”を設定す
ることにより、キャッシュメモリ2を使用するキャッシ
ュメモリ適用領域101、キャッシュメモリ2を使用し
ないキャッシュメモリ非適用領域102のどちらとして
使用するかを選択する。そして、これらの各ブロックに
おけるキャッシュメモリ2の使用又は不使用は、キャッ
シュメモリ使用領域設定部8に登録される。キャッシュ
メモリ使用・不使用決定部7は、キャッシュメモリ使用
領域設定部8の設定内容に従い、キャッシュメモリ使用
・不使用切り換え機構6を制御する。上記キャッシュメ
モリ使用領域設定部8における主メモリ3内各ブロック
の設定内容は、ダイナミックに設定可能である。すなわ
ち、ソフトウェアによりコンピュータシステムの動作中
でも、メモリ領域におけるデータのキャッシュメモリ使
用/不使用を設定できる。従って、例えば、主メモリ3
の内容が書き換えられた場合は、キャッシュメモリ適用
領域101、キャッシュメモリ非適用領域102の再設
定を行うことができる。
EXAMPLES Example 1. 1 is a diagram showing the configuration of a computer system according to a first embodiment of the present invention. Incidentally, the same or corresponding parts as those of the conventional example (FIG. 4) are designated by the same reference numerals and the description thereof will be omitted. Reference numeral 5 is a cache memory control unit, 6 is a cache memory use / non-use switching mechanism as a connecting unit, 7 is a cache memory use / non-use determination unit as a use / non-use determination unit, and 8 is a use / non-use area determination unit. cache memory usage area setting unit as, 101 cache memory application area, 102 Ru cache memory unapplied regions der. Using key Yasshumemori 2, the cache memory use and non-use switching mechanism 6 for switching the non-use, CPU 1 is switched whether or not to use the cache memory. The cache memory control unit 5 controls the cache memory use / non-use switching mechanism 6. And the cache memory use / unuse area
Is set by the cache memory use area setting unit. This
The setting of is easily set using software. example
If, set to that cache memory unused by entering the cache memory using the (0) by entering the pre-Me-determined symbol (1). In this way, in order to switch the cache memory use / non-use switching mechanism 6, the use / non-use of the cache memory 2 is determined by the address indicating the location where the data of the main memory 3 is stored. Chi I a to <br/>, divided in advance a plurality of memory areas of the main memory 3 (fixed length block), these each block, for example
For example, the symbol "1" indicating the cache memory usage area, or
Set the symbol "0" indicating the unused area of the cache memory
By doing so, it is selected which of the cache memory application area 101 using the cache memory 2 and the cache memory non-application area 102 not using the cache memory 2 is used. Then, the use or non-use of the cache memory 2 in each of these blocks is registered in the cache memory use area setting unit 8. The cache memory use / non-use determination unit 7 controls the cache memory use / non-use switching mechanism 6 according to the setting contents of the cache memory use area setting unit 8. The setting contents of each block in the main memory 3 in the cache memory use area setting unit 8 can be dynamically set. That is, the use / non-use of the cache memory of data in the memory area can be set by the software even while the computer system is operating. Therefore, for example, the main memory 3
When the contents of the above are rewritten, the cache memory applicable area 101 and the cache memory non-applicable area 102 can be reset.

【手続補正3】[Procedure 3]

【補正対象書類名】明細書[Document name to be amended] Statement

【補正対象項目名】0009[Correction target item name] 0009

【補正方法】変更[Correction method] Change

【補正内容】[Correction content]

【0009】図2は、この発明の実施例1のメモリシス
テムにおけるメモリアクセス制御の動作を示すフローチ
ャートである。次に、この実施例1のメモリシステムの
動作について説明する。CPU1からのデータ要求があ
った場合、キャッシュメモリ使用・不使用決定部7は、
主メモリ3のデータ読み出しアドレスがキャッシュメモ
リ適用領域101か否か判定する(ステップS21)。
そして、この読み出しアドレスが、キャッシュメモリ適
用領域101内の場合は、データがキャッシュメモリ2
内に存在するか否か判定し(ステップS22)、存在す
る場合は、CPU1はキャッシュメモリ2よりデータを
読み出し(ステップS23)、存在しない場合は、CP
1は主メモリ3よりデータを読み出す(ステップS2
4)。以後、このデータがキャッシュヒットするよう、
キャッシュメモリ2を更新する(ステップS25)。そ
して、この読み出しアドレスが、キャッシュメモリ非適
用領域102内の場合は、CPU1は主メモリ3よりデ
ータを読み出す(ステップS26)。
FIG. 2 is a flow chart showing the operation of memory access control in the memory system of the first embodiment of the present invention. Next, the operation of the memory system of the first embodiment will be described. When there is a data request from the CPU 1, the cache memory use / nonuse determination unit 7
It is determined whether the data read address of the main memory 3 is the cache memory applicable area 101 (step S21).
If this read address is in the cache memory applicable area 101, the data is in the cache memory 2
If it exists, the CPU 1 reads data from the cache memory 2 (step S23), and if it does not exist, CP
U 1 reads data from the main memory 3 (step S2
4). After that, to make this data hit the cache,
The cache memory 2 is updated (step S25). If the read address is within the cache memory non-applicable area 102, the CPU 1 reads data from the main memory 3 (step S26).

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 CPU,主メモリ,キャッシュメモリか
ら成るメモリシステムにおいて、上記主メモリのデータ
を格納するアドレス値に基づき、この主メモリをキャッ
シュメモリを使用する領域とキャッシュメモリを使用し
ない領域とに分ける設定を行う使用・不使用領域設定部
と、この使用・不使用領域設定部の設定により、CPU
が使用する上記主メモリ上のデータアドレス値に基づ
き、上記キャッシュメモリを使用するか否かを決定する
使用・不使用決定部と、この使用・不使用決定部の指示
に従って、上記主メモリ又はキャッシュメモリと上記C
PUとを接続する接続手段とを備えることを特徴とする
メモリシステム。
1. In a memory system comprising a CPU, a main memory and a cache memory, the main memory is divided into an area using the cache memory and an area not using the cache memory based on an address value for storing the data of the main memory. The use / non-use area setting section that makes separate settings and the CPU
Based on the data address value on the main memory used by the main memory or cache according to the instruction of the use / non-use determining unit and whether to use the non-use determining unit. Memory and above C
A memory system comprising: a connection unit for connecting to a PU.
【請求項2】 キャッシュメモリを使用するデータ領域
を上記主メモリの可変長領域とし、キャッシュメモリを
使用しないデータ領域を上記主メモリの可変長領域以外
の領域とするように、上記使用・不使用領域設定部によ
り設定したことを特徴とする請求項第1項記載のメモリ
システム。
2. The use / non-use so that a data area using a cache memory is a variable length area of the main memory and a data area not using a cache memory is an area other than the variable length area of the main memory. The memory system according to claim 1, wherein the memory system is set by an area setting unit.
【請求項3】 上記主メモリ上におけるキャッシュメモ
リの使用・不使用領域を、使用者が上記使用・不使用設
定部に指示する設定指示手段を設けたことを特徴とする
請求項第1項記載のメモリシステム。
3. The setting instruction means for instructing a use / non-use area of a cache memory on the main memory by a user to the use / non-use setting unit, according to claim 1. Memory system.
JP5106139A 1993-04-08 1993-04-08 Memory system Pending JPH06295263A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5106139A JPH06295263A (en) 1993-04-08 1993-04-08 Memory system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5106139A JPH06295263A (en) 1993-04-08 1993-04-08 Memory system

Publications (1)

Publication Number Publication Date
JPH06295263A true JPH06295263A (en) 1994-10-21

Family

ID=14426041

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5106139A Pending JPH06295263A (en) 1993-04-08 1993-04-08 Memory system

Country Status (1)

Country Link
JP (1) JPH06295263A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001004760A1 (en) * 1999-07-07 2001-01-18 Hitachi, Ltd. Memory controller
JP2009205445A (en) * 2008-02-28 2009-09-10 Sony Corp Address conversion circuit

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56124961A (en) * 1980-03-05 1981-09-30 Hitachi Ltd Information processing equipment
JPH0232436A (en) * 1988-07-22 1990-02-02 Hitachi Ltd Buffer memory
JPH03122735A (en) * 1989-10-05 1991-05-24 Nec Corp General purpose cache memory controller

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS56124961A (en) * 1980-03-05 1981-09-30 Hitachi Ltd Information processing equipment
JPH0232436A (en) * 1988-07-22 1990-02-02 Hitachi Ltd Buffer memory
JPH03122735A (en) * 1989-10-05 1991-05-24 Nec Corp General purpose cache memory controller

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001004760A1 (en) * 1999-07-07 2001-01-18 Hitachi, Ltd. Memory controller
JP2009205445A (en) * 2008-02-28 2009-09-10 Sony Corp Address conversion circuit

Similar Documents

Publication Publication Date Title
JP3204251B2 (en) Hibernation apparatus and method, recording medium storing the same, and computer to which the same is applied
US20020178333A1 (en) Method and system for adding compressed page tables to an operating system
JP2003131777A (en) Method for displaying symbol on display and system therefor
US9857981B2 (en) Host interface controller and control method for storage device
JP3685401B2 (en) CPU control method, computer apparatus and CPU using the same, and program
JP2003186567A (en) Microprocessor
JP3662432B2 (en) Swapping device and method between main storage device and auxiliary storage device, and web videophone employing the device
JP3778246B2 (en) Interrupt controller, ASIC, and electronic device
JPH06295263A (en) Memory system
JP2000066649A (en) Portable information processing apparatus and method for controlling external display output
JP2005115107A (en) Display processing apparatus, navigation system, program, and display processing method
JP2003202999A (en) Virtual computer system
KR20010045591A (en) A computer system having multi-clipboard
US20070057973A1 (en) Information processing apparatus and display control method
JP2002099403A (en) Computer system and display device switching method
JP2002158732A (en) Communication device switching control system and switching control method
JP2758617B2 (en) Keyboard for character string input
JP2971009B2 (en) Information processing device
JP3835287B2 (en) Bitmap data processing method, bitmap data processing method, and bitmap data processing program
JPH05225108A (en) Multiple terminal input/output control system and its input/output control system
JP2009110383A (en) Information processing apparatus, arithmetic processing apparatus, and branch prediction method
JP2001209578A (en) Management system for memory update history
JPH0728622A (en) Display device switching system
JPH05150932A (en) Computer device with icon display functi0n
JP2002182901A (en) Coprocessor data access controller, its method and its instruction format