JP2659007B2 - Information processing method and apparatus - Google Patents

Information processing method and apparatus

Info

Publication number
JP2659007B2
JP2659007B2 JP8155195A JP15519596A JP2659007B2 JP 2659007 B2 JP2659007 B2 JP 2659007B2 JP 8155195 A JP8155195 A JP 8155195A JP 15519596 A JP15519596 A JP 15519596A JP 2659007 B2 JP2659007 B2 JP 2659007B2
Authority
JP
Japan
Prior art keywords
memory
information
stored
copy
area
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.)
Expired - Lifetime
Application number
JP8155195A
Other languages
Japanese (ja)
Other versions
JPH08305634A (en
Inventor
浩道 伊藤
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP8155195A priority Critical patent/JP2659007B2/en
Publication of JPH08305634A publication Critical patent/JPH08305634A/en
Application granted granted Critical
Publication of JP2659007B2 publication Critical patent/JP2659007B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Memory System (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は情報処理装置における記
憶方法及び装置に係り、特に書き込み不可能なアドレス
領域を備えた第1のメモリと読み書き可能で当該第1の
メモリよりも高速アクセス可能な第2のメモリとを備え
た場合に好適な情報処理方法及び装置に関する。
BACKGROUND OF THE INVENTION The present invention relates to an information processing apparatus.
In particular, non-writable addresses
A first memory having an area for reading and writing the first memory;
A second memory that can be accessed faster than the memory.
The present invention relates to an information processing method and apparatus suitable for the case.

【0002】[0002]

【従来の技術】中央処理装置(CPU)から低速大容量
の主メモリへのデータアクセスを見かけ上高速化する手
段として、高速小容量のキャッシュメモリを用いる方法
がある。この方法では、CPUのメモリアクセスは、ま
ず主記憶装置のデータの一部がコピーされているキャッ
シュメモリに対して行い、求めるデータがキャッシュメ
モリに存在しなかった場合にのみ主メモリに対するアク
セスを行う。通常のプログラムにおいては、データアク
セスに局所性があるので、主メモリ上の適当なデータを
キャッシュメモリにコピーしておけば、CPUからのデ
ータアクセスのほとんど高速なキャッシュメモリへのア
クセスだけで済ませることができる。
2. Description of the Related Art As a means for apparently increasing the speed of data access from a central processing unit (CPU) to a low-speed large-capacity main memory, there is a method using a high-speed small-capacity cache memory. In this method, the memory access of the CPU is first performed on the cache memory in which a part of the data of the main storage device is copied, and the access to the main memory is performed only when the desired data does not exist in the cache memory. . In a normal program, data access has locality. Therefore, if appropriate data in the main memory is copied to the cache memory, only data access from the CPU to the cache memory, which is almost high-speed, is sufficient. Can be.

【0003】キャッシュメモリの一方式であるダイレク
トマップ方式(コングルエント方式ともいう)の構成の
一例を図2に示す。
FIG. 2 shows an example of a configuration of a direct map system (also referred to as a congruent system) which is one system of a cache memory.

【0004】キャッシュメモリ17は、主メモリ4のデ
ータのコピーが記憶されているBS(バッファ記憶装
置、Buffer Storage)3と、BS3のデータが主メモ
リ4のどのアドレスのデータかを示す情報であるアドレ
スタグが記憶されているAA(アドレス・アレイ・Add
ress Array)2の2つから構成されている。AA2お
よびBS3は、CPU1の出力するアドレス9のうち、
下位ビット部10によりアドレッシングされる。一方、
残りの上位ビット部11は、アドレスタグ12としてA
A2に記憶する。CPU1のメモリアクセス時に、アド
レス上位ビット部11とAA2から読出したアドレスタ
グ12をコンパレータ5によって比較する。前記比較の
結果が一致した場合をヒット、一致しなかった場合をミ
スヒットと呼び、この情報はヒット情報13としてコン
パレータ5から出力される。
The cache memory 17 is information indicating a BS (Buffer Storage) 3 in which a copy of the data of the main memory 4 is stored, and information indicating which address of the data in the BS 3 is the data of the BS 3. AA in which the address tag is stored (address, array , Add
[ress Array] 2. AA2 and BS3 are addresses 9 among addresses 9 output from CPU1.
Addressing is performed by the lower bit section 10. on the other hand,
The remaining upper bit part 11 is A
Store it in A2. When the CPU 1 accesses the memory, the comparator 5 compares the address upper bit portion 11 with the address tag 12 read from the AA 2. If the result of the comparison is a match, the result is called a hit, and if the result is not a match, the result is a mishit. This information is output from the comparator 5 as hit information 13.

【0005】メモリリード時にヒットした場合(以後リ
ードヒットと呼ぶ)、ヒット情報13によってデータセ
レクタ7はBSデータ14を選択し、データバス16を
通してCPU1にデータを送る。メモリリード時にミス
ヒットした場合(以後リードミスヒットと呼ぶ)、ヒッ
ト情報13によってデータセレクタ7は主メモリデータ
15を選択し、データバス16を通してCPU1にデー
タを送る。さらに、リードミスヒット時には主メモリデ
ータ15を、データバッファ8を通してBS3にコピー
するとともに、アドレスの上位ビット部11をアドレス
バッファ6を通してAA2に書き込む。
When a hit occurs during memory reading (hereinafter referred to as a read hit), the data selector 7 selects BS data 14 based on the hit information 13 and sends the data to the CPU 1 through the data bus 16. When a miss occurs during memory reading (hereinafter referred to as a read mishit), the data selector 7 selects the main memory data 15 based on the hit information 13 and sends the data to the CPU 1 through the data bus 16. Further, when a read miss occurs, the main memory data 15 is copied to the BS 3 through the data buffer 8, and the upper bit portion 11 of the address is written to the AA 2 through the address buffer 6.

【0006】一方、メモリライト時にはBS3の内容と
主メモリ4の内容の一致を保つために以下に示す動作を
行う。メモリライト時にヒットした場合(以後ライトヒ
ットと呼ぶ)、BS3と主メモリ4の両方の内容を更新
する。メモリライト時にミスヒットした場合(以後ライ
トミスヒットと呼ぶ)は主メモリ4だけを更新する。
On the other hand, at the time of memory write, the following operation is performed to keep the contents of the BS 3 and the contents of the main memory 4 coincident. When a hit occurs during a memory write (hereinafter referred to as a write hit), the contents of both the BS 3 and the main memory 4 are updated. If a miss occurs during a memory write (hereinafter referred to as a write miss), only the main memory 4 is updated.

【0007】なお、このようなキャッシュメモリを用い
た情報処理装置の方式としては情報処理学会誌Vol.
21,No.4(Apr.1980)PP332−34
0「キャッシュ記憶」において論じられている。
[0007] As a method of an information processing apparatus using such a cache memory, a journal of Information Processing Society of Japan, Vol.
21, No. 4 (Apr. 1980) PP332-34
0 "Cache Storage".

【0008】CPU1のメモリ空間には、キャッシュメ
モリへのコピー対象である主メモリの他に、ROM(R
ead Only Memory)やI/O(Input/Output)デバ
イス等がマッピングされるのが普通である。コピー対象
外のデバイスに対するCPU1のアクセスにおいては、
キャッシュメモリをバイパスし、直接これらのデバイス
をアクセスする。例えば、米国インテル社のキャッシュ
コントローラ82385では、NCA(Non−Cacheab
le Access)という入力端子が設けられており、これに
よりキャッシュメモリをバイパスできるようになってい
る。前記キャッシュコントローラについては、米国イン
テル社発行の82385データシート290143−0
01,pp17に詳しく述べられている。
In the memory space of the CPU 1, in addition to the main memory to be copied to the cache memory, a ROM (R
In general, an ead only memory (Ead Only Memory ) or an I / O (Input / Output) device is mapped. When the CPU 1 accesses a device that is not to be copied,
Access these devices directly, bypassing cache memory. For example, a cache controller 82385 manufactured by Intel Corporation of the United States has an NCA ( Non-Cacheab).
le Access) is provided so that the cache memory can be bypassed. For the cache controller, refer to the 82385 data sheet 290143-0 issued by Intel Corporation of the United States.
01, pp17.

【0009】キャッシュメモリへのコピー対象領域およ
びコピー対象領域外へのアクセスにおけるキャッシュメ
モリの更新の様子を図3に示す。
FIG. 3 shows how the cache memory is updated when the copy target area is accessed to the cache memory and when the cache memory is accessed outside the copy target area.

【0010】[0010]

【発明が解決しようとする問題点】ROMには、システ
ム立上げのためのプログラムや、基本入出力プログラム
等が記憶されている。また、通常のプログラムやデータ
は、磁気記憶装置などから主メモリへ転送した後、CP
U1からアクセスするのが一般的であるが、これらの情
報をROMに記憶しておくことにより前記転送を不要と
することができる。
The ROM stores a program for starting up the system, a basic input / output program, and the like. In addition, normal programs and data are transferred from a magnetic storage device or the like to a main memory and then transferred to a main memory.
Generally, access is made from U1, but the transfer can be made unnecessary by storing such information in the ROM.

【0011】しかし、上記従来技術では、ROMのアド
レス領域がキャッシュメモリへのコピー対象外となって
おり、ROM上のプログラムやデータをキャッシュメモ
リを用いて高速にアクセスすることができないという問
題があった。
However, in the above-mentioned conventional technology, there is a problem that the address area of the ROM is not to be copied to the cache memory, so that programs and data on the ROM cannot be accessed at high speed using the cache memory. Was.

【0012】本発明の目的は、読み出し専用のアドレス
領域を備えた第1のメモリに記憶した情報を、当該第1
のメモリへのアクセスを高速化する第2のメモリに、情
報の安全性を保った状態でコピーし、記憶することがで
き、結果的に第1のメモリに記憶した情報をより高速に
処理可能な情報処理方法及び装置を提供することにあ
る。
An object of the present invention is to store information stored in a first memory having a read-only address area in the first memory .
The information can be copied and stored in the second memory while maintaining the security of the information, and the information stored in the first memory can be processed at a higher speed. To provide a simple information processing method and apparatus.

【0013】[0013]

【問題点を解決するための手段】本発明の目的は、読み
出し専用のアドレス領域を備えた第1のメモリと、当該
第1のメモリへのアクセスを高速化する第2のメモリと
備え、前記第1のメモリの少なくとも一部に記憶され
た情報の写しを前記第2のメモリに記憶する手段と、前
記第2のメモリに格納された前記第1のメモリの情報の
写しに対し、更新アクセスが試みられた際、当該情報の
更新を禁止する手段とを備えたことにより達成される。
An object of the present invention, in order to solve the problem] is, reading
A first memory with dedicated address area out, the
Means for storing a second memory for faster access to the first memory, a copy of the first information at least partially in the storage memory to the second memory, the second Of the information of the first memory stored in the memory of
This is achieved by providing means for prohibiting updating of the information when an update access is attempted to the copy .

【0014】また、第1のメモリの少なくとも一部に記
憶された情報の写しを前記第2のメモリに記憶し、前記
第2のメモリに格納された前記第1のメモリの情報の写
に対し、更新アクセスが試みられた際、当該情報の更
新を禁止することにより達成される。
A copy of information stored in at least a part of the first memory is stored in the second memory, and a copy of information of the first memory stored in the second memory is stored.
In contrast, this is achieved by prohibiting updating of the information when an update access is attempted.

【0015】更に、第1のメモリの少なくとも一部に記
憶された情報の写しを前記第2のメモリに記憶する手段
と、前記第2のメモリに格納された前記第1のメモリ
情報の写しに対し、更新アクセスが試みられた際、当該
情報を無効とする手段とを備えたことにより達成され
る。
Further, means for storing a copy of information stored in at least a part of the first memory in the second memory, and means for storing a copy of the information in the first memory stored in the second memory .
This is achieved by providing means for invalidating the information when an update access is attempted for a copy of the information.

【0016】また、第1のメモリの少なくとも一部に記
憶された情報の写しを前記第2のメモリに記憶し、前記
第2のメモリに格納された前記第1のメモリの情報の写
に対し、更新アクセスが試みられた際、当該情報を無
効とすることにより達成される。
A copy of information stored in at least a part of the first memory is stored in the second memory, and a copy of information in the first memory stored in the second memory is stored.
In contrast, this is achieved by invalidating the information when an update access is attempted.

【0017】好ましい実施態様によれば、前記第2のメ
モリの記憶内容のうち無効とされた情報に次回アクセス
する際、前記第1のメモリの少なくとも一部に記憶され
た前記情報の写しを前記第2のメモリに再度記憶する。
According to a preferred embodiment, the second menu is provided.
Next access to invalid memory information
At the time when the data is stored in at least a part of the first memory.
A copy of the information is stored in the second memory again.

【0018】[0018]

【作用】上記のように構成すれば、第1のメモリの読み
出し専用のアドレス領域を、当該第1のメモリへのアク
セスを高速化する第2のメモリへのコピー対象領域とし
た際、当該第2のメモリにコピーされた情報へのライト
アクセスが行われても、前記第1のメモリの読み出し専
用のアドレス領域に記憶された情報と前記第2のメモリ
にコピーされた情報との間で処理上不一致が生じないよ
う制御できる。したがって、情報の安全性が保たれた状
態で、読み出し専用のアドレス領域を備えた第1のメモ
リに記憶された情報を、読み書き可能で高速アクセス可
能な第2のメモリへコピーし、記憶することができる。
これにより、第1のメモリに記憶された情報の処理にあ
たり、当該情報をコピーした高速アクセス可能な第2の
メモリとの間で情報の処理が可能となるため、より高速
な情報の処理が可能となる。
According to the above construction, reading of the first memory is performed.
Access- only address area to the first memory.
When a region to be copied to the second memory is used to speed up the access, even if a write access to the information copied to the second memory is performed, the read-only area of the first memory is used.
Can be controlled so that processing mismatch does not occur between the information stored in the address area for use and the information copied to the second memory. Therefore, the information stored in the first memory having the read-only address area is copied and stored in the second memory, which is readable and writable and can be accessed at high speed, while maintaining the security of the information. Can be.
Thereby, in processing the information stored in the first memory, the information can be processed with the high-speed accessible second memory in which the information is copied, so that the information can be processed at a higher speed. Becomes

【0019】[0019]

【実施例】以下、本発明の一実施例を図面を参照しなが
ら説明する。本実施例では、図4に示すようにCPU1
のメモリ空間は16MB(M=2 20 であり、このうち
000000H番地(末尾のHはHEXの略で16進数
を表す)から0FFFFFH番地の1MBが主メモリ領
域に、FF0000H番地からFFFFFFH番地の6
4KB(K=2 10 がROM領域にそれぞれ割り当てら
れている。図5に本実施例の構成図を示す。主メモリ領
域デコーダ18は、アドレス9の値をデコードし、00
0000H〜0FFFFFHの主メモリ領域である場合
に、主メモリ領域信号19をアクティブとする。ROM
領域デコーダ20は、アドレス9の値をデコードし、F
F0000H〜FFFFFFHのROM領域である場合
に、ROM領域信号21をアクティブとする。オアゲー
ト22は、主メモリ領域信号19とROM領域信号21
のどちらかがアクティブならば、コピー対象領域信号2
3をアクティブとする。キャッシュメモリ制御部24
は、コピー対象領域信号23に従って、図3に示したよ
うにキャッシュメモリ17を構成するAA2およびBS
3の更新を制御する。本実施例の特徴は、ROM領域を
キャッシュメモリ17へのコピー対象領域としたことで
ある。
An embodiment of the present invention will be described below with reference to the drawings. In this embodiment, as shown in FIG.
Has a memory space of 16 MB (M = 2 20 ) , of which 1 MB from address 000000H (H at the end represents HEX and a hexadecimal number) to the main memory area, and 6 MB from address FF0000H to address FFFFFFH.
4 KB (K = 2 10 ) is allocated to each ROM area. FIG. 5 shows a configuration diagram of the present embodiment. The main memory area decoder 18 decodes the value of the address 9 and
In the case of the main memory area of 0000H to 0FFFFFH, the main memory area signal 19 is activated. ROM
The area decoder 20 decodes the value of the address 9 and
In the case of the ROM area of F0000H to FFFFFFH, the ROM area signal 21 is activated. The OR gate 22 is connected to the main memory area signal 19 and the ROM area signal 21.
Is active, the copy target area signal 2
3 is activated. Cache memory control unit 24
AA2 and BS constituting the cache memory 17 as shown in FIG.
3 update control. The feature of this embodiment is that the ROM area is used as an area to be copied to the cache memory 17.

【0020】図6は、本発明の第2の実施例の構成図で
ある。本実施例の特徴は、第1の実施例にアンドゲート
25を加えたことである。アンドゲート25には、RO
M領域デコーダ20から出力されるROM領域信号21
と、リードアクセスであることを示すRD信号27が入
力される。アンドゲート25は、2つの入力が共にアク
ティブであるとき、ROM領域リード信号26をアクテ
ィブとする。オアゲート22は、主メモリ領域信号19
とROM領域リード信号26のいずれかがアクティブの
場合に、コピー対象領域信号23をアクティブとする。
これにより、ROM領域へのライトアクセスにおいて
は、コピー対象領域信号23はアクティブとならない。
前記コピー対象領域信号23にもとづいてキャッシュメ
モリ制御部24が行う、AA2およびBS3の更新を図
1に示す。図1に示すようにROM領域へのライトアク
セスにおいてヒットしても、BS3の内容は不変であ
り、ライトアクセスによって内容の変化しないROMと
の一致性が保たれる。
FIG. 6 is a block diagram of a second embodiment of the present invention. The feature of this embodiment is that an AND gate 25 is added to the first embodiment. RO gate
ROM area signal 21 output from M area decoder 20
, An RD signal 27 indicating read access is input. The AND gate 25 activates the ROM area read signal 26 when both inputs are active. The OR gate 22 is connected to the main memory area signal 19
If either the read signal 26 or the ROM area read signal 26 is active, the copy target area signal 23 is made active.
As a result, in the write access to the ROM area, the copy target area signal 23 is not activated.
FIG. 1 shows updating of AA2 and BS3 performed by the cache memory control unit 24 based on the copy target area signal 23. As shown in FIG. 1, even if a hit occurs during a write access to the ROM area, the contents of BS3 are unchanged, and the consistency with the ROM whose contents do not change by the write access is maintained.

【0021】図7は、本発明の第3の実施例の構成図で
ある。AA2には、AA2の各内容の有効性を示すVビ
ット31が付加されている。キャッシュメモリへのコピ
ー対象領域信号23は、第1の実施例と同様に、主メモ
リ領域信号19とROM領域信号21をオアゲート22
に入力することにより得る。一方、ROM領域信号21
と、ライトアクセスであることを示すWT信号29を、
アンドゲート28に入力し、ROM領域ライト信号30
を得る。キャッシュメモリ制御部24は、ROM領域ラ
イト信号30がアクティブであるライトアクセスに対し
て、前記ライトアクセスで参照されるAA2の内容に付
加されているVビット31を、無効を示す値に設定す
る。これにより、上記ライトアクセスを行ったアドレス
を次にリードした場合、Vビット31が無効となってい
るので、ミスヒットとして扱われる。リードミスヒット
の場合、ROMが直接参照されるので、上記ライトアク
セスにおいてヒットした場合に更新されているBS3の
内容が参照されることはない。
FIG. 7 is a block diagram of a third embodiment of the present invention. A bit 31 indicating the validity of each content of AA2 is added to AA2. The area signal 23 to be copied to the cache memory is, as in the first embodiment, an OR gate 22 of the main memory area signal 19 and the ROM area signal 21.
Is obtained by inputting On the other hand, the ROM area signal 21
And a WT signal 29 indicating write access,
An input to the AND gate 28 and a ROM area write signal 30
Get. For a write access in which the ROM area write signal 30 is active, the cache memory control unit 24 sets the V bit 31 added to the content of AA2 referred to in the write access to a value indicating invalidity. As a result, when the address for which the write access has been performed is read next, the V bit 31 is invalid and is treated as a mishit. In the case of a read miss, since the ROM is directly referred to, the updated contents of BS3 are not referred to when a hit occurs in the write access.

【0022】図8は、本発明の第4の実施例を示す構成
図である。本実施例の特徴は、図6で示される第2の実
施例に加えキャッシュメモリへのコピー対象領域を設定
するレジスタ32を設けたことである。レジスタ32
は、Mビット33とRビット34を持ち、それぞれ主メ
モリ領域とROM領域に対応する。このレジスタ32に
対する設定は、アドレス9およびデータ16のバスを用
いてCPU1が行う。Mビット33の値とRビット34
の値は、主メモリ領域イネーブル信号35および、RO
M領域イネーブル信号36としてそれぞれ出力される。
主メモリイネーブル信号35と主メモリ領域信号19が
共にアクティブな時、アンドゲート37は主メモリコピ
ー信号38をアクティブとする。同様に、ROM領域イ
ネーブル信号36とROM領域リード信号26が共にア
クティブな時、アンドゲート39はROMコピー信号4
0をアクティブとする。そして、主メモリコピー信号3
8とROMコピー信号40のいずれかがアクティブなと
き、オアゲート22はコピー対象領域信号23をアクテ
ィブとする。これにより、主メモリ領域あるいはROM
領域へのアクセス時におけるキャッシュメモリの参照と
更新を、それぞれの領域について独立に許可あるいは禁
止することができる。
FIG. 8 is a block diagram showing a fourth embodiment of the present invention. The feature of this embodiment is that a register 32 for setting an area to be copied to the cache memory is provided in addition to the second embodiment shown in FIG. Register 32
Has an M bit 33 and an R bit 34 and correspond to a main memory area and a ROM area, respectively. The setting for the register 32 is performed by the CPU 1 using the bus for the address 9 and the data 16. M bit 33 value and R bit 34
Are the main memory area enable signal 35 and RO
Each of them is output as an M area enable signal 36.
When the main memory enable signal 35 and the main memory area signal 19 are both active, the AND gate 37 makes the main memory copy signal 38 active. Similarly, when the ROM area enable signal 36 and the ROM area read signal 26 are both active, the AND gate 39 outputs the ROM copy signal 4
0 is active. Then, the main memory copy signal 3
8 or the ROM copy signal 40 is active, the OR gate 22 makes the copy target area signal 23 active. This allows the main memory area or ROM
Reference and update of the cache memory when accessing an area can be independently permitted or prohibited for each area.

【0023】図9は、図8で示された第4の実施例を含
む情報処理装置によって、主メモリ4のメモリチェック
を行うフローチャートである。まず主メモリ4のメモリ
チェックに先立って、レジスタ32のMビット33に
“0”を、Rビット34に“1”を設定する。これによ
り、ROM領域だけがキャッシュメモリへのコピー対象
領域となる。次に、主メモリ4に対してリードライトチ
ェックを行う。このとき、主メモリ領域はコピー対象外
となっているので、主メモリ4を直接リードライトする
ことができる。
FIG. 9 is a flowchart for performing a memory check of the main memory 4 by the information processing apparatus including the fourth embodiment shown in FIG. First, before the memory check of the main memory 4, “0” is set to the M bit 33 and “1” is set to the R bit 34 of the register 32. As a result, only the ROM area becomes an area to be copied to the cache memory. Next, a read / write check is performed on the main memory 4. At this time, since the main memory area is not to be copied, the main memory 4 can be directly read / written.

【0024】また、リードライトチェックプログラムを
キャッシュメモリへのコピー対象領域となっているRO
Mに入れておくことにより、高速にプログラムを参照で
き、主メモリ4のチェックを短い時間で終了することが
できる。
Also, the read / write check program is stored in the RO
By setting the value in M, the program can be referred to at high speed, and the check of the main memory 4 can be completed in a short time.

【0025】本発明は、以上述べた実施例のみにとどま
るものではない。例えば、ROM領域、主メモリ領域の
アドレスは実施例に示したアドレスでなくてもよい。ま
た、キャッシュメモリの方式としては、ダイレクトマッ
プ方式に限らず、セットアソシアティブ方式等でもよ
い。また、ライト時の書込み方式はライトスルー方式で
もコピーバック方式でもよい。
The present invention is not limited to the embodiment described above. For example, the addresses of the ROM area and the main memory area need not be the addresses shown in the embodiment. The cache memory system is not limited to the direct map system, but may be a set associative system or the like. The writing method at the time of writing may be a write-through method or a copy-back method.

【0026】[0026]

【発明の効果】本発明によれば、第1のメモリの読み出
し専用のアドレス領域を、当該第1のメモリへのアクセ
スを高速化する第2のメモリへのコピー対象領域とした
際、当該第2のメモリにコピーされた情報へのライトア
クセスが行われても、前記第1のメモリの読み出し専用
アドレス領域に記憶された情報と前記第2のメモリに
コピーされた情報との間で処理上不一致が生じないよう
制御できる。したがって、情報の安全性が保たれた状態
で、読み出し専用のアドレス領域を備えた第1のメモリ
に記憶された情報を、アクセスを高速化する第2のメモ
リへコピーし、記憶することができる。これにより、第
1のメモリに記憶された情報の処理にあたり、当該情報
をコピーした高速アクセス可能な第2のメモリとの間で
情報の処理が可能となるため、より高速な情報の処理が
可能となる。
According to the present invention, reading of the first memory is performed.
Accessible of the dedicated address area, to said first memory
In the case where the data is copied to the second memory for speeding up the operation , even if a write access to the information copied to the second memory is performed, the read-only area of the first memory is used.
Can be controlled so that processing mismatch does not occur between the information stored in the address area and the information copied to the second memory. Therefore, the information stored in the first memory provided with the read-only address area can be copied and stored in the second memory for speeding up access while the security of the information is maintained. . Thereby, in processing the information stored in the first memory, the information can be processed with the high-speed accessible second memory in which the information is copied, so that the information can be processed at a higher speed. Becomes

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

【図1】本発明の一実施例における動作を示す図であ
る。
FIG. 1 is a diagram showing an operation in one embodiment of the present invention.

【図2】キャッシュメモリの説明図である。FIG. 2 is an explanatory diagram of a cache memory.

【図3】キャッシュメモリの動作図である。FIG. 3 is an operation diagram of the cache memory.

【図4】本発明の一実施例におけるメモリマップを示す
図である。
FIG. 4 is a diagram showing a memory map in one embodiment of the present invention.

【図5】一実施例における構成図である。FIG. 5 is a configuration diagram in one embodiment.

【図6】他の実施例における構成図である。FIG. 6 is a configuration diagram in another embodiment.

【図7】他の実施例における構成図である。FIG. 7 is a configuration diagram in another embodiment.

【図8】他の実施例における構成図である。FIG. 8 is a configuration diagram in another embodiment.

【図9】本発明による主メモリチェック方式のフローチ
ャートである。
FIG. 9 is a flowchart of a main memory check method according to the present invention.

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

1…CPU、2…AA、3…BS、4…主メモリ、9…
アドレス、17…キャッシュメモリ、18…主メモリ領
域デコーダ、20…ROM領域デコーダ、22…オアゲ
ート、24…キャッシュメモリ制御部、25…アンドゲ
ート、27…RD信号、29…WT信号。
1 ... CPU, 2 ... AA, 3 ... BS, 4 ... Main memory, 9 ...
Address, 17: cache memory, 18: main memory area decoder, 20: ROM area decoder, 22: OR gate, 24: cache memory control unit, 25: AND gate, 27: RD signal, 29: WT signal.

Claims (5)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】読み出し専用のアドレス領域を備えた第1
のメモリと、当該第1のメモリへのアクセスを高速化す
第2のメモリとを備え、前記第1のメモリの少なくと
も一部に記憶された情報の写しを前記第2のメモリに記
憶する手段と、前記第2のメモリに格納された前記第1
のメモリの情報の写しに対し、更新アクセスが試みられ
た際、当該情報の更新を禁止する手段とを備えたことを
特徴とする情報処理装置。
1. A first memory device having a read-only address area.
And speed up access to the first memory
And a second memory that, said first means for storing a copy of the information at least partially stored in the second memory of the memory, the first stored in the second memory
Means for prohibiting updating of the information when an update access is attempted to a copy of the information in the memory.
【請求項2】読み出し専用のアドレス領域を備えた第1
のメモリと、当該第1のメモリへのアクセスを高速化す
第2のメモリとを備え、前記第1のメモリの少なくと
も一部に記憶された情報の写しを前記第2のメモリに記
憶する手段と、前記第2のメモリに格納された前記第1
のメモリの情報の写しに対し、更新アクセスが試みられ
た際、当該情報を無効とする手段とを備えたことを特徴
とする情報処理装置。
2. A first memory having a read-only address area.
And speed up access to the first memory
And a second memory that, said first means for storing a copy of the information at least partially stored in the second memory of the memory, the first stored in the second memory
Means for invalidating the copy of the information in the memory when an update access is attempted.
【請求項3】前記第2のメモリの記憶内容のうち無効と
された情報に次回アクセスする際、前記第1のメモリの
少なくとも一部に記憶された前記情報の写しを前記第2
のメモリに再度記憶することを特徴とする請求項2記載
の情報処理装置。
3. A next copy of the information stored in at least a part of the first memory when accessing invalidated information in the storage contents of the second memory next time.
3. The information processing apparatus according to claim 2, wherein the information is stored in the memory again.
【請求項4】読み出し専用のアドレス領域を備えた第1
のメモリの少なくとも一部に記憶された情報の写しを、
当該第1のメモリへのアクセスを高速化する第2のメモ
リに記憶し、前記第2のメモリに格納された前記第1の
メモリの情報の写しに対し、更新アクセスが試みられた
際、当該情報の更新を禁止することを特徴とする情報処
理方法。
4. A first memory having a read-only address area.
A copy of the information stored in at least a portion of
A second memo for speeding up access to the first memory
Stored in the first memory and the first memory stored in the second memory.
Update access attempted for a copy of memory information
Information processing, wherein updating of the information is prohibited.
Method.
【請求項5】読み出し専用のアドレス領域を備えた第1
のメモリの少なくとも一部に記憶された情報の写しを当
該第1のメモリへのアクセスを高速化する第2のメモリ
に記憶し、前記第2のメモリに格納された前記第1のメ
モリの情報の写しに対し、更新アクセスが試みられた
際、当該情報を無効とすることを特徴とする情報処理方
法。
5. A first memory having a read-only address area.
A copy of the information stored in at least a portion of the
A second memory for accelerating access to the first memory
In the first memory stored in the second memory.
Update access was attempted to a copy of Mori's information
Information processing method, wherein the information is invalidated
Law.
JP8155195A 1996-06-17 1996-06-17 Information processing method and apparatus Expired - Lifetime JP2659007B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8155195A JP2659007B2 (en) 1996-06-17 1996-06-17 Information processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8155195A JP2659007B2 (en) 1996-06-17 1996-06-17 Information processing method and apparatus

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP63139299A Division JP2613258B2 (en) 1988-06-08 1988-06-08 Information processing method and apparatus

Publications (2)

Publication Number Publication Date
JPH08305634A JPH08305634A (en) 1996-11-22
JP2659007B2 true JP2659007B2 (en) 1997-09-30

Family

ID=15600581

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8155195A Expired - Lifetime JP2659007B2 (en) 1996-06-17 1996-06-17 Information processing method and apparatus

Country Status (1)

Country Link
JP (1) JP2659007B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10015693A1 (en) * 2000-03-29 2001-10-18 Fujitsu Siemens Computers Gmbh Arrangement and method for reducing the interrupt processing time of a data processing device
US7080205B2 (en) 2000-03-29 2006-07-18 Fujitsu Siemens Computer Gmbh Arrangement and method for reducing the processing time of a data processing device
DE60312453T2 (en) * 2002-10-09 2008-01-10 Matsushita Electric Industrial Co., Ltd., Kadoma Computing unit and data loading method for fast initialization of the arithmetic unit
KR20060081413A (en) * 2003-09-16 2006-07-12 코닌클리즈케 필립스 일렉트로닉스 엔.브이. Power saving operation of an apparatus with a cache memory

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2613258B2 (en) * 1988-06-08 1997-05-21 株式会社日立製作所 Information processing method and apparatus

Also Published As

Publication number Publication date
JPH08305634A (en) 1996-11-22

Similar Documents

Publication Publication Date Title
US5689679A (en) Memory system and method for selective multi-level caching using a cache level code
US4445174A (en) Multiprocessing system including a shared cache
JP3859757B2 (en) Translation table entry with cacheability attribute bit for virtual address, virtual address reference method using the bit, and virtual address reference device
JPH03142644A (en) Cache memory control system
JPH0512116A (en) Cache memory controller
JPH0340046A (en) Cache memory control system and information processor
JPS6111865A (en) Memory access control system
JP2659007B2 (en) Information processing method and apparatus
JPH0519176B2 (en)
JP2613258B2 (en) Information processing method and apparatus
EP0474356A1 (en) Cache memory and operating method
JPH1091521A (en) Duplex directory virtual cache and its control method
JPH0548497B2 (en)
EP0224168A2 (en) Buffer storage control system
JP2540959B2 (en) Information processing device
JPH04205154A (en) Microprocessor system
JPH0520195A (en) Cache memory controller
JPH06250926A (en) Data processing system provided with cache memory of plural hierarchies
JP2637853B2 (en) Cache memory device
JP2564377B2 (en) Information processing device with cache memory
JPH02156352A (en) Cache memory
JP3147236B2 (en) Cache memory device
JPH0630074B2 (en) Processor
JPH04205535A (en) Copy on write system
JPS60183652A (en) Cache memory control method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080606

Year of fee payment: 11

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080606

Year of fee payment: 11

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090606

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090606

Year of fee payment: 12