JPH01183750A - Cache memory residence system - Google Patents

Cache memory residence system

Info

Publication number
JPH01183750A
JPH01183750A JP63007266A JP726688A JPH01183750A JP H01183750 A JPH01183750 A JP H01183750A JP 63007266 A JP63007266 A JP 63007266A JP 726688 A JP726688 A JP 726688A JP H01183750 A JPH01183750 A JP H01183750A
Authority
JP
Japan
Prior art keywords
memory
cache memory
address
register
speed
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
JP63007266A
Other languages
Japanese (ja)
Inventor
Minoru Tanaka
稔 田中
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP63007266A priority Critical patent/JPH01183750A/en
Publication of JPH01183750A publication Critical patent/JPH01183750A/en
Pending legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To realize the mixed use of a cache memory and a high-speed memory in an optional area with a simple constitution by providing a comparator as well as a register which stores the permission information on the use of the cache memory. CONSTITUTION:A register 8 stores the information on the permission for the use of a cache memory 7 as it is, i.e., a way number. In case a way 7-2, for example, of the memory 7 is stored in the register 8 in an effective form. Thus a comparator 3 compares the address of the corresponding way 2-2 of an address memory 2 with a part of the address pointed by an MPU1. Thus an access is given to an area 7-2 of the memory 7. While an area 7-1 of the memory 7 is defined as an access enable area of a high-speed memory not as a cache memory. This access enable are receives accesses from a part of each of those addresses pointed by the register 8, a decoder 9 and the MPU1 respectively. In such a way, an access is possible to a mixed area of the memory 7 and the high-speed memory through a simple constitution.

Description

【発明の詳細な説明】 〔概 要〕 この発明は、高速アクセスを可能なキャッシュメモリに
おけるキャッシュメモリ常駐化方式に関し、 高速メモリとして使用可能なキャッシュメモリを簡易な
構成で効率よくキャシュメモリ領域の指定を可能にする
ことを目的とし、 プロセッサとアドレス情報を格納するアドレスメモリと
キャッシュメモリとで構成され前記キャシュメモリを高
速アクセス可能な高速用メモリとして使用するシステム
において、前記キャッシュメモリの一部又は全部をキャ
ッシュメモリとして使用することを許可する情報を格納
するレジスタと、前記アドレスメモリの出力するアドレ
スと前記プロセッサの指定するアドレスの一部とを比較
する比較器とを備え、前記レジスタの許可条件に合致す
れば前記比較器で照合した場合にキャッシュメモリをア
クセスし、レジスタの不許可条件に合致する場合には高
速メモリとしてアクセスし、結果的に常駐化するように
構成する。
[Detailed Description of the Invention] [Summary] The present invention relates to a cache memory resident method in a cache memory that can be accessed at high speed. In a system that is composed of a processor, an address memory that stores address information, and a cache memory, and uses the cache memory as a high-speed memory that can be accessed at high speed, part or all of the cache memory a register that stores information that permits the use of the address memory as a cache memory, and a comparator that compares an address output from the address memory with a part of the address specified by the processor, If they match, the cache memory is accessed when the comparison is made by the comparator, and if the disallowance conditions of the register are matched, the memory is accessed as a high-speed memory and is made resident as a result.

〔産業上の利用分野〕[Industrial application field]

この発明は、高速アクセスの可能なキャッシュメモリに
おけるキャッシュメモリ常駐化方式に関するものである
The present invention relates to a cache memory resident system in a cache memory that can be accessed at high speed.

情報処理の分野でプロセッサの周辺にキャッシュメモリ
が数多く用いられている。このキャシュメモリをキャシ
ュメモリとしてでなく、高速アクセスの可能な高速用メ
モリとして使用するということが行われている。
In the field of information processing, many cache memories are used around processors. This cache memory is used not as a cache memory but as a high-speed memory capable of high-speed access.

