[go: up one dir, main page]

JPS6366647A - Inhibiting circuit for replacement of cache memory - Google Patents

Inhibiting circuit for replacement of cache memory

Info

Publication number
JPS6366647A
JPS6366647A JP61211299A JP21129986A JPS6366647A JP S6366647 A JPS6366647 A JP S6366647A JP 61211299 A JP61211299 A JP 61211299A JP 21129986 A JP21129986 A JP 21129986A JP S6366647 A JPS6366647 A JP S6366647A
Authority
JP
Japan
Prior art keywords
cache memory
data
processor
memory
address
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.)
Granted
Application number
JP61211299A
Other languages
Japanese (ja)
Other versions
JPH0528413B2 (en
Inventor
Kazuyasu Nonomura
野々村 一泰
Takeshi Murata
雄志 村田
Takahito Noda
野田 敬人
Yuji Kamisaka
神阪 裕士
Kenichi Abo
阿保 憲一
Masayoshi Takei
武居 正善
Riyouichi Nishimachi
西町 良市
Yasutomo Sakurai
康智 桜井
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 JP61211299A priority Critical patent/JPS6366647A/en
Publication of JPS6366647A publication Critical patent/JPS6366647A/en
Publication of JPH0528413B2 publication Critical patent/JPH0528413B2/ja
Granted legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】本公報は電子出願前の出願データであるた
め要約のデータは記録されません。
(57) [Abstract] This bulletin contains application data before electronic filing, so abstract data is not recorded.

Description

【発明の詳細な説明】 〔概要〕 複数のプロセッサが夫々専用のキャッシュメモリを備え
、主記憶のアクセスを行う装置では、他のプロセッサが
主記憶の書替えを行った時、キャッシュメモリのデータ
を一致させるため、キャッシュメモリの書替えを指示す
る監視回路を持っているが、このため障害調査等を行う
際、他のプロセッサがキャッシュメモリを読出して、主
記憶に書込むと、キャッシュメモリの書替えが行われ、
データが破壊されることがあるが、この書替えを禁止す
る回路を設け、障害原因調査を容易とした。
[Detailed Description of the Invention] [Summary] In a device in which a plurality of processors each have a dedicated cache memory and access the main memory, when another processor rewrites the main memory, the data in the cache memory is made to match. Therefore, when investigating a fault, etc., when another processor reads the cache memory and writes it to main memory, the cache memory is not rewritten. I,
Although data may be destroyed, a circuit was installed to prohibit this rewriting, making it easier to investigate the cause of the failure.

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

本発明は複数のプロセッサが共通バスを介して主記憶の
アクセスと相互の通信を行う情報処理装置に係り、特に
各プロセッサが夫々キャッシュメモリを独立に備えてい
る場合に、キャッシュメモリ内のデータ収集を行う際の
キャッシュメモリ内のデータ更新を阻止するキャッシュ
メモリ更新禁止回路に関する。
The present invention relates to an information processing device in which a plurality of processors access main memory and communicate with each other via a common bus, and in particular, when each processor is independently equipped with a cache memory, data collection in the cache memory is performed. The present invention relates to a cache memory update prohibition circuit that prevents data update in a cache memory when performing a cache memory update.

独立にキャッシュメモリを備えた複数のプロセッサが、
共通バスを介して主記憶アクセスを行って与えられたジ
ョブを遂行する、例えばオフィスコンピュータの如き情
報処理装置が多くなってきている。
Multiple processors with independent cache memory
2. Description of the Related Art Information processing apparatuses, such as office computers, that access main memory via a common bus to perform a given job are becoming more and more popular.

と、二ろで、キャッシュメモリを備えたプロセッサは、
データを読出す場合主記憶をアクセスするアドレスを送
出し、キャッシュメモリに該当するアドレスがあれば、
キャッシュメモリよりデータが読出され、該当しなけれ
ばキャッシュメモリが主記憶からデータを取り込み、し
かる後このデータが続出されてプロセッサに供給される
, a processor with a cache memory is
When reading data, send the address to access the main memory, and if there is a corresponding address in the cache memory,
Data is read from the cache memory, and if the data does not match, the cache memory takes in the data from the main memory, and then this data is successively retrieved and supplied to the processor.

又、主記憶にデータを書込む場合も同様で、一旦キャッ
シュメモリにデータが書込まれ、その都度主記憶にキャ
ッシュメモリから書込まれるか、或る程度まとまってか
ら書込まれている。
The same goes for writing data to the main memory; data is once written to the cache memory, and then written to the main memory each time from the cache memory, or after being written in a certain amount of data.

従って、主記憶に存在するデータが、常に各キャッシュ
メモリ内のデータと一致しているという保証は無い。こ
のため、或るプロセッサと、そのキャッシュメモリ等に
障害が発生した時、キャッシュメモリ内のデータを破壊
することなく、主記憶に転送させ得ることが必要である
Therefore, there is no guarantee that the data existing in the main memory always matches the data in each cache memory. Therefore, when a failure occurs in a certain processor and its cache memory, it is necessary to be able to transfer the data in the cache memory to the main memory without destroying the data.

〔従来の技術〕[Conventional technology]

第2図は従来の技術を説明するブロック図である。 FIG. 2 is a block diagram illustrating a conventional technique.

キャッシュメモリ2を備えたプロセッサ3はキャッシュ
メモリ2にアドレスを送出してデータの授受を行う。キ
ャッシュメモリ2に存在しないデータは、キャッシュメ
モリ2がアドレスバス10とデータバス1)を使用して
、主記憶1をアクセスして取り込み、プロセッサ3に送
出する。
A processor 3 equipped with a cache memory 2 sends an address to the cache memory 2 to exchange data. The cache memory 2 uses the address bus 10 and the data bus 1 to access and take in data that does not exist in the cache memory 2, and sends it to the processor 3.

