JPH02148241A - Cache memory control system - Google Patents

Cache memory control system

Info

Publication number
JPH02148241A
JPH02148241A JP63300904A JP30090488A JPH02148241A JP H02148241 A JPH02148241 A JP H02148241A JP 63300904 A JP63300904 A JP 63300904A JP 30090488 A JP30090488 A JP 30090488A JP H02148241 A JPH02148241 A JP H02148241A
Authority
JP
Japan
Prior art keywords
cache
mode
memory
memory device
cache memory
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
JP63300904A
Other languages
Japanese (ja)
Inventor
Tsuyoshi Igarashi
五十嵐 強
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP63300904A priority Critical patent/JPH02148241A/en
Publication of JPH02148241A publication Critical patent/JPH02148241A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To constitute a cache memory system so that a failure part can be supported easily even when a mounted cache memory device is used as it is by executing an operation test of an information processor by switching an operation mode of the cache memory device. CONSTITUTION:A cache hit/miss deciding circuit 44 decides a normal mode in which a cache memory device 40 operates regularly or a minicache mode for executing an operation only at the time of cache hit by mode information M from a mode register 43. By setting the cache memory device 40 to the minicache mode, a CPU 10 can execute an operation test of an information processor excluding a principal part of the cache memory device 40 in a state that the cache memory device 40 is mounted. Subsequently, after confirming a fact that the device is normal, the operation test of the principal component is executed by setting the cache memory device 40 to the normal mode. In such a way, a failure of the principal part of the device or other failure can be discriminated simply in a state that the cache memory device is mounted.

Description

【発明の詳細な説明】 [発明の目的] (産業上の利用分野) この発明は、キャッシュメモリ装置を備えた情報処理装
置の不具合箇所の想定に好適なキャッシュメモリ制御方
式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Object of the Invention] (Industrial Application Field) The present invention relates to a cache memory control method suitable for predicting the location of a failure in an information processing device equipped with a cache memory device.

(従来の技術) 近年の情報処理装置では、命令やデータ等を格納する主
メモリとCPUとの間に、主メモリの記憶内容の一部の
写しがキャッシュブロック単位で置かれるキャッシュデ
ータメモリを有するキャッシュメモリ装置が設けられる
のが一般的である。
(Prior Art) Recent information processing devices have a cache data memory between a main memory that stores instructions, data, etc. and a CPU, in which a copy of a portion of the storage contents of the main memory is stored in units of cache blocks. A cache memory device is typically provided.

このような情報処理装置では、CPUがプログラムを実
行する際に、目的とする命令またはデータ(以下、命令
も含めてデータと呼ぶ)の主メモリ内格納先を示すメモ
リアドレスをアドレスノくス上に出力すると、このアド
レスのデータ(即ち目的データ)がキャッシュデータメ
モリに存在するか否か(即ちキャツシュヒツト/ミス)
がキャッシュメモリ装置においてチエツクされる。
In such an information processing device, when the CPU executes a program, the CPU stores a memory address in the main memory where the target instruction or data (hereinafter referred to as data including instructions) is stored in the main memory. If the data at this address (i.e., the target data) exists in the cache data memory (i.e., cache hit/miss)
is checked in the cache memory device.

キャッシュメモリ装置には、上記のチエ・ツク(キャツ
シュヒツト/ミス判定)が行えるように、キャッシュデ
ータメモリに置かれている上記各ブロックに対応するア
ドレス領域を示すアドレスタグを含むタグ部情報が同ブ
ロックに対応するエントリに登録されるキャッシュタグ
メモリと、キャツシュヒツト/ミス判定回路とが設けら
れる。キャツシュヒツト/ミス判定回路は、CPUから
アドレスバスに出力されたメモリアドレスをもとにキャ
ッシュタグメモリ内エントリを参照し、同エントリにメ
モリアドレスに対応するアドレスタグが登録されている
か否かのキャツシュヒツト/ミス判定動作(動作■)を
行う。
In order to perform the above-mentioned check (cache hit/miss judgment), the cache memory device contains tag part information including an address tag indicating the address area corresponding to each of the above-mentioned blocks located in the cache data memory. A cache tag memory registered in an entry corresponding to the cache tag memory and a cache hit/miss determination circuit are provided. The cache hit/miss determination circuit refers to the entry in the cache tag memory based on the memory address output from the CPU to the address bus, and determines whether or not the address tag corresponding to the memory address is registered in the entry. Perform the error judgment operation (operation ■).