しかして、簡易な構成でキャッシュメモリと高速メモリ
を混用して使用することが可能なキャッシュメモリ常駐
化方式が要望されている。
Therefore, there is a need for a cache memory resident system that has a simple configuration and allows mixed use of cache memory and high-speed memory.

〔従来の技術〕[Conventional technology]

従来、キャッシュメモリを高速用メモリとして使用する
場合には、システムに電源を投入した後、例えばシステ
ムを診断を行うようなシステム運用前に、キャッシュメ
モリを無効にして高速メモリとして使用することが行わ
れている。即ち、キャッシュメモリとして使用するか、
高速用メモリとして使用するのかの何れかであり、2種
類の動作モードでキャッシュメモリを取り扱っている。
Conventionally, when using cache memory as high-speed memory, it was necessary to disable the cache memory and use it as high-speed memory after powering on the system and before operating the system, such as diagnosing the system. It is being said. In other words, use it as a cache memory,
Cache memory can be used as high-speed memory, or can be used in two different operating modes.

さらに、固定した領域をキャッシュメモリと高速メモリ
で分割して使用している。
Furthermore, the fixed area is divided into cache memory and high-speed memory.

上記した方法は、任意に領域をキャッシュメモリ/高速
用メモリと混在させて使用することが不可能であること
から不便である。
The above method is inconvenient because it is impossible to arbitrarily mix and use areas with cache memory/high-speed memory.

この状態に対処するために、キャッシュメモリを制御す
る制御部に、各エントリ毎の常駐ビットをアドレスに付
けて、キャッシュメモリとして、常駐ビットを「オン」
に登録することにより、結果的に高速用メモリとして使
用する方法が採用されている。しかしながら、この方法
は、制御部に常駐ビットを制御する複雑な制御回路が必
要となる。
To deal with this situation, the control unit that controls the cache memory has the resident bit of each entry added to the address, and the resident bit is turned on as the cache memory.
A method has been adopted in which the memory is registered as a high-speed memory. However, this method requires a complicated control circuit for controlling the resident bits in the control section.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上記したように従来の方法は、2モード即ち、キャッシ
ュメモリ、高速用メモリの何れかとして取り扱うか、或
いはキャッシュメモリ、高速メモリを混在させる場合に
は領域が固定となったり制御部が複雑になるという問題
がある。
As mentioned above, in the conventional method, the area is fixed and the control unit becomes complicated when handling two modes, that is, cache memory and high-speed memory, or when using cache memory and high-speed memory together. There is a problem.

この発明は、上記した従来の状況から、簡易な構成でキ
ャッシュメモリおよび高速用メモリとして任意の領域で
混在させて使用可能なキャッシュメモリ常駐化方式の提
供を目的とするものである。
SUMMARY OF THE INVENTION In view of the above-mentioned conventional situation, it is an object of the present invention to provide a cache memory resident system that has a simple configuration and can be used as both a cache memory and a high-speed memory in any area.

〔問題点を解決するための手段〕[Means for solving problems]

この発明は、第1図の原理図に示すように、プロセッサ
1とアドレス情報を格納するアドレスメモリ2と高速ア
クセス可能なキャッシュメモリ7とで構成し、キャッシ
ュメモリ7をキャッシュメモリとして使用を許可する情
報を格納するレジスタ8と、レジスタ8の許可情報でプ
ロセッサの指示するアドレスの一部aとプロセサの指示
するアドレスの一部すにより指定されるアドレスメモリ
のアドレスとを比較する比較器3と、高速メモリとして
動作するためのデコーダ9およびゲート6とを設けであ
る。
As shown in the principle diagram of FIG. 1, this invention consists of a processor 1, an address memory 2 that stores address information, and a cache memory 7 that can be accessed at high speed, and the cache memory 7 is permitted to be used as a cache memory. a register 8 that stores information, a comparator 3 that compares part a of the address specified by the processor with permission information of the register 8 and an address of the address memory specified by part of the address specified by the processor; A decoder 9 and a gate 6 are provided to operate as a high-speed memory.

