Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0452978B2 - - Google Patents
[go: Go Back, main page]

JPH0452978B2 - - Google Patents

Info

Publication number
JPH0452978B2
JPH0452978B2 JP60247759A JP24775985A JPH0452978B2 JP H0452978 B2 JPH0452978 B2 JP H0452978B2 JP 60247759 A JP60247759 A JP 60247759A JP 24775985 A JP24775985 A JP 24775985A JP H0452978 B2 JPH0452978 B2 JP H0452978B2
Authority
JP
Japan
Prior art keywords
central processing
processing unit
buffer invalidation
buffer
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.)
Expired - Lifetime
Application number
JP60247759A
Other languages
Japanese (ja)
Other versions
JPS62107351A (en
Inventor
Takashi Chiba
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 JP60247759A priority Critical patent/JPS62107351A/en
Publication of JPS62107351A publication Critical patent/JPS62107351A/en
Publication of JPH0452978B2 publication Critical patent/JPH0452978B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Memory System Of A Hierarchy Structure (AREA)

Description

【発明の詳細な説明】 〔概要〕 記憶制御装置に、主記憶書込順序が中央処理装
置に正しく伝わるようにするために、バツフア無
効化アドレスの伝播時間を監視する回路を設け、
バツフア無効化処理を効率的に行うための回路を
持つことを容易にする。
[Detailed Description of the Invention] [Summary] In order to ensure that the main memory write order is correctly transmitted to the central processing unit, the storage control device is provided with a circuit that monitors the propagation time of the buffer invalidation address,
To facilitate the provision of a circuit for efficiently performing buffer invalidation processing.

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

本発明は、データ処理装置に係わり、特にシス
テムにキヤツシユ・メモリを内蔵する複数の中央
処理装置がある場合に、例えば記憶制御装置内に
中央処理装置毎の第2のタグやバツフア無効化キ
ユーを持つてバツフア無効化処理を効率的に行
い、且つ或る中央処理装置又はチヤネル処理装置
の主記憶書込順序が他の中央処理装置に正しく反
映させるための手段を提供するものである。
The present invention relates to a data processing device, and in particular, when a system includes a plurality of central processing units each having a built-in cache memory, for example, a second tag or a buffer invalidation queue for each central processing unit is provided in a storage control device. The present invention provides a means for efficiently performing buffer invalidation processing and for correctly reflecting the main memory write order of a certain central processing unit or channel processing unit on another central processing unit.

〔従来技術と問題点〕[Prior art and problems]

記憶制御装置に第2のタグ部やバツフア無効化
キユーを持つと、バツフア無効化アドレスが一定
時間を越えて記憶制御装置内に留まる可能性が生
じ、結果として或る中央処理装置又はチヤネル処
理装置の主記憶書込順序が他の中央処理装置に正
しく反映されない状態が生ずる。このため従来技
術では第2のタグ部及びバツフア無効化キユーを
記憶制御装置内に置くようなことは行われておら
ず、バツフア無効化処理のためにシステムの性能
低下を招いていた。特に近年の1システムにおけ
る中央処理装置の台数の増加や中央処理装置の高
速化によつて逆にバツフア無効化処理による性能
低下が無視出来ない程に大きくなつている。
If the storage controller has a second tag section or a buffer invalidation queue, there is a possibility that the buffer invalidation address will remain in the storage controller for more than a certain period of time, and as a result, a certain central processing unit or channel processing unit A situation arises in which the write order of main memory is not correctly reflected on other central processing units. For this reason, in the prior art, the second tag part and the buffer invalidation queue are not placed in the storage control device, and the buffer invalidation process causes a decrease in system performance. Particularly in recent years, as the number of central processing units in a single system has increased and the speed of central processing units has increased, the performance degradation due to buffer invalidation processing has become so large that it cannot be ignored.

〔発明の目的〕[Purpose of the invention]

本発明は、上記の考察に基づくものであつて、
記憶制御装置にバツフア無効化処理を行うための
機能として第2のタグやバツフア無効化キユーを
持ち、そのバツフア無効化アドレスの伝播時間を
監視することによつて或る中央処理装置又はチヤ
ネル処理装置の主記憶書込順序が他の中央処理装
置に正しく伝わることを保障する制御方式を提供
することを目的としている。
The present invention is based on the above considerations, and includes:
The storage control device has a second tag or a buffer invalidation queue as a function for performing buffer invalidation processing, and by monitoring the propagation time of the buffer invalidation address, a certain central processing unit or channel processing unit The purpose of the present invention is to provide a control method that ensures that the main memory write order of a central processing unit is correctly transmitted to other central processing units.

〔目的を達成するための手段〕[Means to achieve the purpose]

そしてそのため、本発明の主記憶書込み順序制
御方式は、 複数の中央処理装置と、 主記憶装置と、 中央処理装置の主記憶装置へのアクセスを制御
する記憶制御装置と を具備し、且つ 各中央処理装置が、記憶制御装置から送られて
来るバツフア無効化アドレスを記憶するバツフア
無効化スタツクを有し、 記憶制御装置が、中央処理装置毎に、対応する
中央処理装置の第1のタグ部に記憶される情報と
同じ情報を保持する第2のタグ部と、主記憶アク
セス要求と第2のタグ部の内容とに基づいてバツ
フア無効化アドレスを生成するバツフア無効化ア
ドレス生成手段と、バツフア無効化アドレス生成
手段によつて生成されたバツフア無効化アドレス
を記憶するバツフア無効化キユーとを有し、対応
する中央処理装置からのバツフア無効化スタツ
ク・ビジー信号がオンでないことを条件として対
応するバツフア無効化キユー中のバツフア無効化
アドレスを対応する中央処理装置に送出するよう
に構成されている 計算機システムにおいて、 記憶制御装置の中に、各中央処理装置毎に、対
応するバツフア無効化キユー中のバツフア無効化
アドレスの個数と対応する中央処理装置からのバ
ツフア無効化スタツク・ビジー信号とに基づいて
記憶制御装置内でのバツフア無効化アドレス伝播
時間が一定値を越えているか否かを調べ、一定値
を越えた場合にはロード・アクセスのキヤンセル
を指示するキヤンセル信号を対応する中央処理装
置に送出する監視手段を設けると共に、 各中央処理装置を、ロード・アクセスのキヤン
セルを指示するキヤンセル信号を受け取つた時に
ロード・アクセス要求を出しておれば、そのデー
タを使用せず、キヤツシユへの登録も行わず、同
一のロード・アクセス要求を再び記憶制御装置に
送るように構成した ことを特徴とするものである。
Therefore, the main memory write order control method of the present invention includes: a plurality of central processing units; a main memory; and a storage control device that controls access to the main memory by the central processing units; The processing device has a buffer invalidation stack that stores the buffer invalidation address sent from the storage control device, and the storage control device stores the buffer invalidation address in the first tag section of the corresponding central processing device for each central processing device. a second tag section that holds the same information as the stored information; a buffer disable address generating means that generates a buffer disable address based on the main memory access request and the contents of the second tag section; and a buffer invalidation queue for storing the buffer invalidation address generated by the buffer invalidation address generating means, and the corresponding buffer invalidation queue is stored on the condition that the buffer invalidation stack busy signal from the corresponding central processing unit is not on. In a computer system configured to send the buffer invalidation address in the invalidation queue to the corresponding central processing unit, the storage controller includes, for each central processing unit, a buffer invalidation address in the corresponding buffer invalidation queue. Based on the number of buffer invalidation addresses and the buffer invalidation stack busy signal from the corresponding central processing unit, it is checked whether the propagation time of the buffer invalidation address within the storage control device exceeds a certain value, and A monitoring means is provided to send a cancel signal instructing to cancel the load access to the corresponding central processing unit when the value exceeds the value, and a monitoring means is provided for sending a cancel signal instructing to cancel the load access to the corresponding central processing unit. If a load access request has been issued when the data is accessed, the data is not used or registered in the cache, and the same load access request is sent again to the storage control device. It is.

〔発明の実施例〕[Embodiments of the invention]

先ず、本発明の概要について説明する。中央処
理装置は、その制御上、常に記憶制御装置からの
バツフア無効化アドレスを受け取れるようにする
ことは困難である。なた、記憶制御装置に第2の
タグ部やバツフア無効化キユーを持つと、或る時
点における最大バツフア無効化アドレス数が増加
してしまい、一定時間以内にバツフア無効化アド
レスを中央処理装置に送出すると言う保障が困難
になる。本発明は、バツフア無効化アドレスの伝
播を比較的に簡単な回路で中央処理装置毎に時間
監視して、一定時間を越える状態が発生し、且つ
対応する中央処理装置が主記憶に対するロード・
アクセスを実行中であれば、記憶制御装置は当該
中央処理装置に対してロード・アクセスのキヤン
セルを指示する。中央処理装置はバイパス機能に
よつても、そのデータを使用せず、且つキヤツシ
ユ・メモリに対するデータの登録も行わない。そ
の後、中央処理装置は再度同一アドレスで主記憶
に対するブロツク・ロード要求アクセスを主記憶
に起動することによつて、他の処理装置の主記憶
書込み順序が正しく反映されることを保障するよ
うにする。
First, an overview of the present invention will be explained. Due to its control, it is difficult for the central processing unit to always receive the buffer invalidation address from the storage control unit. However, if the storage control device has a second tag section or a buffer invalidation queue, the maximum number of buffer invalidation addresses at a certain point in time will increase, and the buffer invalidation addresses will not be sent to the central processing unit within a certain period of time. It becomes difficult to guarantee that they will be sent. The present invention monitors the propagation of a buffer invalidation address for each central processing unit using a relatively simple circuit, and detects when a state that exceeds a certain period of time occurs and the corresponding central processing unit performs a load or load to main memory.
If the access is in progress, the storage controller instructs the central processing unit to cancel the load access. Even with the bypass function, the central processing unit does not use the data and does not register the data in the cache memory. Thereafter, the central processing unit again initiates a block load request access to the main memory at the same address to ensure that the main memory write order of other processing units is correctly reflected. .

〔発明の実施例〕[Embodiments of the invention]

以下、本発明を図面を参照しつつ説明する。第
1図は一般的な計算機システムの構成例を示す図
である。第1図において、1−0ないし1−3は
主記憶ユニツト、2−0と2−1は記憶制御装
置、3−0と3−1はサービス・プロセツサ、4
−0と4−1はシステム・コンソール・インタフ
エース、5−0ないし5−3は中央処理装置、6
−0と6−1はチヤネル処理装置、7−1は第1
のタグ部、7−2は第2のタグ部、8はデータ部
をそれぞれ示している。主記憶装置1−0ないし
1−3のそれぞれは複数のバンクから構成されて
いる。記憶制御装置2−0の下には、2台の中央
処理装置及び1台のチヤネル処理装置が接続され
ている。記憶制御装置2−0の下には、2台の中
央処理装置及び1台のチヤネル処理装置が接続さ
れている。記憶制御装置2−1の下にも、2台の
中央処理装置及び1台のチヤネル処理装置が接続
されている。記憶制御装置は、下位に接続されて
いる処理装置と主記憶装置間のデータ転送を制御
するものである。記憶制御装置2−0と2−1の
間にはインタフエースが設けられ、例えば記憶制
御装置2−0が主記憶ユニツト1−2をアクセス
したい場合にはこのインタフエースを介して記憶
制御装置2−1に依頼する。記憶制御装置2−0
は2個のタグ部7−2を有しており、各タグ部7
−2は対応するタグ部7−1の写しを保持するも
のである。記憶制御装置2−1も2個のタグ部7
−2を有している。サービス・プロセツサ3−
0,3−1は、システム・コンソール機能、シス
テム異常監視機能及び保守コンソール機能等を有
している。中央処理装置5−0はキヤツシユ・メ
モリを有しており、キヤツシユ・メモリはタグ部
7−1及びデータ部8から構成されている。な
お、キヤツシユ・メモリはストア・スルー方式で
管理されている。なお、ストア・スルー方式で
は、書込アドレスが第1のタグ部の中に存在する
場合には、書込データをキヤツシユ・メモリと主
記憶の両方に書き込み、書込アドレスが第1のタ
グ部の中に存在しない場合には、書込データを主
記憶にのみ書き込む。他の中央処理装置について
も同様である。各チヤネル処理装置6−0,6−
1は入力出力装置と記憶制御装置間のデータ転送
を制御するものであり、例えば最大16個のチヤネ
ルをもつことが出来る。
Hereinafter, the present invention will be explained with reference to the drawings. FIG. 1 is a diagram showing an example of the configuration of a general computer system. In FIG. 1, 1-0 to 1-3 are main memory units, 2-0 and 2-1 are storage control units, 3-0 and 3-1 are service processors, and 4
-0 and 4-1 are system console interfaces, 5-0 to 5-3 are central processing units, 6
-0 and 6-1 are channel processing devices, 7-1 is the first
, 7-2 is a second tag portion, and 8 is a data portion. Each of main storage devices 1-0 to 1-3 is composed of a plurality of banks. Two central processing units and one channel processing unit are connected below the storage control device 2-0. Two central processing units and one channel processing unit are connected below the storage control device 2-0. Two central processing units and one channel processing unit are also connected under the storage control device 2-1. The storage control device controls data transfer between a lower-level processing device and a main storage device. An interface is provided between the storage controllers 2-0 and 2-1. For example, when the storage controller 2-0 wants to access the main storage unit 1-2, the storage controller 2-0 accesses the main storage unit 1-2 via this interface. Request to -1. Storage control device 2-0
has two tag parts 7-2, each tag part 7
-2 holds a copy of the corresponding tag section 7-1. The storage control device 2-1 also has two tag units 7.
-2. Service processor 3-
0 and 3-1 have a system console function, a system abnormality monitoring function, a maintenance console function, etc. The central processing unit 5-0 has a cache memory, and the cache memory is composed of a tag section 7-1 and a data section 8. Note that the cache memory is managed using a store-through method. Note that in the store-through method, if the write address exists in the first tag section, the write data is written to both the cache memory and main memory, and the write address is stored in the first tag section. If the write data does not exist in the main memory, the write data is written only to the main memory. The same applies to other central processing units. Each channel processing device 6-0, 6-
1 controls data transfer between the input/output device and the storage control device, and can have, for example, a maximum of 16 channels.

第2図は中央処理装置の主記憶書込アドレスが
或る一定時間以内に処理されないとその順序が他
の中央処理装置に正しく伝わらないというバツフ
ア無効化アドレスの伝播例を示す図である。第2
図の例では、中央処理装置5−0が主記憶に対し
て書込アクセスをSTA,STB(A,Bはアドレス
値)の順序で起動し、中央処理装置5−1が読出
アクセスをFCHA,FCHBの順序で起動してい
る。そのとき、中央処理装置5−1のキヤツシ
ユ・メモリにはアドレスAに対するデータのみが
ロードされ、アドレスBに対するデータがロード
されていなつたとすると、中央処理装置5−1は
記憶制御装置2−0に対して主記憶アクセス
FCHBを起動する。
FIG. 2 is a diagram illustrating an example of propagation of buffer invalidation addresses in which if a main memory write address of a central processing unit is not processed within a certain fixed time, the order will not be correctly transmitted to other central processing units. Second
In the example shown in the figure, the central processing unit 5-0 initiates write access to the main memory in the order of STA, STB (A, B are address values), and the central processing unit 5-1 initiates read access to the main memory in the order of STA, STB (A, B are address values). It is started in the order of FCHB. At that time, if only the data for address A is loaded into the cache memory of the central processing unit 5-1 and the data for address B is not loaded, the central processing unit 5-1 transfers the data to the storage controller 2-0. main memory access to
Start FCHB.

記憶制御装置2−0が書込アクセスSTBを先
行して処理すると、読出アクセスFCHBはバン
ク・ビジーによつて或る時間待たされ、次に処理
する中央処理装置5−1の読出アクセスFCHBは
中央処理装置5−0によつて更新された新しいデ
ータとなり、中央処理装置5−1に送出される。
中央処理装置5−1は読出アクセスFCHBのデー
タを記憶制御装置2−0から受取ると、オペラン
ド・ワード・レジスタOWRにセツトし実行を開
始すると同時に、後続する命令による読出アクセ
スFCHAをキヤツシユ・メモリに対して行う。
この時点までに先に起動された中央処理装置5−
0の主記憶書込アクセスSTAによるバツフア無
効化アドレスが中央処理装置5−1に伝播され且
つバツフア無効化処理が終了していないと、中央
処理装置5−1のキヤツシユ・メモリに残つてい
る古いデータを命令実行のために使用してしま
う。このような状態が発生すると、中央処理装置
5−0の主記憶書込順序が中央処理装置5−1に
正しく伝わらないことになる。
When the storage controller 2-0 processes the write access STB in advance, the read access FCHB is kept waiting for a certain period of time due to bank busy, and the read access FCHB of the central processing unit 5-1, which is processed next, is processed by the central processing unit 5-1. This becomes new data updated by the processing device 5-0, and is sent to the central processing device 5-1.
When the central processing unit 5-1 receives the data of the read access FCHB from the storage control unit 2-0, it sets it in the operand word register OWR and starts execution, and at the same time writes the read access FCHA of the subsequent instruction to the cache memory. Do it against.
The central processing unit 5- which has been activated earlier up to this point
If the buffer invalidation address by the main memory write access STA of 0 is propagated to the central processing unit 5-1 and the buffer invalidation processing is not completed, the old memory remaining in the cache memory of the central processing unit 5-1 will be deleted. Data is used to execute instructions. If such a situation occurs, the main memory write order of the central processing unit 5-0 will not be correctly transmitted to the central processing unit 5-1.

第3図は上記状態を起こさないようにするため
に記憶制御装置−中央処理装置間インタフエース
及びそれぞれの装置内処理を規約化した一例であ
る。本規約をどのように変更したとしても、記憶
制御装置におけるバツフア無効化アドレスの伝播
時間を一定時間以内にするか、又は何等かの対策
が必要となる。第3図において、記憶制御装置
は、全てのバツフア無効化アドレスの伝播を最大
22τで行い、22τを越えた場合には対応する中央処
理装置にフエツチのキヤンセルを指示する。中央
処理装置はDOW(フエツチ・データの6τ前に送
出されるタイミング信号)を受取つた時点で中央
処理装置内のバツフア無効化スタツク内のバツフ
ア無効化アドレスにフラグを付加し、本フラグ付
バツフア無効化アドレスが未処理のまま残つてい
ると、後続するキヤツシユ・フエツチ(例えば
FCHA)を禁止する。
FIG. 3 is an example of standardizing the interface between the storage control unit and the central processing unit and the internal processing of each unit in order to prevent the above situation from occurring. No matter how this regulation is changed, it is necessary to limit the propagation time of the buffer invalidation address in the storage control device to within a certain period of time, or to take some other countermeasure. In Figure 3, the storage controller maximizes the propagation of all buffer invalidation addresses.
22τ, and if it exceeds 22τ, the corresponding central processing unit is instructed to cancel the fetch. When the central processing unit receives DOW (timing signal sent 6τ before fetch data), it adds a flag to the buffer invalidation address in the buffer invalidation stack in the central processing unit, and invalidates the buffer with this flag. If a cache address is left unprocessed, subsequent cache fetches (e.g.
FCHA) is prohibited.

第4図は第1図の記憶制御装置、特にバツフア
無効化アドレス伝播回路に注目した論理構成図で
ある。第4図において、9ないし12はポート、
13は優先選択回路、14はバンク・ビジー制御
部、15と16はレジスタ、17はパイプライ
ン、18は中央処理装置及びチヤネル処理装置に
対するインタフエース制御部、19は第2のタグ
部のRAM、20は一致検出回路、21はセレク
タ、22はバツフア無効化キユー、23はキユー
制御部、24は中央処理装置5−1に対する第2
のタグ部、BIR0ないしBIARはレジスタ、
MCHは一致化フラグ、RDAT2はレジスタをそ
れぞれ示している。ポート9は中央処理装置5−
0に対するものであり、ポート10は中央処理装
置5−1に対するものであり、ポート11はチヤ
ネル処理装置6−0に対するものであり、ポート
12はチヤネル処理装置6−1に対するものであ
る。優先選択回路13は、各ポートから送られて
来る主記憶アクセス要求を選択したパイプライン
17に投入するものである。この際、ビジーのバ
ンクを指定する主記憶アクセス要求は選択されな
い。バンク・ビジー制御部14は何れのバンクが
ビジーであるかを優先選択回路13に通知するた
めのものである。パイプライン17は、複数の制
御ステージから構成され、各ステージでは固有の
制御を行う。インタフエース制御部18は、記憶
制御装置とその下につながれる処理装置との間に
おけるデータや制御信号の転送を制御するもので
ある。RAM19は、第1のタグ部7−1と同様
にセツトアソシヤテイブ方式のものであり、この
中には中央処理装置5−0のタグ部7−1の内容
がコピーされている。一致検出回路20は、
RAM19からの読出データとレジスタBIR0の
主記憶書込アドレス・データの上位部分とを比較
し、両者が一致しておれば一致化フラグMCHを
オンとする。RAM19からの読出データとレジ
スタBIR0の主記憶書込アドレス・データの上位
部分とが一致を示し且つ当該主記憶書込アドレス
が他装置からのものである場合には、レジスタ
BIR0の主記憶書込アドレス・データはレジスタ
BIR1及びセレクタ21を介してバツフア無効化
キユー22に格納される。また、RAM19から
の読出データとレジスタBIR0の主記憶読出アド
レス・データの上位部分が不一致を示し且つ当該
主記憶読出アドレスが自装置からのものである場
合には、レジスタBIR0の主記憶読出アドレス・
データはBIR1→ループバツク信号線→BIR0を
経由してRAM19に書き込まれると共に、レジ
スタRDAT2(RAM19からの読出データがセ
ツトされている)のデータがセレクタ21を介し
てバツフア無効化キユー22に格納される。バツ
フア無効化キユー22に格納されているバツフア
無効化アドレスはレジスタBIARを介して順番に
中央処理装置5−0に送られる。キユー制御部2
3は、バツフア無効化キユー22の制御を行うも
のであり、中央処理装置5−0からBI STACK
BUSYの信号(バツフア無効化スタツクが一杯
であることを示す信号)が送られて来ると、中央
処理装置5−0に対するバツフア無効化アドレス
の送出を中断させる。
FIG. 4 is a logical configuration diagram of the storage control device of FIG. 1, particularly focusing on the buffer invalidation address propagation circuit. In FIG. 4, 9 to 12 are ports;
13 is a priority selection circuit, 14 is a bank busy control unit, 15 and 16 are registers, 17 is a pipeline, 18 is an interface control unit for the central processing unit and the channel processing unit, 19 is a RAM of the second tag unit, 20 is a coincidence detection circuit, 21 is a selector, 22 is a buffer invalidation queue, 23 is a queue control unit, and 24 is a second circuit for the central processing unit 5-1.
tag part, BIR0 to BIAR are registers,
MCH indicates a matching flag, and RDAT2 indicates a register. Port 9 is central processing unit 5-
Port 10 is for central processing unit 5-1, port 11 is for channel processing unit 6-0, and port 12 is for channel processing unit 6-1. The priority selection circuit 13 inputs main memory access requests sent from each port to the selected pipeline 17. At this time, a main memory access request specifying a busy bank is not selected. The bank busy control unit 14 is for notifying the priority selection circuit 13 which bank is busy. The pipeline 17 is composed of a plurality of control stages, and each stage performs unique control. The interface control unit 18 controls the transfer of data and control signals between the storage control device and the processing device connected thereunder. The RAM 19 is of a set associative type like the first tag section 7-1, and the contents of the tag section 7-1 of the central processing unit 5-0 are copied therein. The coincidence detection circuit 20 is
The read data from the RAM 19 and the upper part of the main memory write address data of the register BIR0 are compared, and if they match, the match flag MCH is turned on. If the read data from RAM19 and the upper part of the main memory write address data of register BIR0 match and the main memory write address is from another device, the register
BIR0 main memory write address data is a register
It is stored in the buffer invalidation queue 22 via the BIR1 and the selector 21. Furthermore, if the read data from RAM19 and the upper part of the main memory read address data of register BIR0 do not match, and the main memory read address is from the own device, the main memory read address data of register BIR0
Data is written to RAM 19 via BIR1 → loopback signal line → BIR0, and data in register RDAT2 (in which read data from RAM 19 is set) is stored in buffer invalidation queue 22 via selector 21. . The buffer invalidation addresses stored in the buffer invalidation queue 22 are sequentially sent to the central processing unit 5-0 via the register BIAR. Queue control section 2
3 controls the buffer invalidation queue 22, and sends the BI STACK from the central processing unit 5-0.
When a BUSY signal (a signal indicating that the buffer invalidation stack is full) is sent, the sending of the buffer invalidation address to the central processing unit 5-0 is interrupted.

第2のタグ部及びバツフア無効化キユー等を記
憶制御装置に持たない場合には、記憶制御装置に
おけるバツフア無効化アドレス伝播時間を或る一
定時間内に保障することは比較的簡単に行うこと
が出来る。しかしながら、その場合には、各中央
処理装置内にあるバツフア無効化スタツクの何れ
かがFULL”状態になると、その中央処理装置以
外の全中央処理装置の主記憶書込みを禁止する必
要がある。
If the storage control device does not have a second tag part, buffer invalidation queue, etc., it is relatively easy to ensure that the buffer invalidation address propagation time in the storage control device is within a certain fixed time. I can do it. However, in that case, if any of the buffer invalidation stacks in each central processing unit becomes FULL, it is necessary to prohibit writing to the main memory of all central processing units other than that central processing unit.

また、逆に第2のタグ部及びバツフア無効化キ
ユー等を記憶制御装置内に持つと、対応する中央
処理装置内のバツフア無効化スタツクがFULL”
状態になつた場合、バツフア無効化アドレスがバ
ツフア無効化キユーに残つてしまい、バツフア無
効化アドレス伝播時間の保障が困難になる。
Conversely, if the second tag section and buffer invalidation queue etc. are included in the storage control device, the buffer invalidation stack in the corresponding central processing unit becomes FULL.
If this occurs, the buffer invalidation address remains in the buffer invalidation queue, making it difficult to guarantee the buffer invalidation address propagation time.

第3図の例では同一アドレスに対する書込アク
セスと読出アクセスが連続した場合、読出アクセ
スに対するデータアウト・ウオーニング信号
DOWまでを最小22τ(マシン・サイクル数)とし
ている。記憶制御装置内でバツフア無効化アドレ
スが待たされることなく伝播すると、 PIPELINE→BIR0→BIR1→BI QUEUE→
BIAR の各レジスタで全部で5τが必要である。また、バ
ツフア無効化アドレスが待たされる要因として
は、バツフア無効化キユー22に何個かのバツフ
ア無効化アドレスが溜まつていること及び対応す
る中央処理装置のバツフア無効化スタツクが
FULL”状態でバツフア無効化アドレスを送出出
来ないことの2要因がある。これらによつて待た
される時間をWtとすると 5τ+Wt≦22τ が成立する。つまりWt≦17τであれば問題はない
ことになる。
In the example shown in Figure 3, if write access and read access to the same address are consecutive, a data-out warning signal is sent for the read access.
The minimum number of cycles up to DOW is 22τ (number of machine cycles). If the buffer invalidation address is propagated in the storage controller without waiting, PIPELINE→BIR0→BIR1→BI QUEUE→
A total of 5τ is required for each register in BIAR. Further, the reasons why the buffer invalidation address is kept waiting are that several buffer invalidation addresses are accumulated in the buffer invalidation queue 22 and that the buffer invalidation stack of the corresponding central processing unit is
There are two reasons why the buffer invalidation address cannot be sent in the "FULL" state.If the waiting time due to these is Wt, then 5τ+Wt≦22τ holds true.In other words, if Wt≦17τ, there is no problem. .

第5図は本発明による中央処理装置に対するバ
ツフア無効化アドレス伝播の時間監視回路の1例
を示す図である。第5図において、25は減算回
路、26は(+1)回路、27は加算回路、28
と29はDフリツプ・フロツプ、30はSRフリ
ツプ・フロツプ、31はAND回路、32と33
はOR回路、34はNOR回路、35はレジスタを
それぞれ示している。
FIG. 5 is a diagram showing an example of a time monitoring circuit for propagating a buffer invalidation address to a central processing unit according to the present invention. In FIG. 5, 25 is a subtraction circuit, 26 is a (+1) circuit, 27 is an addition circuit, and 28
and 29 are D flip-flops, 30 are SR flip-flops, 31 are AND circuits, 32 and 33
34 represents an OR circuit, 34 represents a NOR circuit, and 35 represents a register.

第5図の回路はWt>16τを検出するものであ
る。16τという値は回路上の都合による。記憶制
御装置で第2図の処理状態を検出することは困難
であるので、全ての主記憶書込アクセスに注目
し、第5図の回路によつて何れかがWt>16τにな
ることを検出し、対応する中央処理装置に対して
主記憶読出アクセスのキヤンセルを指示する。も
しも該中央処理装置が主記憶読出アクセスを起動
していなければ、このキヤンセル信号を無視する
ことができる。第5図のWt>16τを検出する回路
の条件は下記の通りである。
The circuit shown in FIG. 5 detects Wt>16τ. The value of 16τ is due to circuit considerations. Since it is difficult to detect the processing state shown in Figure 2 with a storage control device, we pay attention to all main memory write accesses and use the circuit shown in Figure 5 to detect when any of them becomes Wt > 16τ. Then, it instructs the corresponding central processing unit to cancel the main memory read access. If the central processing unit has not initiated a main memory read access, this cancel signal can be ignored. The conditions of the circuit for detecting Wt>16τ in FIG. 5 are as follows.

Wt>16τ= 〔(BI INQカウンタ−BI OUTQカウンタ) +BI STACK BUSYカウンタ値〕 +BI STACK BUSY 2ND (BI INQカウンタ−BI OUTQカウンタ)は
バツフア無効化キユー内のバツフア無効化アドレ
スの個数を示し、(BI STACK BUSYカウンタ
値)は対応する中央処理装置がバツフア無効化ス
タツクがFULL”状態の時間を示し、(BI
STACK 2ND)はバツフア無効化キユーが
EMPTYでない状態でBI STACK BUSY”信号
が2度オンになつたことを示す。
Wt>16τ= [(BI INQ counter - BI OUTQ counter) +BI STACK BUSY counter value] +BI STACK BUSY 2ND (BI INQ counter - BI OUTQ counter) indicates the number of buffer invalidation addresses in the buffer invalidation queue, ( BI STACK BUSY counter value) indicates the time when the corresponding central processing unit has a buffer invalidation stack in the FULL state;
STACK 2ND) has a buffer invalidation queue.
Indicates that the "BI STACK BUSY" signal has been turned on twice in a non-EMPTY state.