もし、キャツシュヒツトが判定されたならば、上記参照
したエントリに対応するキャッシュデータメモリ内ブロ
ックから目的データが取出され、(あたかも主メモリか
らのリードデータであるかのように)CPUへ転送する
動作(動作■)が行われる。これにより、主メモリアク
セスが見掛は上高速となる。
If a cache hit is determined, the target data is retrieved from the block in the cache data memory corresponding to the entry referred to above, and transferred to the CPU (as if it were read data from the main memory). Operation ■) is performed. This makes main memory access apparently faster.

これに対し、キャツシュヒツト/ミス回路によってキャ
ッシュミスが判定されたならば、次の2つの動作■、■
が行われる。動作■は、アドレスバス上のメモリアドレ
スに対応するアドレスタグを含むタグ部情報を、参照し
たキャッシュタグメモリ内エントリに書込む動作である
。また動作■は、アドレスバス上のメモリアドレスに対
応するキャッシュブロックのデータを主メモリからリー
ドし、そのリードブロックデータを、上記参照したエン
トリに対応するキャッシュデータメモリ内ブロックに格
納すると共に、リードブロックデータのうちの目的デー
タ(CPUから要求されたデータ)だけをCPUへ転送
する動作である。
On the other hand, if a cache miss is determined by the cache hit/miss circuit, the following two operations
will be held. Operation (2) is an operation in which tag part information including an address tag corresponding to a memory address on the address bus is written into the entry in the referenced cache tag memory. In addition, operation (■) reads the data of the cache block corresponding to the memory address on the address bus from the main memory, stores the read block data in the block in the cache data memory corresponding to the entry referenced above, and This is an operation in which only the target data (data requested by the CPU) of the data is transferred to the CPU.

(発明が解決しようとする課題) キャッシュメモリ装置を備えた情報処理装置では、キャ
ゾンユメモリ装置における上記■〜■の各動作が全て正
常に行われる必要がある。しかし、これらは、投射ファ
ンクションテスト時や製品ファンクションテスト時に正
常に働く保証はなく、情報処理装置の不具合箇所を想定
する上で問題となる。そこで従来は、ファンクションテ
スト時には、実装しているキャッシュメモリ装置に代え
てテスト用の特別のメモリボードを用いなけれュメモリ
装置をそのまま用いても情報処理装置のテストで不具合
箇所が容易に想定できるようにすることである。
(Problems to be Solved by the Invention) In an information processing device equipped with a cache memory device, each of the operations (1) to (4) above in the Cazonille memory device must all be performed normally. However, there is no guarantee that these will work normally during a projection function test or a product function test, which poses a problem in imagining the location of a malfunction in the information processing device. Conventionally, when performing function tests, it is necessary to use a special memory board for testing in place of the installed cache memory device.Even if the memory device is used as it is, it is easy to predict where the failure will occur when testing the information processing device. It is to be.

[発明の構成] (課題を解決するための手段) この発明は、情報処理装置が有するキャッシュメモリ装
置に、キャッシュメモリ装置が通常に動作する第1モー
ドを指示する第1モード情報およびキャッシュメモリ装
置がキャツシュヒツト時だけの動作を行う第2モードを
指示する第2モード情報のいずれかが設定されるモード
設定手段と、このモード設定手段に第1モード情報が設
定されている場合には主メモリをアクセスするだめのメ
モリアドレスに応じてキャツシュヒツト/ミスを判定す
る通常動作を行い、モード設定手段に第2モード情報が
設定されている場合には一義的にキャツシュヒツトを判
定する特殊動作を行うキャツシュヒツト/ミス判定手段
とを設け、キャッシュメモリ装置を、キャツシュヒツト
/ミス判定手段の通常動作に伴う第1モードまたは特殊
動作に伴う第2モードに切替えて動作させた状態で、情
報処理装置の動作テストを行うようにしたことを特徴と
する。
[Structure of the Invention] (Means for Solving the Problems) The present invention provides first mode information for instructing a cache memory device included in an information processing device to a first mode in which the cache memory device normally operates; a mode setting means in which one of second mode information is set which instructs a second mode in which operation is performed only when the button is pressed, and a main memory when the first mode information is set in this mode setting means. A catch hit/miss that performs a normal operation of determining a catch hit/miss depending on the memory address to be accessed, and performs a special operation of uniquely determining a catch hit when the second mode information is set in the mode setting means. determining means, and performing an operation test of the information processing device while the cache memory device is operated in a first mode associated with a normal operation of the cash hit/miss determination means or a second mode associated with a special operation. It is characterized by the following.