〔作 用〕[For production]

レジスタ8に、例えば、キャッシュメモリの7−2のウ
ェイが有効であるように格納されていると、アドレスメ
モリ2の8亥当するウェイの2−2のアドレスとCPU
 1の指示するアドレスの一部すとの照合が比較器3で
取られ、照合した場合、キャッシュメモリとして7−2
の領域をアクセスする。
For example, if the way 7-2 of the cache memory is stored as valid in the register 8, the address of 2-2 of the corresponding way 8 of the address memory 2 and the CPU
The comparator 3 compares the part of the address indicated by 1, and if it matches, the cache memory 7-2
access the area.

また、7〜1の領域は、キャッシュメモリとしてではな
く、高速メモリとしてアクセス可能な領域で、レジスタ
8とデコーダ9及びプロセサの指示するアドレスの一部
aによりアクセスする。
Further, areas 7 to 1 are areas that can be accessed not as a cache memory but as a high speed memory, and are accessed by the register 8, the decoder 9, and part a of the address specified by the processor.

レジスタと比較器を設けた簡易な構成で、キャッシュメ
モリと高速用メモリとの混在した領域のアクセスが可能
になる。
With a simple configuration provided with registers and comparators, it is possible to access a mixed area of cache memory and high-speed memory.

〔実施例〕〔Example〕

第2図は本発明の実施例を示すブロック図である。1は
プロセッサ(MPU)、2はアドレスメモリであり、例
えば4ウエイの2−1〜2−4のメモリである。3と5
は比較器であり、4ウエイに対応した3−1〜3−4と
5−1〜5−4である。4は高速用メモリとして使用す
る場合のアドレスをウェイ毎に指定しておくレジスタで
あり、4−1〜4−4で構成されている。6はゲート回
路、7は高速メモリとして使用可能なキャッシュメモリ
であり、4ウエイに対応して7−1〜7−4で構成され
ている。8はキャッシュメモリ7をキャッシュメモリと
して使° 周回を許可する情報即ち、ウェイ番号を格納
しているレジスタである。
FIG. 2 is a block diagram showing an embodiment of the present invention. 1 is a processor (MPU), and 2 is an address memory, for example, 4-way memories 2-1 to 2-4. 3 and 5
are comparators 3-1 to 3-4 and 5-1 to 5-4 corresponding to 4-way. A register 4 specifies an address for each way when used as a high-speed memory, and is composed of registers 4-1 to 4-4. 6 is a gate circuit, 7 is a cache memory that can be used as a high-speed memory, and is composed of 7-1 to 7-4 corresponding to 4 ways. Reference numeral 8 denotes a register that stores information that allows the cache memory 7 to be used as a cache memory, that is, a way number.

第2図は分り易くするために、#1のウェイのみの配線
を示しており、他のウェイ#2〜#4も同様に同一添字
間は接続されている。
For the sake of clarity, FIG. 2 shows the wiring of only the #1 way, and the other ways #2 to #4 are similarly connected between the same subscripts.

例えば、レジスタ8にウェイ2−1〜2−3が登録され
ていると、高速メモリ領域へのアクセスではない場合に
レジスタ8はアドレスメモリ2の2−1〜2−3と、比
較器3の3−1〜3−3の作動を許可し・MPU  1
からのアドレス信号aはウェイ2−1〜2−3のアドレ
スと比較器3で照合される。比較器3は、照合のとれた
ウェイ番号とともにゲート回路6を介シて、キャッシュ
メモリ7をキャッシュメモリとして該当する領域をアク
セスする。
For example, if ways 2-1 to 2-3 are registered in register 8, register 8 registers 2-1 to 2-3 in address memory 2 and ways 2-1 to 2-3 in comparator 3 when access is not to a high-speed memory area. Allow operation of 3-1 to 3-3・MPU 1
The address signal a from the way 2-1 to 2-3 is compared with the addresses of the ways 2-1 to 2-3 by the comparator 3. The comparator 3 uses the cache memory 7 as a cache memory to access the corresponding area via the gate circuit 6 together with the matched way number.

