JPH0218643A - Cache memory control circuit - Google Patents

Cache memory control circuit

Info

Publication number
JPH0218643A
JPH0218643A JP63169844A JP16984488A JPH0218643A JP H0218643 A JPH0218643 A JP H0218643A JP 63169844 A JP63169844 A JP 63169844A JP 16984488 A JP16984488 A JP 16984488A JP H0218643 A JPH0218643 A JP H0218643A
Authority
JP
Japan
Prior art keywords
processor
memory
cache memory
circuit
control circuit
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
JP63169844A
Other languages
Japanese (ja)
Other versions
JP2656558B2 (en
Inventor
Shunichi Takase
俊一 高瀬
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.)
NEC Ibaraki Ltd
Original Assignee
NEC Ibaraki 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 NEC Ibaraki Ltd filed Critical NEC Ibaraki Ltd
Priority to JP63169844A priority Critical patent/JP2656558B2/en
Publication of JPH0218643A publication Critical patent/JPH0218643A/en
Application granted granted Critical
Publication of JP2656558B2 publication Critical patent/JP2656558B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To minimize the discontinuation of the processor working and to improve the processing ability by adding a circuit to a cache memory control circuit to detect the accesses given to a cache memory of the processor and a main memory. CONSTITUTION:A 1st detecting means 6 detects that at least a processor 2 out of two processors 1 and 2 carried out a writing job to a main memory 3. While a 2nd detecting means 4 detects that the processor 1 tries to give accesses to a cache memory 5 attached to the processor 1 as well as to the memory 3. Then a suppressing means 8 stops the working of the processor 1 when the detection output is obtained from both means 6 and 4. As a result, the working of the processor 1 can be discontinued only when the processor 1 containing the memory 5 tries to give an access to the memory 5 or the memory 3. Thus it is possible to minimize the discontinuation of the processor working and to improve the processing ability.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はキャッシュメモリ制御回路に関し、特に他のプ
ロセッサが主記憶装置に書込みを行なった場合に、キャ
ッシュメモリを持っているプロセッサの動作を止めて、
キャッシュメモリの内容の一致処理を行なうキャッシュ
メモリ制御回路に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a cache memory control circuit, and particularly to a cache memory control circuit that stops the operation of a processor having a cache memory when another processor writes to the main memory. hand,
The present invention relates to a cache memory control circuit that performs matching processing of cache memory contents.

〔従来の技術〕[Conventional technology]

従来、この種のキャッシュメモリ制御回路は、複数のプ
ロセッサとこれらの何れのプロセッサからもアクセス可
能な主記憶装置とを有するプロセッサシステムにおいて
、プロセッサに付属するキャッシュメモリに対応して検
出回路を有していて、他のプロセッサが主記憶装置に書
込みを実行したことを検出するようになっており、検出
回路が書込みを検出すると、検出回路に対応するプロセ
ッサをそのプロセッサの動作がメモリアクセスであるか
、内部処理であるかに拘らず強制的に停止させるように
なっている。
Conventionally, this type of cache memory control circuit has a detection circuit corresponding to a cache memory attached to a processor in a processor system having a plurality of processors and a main memory that can be accessed by any of these processors. When the detection circuit detects a write, the processor corresponding to the detection circuit detects whether the operation of that processor is a memory access or not. , it is forcibly stopped regardless of whether it is an internal process or not.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のキャッシュメモリ制御回路では、キャッ
シュメモリを有するプロセッサがメモリアクセスをしよ
うとすることを検出する検出回路がないため、このプロ
セッサの動作がメモリアクセスであるか内部処理である
かにかかわらす、動作を強制的に止めてしまう。このな
め、キャッシュメモリの内容に影響されないプロセッサ
の内部処理も止められてしまうので、プロセッサの処理
能力が低下してしまうという欠点がある。
In the conventional cache memory control circuit described above, there is no detection circuit that detects when a processor with cache memory attempts to access memory, so regardless of whether the processor's operation is memory access or internal processing. , the operation is forcibly stopped. This has the drawback that the internal processing of the processor that is not affected by the contents of the cache memory is also stopped, resulting in a reduction in the processing capacity of the processor.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のキャッシュメモリ制御回路は、共通の主記憶装
置にアクセス可能な複数のプロセッサのうちのキャッシ
ュメモリを付属するプロセッサにおいて、他の前記プロ
セッサのうちの少なくとも1台が前記主記憶装置に書込
みを実行したことを検出する第1の検出手段と、このキ
ャッシュメモリを付属するプロセッサが付属するキャッ
シュメモリおよび主記憶装置にアクセスしようとするこ
とを検出する第2の検出手段と、前記第1の検出手段か
らの検出出力と前記第2の検出手段からの検出出力とが
得られたときに前記キャッシュメモリを付属するプロセ
ッサの動作を停止させる抑止手段とを有することにより
構成される。
In the cache memory control circuit of the present invention, in a processor attached to a cache memory among a plurality of processors that can access a common main memory, at least one of the other processors writes data to the main memory. a first detecting means for detecting that the cache memory has been executed; a second detecting means for detecting that the attached processor attempts to access the attached cache memory and the main storage device; and a suppressing means for stopping the operation of a processor attached to the cache memory when a detection output from the second detection means and a detection output from the second detection means are obtained.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例のブロック図で、2台のプロ
セッサのうちの1台のプロセッサにキャッシュメモリが
付属している場合を示している。
FIG. 1 is a block diagram of an embodiment of the present invention, showing a case where one of two processors is attached to a cache memory.