(作用) 上記の構成によれば、モード設定手段に設定する情報を
切替えることで、キャッシュメモリ装置の動作モードを
、メモリアドレスをもとにキャブシュヒツト/ミスを判
定してその判定結果に基づく複雑な動作を行うキャッシ
ュメモリ装置本来の動作モード(第1モード)と、メモ
リアドレスに無関係に常時キャツシュヒツト状態の単純
な動作を行う動作モード(第2モード)とに切り分ける
ことができるので、この切り分けた状態でそれぞれテス
トを行うことで、キャッシュメモリ装置の主要部分(主
要機能部分)の不具合かそれ以外の不具合かを判別する
ことができる。
(Function) According to the above configuration, by switching the information set in the mode setting means, the operation mode of the cache memory device is determined based on the result of determining cache hit/miss based on the memory address. The cache memory device can be divided into the original operating mode (first mode), which performs complex operations, and the operating mode (second mode), which performs simple operations that are always cached regardless of the memory address. By conducting tests in each condition, it is possible to determine whether the problem is in the main part (main functional part) of the cache memory device or something else.

(実施例) 第1図はこの発明を適用するキャッシュメモリ装置を備
えた情報処理装置の一実施例を示すブロック構成図であ
る。同図において、10は全体を制御するCPU、20
は各種プログラムおよびデータ等が格納される主メモリ
、30はCPUl0のバスであり、アドレスバス3Lデ
ータバス32およびコントロールバス33から成る。
(Embodiment) FIG. 1 is a block diagram showing an embodiment of an information processing apparatus including a cache memory device to which the present invention is applied. In the figure, 10 is a CPU that controls the whole;
3 is a main memory in which various programs and data are stored; 30 is a bus for the CPU 10, which is composed of an address bus 3L, a data bus 32, and a control bus 33.

40はキャッシュメモリ装置である。キャッシュメモリ
装置40は、主メモリ20の一部の写しが2nバイトの
キャッシュブロック単位で置かれるキャッシュデータメ
モリ、およびキャッシュデータメモリ41のブロック数
と同数のエントリを持つキャッシュタグメモリ42を有
する。キャッシュデータメモリ41およびキャッシュタ
グメモリ42は、アドレスバス31上のメモリアドレス
の下位mビットのうちの上位側m−nビットによってア
クセスされる。キャッシュタグメモリ42の各エントリ
には、同エントリと対応するキャッシュデータメモリ4
1に置かれているブロックが属する2nバイトのアドレ
ス領域を示すアドレスタグATAG (該当メモリアド
レスの下位mビットを除く上位アドレス)および同アド
レスタグATAGが有効であるが否かを示すバリッドビ
ットVを含むタグ部情報が登録される。
40 is a cache memory device. The cache memory device 40 has a cache data memory in which a copy of a portion of the main memory 20 is placed in units of 2n-byte cache blocks, and a cache tag memory 42 having the same number of entries as the number of blocks in the cache data memory 41. The cache data memory 41 and the cache tag memory 42 are accessed by the upper m−n bits of the lower m bits of the memory address on the address bus 31. Each entry in the cache tag memory 42 has a cache data memory 4 corresponding to the same entry.
The address tag ATAG (upper address excluding the lower m bits of the corresponding memory address) indicating the 2n-byte address area to which the block placed in 1 belongs and the valid bit V indicating whether the same address tag ATAG is valid or not. The included tag part information is registered.