若シ、高速メモリ領域へのアクセスの場合には、アドレ
スメモリ2と比較器3は許可信号が入力されず無効とな
り、高速メモリ領域をキャッシュメモリとして使ってい
る2−1〜2−3の領域のアクセスは禁止される。
In the case of access to the high-speed memory area, the address memory 2 and comparator 3 are disabled because the permission signal is not input, and the areas 2-1 to 2-3 that use the high-speed memory area as cache memory access is prohibited.

この時、MpU  1からのアドレス信号aは、比較器
5の5−4で高速用メモリのアドレスをウェイ毎に格納
したレジスタ4の4−4の内容即ちアドレスと比較する
。照合が取れるとゲート回路6を介して該当するキャッ
シュメモリ7−4を高速用メモリとして該当する領域を
アクセスする。
At this time, the address signal a from the MpU 1 is compared by the comparator 5 5-4 with the contents, ie, the address, of the register 4 4-4 storing the address of the high-speed memory for each way. If a match is made, the corresponding area is accessed via the gate circuit 6 using the corresponding cache memory 7-4 as a high-speed memory.

第3図は本発明の他の実施例を示すブロック図であり、
第2図の実施例と異なる部分は、高速用メ、モリとして
使用する場合の先頭アドレスを指定しておくレジスタ4
0をもち、レジスタ8には、キャシュメモリとして使用
する領域のウェイ数を登録する。
FIG. 3 is a block diagram showing another embodiment of the present invention,
The difference from the embodiment shown in FIG. 2 is the register 4 for specifying the start address when used as high-speed memory.
The number of ways in the area used as a cache memory is registered in the register 8.

例えば、レジスタ8にウェイ数3を登録し、レジスタ4
0には、rloooJを登録しておく。比較器5はレジ
スタ40に登録されているアドレスから高速メモリとし
て使用される残りの1ウ工イ分のアドレスまであること
を比較、検出し2合致すると4番目のウェイ7−4が高
速用メモリの領域としてアクセスされる。
For example, register the number of ways 3 in register 8, register 4
rloooJ is registered in 0. The comparator 5 compares and detects that there is an address from the address registered in the register 40 to the address for the remaining 1 way to be used as high-speed memory, and if 2 matches, the fourth way 7-4 is used as high-speed memory. accessed as an area.

上記した説明は、4ウエイのアドレスメモリを用いて説
明を行ったがこの数は任意であっても何等支障ないのは
いうまでもない。
Although the above explanation has been made using a 4-way address memory, it goes without saying that this number may be arbitrary without any problem.

〔発明の効果〕〔Effect of the invention〕

以上の説明より明らかなように、本発明によればキャッ
シュメモリの常駐ビットの制御をすることもなく、レジ
スタと比較器を備えるという簡易な構成でキャッシュメ
モリと高速用メモリの混在が可能となり、キャッシュメ
モリを有効利用する上できわめて優れた効果を発揮する
As is clear from the above explanation, according to the present invention, it is possible to mix cache memory and high-speed memory with a simple configuration of registers and comparators without controlling the resident bits of cache memory. It is extremely effective in effectively utilizing cache memory.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の原理図、 第2図は本発明の実施例を示すブロック図、第3図は本
発明の他の実施例を示すブロック図である。 図において、1はMPU 、 2はアドレスレジスタ、
3と5は比較器、7はキャッシュメモリ、8はレジスタ
を示す。 斗発明41埋口 第1忍 第2図
FIG. 1 is a diagram showing the principle of the present invention, FIG. 2 is a block diagram showing an embodiment of the invention, and FIG. 3 is a block diagram showing another embodiment of the invention. In the figure, 1 is the MPU, 2 is the address register,
3 and 5 are comparators, 7 is a cache memory, and 8 is a register. Tosai 41 Ukeguchi 1st Shinobi Figure 2