図において、プロセッサ1および2は共有の主記憶装置
3から読出した命令の内容により処理を実行し、主記憶
装置3にデータの書込み指示や読出し指示を行なうプロ
セッサである。キャッシュメモリ制御回路11は検出回
路4および6、クリア回路7、抑止回路8およびメモリ
アクセス制御回路9から構成されていて、検出回路4は
プロセッサ]から実行命令の信号を受け、それがキャッ
シュメモリ5や主記憶装置3をアクセスする命令である
かとうかを判断する回路で、キャッシュメモリ5はプロ
セッサ1に属し、検出回路6はプロセッサ2が主記憶装
置3に書込みを実行したかどうかを検出する回路である
。クリア回路7は検出回路6から検出信号を受けたとき
に、キャッシュメモリ5に対して、キャッシュメモリの
クリア動作を制御する回路である。抑止回路8は検出回
路4でキャッシュメモリ5または主記憶装置3をアクセ
スする命令であることを検出し、さらに検出回路6てプ
ロセッサ2が主記憶装置3に対して書込みを行なってい
ることを検出した場合に、プロセッサ1のクロック入力
の抑止指示を行なう回路で、アンド回路10は抑止回路
8から出力された信号によりプロセッサ1へのクロック
の入力を抑える回路である。メモリアクセス制御回路9
はプロセッサ1からメモリアクセスの指示を受け、アド
レスやデータを主記憶装置3やキャッシュメモリ5に対
して送受信するための制御を行なう。コマンドバス10
0.データバス101およびアドレスバス102はプロ
セッサ1.プロセッサ2および主記憶装置3を結ぶバス
である。抑止信号線103は抑止回路8からの出力線、
メモリアクセス要求信号線104はプロセッサ2のメモ
リアクセス要求信号の出力線、メモリアクセス許可信号
線1.06はメモリアクセス制御回路9へのメモリアク
セスの許可を与える信号線、メモリアクセス要求信号線
1−07はメモリアクセス制御回路9からのメモリアク
セスの要求を行なう信号線、メモリアクセス要求信号線
1−08はプロセッサ1からのメモリアクセス要求を行
なう信号線、メモリアクセス許可信号線109はプロセ
ッサ1へのメモリアクセスの許可を与える信号線である
In the figure, processors 1 and 2 are processors that execute processing according to the contents of instructions read from a shared main storage device 3 and instruct the main storage device 3 to write and read data. The cache memory control circuit 11 is composed of detection circuits 4 and 6, a clear circuit 7, an inhibition circuit 8, and a memory access control circuit 9. The detection circuit 4 receives an execution command signal from the processor, and the cache memory 5 The cache memory 5 belongs to the processor 1, and the detection circuit 6 is a circuit that detects whether the processor 2 has executed writing to the main memory 3. It is. The clear circuit 7 is a circuit that controls the cache memory 5 to clear the cache memory when receiving a detection signal from the detection circuit 6. In the suppression circuit 8, the detection circuit 4 detects that the instruction is to access the cache memory 5 or the main memory 3, and the detection circuit 6 detects that the processor 2 is writing to the main memory 3. In this case, the AND circuit 10 is a circuit that instructs the processor 1 to inhibit the clock input. Memory access control circuit 9
receives a memory access instruction from the processor 1, and controls sending and receiving addresses and data to and from the main storage device 3 and the cache memory 5. command bus 10
0. Data bus 101 and address bus 102 are connected to processor 1. This is a bus that connects the processor 2 and the main storage device 3. The inhibition signal line 103 is an output line from the inhibition circuit 8,
The memory access request signal line 104 is an output line for the memory access request signal of the processor 2, the memory access permission signal line 1.06 is a signal line that gives permission for memory access to the memory access control circuit 9, and the memory access request signal line 1- 07 is a signal line for requesting memory access from the memory access control circuit 9, memory access request signal line 1-08 is a signal line for requesting memory access from the processor 1, and memory access permission signal line 109 is a signal line for requesting memory access from the processor 1. This is a signal line that gives permission for memory access.