またキャッシュメモリ装置4oは、同装置の動作モード
を示すモード情報Mが設定されるモードレジスタ43、
およびキャツシュヒツト/ミス判定回路44を有してい
る。モードレジスタ43に設定されるモード情報Mは例
えば1ビツトで構成され、M−〇でキャッシュメモリ装
置40が通常に動作するノーマルモード(第1モード)
を指示し、M−1でキャッシュメモリ装置40がキャツ
シュヒツト時だけの動作を行うミニキャッシュモード(
第2モード)を指示する。キャツシュヒツト/ミス判定
回路44は、ノーマルモードでは、アドレスバス31上
のメモリアドレスの下位mビットのうちの上位側m−n
ビットの指定するキャッシュタグメモリ42内エントリ
中のアドレスタグATAG並びにバリッドビットV1お
よび同メモリアドレスの下位mビットを除く上位アドレ
スをもとに周知のキャツシュヒツト/ミス判定を行い、
ミニキャッシュモードでは、一義的にキャツシュヒツト
を判定するように構成されている。
The cache memory device 4o also includes a mode register 43 in which mode information M indicating the operation mode of the device is set;
and a cache hit/miss determination circuit 44. The mode information M set in the mode register 43 is composed of, for example, 1 bit, and M-0 indicates a normal mode (first mode) in which the cache memory device 40 normally operates.
, and in M-1, the cache memory device 40 operates in a mini-cache mode (
2nd mode). In the normal mode, the cache hit/miss determination circuit 44 selects the upper m−n bits of the lower m bits of the memory address on the address bus 31.
A well-known cache hit/miss determination is performed based on the address tag ATAG in the entry in the cache tag memory 42 specified by the bit, the valid bit V1, and the upper address excluding the lower m bits of the same memory address.
The mini-cash mode is configured to uniquely determine the cash hit.

キャッシュメモリ装置40は更に、キャツシュヒツト/
ミス判定回路44の判定結果、メモリアクセス要求の種
別(リード/ライト種別)およびモードレジスタ43の
内容(モード情報M)に応じて主メモリ20のアクセス
、キャッシュデータメモIJ41のアクセス等のシーケ
ンスを制御する制御部45、およびバス30のビジィ/
レディを制御するとシイ/レディ制御回路46を有して
いる。
The cache memory device 40 further includes a cash register/
Controls the sequence of access to the main memory 20, cache data memo IJ 41, etc. according to the determination result of the error determination circuit 44, the type of memory access request (read/write type), and the contents of the mode register 43 (mode information M). control unit 45 and bus 30 busy/
When controlling the ready, it has a ready/ready control circuit 46.

次に、この発明の一実施例の動作を説明する。Next, the operation of one embodiment of the present invention will be explained.

第1図の情報処理装置におけるキャッシュメモリ装置4
0では、モードレジスタ43に設定される1ビツトのモ
ード情報Mによって、ノーマルモードおよびミニキャッ
シュモードのいずれかの動作が行われる。
Cache memory device 4 in the information processing device shown in FIG.
0, the 1-bit mode information M set in the mode register 43 causes either normal mode or mini-cache mode to operate.

まずノーマルモードの動作を、CPUl0がらのメモリ
リード要求の場合を例に説明する。
First, the operation in normal mode will be explained using an example of a memory read request from CPU10.

CPUl0は主メモリ2oからデータ(命令も含む)を
読出したい場合、読出し先を示すメモリアドレスをアド
レスバス31に出力する。このアドレスバス31上のメ
モリアドレスの下位mビットのうちの上位側m−nビッ
トは、キャッシュタグメモリ42のブロック指定および
キャッシュタグメモリ42のエントリ指定に用いられる
。このエントリ指定により、キャッシュタグメモリ42
の対応エントリの内容(タグ部情報)が読出され、同情
報中のアドレスタグATAGおよびバリッドビットVは
キャツシュヒツト/ミス判定回路44に導かれる。この
キャツシュヒツト/ミス判定回路44には、アドレスバ
ス31上のメモリアドレスの下位mビットを除く上位ア
ドレスが導かれると共に、モードレジスタ43に設定さ
れている1ビツトのモード情報Mも導かれる。
When the CPU 10 wants to read data (including instructions) from the main memory 2o, it outputs a memory address indicating the read destination to the address bus 31. The upper m−n bits of the lower m bits of the memory address on the address bus 31 are used for block designation of the cache tag memory 42 and entry designation of the cache tag memory 42. By specifying this entry, the cache tag memory 42
The contents of the corresponding entry (tag section information) are read out, and the address tag ATAG and valid bit V in the information are led to the cache hit/miss determination circuit 44. The cache hit/miss determination circuit 44 is led to the upper address excluding the lower m bits of the memory address on the address bus 31, and also 1-bit mode information M set in the mode register 43.