又キャッシュメモリ2に書込まれたデータは、その都度
又は或る程度まとまった時点で、キャッシュメモリ2が
主記憶1をアクセスして書込む。
Further, the cache memory 2 accesses the main memory 1 and writes the data written to the cache memory 2 each time or when the data is collected to a certain extent.

プロセッサ9も主記憶1から必要なデータを図示省略し
たキャッシュメモリに格納しており、必要に応じて生能
@1のデータを書替える。
The processor 9 also stores necessary data from the main memory 1 in a cache memory (not shown), and rewrites the data in the raw memory@1 as necessary.

主記憶1のデータが書替えられた場合、プロセッサ3又
はプロセッサ9は、夫々が備えるキャッシュメモリ内に
主記憶1からコピーしてあるデータが異なることとなる
ため、夫々他のプロセッサの主記憶1のデータ書替え動
作を監視しており、主記憶1のデータが書替えられると
、キャッシュメモリの同一アドレスのデータ書替え動作
を行う。
When the data in the main memory 1 is rewritten, the data copied from the main memory 1 to the cache memory of each processor 3 or processor 9 will be different, so The data rewriting operation is monitored, and when the data in the main memory 1 is rewritten, the data rewriting operation at the same address in the cache memory is performed.

監視回路4は書込みデータレジスタ(WDR)5と、書
込アドレスレジスタ(WAR)6と、タグメモリ7と、
比較回路8とを備え、プロセッサ9の主記憶1に対する
データ書替え動作を監視している。
The monitoring circuit 4 includes a write data register (WDR) 5, a write address register (WAR) 6, a tag memory 7,
The comparison circuit 8 monitors the data rewriting operation of the processor 9 in the main memory 1.

即ち、タグメモリ7にはキャッシュメモリ2が主記憶1
からコピーしたデータの主記憶1のアドレスを保持して
おり、書込みアドレスレジスタ6が取り込んで送出した
プロセッサ9の主記憶1をアクセスするアドレスと、タ
グメモリ7の保持するアドレスとを比較回路8で比較し
、一致した場合■を経てキャッシュメモリ2に書込み許
可信号を送出する。
That is, the cache memory 2 is the main memory 1 in the tag memory 7.
It holds the address of the main memory 1 of the data copied from the write address register 6, and compares the address to access the main memory 1 of the processor 9 taken in and sent by the write address register 6 with the address held in the tag memory 7 by a comparison circuit 8. If they match, a write permission signal is sent to the cache memory 2 through step (3).

キャッシュメモリ2は書込みアドレスレジスタ6が■を
経て送出するアドレスで、書込みデータレジスタ5が■
を経て送出するデータをキャッシュメモリ2内に取り込
む。
The cache memory 2 is the address sent by the write address register 6 via ■, and the address sent by the write data register 5 is
The data to be sent out is taken into the cache memory 2.

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