Claims (1)

【特許請求の範囲】  プロセッサ(1)とアドレス情報を格納するアドレス
メモリ(2)とキャッシュメモリ(7)とで構成され前
記キャシュメモリ(7)を高速アクセス可能な高速用メ
モリとして使用するシステムにおいて、 前記キャッシュメモリ(7)の一部又は全部をキャッシ
ュメモリとして使用することを許可する情報を格納する
レジスタ(8)と、 前記アドレスメモ(2)の出力するアドレスと前記プロ
セッサ(1)の指定するアドレスの一部とを比較する比
較器(3)とを備え、 前記レジスタ(8)の許可条件に合致すれば前記比較器
(3)で照合した場合にキャッシュメモリ(7)をアク
セスし、レジスタ(8)の不許可条件に合致する場合に
は高速メモリとしてアクセスし、結果的に常駐化するこ
とができることを特徴とするキャッシュメモリ常駐化方
式。
[Scope of Claims] A system comprising a processor (1), an address memory (2) for storing address information, and a cache memory (7), and using the cache memory (7) as a high-speed memory capable of high-speed access. , a register (8) for storing information that allows part or all of the cache memory (7) to be used as a cache memory, and an address to be output from the address memo (2) and a designation of the processor (1). a comparator (3) that compares a part of the address with a part of the address to be accessed; A cache memory resident method characterized in that when a disallowing condition of a register (8) is met, the cache memory can be accessed as a high-speed memory and can be made resident as a result.
JP63007266A 1988-01-14 1988-01-14 Cache memory residence system Pending JPH01183750A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63007266A JPH01183750A (en) 1988-01-14 1988-01-14 Cache memory residence system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63007266A JPH01183750A (en) 1988-01-14 1988-01-14 Cache memory residence system

Publications (1)

Publication Number Publication Date
JPH01183750A true JPH01183750A (en) 1989-07-21

Family

ID=11661227

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63007266A Pending JPH01183750A (en) 1988-01-14 1988-01-14 Cache memory residence system

Country Status (1)

Country Link
JP (1) JPH01183750A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7219197B2 (en) 2002-10-30 2007-05-15 Kabushiki Kaisha Toshiba Cache memory, processor and cache control method
JP2011008650A (en) * 2009-06-29 2011-01-13 Fujitsu Ltd Method, system and program for error verification

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7219197B2 (en) 2002-10-30 2007-05-15 Kabushiki Kaisha Toshiba Cache memory, processor and cache control method
JP2011008650A (en) * 2009-06-29 2011-01-13 Fujitsu Ltd Method, system and program for error verification

Similar Documents

Publication Publication Date Title
CA1310136C (en) Microcomputer with internal ram security during external program mode
CA2211083C (en) Address transformation in a cluster computer system
JPH01183750A (en) Cache memory residence system
JPS62245353A (en) Prevention circuit for data rewriting of eeprom
JPS6153747B2 (en)
JPS59231625A (en) Address setting system
JPS62214466A (en) Lock control system for storage device
JPH03232052A (en) Exclusive access system for shared data
JPS61285557A (en) Memory protection system
JPH0353336A (en) Single chip microcomputer
JPH0696235A (en) Single chip microcomputer
JPS61195442A (en) Memory protection device
JPH05334189A (en) Data storage device
JPS6257046A (en) Memory protection system
JPH03269650A (en) Buffer storage
JPH0322073A (en) Data transfer controller
JPS6224347A (en) Bus controller
JPH02217944A (en) Bus monitoring device in cache memory
JPH0535598A (en) Paging monitor mechanism of integrated circuit microprocessor
JP2000194554A (en) Arithmetic processor
JPS63168750A (en) Data processor
JPH06149677A (en) Cache memory system
JPS63156261A (en) Decision system for memory access condition
JPH01279343A (en) Main memory protection system for computer system
JPH03158942A (en) Microcomputer system