JPH056896B2 - - Google Patents

Info

Publication number
JPH056896B2
JPH056896B2 JP61287503A JP28750386A JPH056896B2 JP H056896 B2 JPH056896 B2 JP H056896B2 JP 61287503 A JP61287503 A JP 61287503A JP 28750386 A JP28750386 A JP 28750386A JP H056896 B2 JPH056896 B2 JP H056896B2
Authority
JP
Japan
Prior art keywords
store
address
output
read
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.)
Expired - Lifetime
Application number
JP61287503A
Other languages
Japanese (ja)
Other versions
JPS63140354A (en
Inventor
Itaru Okano
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 Corp
Original Assignee
Nippon Electric Co 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 Nippon Electric Co Ltd filed Critical Nippon Electric Co Ltd
Priority to JP61287503A priority Critical patent/JPS63140354A/en
Publication of JPS63140354A publication Critical patent/JPS63140354A/en
Publication of JPH056896B2 publication Critical patent/JPH056896B2/ja
Granted legal-status Critical Current

Links

Landscapes

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

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は故障検出方式、さらに詳しくいえばキ
ヤツシユメモリを有する情報処理装置のストアバ
ツフアに付随するストアチエツク機構の故障検出
方式に関する。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a failure detection system, and more specifically, to a failure detection system for a store check mechanism attached to a store buffer of an information processing apparatus having a cache memory.

(従来の技術) 大型計算機においては、処理の高速化のため
に、演算処理部からキヤツシユメモリ、あるいは
キヤツシユメモリから主記憶部等のストアパスに
はストアバツフアが不可欠である。このような構
成において、メモリに対するリードコマンドは通
常、ストアコマンドよりも優先して処理してい
る。しかしストアバツフア内にリードアドレスと
同一のアドレスに対するストアが存在する場合
は、このストアバツフア内のデータをリードしな
ければならない。そのため、ストアバツフアに
は、各エントリのストアアドレスと、後続のリー
ドアドレスを比較するための比較器がエントリ対
応に設けられている。この比較器によつてメモリ
リードのタイミングで、各エントリのストアアド
レスとリードアドレスとの一致が検出された場合
には、ストアバツフア内のストアコマンドを優先
的に処理し、その後にリードコマンドを処理する
ように構成されており、コマンド実行の順序性を
維持し、正しいデータ(この場合は直前のストア
で書き換えられたデータ)の読出しを保証してい
る。したがつて、前記比較器が故障した場合に
は、コマンド実行の順序性を保つことが不可能に
なるため、データ化け等の重大な故障につなが
る。
(Prior Art) In large-scale computers, in order to speed up processing, a store buffer is essential for a store path from an arithmetic processing unit to a cache memory, or from a cache memory to a main storage unit. In such a configuration, read commands to the memory are usually processed with priority over store commands. However, if there is a store to the same address as the read address in the store buffer, the data in this store buffer must be read. Therefore, the store buffer is provided with a comparator for each entry to compare the store address of each entry with the subsequent read address. If this comparator detects a match between the store address and read address of each entry at the memory read timing, the store command in the store buffer is processed first, followed by the read command. This structure maintains the order of command execution and guarantees reading of correct data (in this case, data rewritten in the previous store). Therefore, if the comparator fails, it becomes impossible to maintain the order of command execution, leading to serious failures such as garbled data.

(発明が解決しようとする問題点) 従来、この比較器の故障検出には、パリテイ付
きのデータを比較して、その出力をパリテイチエ
ツクする等の方法がとられていた。しかし、この
方法では比較器を構成する回路のうち故障を検出
できる回路は排他的ORまでで、その後段のAND
回路の故障等までは検出できなかつた。
(Problems to be Solved by the Invention) Conventionally, a method of comparing data with parity and parity checking the output has been used to detect a failure in this comparator. However, with this method, the only circuit that can detect a failure among the circuits that make up the comparator is exclusive OR, and the subsequent AND
It was not possible to detect circuit failures, etc.

本発明の目的はストアバツフア掃き出し動作が
優先となるタイミングのとき比較器の2入力に同
じアドレスを入力して比較器の故障を事前に検出
することにより、データ化け等の重大な故障を回
避することができる故障検出方式を提供すること
にある。
The purpose of the present invention is to avoid serious failures such as data corruption by inputting the same address to two inputs of a comparator and detecting comparator failures in advance when the store buffer flushing operation takes priority. The purpose of this invention is to provide a fault detection method that can perform the following tasks.

(問題点を解決するための手段) 前記目的を達成するために本発明によるストア
チエツク機構の故障検出方式は情報処理装置にお
けるキヤツシユメモリと主記憶の中間に設けら
れ、主記憶にストアするデータと対応するアドレ
スを保持する複数エントリのメモリストアバツフ
アと、主記憶に対してメモリリード要求を出す機
構とからなり、前記複数エントリのメモリストア
バツフア内に保持するストアアドレスと前記メモ
リリードのアドレスをそれぞれ比較し、同一であ
る場合に一致信号を出力するストアチエツク機構
の故障検出方式において、前記ストアアドレスの
各エントリ対応の比較器の一方の入力にセレクタ
を設け、リードアドレスのタイミングで、それぞ
れリードアドレスを選択して対応のストアアドレ
スと比較した結果、一致を検出したときストアバ
ツフア掃出し動作優先となるタイミングを発生
し、前記ストアバツフア掃出し動作優先となつた
とき、前記各セレクタは各ストアアドレスを選択
し各比較器はそれぞれ同じストアアドレスを比較
し、一致信号を出力しない比較器があつたとき故
障を示す信号を出力するように構成されている。
(Means for Solving the Problems) In order to achieve the above object, a failure detection method for a store check mechanism according to the present invention is provided between a cache memory and a main memory in an information processing device, and is configured to detect data stored in the main memory. It consists of a memory store buffer with multiple entries that holds addresses corresponding to the memory store buffer, and a mechanism that issues a memory read request to the main memory. In a fault detection method for a store check mechanism that compares addresses and outputs a match signal if they are the same, a selector is provided at one input of a comparator corresponding to each entry of the store address, and at the timing of the read address, As a result of selecting each read address and comparing it with the corresponding store address, when a match is detected, a timing is generated to give priority to the store buffer cleaning operation, and when the store buffer cleaning operation is given priority, each selector selects each store address. The selected comparators are configured to compare the same store address, and output a signal indicating a failure when a comparator does not output a matching signal.

(実施例) 次に、本発明について図面を参照して説明す
る。
(Example) Next, the present invention will be described with reference to the drawings.

第1図は本発明による故障検出方式の一実施例
を示すブロツク図である。
FIG. 1 is a block diagram showing an embodiment of the failure detection method according to the present invention.

ストアバツフア1は例えば4エントリのキヤツ
シユストアバツフアのうち、アドレスのストアバ
ツフアのみを抜粋したものである。
Store buffer 1 is, for example, an address store buffer extracted from a cache store buffer of four entries.

本図に記載部分および記載されていない部分の
ストアバツフアの構成はFIFO構造であり、例え
ばレジスタまたはレジスタフアイルと、入力およ
び出力のエントリを示すポインタとポインタを制
御する制御回路とから構成されている。
The structure of the store buffer shown in the figure and the part not shown is a FIFO structure, and is composed of, for example, a register or a register file, a pointer indicating input and output entries, and a control circuit that controls the pointer.

ストアバツフアの内容は、読出す以外にも参照
することが可能で、後述する比較器で、ストアバ
ツフアのアドレスとリードアドレスとの比較を行
なつている。
The contents of the store buffer can be referenced in addition to being read, and a comparator, which will be described later, compares the store buffer address with the read address.

セレクタ20a付きのレジスタ20は、リード
リクエストおよびストアのリクエストを切換えて
受付け、メインメモリにリクエストを送出する。
A register 20 with a selector 20a switches between accepting a read request and a store request, and sends the request to the main memory.

通常はリードリクエストが優先的に処理され
る。しかし、ストア優先処理タイミング発生回路
21が発生するタイミングで線15が“0”にな
るとANDゲート17の反転出力が“1”になる
ので、セレクタ20aはストアバツフア1の出力
を選択し、ストアが優先的に処理される。
Normally, lead requests are processed with priority. However, when the line 15 becomes "0" at the timing generated by the store priority processing timing generation circuit 21, the inverted output of the AND gate 17 becomes "1", so the selector 20a selects the output of the store buffer 1, and the store has priority. be processed.

比較器2〜5はストアバツフア1に保持された
ストアアドレスとリードアドレスを比較するため
のものである。比較器2〜5の一方の入力はセレ
クタ2a〜5aになつており、このセレクタ2a
〜5aは線14が“0”のときANDゲート6の
反転出力が“1”になるのでセレクタ18の出力
を、また線14が“1”のとき、ANDゲート6
の正出力が“1”になるのでストアバツフア1に
保持されたストアアドレスを選択する。したがつ
て比較器2〜5は、線14が“0”のときは、セ
レクタ18の出力(リードアドレス)とストアバ
ツフア1に保持されたストアアドレスとを比較
し、線14が“1”のときは、2つの入力にスト
アバツフア1に保持されたアドレスを2つの入力
に受け、同じアドレスを比較する。
Comparators 2 to 5 are for comparing the store address held in the store buffer 1 with the read address. One input of the comparators 2 to 5 is the selector 2a to 5a, and this selector 2a
5a is the output of the selector 18 since the inverted output of the AND gate 6 becomes "1" when the line 14 is "0", and the output of the AND gate 6 when the line 14 is "1".
Since the positive output of is "1", the store address held in store buffer 1 is selected. Therefore, comparators 2 to 5 compare the output (read address) of selector 18 with the store address held in store buffer 1 when line 14 is "0", and compare the output (read address) of selector 18 with the store address held in store buffer 1 when line 14 is "1". receives the addresses held in store buffer 1 at two inputs, and compares the same addresses.

セレクタ18およびレジスタ19はリードリク
エストがストア優先処理によつて保留された場合
にリードアドレスを保持するためのループを構成
する回路部である。線13が“0”のときは、
ANDゲート16の反転出力が“1”となるので
セレクタ18は外部からのリードアドレスを受付
ける。また、線13が“1”のときはANDゲー
ト16の正出力が“1”となるのでセレクタ18
はレジスタ19の出力を選択し、リードアドレス
を保持する。
The selector 18 and the register 19 are circuit units forming a loop for holding a read address when a read request is suspended due to store priority processing. When line 13 is “0”,
Since the inverted output of the AND gate 16 becomes "1", the selector 18 accepts a read address from the outside. Also, when the line 13 is "1", the positive output of the AND gate 16 is "1", so the selector 18
selects the output of register 19 and holds the read address.

今、線14が“0”の状態の場合の動作につい
て説明する。
Now, the operation when the line 14 is in the "0" state will be explained.

線14は“0”であり、各セレクタ2a〜5a
はリードアドレスを選択するので比較器2〜5
は、リードアドレスとストアバツフア1に保持さ
れたストアアドレスの比較を行なう。比較器2〜
5の出力はオアゲート7でオアされるため、スト
アバツフア1に保持されたアドレスのうち、1つ
でもリードアドレスと一致するものがあればオア
ゲート7の出力は“1”となる。ANDゲート6
の反転出力は“1”となつているので、オアゲー
ト7の出力は反転してNANDゲート9から出力
される。このNANDゲート9の出力が“0”の
ときはリードの追越しが起こつたことを示し、線
12が“0”になることによつてストア優先処理
タイミング発生回路21にリードの保留、ストア
の優先処理を要求する。ストアバツフア1に保持
されたアドレスのうち、セレクタ18の出力(リ
ードアドレス)と一致するものがない場合は、オ
アゲート7の出力は“0”となるので、NAND
ゲート9の出力は“1”となり、線12は“1”
の状態を保持し、通常の通り、リードが優先的に
処理される。
The line 14 is "0", and each selector 2a to 5a
selects the read address, so comparators 2 to 5
compares the read address and the store address held in store buffer 1. Comparator 2~
Since the output of 5 is ORed by the OR gate 7, if even one of the addresses held in the store buffer 1 matches the read address, the output of the OR gate 7 becomes "1". AND gate 6
Since the inverted output of is "1", the output of the OR gate 7 is inverted and output from the NAND gate 9. When the output of this NAND gate 9 is "0", it indicates that read overtaking has occurred, and when the line 12 becomes "0", the store priority processing timing generation circuit 21 is instructed to hold the read and give priority to the store. Request processing. If there is no address that matches the output (read address) of the selector 18 among the addresses held in the store buffer 1, the output of the OR gate 7 will be "0", so the NAND
The output of gate 9 becomes “1” and line 12 becomes “1”
status is maintained, and reads are processed with priority as usual.

次に線14が“1”の状態にある場合の動作を
説明する。
Next, the operation when the line 14 is in the "1" state will be explained.

線14が“1”のときは、セレクタ2a〜5a
はストアアドレスを選択するので比較器2〜5の
2入力には同一のアドレスが入力されている。比
較器の機能が正常であれば比較器2〜5の出力は
全て“1”になる。このことを確認するために、
比較器2〜5の出力をNANDゲート8に入力し
ている出力が“1”にならない比較器があれば
NANDゲート8の出力は“1”となるためリー
ドタイミングでないタイミングをとつたアンド回
路10の出力が“1”となり、これにより、少な
くとも比較器の1つが故障であることが検出され
る。
When line 14 is “1”, selectors 2a to 5a
Since selects the store address, the same address is input to two inputs of comparators 2 to 5. If the comparators function normally, the outputs of comparators 2 to 5 will all be "1". To confirm this,
If there is a comparator that inputs the outputs of comparators 2 to 5 to NAND gate 8, the output does not become "1".
Since the output of the NAND gate 8 becomes "1", the output of the AND circuit 10, which has a timing other than the read timing, becomes "1", thereby detecting that at least one of the comparators is malfunctioning.

第2図は第1図のストア優先処置タイミング発
生回路21の部分を詳細に示す図である。
FIG. 2 is a diagram showing in detail the store priority processing timing generation circuit 21 of FIG. 1.

レジスタ40〜42は定常状態では“0”とな
つているフリツプフロツプ(以下FFと略す)で
ある。
Registers 40 to 42 are flip-flops (hereinafter abbreviated as FF) that are at "0" in a steady state.

今、リードリクエストによつて線11が“1”
になるとANDゲート30、ORゲート35を通し
てFF40には“1”がセツトされる。これによ
つて線13も“1”になり、前述したように、リ
ードアドレスがセレクタ18、レジスタ19で構
成されるループ内に保持される。ANDゲート3
0の出力が“1”になることによつてORゲート
37の出力も“1”となる。このとき、リードの
保留を指示する線12が活性でない状態“1”に
なつていればANDゲート34は“1”となりFF
42には“1”がセツトされる。また、ANDゲ
ート34の出力は線15を通してセレクタ20a
付きレジスタ20を切替えており、“1”のとき
はリードリクエスト受付ける。FF40および4
2に“1”がセツトされた後はFF42によつて
FF40がリセツトされ、FF40によつてFF4
2もリセツトされるがFF42が“1”の間、線
14を通して“1”が出力されている。この期間
がストア優先処理タイミングで、リードリクエス
トは受付けられずストアが優先的に処理される。
また、前述したように、この期間にストアバツフ
アの比較器の試験が行なわれる。
Now, line 11 is “1” due to the read request.
When this happens, "1" is set in the FF 40 through the AND gate 30 and the OR gate 35. As a result, the line 13 also becomes "1", and the read address is held in the loop composed of the selector 18 and register 19, as described above. AND gate 3
As the output of 0 becomes "1", the output of the OR gate 37 also becomes "1". At this time, if the line 12 that instructs read suspension is inactive and is at "1", the AND gate 34 becomes "1" and the FF
42 is set to "1". Also, the output of the AND gate 34 is passed through the line 15 to the selector 20a.
When the register 20 is set to "1", a read request is accepted. FF40 and 4
After “1” is set in 2, FF42
FF40 is reset, and FF40 is reset by FF40.
2 is also reset, but while FF 42 is "1", "1" is output through line 14. This period is the store priority processing timing, in which read requests are not accepted and stores are processed preferentially.
Also, as described above, the store buffer comparator is tested during this period.

次にリクエストのタイミングでリードの保留を
指示する線12が活性状態“0”になつた場合を
説明する。この場合はANDゲート34の出力は
“0”となるため、FF42は“0”の状態であ
り、線15には“0”が出力されている。したが
つてリードリクエストは受付けられず、セレクタ
20a付きレジスタ20にはストアリクエストが
受付けられる。FF42に“1”がセツトされな
い代わりにFF41にはANDゲート32、ORゲ
ート36を通じて“1”が出力される。この後、
しばらくして、リードと同一のアドレスに対する
ストアがストアバツフア1からセレクタ付きレジ
スタ20を通つてメモリに掃き出されるとリード
の保留を示す信号12が不活性状態“1”にな
り、ANDゲート34の出力が“1”になる。以
降は前述したように、リードが優先的に処理さ
れ、FF42がセツト、FF41はリセツトされ、
ストア優先処理に入る。
Next, a case will be described in which the line 12 instructing read suspension becomes active state "0" at the request timing. In this case, since the output of the AND gate 34 is "0", the FF 42 is in the "0" state, and "0" is output to the line 15. Therefore, a read request is not accepted, and a store request is accepted by the register 20 with selector 20a. Instead of "1" being set in FF42, "1" is output to FF41 through AND gate 32 and OR gate 36. After this,
After a while, when the store to the same address as the read is flushed from the store buffer 1 to the memory through the register with selector 20, the signal 12 indicating suspension of the read becomes inactive state "1", and the output of the AND gate 34 becomes “1”. From then on, as described above, reads are processed with priority, FF42 is set, FF41 is reset, and so on.
Enter store priority processing.

(発明の効果) 以上、説明したように、本発明は、ストアバツ
フアのリード追越し検出のための比較器を、スト
アバツフア掃出し動作優先時に、一致信号が出力
されるように2つの入力に同じデータを入力し
て、故障を検出するように構成されているので、
事前に比較器の故障を発見でき、コマンド実行の
順序性が保てなくなることがわかるので、リード
の追越によるデータ化けといつた重大な故障の発
生を防止できるという効果がある。
(Effects of the Invention) As described above, the present invention inputs the same data to two inputs of a comparator for detecting read overtaking of a store buffer so that a match signal is output when priority is given to the store buffer sweep operation. and is configured to detect failures.
Since a comparator failure can be discovered in advance and it can be seen that the order of command execution cannot be maintained, it is possible to prevent serious failures such as data garbled due to read overtaking.

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

第1図は本発明による故障検出方式の一実施例
を示すブロツク図である。第2図は第1図21の
ストア優先処理タイミング発生回路の詳細を示す
ブロツク図である。 1……メモリストアバツフアの一部、2〜5…
…アドレス比較器、6,16……正負の出力をも
つバツフア、8,9……NANDゲート、10…
…ANDゲート、7……オアゲート、18……セ
レクタ、19……レジスタ、20……セレクタ付
きレジスタ、30,31,32,33,34……
ANDゲート、35,36,37……ORゲート、
38,39……正負の出力をもつバツフア、4
0,41,42……個別制御用フリツプフロツ
プ。
FIG. 1 is a block diagram showing an embodiment of the failure detection method according to the present invention. FIG. 2 is a block diagram showing details of the store priority processing timing generation circuit shown in FIG. 1. 1... Part of the memory store buffer, 2 to 5...
...Address comparator, 6, 16... Buffer with positive and negative outputs, 8, 9... NAND gate, 10...
...AND gate, 7...OR gate, 18...Selector, 19...Register, 20...Register with selector, 30, 31, 32, 33, 34...
AND gate, 35, 36, 37...OR gate,
38, 39... Buffer with positive and negative outputs, 4
0, 41, 42...Flip-flop for individual control.

Claims (1)

【特許請求の範囲】[Claims] 1 情報処理装置におけるキヤツシユメモリと主
記憶の中間に設けられ、主記憶にストアするデー
タと対応するアドレスを保持する複数エントリの
メモリストアバツフアと、主記憶に対してメモリ
リード要求を出す機構とからなり、前記複数エン
トリのメモリストアバツフア内に保持するストア
アドレスと前記メモリリードのアドレスをそれぞ
れ比較し、同一である場合に一致信号を出力する
ストアチエツク機構の故障検出方式において、前
記ストアアドレスの各エントリ対応の比較器の一
方の入力にセレクタを設け、リードアドレスのタ
イミングで、それぞれリードアドレスを選択して
対応のストアアドレスと比較した結果、一致を検
出したときストアバツフア掃出し動作優先となる
タイミングを発生し、前記ストアバツフア掃出し
動作優先となつたとき、前記各セレクタは各スト
アアドレスを選択し各比較器はそれぞれ同じスト
アアドレスを比較し、一致信号を出力しない比較
器があつたとき故障を示す信号を出力するように
構成したことを特徴とするストアチエツク機構の
故障検出方式。
1. A memory store buffer with multiple entries that is provided between the cache memory and main memory in an information processing device and holds addresses corresponding to data stored in the main memory, and a mechanism that issues memory read requests to the main memory. In the failure detection method of the store check mechanism, the store address held in the memory store buffer of the plurality of entries is compared with the address of the memory read, and if they are the same, a match signal is output. A selector is provided at one input of the comparator corresponding to each address entry, and at the timing of the read address, each read address is selected and compared with the corresponding store address. When a match is detected, priority is given to the store buffer flushing operation. When the timing is generated and priority is given to the store buffer cleaning operation, each selector selects each store address, each comparator compares the same store address, and when a comparator does not output a match signal, a failure occurs. 1. A failure detection method for a store check mechanism, characterized in that the system is configured to output a signal indicating a signal.
JP61287503A 1986-12-02 1986-12-02 System for detecting trouble of store check mechanism Granted JPS63140354A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61287503A JPS63140354A (en) 1986-12-02 1986-12-02 System for detecting trouble of store check mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61287503A JPS63140354A (en) 1986-12-02 1986-12-02 System for detecting trouble of store check mechanism

Publications (2)

Publication Number Publication Date
JPS63140354A JPS63140354A (en) 1988-06-11
JPH056896B2 true JPH056896B2 (en) 1993-01-27

Family

ID=17718184

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61287503A Granted JPS63140354A (en) 1986-12-02 1986-12-02 System for detecting trouble of store check mechanism

Country Status (1)

Country Link
JP (1) JPS63140354A (en)

Also Published As

Publication number Publication date
JPS63140354A (en) 1988-06-11

Similar Documents

Publication Publication Date Title
JPH05128080A (en) Information processing equipment
JPH07129426A (en) Fault handling method
JPH056896B2 (en)
JP3494072B2 (en) Cache memory and fault detection method thereof
JP3239935B2 (en) Tightly-coupled multiprocessor system control method, tightly-coupled multiprocessor system, and recording medium therefor
JPH056897B2 (en)
JPH1027115A (en) Fault information sampling circuit for computer system
KR0121442B1 (en) Cache Error Detection in Multiprocessor System and Its Processing Apparatus and Method
JPH04125753A (en) On-lined diagnostic system for memory
JPH08305637A (en) Storage device
JPH0782475B2 (en) Memory interlock control circuit
JP2510663B2 (en) Error control method
JPH0215353A (en) Abnormality setting system at specific address
JP5888419B2 (en) Data processing apparatus, processor, and operation history recording method
JP2658342B2 (en) Data processing device
JP3019336B2 (en) Microprocessor development support equipment
JPS6130296B2 (en)
JPS63123140A (en) History information storage device
JPH0736735A (en) Debugging device
JPS60225941A (en) Microprogram control device
JPH0481953A (en) Memory device
JPH01292561A (en) Test-and-set system
JPS59111551A (en) Operation recorder
JPH05274169A (en) Computer
JPH0594379A (en) Shared memory control system