上記の如く、従来は監視回路4が他のプロセッサ9が主
記憶1のデータを書替えた場合、キャッシュメモリ2の
同一アドレスのデータの書替え許可信号を送出するため
、例えばプロセッサ3及びキャッシュメモリ2の障害検
出等でキャッシュメモリ2の内容をプロセッサ9が読出
し、主記憶1の或る領域に書込む動作を行った時、主記
憶1の或る領域のアドレスと同一アドレスがタグメモリ
7に存在すると、監視回路4はキャッシュメモリ2に、
このアドレスのデータを再度キャッシュメモリ2に書込
みすることを許可することとなる。
As described above, conventionally, when another processor 9 rewrites data in the main memory 1, the monitoring circuit 4 sends a rewrite permission signal for data at the same address in the cache memory 2. When the processor 9 reads the contents of the cache memory 2 and writes them to a certain area of the main memory 1 in order to detect a fault, etc., if the same address as the address of a certain area of the main memory 1 exists in the tag memory 7. , the monitoring circuit 4 stores in the cache memory 2,
The data at this address is permitted to be written into the cache memory 2 again.

第3図はキャッシュメモリ2のデータを主記憶1に書込
む場合の一例を説明する図である。
FIG. 3 is a diagram illustrating an example of writing data in the cache memory 2 to the main memory 1.

キャッシュメモリ2には主記憶1の■で示す範囲がコピ
ーされているものとする。このコピーはキャッシュメモ
リ2のハードウェアが実施するため、プロセッサ9は、
このコピーされている■の範囲は知らない。
It is assumed that the range shown by ■ in the main memory 1 has been copied to the cache memory 2. Since this copying is performed by the hardware of the cache memory 2, the processor 9
I don't know the extent of this copied ■.

従って、プロセッサ9がキャッシュメモリ2のデータを
読出し、主記憶1に書込む場合、例えば障害検出のため
予め用意した主記憶lの特定領域■に書込むが、この領
域■の一部の領域■のデータがキャッシュメモリ2にコ
ピーされていた場合、領域■のアドレスと同一のキャッ
シュメモリ2の領域■のデータが書替えられることとな
る。
Therefore, when the processor 9 reads data from the cache memory 2 and writes it to the main memory 1, it writes to a specific area ■ of the main memory l prepared in advance for failure detection, for example, but a part of this area ■ If the data in the cache memory 2 has been copied to the cache memory 2, the data in the area ■ of the cache memory 2 that is the same as the address in the area ■ will be rewritten.

この領域■に書込まれたデータはキャッシュメモリ2の
領域■のデータであるため、キャッシュメモリ2の領域
■のデータは破壊されてしまうという問題がある。
Since the data written in this area (2) is the data in area (2) of the cache memory 2, there is a problem in that the data in area (2) of the cache memory 2 is destroyed.

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

第1図は本発明の一実施例を示す回路のブロック図であ
る。
FIG. 1 is a block diagram of a circuit showing one embodiment of the present invention.

第1図は第2図にデコーダ12とフラグレジスタ13と
NOT回路14及びAND回路15を追加したものであ
る。
In FIG. 1, a decoder 12, a flag register 13, a NOT circuit 14, and an AND circuit 15 are added to FIG.

デコーダ12はプロセッサ9が送出するフラグレジスタ
13のアドレスをデコードして、フラグレジスタ13を
イネーブルとする。フラグレジスタ13はプロセッサ9
が送出するビットによりセットされ、“l”をNOT回
路14に送出する。
The decoder 12 decodes the address of the flag register 13 sent by the processor 9 and enables the flag register 13. The flag register 13 is the processor 9
is set by the bit sent by , and sends “l” to the NOT circuit 14 .

NOT回路14は“O”を送出するため、AND回路1
5は監視回路4が■を経て送出する書込み許可信号を阻
止し、キャッシュメモリ2が監視回路4の■を経て送出
する書込みデータの取り込みを禁止する。
Since the NOT circuit 14 sends “O”, the AND circuit 1
5 blocks the write permission signal sent by the monitoring circuit 4 via ``2'', and prohibits the cache memory 2 from taking in the write data sent from the monitoring circuit 4 via ``2''.

〔作用〕[Effect]

フラグレジスタ13はNOT回路14とAND回路15
と共に、監視回路4が送出する書込み許可信号を阻止し
、プロセッサ9がキャッシュメモIJ 2のデータを主
記憶1に書込む際に、該書込みデータをキャッシュメモ
リ2が取り込むことを禁止するため、キャッシュメモリ
2のデータは破壊されることが無く、障害等の探索を容
易とすると共に、プロセッサ3の処理すべき仕事をプロ
セッサ9が代行することで、縮退運転を行うことが出来
る。
The flag register 13 has a NOT circuit 14 and an AND circuit 15.
At the same time, the write permission signal sent by the monitoring circuit 4 is blocked, and when the processor 9 writes data of the cache memo IJ 2 to the main memory 1, the cache memory 2 is prohibited from taking in the written data. The data in the memory 2 is not destroyed, making it easy to search for failures, etc., and by having the processor 9 take over the work that should be done by the processor 3, degenerate operation can be performed.