第5図において、減算回路21は、(BI INQ
カウンタ−BI OUTQカウンタ)の計算を行うも
のである。(+1)回路26は、(BI STACK
BUSYカウンタ値)を求めるものである。フリ
ツプ・フロツプ28がセツトされると、(+1)
回路26はクロツクが生成される度にその値を+
1し、OR回路33が論理「1」を出力すると、
(+1)回路26の値は強制的に零にされる。(+
1)回路26は“15”でカウントを止める。加算
回路27は4ビツトのものであつて、〔(BI INQ
カウンタ−BI OUTQカウンタ)+BI STACK
BUSYカウンタ値〕の計算を行うものである。
加算結果が“16”以上になると、キヤリ信号がオ
ンとなる。このキヤリ信号はOR回路32及びレ
ジスタ35を介してキヤンセル信号として対応す
る中央処理装置に送られる。Dフリツプ・フロツ
プ29がリセツトされ且つSRフリツプ・フロツ
プ30がセツトされている状態の下でDフリツ
プ・フロツプ28がセツトされると、AND回路
31は論理「1」を出力する。AND回路31の
出力がBI BUSY 2ND信号となる。信号
EMPTYが論理1」になると、OR回路33に論
理「1」が入力され、またSRフリツプ・フロツ
プ30はリセツトされる。BI BUSY 2ND信号
がオンになつた時にもSRフリツプ・フロツプ3
0はリセツトされる。BI BUSY 2ND信号はOR
回路32及びレジスタ35を介してキヤンセル信
号として対応する中央処理装置に送られる。キヤ
ンセル信号を受け取つた時に中央処理装置が主記
憶ロード・アクセス要求(主記憶フエツチ・アク
セス要求と同義)を出しておれば、中央処理装置
は、そのデータを使用せず且つキヤツシユ・メモ
リへの登録も行わず、再度同一アドレスに対する
主記憶ロード・アクセス要求を起動する。例え
ば、第3図において、22τの前にキヤンセル信号
が送られて来ると、中央処理装置はフエツチ・デ
ータFCHBを使用せず、フエツチ・データFCHB
のキヤツシユ・メモリへの登録を行わず、再び主
記憶フエツチ・アクセス要求FCHB(次の主記憶
フエツチ・アクセス要求)を起動する。次の主記
憶フエツチ・アクセス要求が出されている状態の
下でキヤンセル信号を受け取ると、中央処理装置
は同様な動作を行う。このような動作を行うこと
によつて、或る中央処理装置またはチヤネル処理
装置の主記憶書込順序を他の中央処理装置に正し
く伝わることを保障することが出来る。
In FIG. 5, the subtraction circuit 21 is (BI INQ
This is used to calculate the counter (BI OUTQ counter). (+1) circuit 26 is (BI STACK
BUSY counter value). When flip-flop 28 is set, (+1)
The circuit 26 increases the value of the clock each time it is generated.
1, and when the OR circuit 33 outputs logic "1",
The value of the (+1) circuit 26 is forced to zero. (+
1) The circuit 26 stops counting at "15". The adder circuit 27 is a 4-bit one, [(BI INQ
Counter - BI OUTQ counter) + BI STACK
BUSY counter value].
When the addition result becomes "16" or more, the carry signal is turned on. This carry signal is sent via the OR circuit 32 and register 35 to the corresponding central processing unit as a cancel signal. When D flip-flop 28 is set while D flip-flop 29 is reset and SR flip-flop 30 is set, AND circuit 31 outputs a logic "1". The output of the AND circuit 31 becomes the BI BUSY 2ND signal. signal
When EMPTY becomes a logic 1, a logic 1 is input to the OR circuit 33, and the SR flip-flop 30 is reset. SR flip-flop 3 is activated even when the BI BUSY 2ND signal is turned on.
0 is reset. BI BUSY 2ND signal is OR
It is sent as a cancel signal to the corresponding central processing unit via the circuit 32 and register 35. If the central processing unit issues a main memory load access request (synonymous with a main memory fetch access request) when receiving the cancel signal, the central processing unit does not use the data and registers it in the cache memory. The main memory load access request to the same address is started again. For example, in FIG. 3, if the cancel signal is sent before 22τ, the central processing unit does not use the fetch data FCHB, and instead uses the fetch data FCHB.
The main memory fetch access request FCHB (next main memory fetch access request) is started again without registering in the cache memory. If a cancel signal is received while the next main memory fetch access request is being issued, the central processing unit performs a similar operation. By performing such an operation, it is possible to ensure that the main memory write order of a certain central processing unit or channel processing unit is correctly transmitted to other central processing units.

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

以上の説明から明らかなように、本発明によれ
ば 記憶制御装置に第2のタグ部やバツフア無効
化アドレスを保持するキユー等をもつことを可
能とし、バツフア無効化処理を効率的に行い得
ること、 中央処理装置に対するバツフア無効化アドレ
ス伝播の時間監視回路を記憶制御装置内に持つ
ことによつて、システム内の或る中央処理装置
に対応するバツフア無効化キユー及びバツフア
無効化スタツクがFULL”状態になつてシステ
ム全体の書込処理を禁止するという確率を低く
出来ること、 等の顕著な効果を奏することが出来る。
As is clear from the above description, according to the present invention, it is possible to have a second tag part and a queue for holding a buffer invalidation address in the storage control device, and buffer invalidation processing can be performed efficiently. By having a time monitoring circuit for buffer invalidation address propagation to the central processing unit in the storage control unit, the buffer invalidation queue and buffer invalidation stack corresponding to a certain central processing unit in the system are FULL.” It is possible to achieve remarkable effects such as lowering the probability that the write processing of the entire system will be inhibited due to a state in which the write process is disabled.

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

第1図は一般的な計算機システムの構成例を示
す図、第2図は中央処理装置の主記憶書込アドレ
スが或る一定時間以内に処理されないとその順序
が他の中央処理装置に正しく伝わらないというバ
ツフア無効化アドレスの伝播例を示す図、第3図
は中央処理装置の主記憶書込順序が他の中央処理
装置に正しく伝わることを保障するためのインタ
フエース及び処理規約を示す図、第4図は第1図
の記憶制御装置の特にバツフア無効化アドレス伝
播部分に注目した論理構成図、第5図は中央処理
装置に対するバツフア無効化アドレス伝播の時間
監視回路の1例を示す図である。 1−0ないし1−3……主記憶ユニツト、2−
0と2−1……記憶制御装置、3−0と3−1…
…サービス・プロセツサ、4−0と4−1……シ
ステム・コンソール・インタフエース、5−0な
いし5−3……中央処理装置、6−0と6−1…
…チヤネル処理装置、7−1……第1のタグ部、
7−2……第2のタグ部、8……データ部、9な
いし12……ポート、13……優先選択回路、1
4……バンク・ビジー制御部、15と16……レ
ジスタ、17……パイプライン、18……中央処
理装置及びチヤネル処理装置に対するインタフエ
ース制御部、19……第2のタグ部のRAM、2
0……一致検出回路、21……セレクタ、22…
…バツフア無効化キユー、23……キユー制御
部、24……中央処理装置5−1に対する第2の
タグ部、BIR0ないしBIAR……レジスタ、
MCH……一致化フラグ、RDAT2……レジス
タ、25……減算回路、26……(+1)回路、
27……加算回路、28と29……Dフリツプ・
フロツプ、30……SRフリツプ・フロツプ、3
1……AND回路、32……OR回路、33……
NOR回路、34……レジスタ。
Figure 1 is a diagram showing an example of the configuration of a general computer system, and Figure 2 shows that if the main memory write address of a central processing unit is not processed within a certain period of time, the order will not be correctly transmitted to other central processing units. FIG. 3 is a diagram showing an interface and processing rules for ensuring that the main memory write order of a central processing unit is correctly transmitted to other central processing units; FIG. 4 is a logical configuration diagram focusing on the buffer invalidation address propagation part of the storage control device shown in FIG. 1, and FIG. 5 is a diagram showing an example of a time monitoring circuit for buffer invalidation address propagation to the central processing unit. be. 1-0 to 1-3...main memory unit, 2-
0 and 2-1...Storage control device, 3-0 and 3-1...
...Service processors, 4-0 and 4-1...System console interfaces, 5-0 to 5-3...Central processing units, 6-0 and 6-1...
...channel processing device, 7-1...first tag section,
7-2...second tag section, 8...data section, 9 to 12...port, 13...priority selection circuit, 1
4...Bank busy control unit, 15 and 16...Registers, 17...Pipeline, 18...Interface control unit for the central processing unit and channel processing unit, 19...RAM of the second tag unit, 2
0... Match detection circuit, 21... Selector, 22...
... buffer invalidation queue, 23 ... queue control section, 24 ... second tag section for the central processing unit 5-1, BIR0 to BIAR ... register,
MCH...Matching flag, RDAT2...Register, 25...Subtraction circuit, 26...(+1) circuit,
27...addition circuit, 28 and 29...D flip
Flop, 30...SR flip-flop, 3
1...AND circuit, 32...OR circuit, 33...
NOR circuit, 34... register.

Claims (1)

【特許請求の範囲】 1 複数の中央処理装置と、 主記憶装置と、 中央処理装置の主記憶装置へのアクセスを制御
する記憶制御装置と を具備し、且つ 各中央処理装置が、記憶制御装置から送られて
来るバツフア無効化アドレスを記憶するバツフア
無効化スタツクを有し、 記憶制御装置が、中央処理装置毎に、対応する
中央処理装置の第1のタグ部に記憶される情報と
同じ情報を保持する第2のタグ部と、主記憶アク
セス要求と第2のタグ部の内容とに基づいてバツ
フア無効化アドレスを生成するバツフア無効化ア
ドレス生成手段と、バツフア無効化アドレス生成
手段によつて生成されたバツフア無効化アドレス
を記憶するバツフア無効化キユーとを有し、対応
する中央処理装置からのバツフア無効化スタツ
ク・ビジー信号がオンでないことを条件として対
応するバツフア無効化キユー中のバツフア無効化
アドレスを対応する中央処理装置に送出するよう
に構成されている 計算機システムにおいて、 記憶制御装置の中に、各中央処理装置毎に、対
応するバツフア無効化キユー中のバツフア無効化
アドレスの個数と対応する中央処理装置からのバ
ツフア無効化スタツク・ビジー信号とに基づいて
記憶制御装置内でのバツフア無効化アドレス伝播
時間が一定値を越えているか否かを調べ、一定値
を越えた場合にはロード・アクセスのキヤンセル
を指示するキヤンセル信号を対応する中央処理装
置に送出する監視手段を設けると共に、 各中央処理装置を、ロード・アクセスのキヤン
セルを指示するキヤンセル信号を受け取つた時に
ロード・アクセス要求を出しておれば、そのデー
タを使用せず、キヤツシユへの登録も行わず、同
一のロード・アクセス要求を再び記憶制御装置に
送るように構成した ことを特徴とする主記憶書込順序制御方式。 2 中央処理装置毎の監視手段が、対応するバツ
フア無効化キユー中のバツフア無効化アドレスの
個数を計算する計算手段と、対応する中央処理装
置から送られて来るオンのバツフア無効化スタツ
ク・ビジー信号の継続時間を計数するカウンタ
と、上記計算手段の出力とカウンタの出力を加算
する加算手段と、加算手段の加算結果が一定値を
こえた時にキヤンセル信号を対応する中央処理装
置に送る手段とを具備する ことを特徴とする特許請求の範囲第1項記載の主
記憶書込順序制御方式。 3 中央処理装置毎の監視手段が、対応するバツ
フア無効化キユーが空でない状態の下で上記バツ
フア無効化スタツク・ビジー信号が2度オンにな
つた時にキヤンセル信号を対応する中央処理装置
に送る手段を具備する ことを特徴とする特許請求の範囲第2項記載の主
記憶書込順序制御方式。
[Scope of Claims] 1 A system comprising a plurality of central processing units, a main storage device, and a storage control device that controls access to the main storage device of the central processing units, and each central processing unit has a storage control device. The storage controller has a buffer invalidation stack for storing buffer invalidation addresses sent from the central processing unit, and the storage controller stores, for each central processing unit, the same information as the information stored in the first tag section of the corresponding central processing unit. a buffer invalidation address generation means for generating a buffer invalidation address based on the main memory access request and the contents of the second tag portion; and a buffer invalidation address generation means. It has a buffer invalidation queue that stores the generated buffer invalidation address, and invalidates the buffer in the corresponding buffer invalidation queue on condition that the buffer invalidation stack busy signal from the corresponding central processing unit is not on. In a computer system configured to send buffer invalidation addresses to a corresponding central processing unit, the storage control unit stores, for each central processing unit, the number of buffer invalidation addresses in the corresponding buffer invalidation queue. It is checked whether the buffer invalidation address propagation time within the storage control device exceeds a certain value based on the buffer invalidation stack busy signal from the corresponding central processing unit, and if the buffer invalidation address propagation time exceeds a certain value, A monitoring means is provided for sending a cancel signal instructing cancellation of a load access to a corresponding central processing unit, and the monitoring means is configured to send a load access request to each central processing unit upon receiving a cancel signal instructing cancellation of a load access. If the data has been issued, the data is not used or registered in the cache, and the same load access request is sent to the storage control device again. 2. The monitoring means for each central processing unit includes calculation means for calculating the number of buffer invalidation addresses in the corresponding buffer invalidation queue, and an on buffer invalidation stack busy signal sent from the corresponding central processing unit. a counter for counting the duration of , an addition means for adding the output of the calculation means and the output of the counter, and means for sending a cancel signal to the corresponding central processing unit when the addition result of the addition means exceeds a certain value. A main memory write order control system according to claim 1, characterized in that: 3. Means for the monitoring means for each central processing unit to send a cancel signal to the corresponding central processing unit when the buffer invalidation stack busy signal is turned on twice under the condition that the corresponding buffer invalidation queue is not empty. 3. A main memory write order control system according to claim 2, comprising:
JP60247759A 1985-11-05 1985-11-05 Sequence control system for main storage write Granted JPS62107351A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60247759A JPS62107351A (en) 1985-11-05 1985-11-05 Sequence control system for main storage write

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60247759A JPS62107351A (en) 1985-11-05 1985-11-05 Sequence control system for main storage write

Publications (2)

Publication Number Publication Date
JPS62107351A JPS62107351A (en) 1987-05-18
JPH0452978B2 true JPH0452978B2 (en) 1992-08-25

Family

ID=17168238

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60247759A Granted JPS62107351A (en) 1985-11-05 1985-11-05 Sequence control system for main storage write

Country Status (1)

Country Link
JP (1) JPS62107351A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4327238B2 (en) * 2006-02-28 2009-09-09 富士通株式会社 System controller and cache control method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5420295B2 (en) * 1973-12-24 1979-07-21
JPS605359A (en) * 1983-06-23 1985-01-11 Fujitsu Ltd Control system for buffer storage

Also Published As

Publication number Publication date
JPS62107351A (en) 1987-05-18

Similar Documents

Publication Publication Date Title
EP0258736B1 (en) Parallel computer with distributed shared memories and distributed task activating circuits
US4481573A (en) Shared virtual address translation unit for a multiprocessor system
US5696939A (en) Apparatus and method using a semaphore buffer for semaphore instructions
US6381681B1 (en) System and method for shared memory protection in a multiprocessor computer
US4864533A (en) Data transfer control unit permitting data access to memory prior to completion of data transfer
EP0220990B1 (en) Buffer storage control system
JPH0452978B2 (en)
EP0550976B1 (en) Memory accessing device using address pipeline
JP2637320B2 (en) Buffer storage control method
JP3205989B2 (en) Information processing system
JPS615357A (en) Data processor
JPS6227837A (en) Main memory access system
JP2723412B2 (en) Main memory pre-port control method
JP3078304B2 (en) Information processing device
JPS62288949A (en) Serializing instruction control system
JPH0211931B2 (en)
WO1997014099A1 (en) Digital signal processor with caching of instructions that produce a memory conflict
JPS6046454B2 (en) information transfer device
JPH0415496B2 (en)
JPS59173864A (en) Control system of main memory
JP2752834B2 (en) Data transfer device
JP2656558B2 (en) Cache memory control circuit
JPS60123944A (en) Buffer memory controlling system of information processor
JPS61289464A (en) Scalar arithmetic processor
JPH10320278A (en) Memory controller and computer system

Legal Events

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