次に、プロセッサ2が主記憶装置3のある番地にデータ
を書込んな場合のキャッシュメモリ制御の動作について
説明する。プロセッサ2が主記憶装置3に書込みを行な
うために、コマンドバス100  データバス1.01
およびアドレスバス102にそれぞれコマンド、書込み
データおよびアドレスを出力すると、主記憶装置3はコ
マンドバス〕、00に送出されている信号を受取ること
により、アドレスバス102に出ている番地を主犯憶装
置3の番地として、データバス]01の内容を主記憶装
置3に書込む。このとき検出回路6はコマンドバス10
0の信号が書込みコマンドであることを検出していて、
この信号がクリア回路7および抑止回路8に伝えられる
。一方、このときプロセッサ1がメモリ読出しを実行し
ようとすると、検出回路4が読出し信号を検出し、この
検出出力が抑止回路8に伝えられる。抑止回路8は検出
回路4と検出回路6とから共に出力か与−えられること
により、抑止信号を抑止信号線103に出力する。そこ
てアント回路10でクロック信号が抑止され、クロック
がプロセッサ1に入力されなくなり、プロセッサ1の動
作が止められる。プロセッサ1が止まっている間に、プ
ロセッサ2が主記憶装置3に書込みを行なっていること
を検出している検出回F1!16がクリア回路7にクリ
ア指示を出す。クリア回路7はキャッシュメモリの有効
ヒツト部が無効となるように、キャッシュメモリ5に書
込み指示を与える。即ち、そのときのアドレスはプロセ
ッサ2で出力されたアドレスがアドレスバス102とメ
モリアクセス制御回路9とを経由してキャッシュメモリ
5に与えられる。キャッシュメモリ5においてこのアド
レスがヒツトしなならば、キャッシュメモリ5のこのア
ドレスの有効ピッ1〜部が無効となり、ヒツトしなけれ
は一致処理の対象外となるのでそのままの状態となる。
Next, the cache memory control operation when the processor 2 writes data to a certain address in the main memory 3 will be described. In order for the processor 2 to write to the main memory 3, a command bus 100 and a data bus 1.01 are used.
When the command, write data, and address are output to the address bus 102 and the address bus 102, the main memory device 3 receives the signals sent to the command bus], 00, and stores the address appearing on the address bus 102. The contents of the data bus]01 are written to the main memory device 3 as the address. At this time, the detection circuit 6
Detecting that the 0 signal is a write command,
This signal is transmitted to clear circuit 7 and inhibit circuit 8. On the other hand, when the processor 1 attempts to read the memory at this time, the detection circuit 4 detects a read signal, and this detection output is transmitted to the suppression circuit 8. The inhibiting circuit 8 receives outputs from both the detecting circuit 4 and the detecting circuit 6, and outputs a inhibiting signal to the inhibiting signal line 103. Then, the clock signal is suppressed in the ant circuit 10, the clock is no longer input to the processor 1, and the operation of the processor 1 is stopped. While the processor 1 is stopped, the detection circuit F1!16 which detects that the processor 2 is writing to the main memory 3 issues a clear instruction to the clear circuit 7. The clear circuit 7 gives a write instruction to the cache memory 5 so that the valid hit portion of the cache memory becomes invalid. That is, the address at that time is the address output by the processor 2 and is given to the cache memory 5 via the address bus 102 and the memory access control circuit 9. If this address is not hit in the cache memory 5, the valid bits 1 to 1 of this address in the cache memory 5 become invalid, and if it is not hit, it is not subject to matching processing, so the state remains as it is.

クリア回路7の動作が終了すると、抑止回路8に終了か
報告され、アンド回路1oに抑止解除の指示か入り、ク
ロックがプロセッサ]に入力されるようになってキャッ
シュメモリ制御回路の動作が終了する。
When the operation of the clear circuit 7 is completed, the termination is reported to the inhibition circuit 8, an instruction to cancel the inhibition is input to the AND circuit 1o, the clock is input to the processor, and the operation of the cache memory control circuit is completed. .

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