キャツシュヒツト/ミス判定回路44は、モードレジス
タ43からの1ビツトのモード情報Mが“0”の場合(
即ちノーマルモード指定の場合)、通常のキャツシュヒ
ツト/ミス判定動作を行う。即ちキャツシュヒツト/ミ
ス判定回路44は、キャッシュタグメモリ42からのア
ドレスタグATAGとアドレスバス31からの上記上位
アドレスとを比較し1、両者が一致し、且つキャッシュ
タグメモリ42からのバリッドビットVが有効(V−1
)であるか否かにより、(アドレスバス31上のメモリ
アドレスの示す主メモリ20上のデータがキャッシュデ
ータメモリ41に存在するか否かを示す)キャツシュヒ
ツト/ミスを判定する。
The cash hit/miss determination circuit 44 determines that when the 1-bit mode information M from the mode register 43 is "0" (
In other words, if the normal mode is specified), the normal cash hit/miss determination operation is performed. That is, the cache hit/miss determination circuit 44 compares the address tag ATAG from the cache tag memory 42 and the above-mentioned upper address from the address bus 31, and determines that they match and the valid bit V from the cache tag memory 42 is valid. (V-1
), a cache hit/miss (indicating whether the data in the main memory 20 indicated by the memory address on the address bus 31 exists in the cache data memory 41) is determined.

キャツシュヒツト/ミス判定回路44のキャツシュヒツ
ト/ミス判定結果は制御部45およびビジィ/レディ制
御回路4Bに導かれる。制御部45は、メモリリード要
求時にキャツシュヒツト/ミス判定回路44がキャツシ
ュヒツトを判定した場合、アドレスバス31上のメモリ
アドレスの下位mビットのうちの上位側m−nビットの
示すキャッシュデータメモリ41内ブロツクのリードア
クセスを許可し、同ブロック内の2nバイトデータのう
ちCPUl0から要求されたデータをデータバス32上
に出力するための制御を行う。このときとシイ/レディ
制御回路46は、キャツシュヒツト/ミス判定回路44
のキャツシュヒツト判定に応じ、コントロールバス33
中のビジィ/レディ信号線(図示せず)をレディ状態に
設定し、メモリアクセス要求元(であるC P U t
o)にデータバス32上のデータの入力可を通知する。
The cash hit/miss determination result of the cash hit/miss determination circuit 44 is led to the control section 45 and the busy/ready control circuit 4B. If the cache hit/miss determination circuit 44 determines a cache hit at the time of a memory read request, the control unit 45 selects the block in the cache data memory 41 indicated by the upper m−n bits of the lower m bits of the memory address on the address bus 31. , and performs control to output the data requested by CPU10 out of the 2n-byte data in the same block onto the data bus 32. At this time, the cash hit/miss determination circuit 44
The control bus 33
The busy/ready signal line (not shown) in the memory access request source (CPU
o) is notified that data on the data bus 32 can be input.

これに対し、キャツシュヒツト/ミス判定回路44がキ
ャッシュミス(ミスヒツト)を判定した場合には、制御
部45はアドレスバス31上のメモリアドレスの下位n
ビットを除く上位アドレスで指定される主メモリ20の
ブロックのデータ(2nバイト)を主メモリ20から読
出してキャッシュデータメモリ41の対応ブロックにコ
ピーし、且つこのコピーブロックデータ中のデータのう
ちCPUl0から要求されたデータをデータバス32上
に出力するための制御を行う。また制御部45は、上記
のデータコピー終了時にビジィ/レディ制御回路46に
その旨を通知する。ビジィ/レディ制御回路46は、キ
ャツシュヒツト/ミス判定回路44によって上記のよう
にキャッシュミスが判定された場合には、コントロール
バス33中のビジィ/レディ信号線をビジィ状態に保持
する。モしてビジィ/レディ制御回路4Bは、制御部4
5からコピー完了が通知されると、キャツシュヒツト判
定時と同様にビジィ/レディ信号線をレディ状態に設定
し、メモリアクセス要求元(であるC P U to)
にデータ入力可を通知する。
On the other hand, when the cache hit/miss determination circuit 44 determines a cache miss (miss), the control unit 45 selects the lower n of the memory address on the address bus 31.
The data (2n bytes) of the block in the main memory 20 specified by the upper address excluding bits is read from the main memory 20 and copied to the corresponding block in the cache data memory 41, and among the data in this copy block data, from CPU10 Control is performed to output requested data onto the data bus 32. Furthermore, the control unit 45 notifies the busy/ready control circuit 46 when the data copying is completed. The busy/ready control circuit 46 maintains the busy/ready signal line in the control bus 33 in a busy state when the cache hit/miss determination circuit 44 determines a cache miss as described above. The busy/ready control circuit 4B controls the control unit 4.
When the copy completion is notified from CPU 5, the busy/ready signal line is set to the ready state as in the cash hit determination, and the memory access request source (CPU to)
Notify that data entry is possible.

次にミニキャッシュモードの動作を、前記したノーマル
モードと同様にCPUl0からのメモリリード要求の場
合を例に説明する。
Next, the operation of the mini-cache mode will be described using as an example the case of a memory read request from the CPU 10, similar to the above-described normal mode.

ミニキャッシュモードは、前記したようにモードレジス
タ43に論理“]”のモード情報Mが設定されることに
より指定される。キャツシュヒツト/ミス判定回路44
は、モードレジスタ43からの1ビツトのモード情報M
が“1″の場合(ミニキャッシュモード指定の場合)、
前記したノーマルモードの場合と異なって、(キャッシ
ュタグメモリ42からのアドレスタグATAGとアドレ
スバス31からの上記上位アドレスとの一致/不一致に
無関係に)一義的にキャツシュヒツトを判定する。制御
部45はメモリリード要求時にキャツシュヒツト/ミス
判定回路44がキャツシュヒツトを判定した場合には、
前記したしようにアドレスバス31上のメモリアドレス
の下位mビットのうちの上位側m−nビットの示すキャ
ッシュデータメモリ41内ブロツクのリードアクセスを
許可し、同ブロック内の2nバイトデータのうちCPU
l0から要求されたデータをデータバス32上に出力す
るための制御を行う。このときビジィ/レディ制御回路
46は、コントロールバス33中のビジィ/レディ信号
線(図示せず)をレディ状態に設定し、メモリアクセス
要求元(であるC P U 10)にデータ入力可を通
知する。
The mini-cache mode is specified by setting the mode information M of logic "]" in the mode register 43 as described above. Catching hit/miss determination circuit 44
is the 1-bit mode information M from the mode register 43
If is “1” (mini cache mode specified),
Unlike the case of the normal mode described above, a cache hit is uniquely determined (regardless of whether the address tag ATAG from the cache tag memory 42 and the above-mentioned upper address from the address bus 31 match/mismatch). If the cache hit/miss determination circuit 44 determines a cache hit at the time of a memory read request, the control unit 45 performs the following operations.
As described above, read access to the block in the cache data memory 41 indicated by the upper m-n bits of the lower m bits of the memory address on the address bus 31 is permitted, and the CPU reads out the 2n byte data in the same block.
Control is performed to output the data requested from l0 onto the data bus 32. At this time, the busy/ready control circuit 46 sets a busy/ready signal line (not shown) in the control bus 33 to a ready state, and notifies the memory access request source (the CPU 10) that data input is possible. do.

ミニキャッシュモードにおいては、上記したように常に
キャツシュヒツトが判定され、キャッシュミスが判定さ
れることはない。したがって、前記したノーマルモード
のように主メモ1)20からキャッシュデータメモリ4
1へのブロックデータのコピー等のキャッシュミス時に
特有の複雑なシーケンスが発生することはない。そこで
、キャッシュデータメモリ41に予め正しいデータを書
込んだ状態で、キャッシュメモリ装置40をミニキャッ
シュモードに設定することにより、CPUl0はキャッ
シュメモリ装置40の主要部分(主要機能部分)を除い
た情報処理装置の動作テストをキャッシュメモリ装置4
0を実装した状態で実行することが可能となる。そして
、このテストにおいて、装置が正常であることを確認し
た後で、キャッシュメモリ装置40をノーマルモードに
設定して動作テストを行うことにより、キャッシュメモ
リ装置40の主要部分の動作確認が可能となる。なお、
キャッシュデータメモリ41へのデータ書込みは、CP
U10によって行うことも可能であるが、ここではバス
30にローカルに接続された機器から行うようにしてい
る。またモードレジスタ43へのモード情報Mの設定も
、同様に行うことが可能である。勿論、スイッチ等によ
る設定も可能である。
In the mini-cache mode, as described above, a cache hit is always determined and a cache miss is never determined. Therefore, as in the normal mode described above, from the main memory 1) 20 to the cache data memory 4
A complicated sequence peculiar to a cache miss such as copying block data to 1 does not occur. Therefore, by setting the cache memory device 40 to mini-cache mode with correct data written in the cache data memory 41 in advance, the CPU 10 can perform information processing excluding the main part (main functional part) of the cache memory device 40. Perform device operation test on cache memory device 4
It becomes possible to execute with 0 installed. In this test, after confirming that the device is normal, the cache memory device 40 is set to normal mode and an operation test is performed, thereby making it possible to check the operation of the main parts of the cache memory device 40. . In addition,
Data writing to the cache data memory 41 is performed by the CP
Although it is possible to perform this by U10, here, it is performed from a device locally connected to bus 30. Furthermore, the mode information M can be set in the mode register 43 in a similar manner. Of course, setting using a switch or the like is also possible.

なお、キャツシュヒツト/ミス判定回路44のキャツシ
ュヒツト/ミス判定結果に伴う上記の動作は、従来でも
同様に行われる。但し、メモリライト要求時にキャツシ
ュヒツトが判定された場合の動作は、キャツシュヒツト
判定によりキャッシュデータメモリだけでなく主メモリ
にもライトデータを書込むライトスル一方式を適用する
場合には少し異なる。これは、ミニキャッシュモードに
おいてメモリライトアクセスを行おうとすると、主メモ
リ20への書込みも発生してしまうためである。
Note that the above-mentioned operation in response to the catch hit/miss determination result of the catch hit/miss determination circuit 44 is performed in the same manner as in the conventional case. However, the operation when a cache hit is determined at the time of a memory write request is slightly different when applying the write-through method in which write data is written not only to the cache data memory but also to the main memory based on the cache hit determination. This is because when attempting to perform memory write access in the mini-cache mode, writing to the main memory 20 also occurs.

そこで本実施例では、モードレジスタ43に設定されて
いるモード情報Mを制御部45にも導き、同情報Mによ
ってミニキャッシュモードが指定されている場合には、
キャツシュヒツト/ミス判定回路44によって一義的に
キャツシュヒツトが判定されても、メモリライト要求・
時には主メモリ20への書込みを発生させないようにし
ている。
Therefore, in this embodiment, the mode information M set in the mode register 43 is also led to the control unit 45, and when the mini-cache mode is specified by the information M,
Even if the cache hit/miss determination circuit 44 uniquely determines that there is a cache hit, the memory write request/miss
At times, writing to the main memory 20 is prevented from occurring.

[発明の効果] 以上詳述したようにこの発明によれば、モード設定手段
に設定する情報を切替えることで、キャッシュメモリ装
置の動作モードを、メモリアドレスをもとにキャツシュ
ヒツト/ミスを判定してその判定結果に基づく複雑な動
作を行うキャッシュメモリ装置本来の動作モード(第1
モード)と、メモリアドレスに無関係に常時キャツシュ
ヒツト状態の単純な動作を行う動作モード(第2モード
)とに切り分けることができるので、この切り分けた状
態でそれぞれテストを行うことで、キャッシュメモリ装
置を実装したままで、キャッシュメモリ装置の主要部分
(主要機能部分)の不具合かそれ以外の不具合かを簡単
に判別することができる。
[Effects of the Invention] As described in detail above, according to the present invention, by switching the information set in the mode setting means, the operation mode of the cache memory device can be determined based on the memory address as to cache hit/miss. The cache memory device's original operating mode (first
The cache memory device can be implemented by testing in each of these separate states. It is possible to easily determine whether the problem is in the main part (main functional part) of the cache memory device or something else.

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

第1図はこの発明の一実施例を示すブロック構成図であ
る。 10・・・CPU、20・・・主メモリ、31・・・ア
ドレスバス、32・・・データバス、33・・・コント
ロールバス、40・・・キャッシュメモリ装置、4■・
・・キャッシュデータメモリ、42・・・キャッシュタ
グメモリ、43・・・モードレジスタ、44・・・ヒツ
ト/ミス判定回路、45・・・制御部、46・・・ビジ
ィ/レディ制御回路。 出願人代理人 弁理士 鈴江′武彦
FIG. 1 is a block diagram showing an embodiment of the present invention. DESCRIPTION OF SYMBOLS 10... CPU, 20... Main memory, 31... Address bus, 32... Data bus, 33... Control bus, 40... Cache memory device, 4■.
. . . Cache data memory, 42 . . . Cache tag memory, 43 . . . Mode register, 44 . . Hit/miss determination circuit, 45 . Applicant's agent Patent attorney Takehiko Suzue

Claims (1)