〔実施例〕〔Example〕

第1図において、フラグレジスタ13はセットされてい
ない時、“0″をNOT回路14に送出している。従っ
て、AND回路15は監視回路4が■を経て送出する書
込み許可信号をキャッシュメモリ2に送出している。
In FIG. 1, the flag register 13 sends "0" to the NOT circuit 14 when it is not set. Therefore, the AND circuit 15 sends to the cache memory 2 the write permission signal that the monitoring circuit 4 sends via (2).

このため、キャッシュメモリ2は第2図と同様に動作す
ることが出来る。
Therefore, the cache memory 2 can operate in the same manner as shown in FIG.

障害探索等のためオペレータがプロセッサ9に指示した
時、プロセッサ9はアドレスバス10にフラグレジスタ
13のアドレスを送出すると共に、データバス1)にフ
ラグレジスタ13をセットするビットを送出する。デコ
ーダ12はアドレスへ゛ス10を経て入力するフラグレ
ジスタ13のアドレスをデコードし、フラグレジスタ1
3をイネーブルとする。
When an operator instructs the processor 9 to search for a fault, etc., the processor 9 sends the address of the flag register 13 to the address bus 10, and also sends a bit to set the flag register 13 to the data bus 1). The decoder 12 decodes the address of the flag register 13 inputted via the address address 10, and
3 is enabled.

従うて、フラグレジスタ13はセットされ、“1″をN
OT回路14に送出するため、N OT回路14はAN
D回路15に“0”を送出する。従って、AND回路1
5は監視回路4が■を経て送出する書込み許可信号を阻
止するため、キャッシュメモリ2はプロセッサ9が主記
憶1にデータの書込みを行っても、このデータの取り込
みを行わない。
Therefore, the flag register 13 is set and "1" is set to N.
In order to send to the OT circuit 14, the NOT circuit 14 is connected to the AN
Sends “0” to the D circuit 15. Therefore, AND circuit 1
5 blocks the write permission signal sent by the monitoring circuit 4 via 3, so that even if the processor 9 writes data to the main memory 1, the cache memory 2 does not take in the data.

従って、プロセッサ9はキャッシュメモリ2の内容を破
壊されること無く、総て主記憶1に書込むことが出来る
Therefore, the processor 9 can write all the contents of the cache memory 2 to the main memory 1 without being destroyed.

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

以上説明した如く、本発明はキャッシュメモリの内容を
他のプロセッサが続出して、主記憶に格納しても、キャ
ッシュメモリのデータが破壊されないため、障害探索等
を行う際状況把握を容易とし、且つ正常なプロセッサが
障害プロセッサの処理を代行することで、縮退運転を可
能とし、信頼性の高い装置を提供することが出来る。
As explained above, in the present invention, even if the contents of the cache memory are successively accessed by other processors and stored in the main memory, the data in the cache memory is not destroyed. In addition, by allowing a normal processor to perform processing for a faulty processor, degenerate operation is possible and a highly reliable device can be provided.

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

第1図は本発明の一実施例を示す回路のブロック図、 第2図は従来の技術を説明するブロック図、第3図はキ
ャッシュメモリのデータを主記憶に書込む場合の一例を
説明する図である。 図において、 1は主記憶     2はキャッシュメモリ、3.9は
プロセッサ、 4は監視回路、5は書込みデータレジス
タ、 6は書込みアドレスレジスタ、 7はタグメモリ、  8は比較回路、 10はアドレスバス、1)はデータバス、12はデコー
ダ、   13はフラグレジスタ、14はNOT回路、
  15はAND回路である。 キャッシュメ七1ノのヂニ2を主記憶(二名も尤・暗合
の一劉と児ギす;口 番 3 口
FIG. 1 is a block diagram of a circuit showing an embodiment of the present invention, FIG. 2 is a block diagram explaining a conventional technique, and FIG. 3 is an example of writing data from cache memory to main memory. It is a diagram. In the figure, 1 is the main memory, 2 is the cache memory, 3.9 is the processor, 4 is the monitoring circuit, 5 is the write data register, 6 is the write address register, 7 is the tag memory, 8 is the comparison circuit, 10 is the address bus, 1) is a data bus, 12 is a decoder, 13 is a flag register, 14 is a NOT circuit,
15 is an AND circuit. The main memory is Gini 2 of Cashme 71 (two people also have a special combination of Ichiryu and Kogi; number 3)