以上説明したように本発明は、キャッシュメモリ制御回
路にプロセッサのキャッシュメモリ、および主記憶装置
へのアクセスを検出する回路を付加することにより、主
記憶装置とキャッシュメモリの内容の一致処理において
、キャッシュメモリを持ったプロセッサがキャッシュメ
モリまたは主記憶装置をアクセスしようとしたときたけ
プロセッサを止めることがてきるので、プロセッサの動
作停止を最小限に抑え処理能力を高める効果がある。
As explained above, the present invention adds a circuit for detecting accesses to the cache memory of the processor and the main memory to the cache memory control circuit, thereby improving the cache memory in the process of matching the contents of the main memory and the cache memory. Since a processor with memory can be stopped just when it attempts to access the cache memory or main memory, it has the effect of minimizing the suspension of processor operation and increasing processing capacity.

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

第1−図は本発明の一実施例のブロック図である。 1.2・・・プロセッサ、3・・・主記憶装置、4,6
・・検出回路、5・・・キャッシュメモリ、7・・・ク
リア回路、8・・・抑止回路、9・・メモリアクセス制
御回路、10・・・アンド回路、11・・・キャッシュ
メモリ制御回路。
FIG. 1 is a block diagram of an embodiment of the present invention. 1.2... Processor, 3... Main storage device, 4, 6
Detection circuit, 5 Cache memory, 7 Clear circuit, 8 Inhibition circuit, 9 Memory access control circuit, 10 AND circuit, 11 Cache memory control circuit.

Claims (1)

【特許請求の範囲】[Claims] 共通の主記憶装置にアクセス可能な複数のプロセッサの
うちのキャッシュメモリを付属するプロセッサにおいて
、このプロセッサを除く前記プロセッサのうちの少なく
とも1台が前記主記憶装置に書込みを実行したことを検
出する第1の検出手段と、このキャッシュメモリを付属
するプロセッサが付属するキャッシュメモリおよび主記
憶装置にアクセスしようとすることを検出する第2の検
出手段と、前記第1の検出手段からの検出出力と前記第
2の検出手段からの検出出力とが得られたときに前記キ
ャッシュメモリを付属するプロセッサの動作を停止させ
る抑止手段とを有することを特徴とするキャッシュメモ
リ制御回路。
In a processor attached to a cache memory among a plurality of processors that can access a common main memory, detecting that at least one of the processors other than this processor has executed writing to the main memory. 1 detection means, a second detection means for detecting that the attached processor attempts to access the attached cache memory and the main storage device, the detection output from the first detection means and the 1. A cache memory control circuit comprising: inhibiting means for stopping the operation of a processor attached to said cache memory when a detection output from said second detecting means is obtained.
JP63169844A 1988-07-06 1988-07-06 Cache memory control circuit Expired - Lifetime JP2656558B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63169844A JP2656558B2 (en) 1988-07-06 1988-07-06 Cache memory control circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63169844A JP2656558B2 (en) 1988-07-06 1988-07-06 Cache memory control circuit

Publications (2)

Publication Number Publication Date
JPH0218643A true JPH0218643A (en) 1990-01-22
JP2656558B2 JP2656558B2 (en) 1997-09-24

Family

ID=15893978

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63169844A Expired - Lifetime JP2656558B2 (en) 1988-07-06 1988-07-06 Cache memory control circuit

Country Status (1)

Country Link
JP (1) JP2656558B2 (en)

Also Published As

Publication number Publication date
JP2656558B2 (en) 1997-09-24

Similar Documents

Publication Publication Date Title
US4858111A (en) Write-back cache system using concurrent address transfers to setup requested address in main memory before dirty miss signal from cache
JPH0285960A (en) Information processing system
JPH01169557A (en) Storage control system for computer
JPH0218643A (en) Cache memory control circuit
JPH01213732A (en) Extended storage system
JP2568017B2 (en) Microprocessor and data processing system using the same
JPH01255035A (en) Processor
JPH03230238A (en) Cache memory control system
JPH05233443A (en) Multiprocessor system
JPH0322073A (en) Data transfer controller
JPH0211931B2 (en)
JPH0384642A (en) Cache memory control system
JPH0724043B2 (en) Data processing device
JPH0630074B2 (en) Processor
JPH06309229A (en) Data processor
JPH058458B2 (en)
JPH041373B2 (en)
JPH02118860A (en) Cache controller
JPS63200251A (en) Cache memory control method
JPH02108139A (en) Cache memory device
JPH08235063A (en) Data processor and cache memory control method
JPH01118944A (en) Cache memory controller
JPH05204845A (en) Data processor and its control method
JPH04316149A (en) Dma processor and information processor
JPH04157543A (en) Cache memory control circuit