【特許請求の範囲】 主メモリの記憶内容の一部の写しが置かれるキャッシュ
データメモリを有するキャッシュメモリ装置を備えた情
報処理装置において、 上記キャッシュメモリ装置に、上記キャッシュメモリ装
置が通常に動作する第1モードを指示する第1モード情
報および上記キャッシュメモリ装置がキャッシュヒット
時だけの動作を行う第2モードを指示する第2モード情
報のいずれかが設定されるモード設定手段と、このモー
ド設定手段に上記第1モード情報が設定されている場合
には上記主メモリをアクセスするためのメモリアドレス
に応じてキャッシュヒット/ミスを判定する通常動作を
行い、上記モード設定手段に上記第2モード情報が設定
されている場合には一義的にキャッシュヒットを判定す
る特殊動作を行うキャッシュヒット/ミス判定手段とを
設け、 上記モード設定手段に設定される情報を切替え、上記キ
ャッシュメモリ装置を、上記キャッシュヒット/ミス判
定手段の通常動作に伴う第1モードまたは上記キャッシ
ュヒット/ミス判定手段の特殊動作に伴う第2モードに
切替えて動作させた状態で、上記情報処理装置の動作テ
ストを行うようにしたことを特徴とするキャッシュメモ
リ制御方式。
[Scope of Claims] An information processing device including a cache memory device having a cache data memory in which a copy of a part of the stored contents of a main memory is placed, wherein the cache memory device normally operates in the cache memory device. a mode setting means in which either first mode information instructing a first mode and second mode information instructing a second mode in which the cache memory device operates only when a cache hit is set; and the mode setting means When the first mode information is set in the mode setting means, a normal operation is performed to determine cache hit/miss according to the memory address for accessing the main memory, and the second mode information is set in the mode setting means. A cache hit/miss determination means is provided which performs a special operation to uniquely determine a cache hit when the mode setting means is set, and the information set in the mode setting means is switched, and the cache memory device is configured to perform a special operation to uniquely determine a cache hit. An operation test of the information processing apparatus is performed while the information processing apparatus is operated in a first mode associated with a normal operation of the cache hit/miss determination means or a second mode associated with a special operation of the cache hit/miss determination means. A cache memory control method featuring:
JP63300904A 1988-11-30 1988-11-30 Cache memory control system Pending JPH02148241A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63300904A JPH02148241A (en) 1988-11-30 1988-11-30 Cache memory control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63300904A JPH02148241A (en) 1988-11-30 1988-11-30 Cache memory control system

Publications (1)

Publication Number Publication Date
JPH02148241A true JPH02148241A (en) 1990-06-07

Family

ID=17890528

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63300904A Pending JPH02148241A (en) 1988-11-30 1988-11-30 Cache memory control system

Country Status (1)

Country Link
JP (1) JPH02148241A (en)

Similar Documents

Publication Publication Date Title
US4357656A (en) Method and apparatus for disabling and diagnosing cache memory storage locations
JPS6117025B2 (en)
JPH07200510A (en) Processor interface chip for double microprocessor-type processing system
US20030126515A1 (en) Automatic testing for multi-core architecture
US5363502A (en) Hot stand-by method and computer system for implementing hot stand-by method
US7096389B2 (en) System and method for dynamically moving checksums to different memory locations
JP3192664B2 (en) Cache memory system and cache memory controller
KR20200123799A (en) Apparatus and method for accessing metadata when debugging a device
JPH02148241A (en) Cache memory control system
JP3239935B2 (en) Tightly-coupled multiprocessor system control method, tightly-coupled multiprocessor system, and recording medium therefor
EP0128353A2 (en) Error recovery of non-store-through cache
JPS5834856B2 (en) Kiokuseigiyosouchi
JP2919457B1 (en) Duplexing device I / O control method and program recording medium therefor
JPH11237959A (en) Multiple writing storage device
JP2000305840A (en) Cache memory and its fault detection method
JP2791319B2 (en) Data processing device
JPH0635747A (en) Debug supporting device
US6317857B1 (en) System and method for utilizing checksums to recover data
JP2817458B2 (en) Disk cache re-online system
JPS63129440A (en) Store through buffer device
JP2002007154A (en) Information processor
JPH08221270A (en) Data processor
JPH06250933A (en) Access control method for information processor and main storage
JPH03225529A (en) Microprocessor
KR20000028207A (en) Method for using cache of main process board in switching system