Claims (1)

【特許請求の範囲】 複数のプロセッサ(3)が夫々専用のキャッシュメモリ
(2)と、他のプロセッサ(9)が主記憶(1)の書替
えを行うことを監視し、該キャッシュメモリ(2)にコ
ピーしてあるデータと同一アドレスの主記憶(1)のデ
ータ書替えが行われた場合、該キャッシュメモリ(2)
に書替え許可信号を与える監視回路(4)とを備え、共
通バスを介して主記憶(1)のアクセスを行う装置にお
いて、 或るプロセッサ(3)のキャッシュメモリ(2)の書替
え禁止を指示するフラグを他のプロセッサ(9)がセッ
トするフラグレジスタ(13)と、 該フラグレジスタ(13)のアドレスをデコードして該
フラグレジスタ(13)をイネーブルとするデコーダ(
12)と、 前記監視回路(4)が送出する書替え許可信号を阻止す
る手段(14)(15)とを設け、 他のプロセッサ(9)が前記フラグレジスタ(13)の
アドレスを送出して、該フラグレジスタ(13)にフラ
グをセットしたことにより、或るプロセッサ(3)の備
える前記監視回路(4)の送出する該書替え許可信号が
阻止されることを特徴とするキャッシュメモリ更新禁止
回路。
[Claims] A plurality of processors (3) each have a dedicated cache memory (2), and another processor (9) monitors rewriting of the main memory (1), and the cache memory (2) When data is rewritten in main memory (1) at the same address as the data copied to the cache memory (2),
In a device that accesses the main memory (1) via a common bus, the monitoring circuit (4) provides a rewrite permission signal to a processor (3), and instructs the cache memory (2) of a certain processor (3) to be prohibited from being rewritten. A flag register (13) whose flag is set by another processor (9), and a decoder (13) which decodes the address of the flag register (13) and enables the flag register (13).
12), and means (14) and (15) for blocking the rewrite permission signal sent by the monitoring circuit (4), and the other processor (9) sends out the address of the flag register (13), A cache memory update inhibition circuit characterized in that by setting a flag in the flag register (13), the rewriting permission signal sent from the monitoring circuit (4) included in a certain processor (3) is blocked.
JP61211299A 1986-09-08 1986-09-08 Inhibiting circuit for replacement of cache memory Granted JPS6366647A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61211299A JPS6366647A (en) 1986-09-08 1986-09-08 Inhibiting circuit for replacement of cache memory

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61211299A JPS6366647A (en) 1986-09-08 1986-09-08 Inhibiting circuit for replacement of cache memory

Publications (2)

Publication Number Publication Date
JPS6366647A true JPS6366647A (en) 1988-03-25
JPH0528413B2 JPH0528413B2 (en) 1993-04-26

Family

ID=16603640

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61211299A Granted JPS6366647A (en) 1986-09-08 1986-09-08 Inhibiting circuit for replacement of cache memory

Country Status (1)

Country Link
JP (1) JPS6366647A (en)

Also Published As

Publication number Publication date
JPH0528413B2 (en) 1993-04-26

Similar Documents

Publication Publication Date Title
JPS60124754A (en) Buffer storage control system
JP4047281B2 (en) How to synchronize cache memory with main memory
JPS6366647A (en) Inhibiting circuit for replacement of cache memory
JPH0217550A (en) Trouble processing system for multiprocessor system
JPS6329859A (en) Memory protection circuit
JPS60142759A (en) Error detection system of lru deciding storage device
JPS58201157A (en) Control circuit of bank memory
JPS6250863B2 (en)
JPS60129860A (en) Detection system for addressing exception
JPH08129508A (en) Computer system and its shared memory control method
JPS63278160A (en) Buffer invalidation processing device test method
JPH0496157A (en) Main memory data protective circuit
JPH0341538A (en) Main storage device
JPS59139199A (en) Protecting method of storage
JPS63148348A (en) Data write back system
JPS59200366A (en) Lock control system
JPH05165658A (en) Information processing system
JPS63143659A (en) Local memory control system
JPS6011951A (en) Alternate memory control method
JPH01300357A (en) Electronic disk device
JPS61208150A (en) Collecting device for fault data
JPS638849A (en) Cash memory control method
JPS62154039A (en) Buffer memory control method
JPH0387949A (en) Cache memory controller
JPH0336650A (en) Memory protecting system

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees