JPH02113345A - Pseudo machine error generation system - Google Patents

Pseudo machine error generation system

Info

Publication number
JPH02113345A
JPH02113345A JP63265262A JP26526288A JPH02113345A JP H02113345 A JPH02113345 A JP H02113345A JP 63265262 A JP63265262 A JP 63265262A JP 26526288 A JP26526288 A JP 26526288A JP H02113345 A JPH02113345 A JP H02113345A
Authority
JP
Japan
Prior art keywords
pseudo
machine error
address
pseudo machine
fault
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63265262A
Other languages
Japanese (ja)
Inventor
Yoichi Sato
洋一 佐藤
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
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP63265262A priority Critical patent/JPH02113345A/en
Publication of JPH02113345A publication Critical patent/JPH02113345A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To generate a pseudo machine error at irregular time on a time base by generating an pseudo machine error when a program generates the same address as an optionally settable value. CONSTITUTION:An pseudo machine error address register 10 holds an address value as a condition for causing pseudo machine error generation and its output is compared by a comparator 30 with the program generation address value which is supplied from a connection 904, so that when they are coincident, an address coincidence signal '1' is sent onto a connection 301. The address coincidence signal is sent to a connection 311 through an AND circuit 31 when a permit flag 20 indicating whether the pseudo machine error generation is allowed or not is '1', i.e. when the pseudo machine error generation is allowed. A decoder 50 decodes an pseudo machine error code stored in an pseudo machine error code register 40 and outputs an pseudo machine error signal to a connection 501. Consequently, the pseudo machine error generation time is given the degree of freedom (random).

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は障害処理を行なうデ−タ処理装置における擬障
発生方式に関し、特に時間軸上でランダムに擬障を発生
させる方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a method of generating a pseudo fault in a data processing device that performs fault processing, and particularly to a method of generating a pseudo fault randomly on a time axis.

[従来の技術] 従来、この種の擬障発生方式としては、人手作業により
任意のチップのビンを零固定にする方法や、特定のソフ
トウェア命令によって擬障を発生させる方法等が知られ
ている。
[Prior Art] Conventionally, as this type of pseudo-failure generating method, methods are known such as manually fixing the bin of an arbitrary chip to zero, and generating a pseudo-failure using a specific software command. .

[発明が解決しようとする課題] ′上述した従来の人手による方法は、効率が悪いことや
、再現性がない等の欠点がある。又、ソフトウェア命令
による方法は、再現性が完全だが、擬障発生時間に自由
度(ランダム性)がないという欠点があった。
[Problems to be Solved by the Invention] 'The conventional manual methods described above have drawbacks such as low efficiency and lack of reproducibility. Furthermore, although the method using software instructions has perfect reproducibility, it has the disadvantage that there is no degree of freedom (randomness) in the time at which a false failure occurs.

特に近年のデータ処理装置では、障害処理機能が充実し
つつあり、その検査手段が重要となっている。その検査
手段の中でも、時間軸上で不規則に発生する故障に対す
る動作確認を容易に行なうための手段が不足している。
Particularly in recent data processing apparatuses, failure handling functions are becoming more and more enhanced, and inspection means have become important. Among these inspection means, there is a lack of means for easily checking the operation of failures that occur irregularly on the time axis.

c課届を解決するための手段] 本発明による擬障発生方式は、故障検出手段を有し、該
故障検出手段で故障が検出されるとあらかじめ決められ
た方法に従って処理を実行するデータ処理装置において
、 擬障条件を規定するアドレスを保持する擬障アドレスレ
ジスタと、 プログラム実行にともない発生される実効アドレスと前
記擬障アドレスレジスタの内容とが一致しているか否か
検出する比較器と、 擬障発生を許可する許可フラグとを具備し、第1の段階
で前記擬障アドレスレジスタに所望のアドレスをセット
するとともに前記許可フラグをオンとしてから、プログ
ラムを再開させることにより、該プログラムが前記所望
のアドレスを発生すると前記比較器で一致を検出するこ
とにより、擬障を発生させることを特徴とする。
Means for Solving Section C Notification] The pseudo failure occurrence method according to the present invention includes a data processing device that has a failure detection means and executes processing according to a predetermined method when a failure is detected by the failure detection means. , a pseudo-fault address register that holds an address that defines a pseudo-fault condition; a comparator that detects whether an effective address generated during program execution matches the contents of the pseudo-fault address register; In the first step, a desired address is set in the pseudo-fault address register and the permission flag is turned on, and then the program is restarted. The present invention is characterized in that when an address is generated, the comparator detects a match, thereby generating a false fault.

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

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

擬障アドレスレジスタ10は擬障発生を起動する条件と
してのアドレス値を保持し、その出力(結線101)は
比較器30で結線904から供給されるプログラム発生
アドレス値と比較される。
The pseudo-fault address register 10 holds an address value as a condition for activating the pseudo-fault occurrence, and its output (connection 101) is compared by the comparator 30 with the program-generated address value supplied from the connection 904.

もし比較の結果、一致が検出されれば、結線301上に
アドレス一致信号を“1”として通知する。アドレス一
致信号は、擬障発生の許可状態であるか否かを表示する
許可フラグ20の値が“1“、すなわち擬障発生許可状
態の場合、AND回路31を通過し結線311へ送られ
る。デコー′ダ50は、発生させるべき擬障の種類を指
定するコードを保持する擬障コードレジスタ40に格納
されている擬障コードを解読する回路である。
If a match is detected as a result of the comparison, an address match signal of "1" is notified on the connection 301. The address match signal passes through the AND circuit 31 and is sent to the connection 311 when the value of the permission flag 20 indicating whether or not pseudo-fault occurrence is permitted is "1", that is, the pseudo-fault occurrence is permitted. The decoder 50 is a circuit that decodes the pseudo fault code stored in the pseudo fault code register 40 which holds a code specifying the type of pseudo fault to be generated.

具体的に、演算処理装置においては、キャッシュ・メモ
リの擬障、ソフトウェア用レジスタ(汎用レジスタ等)
の擬障、ハードウェアレジスタの擬障等、アーキテクチ
ャに依存した擬障コードを準備している。本実施例では
、結線501として/1−ドウエアレジスタの擬障信号
を示している。
Specifically, in arithmetic processing units, cache memory pseudo failures, software registers (general purpose registers, etc.)
We have prepared architecture-dependent pseudo-failure codes, such as pseudo-failures for hardware registers and hardware registers. In this embodiment, the connection 501 is a false fault signal of the /1-doware register.

この擬障信号は、OR回路51で実際のハードウェア・
レジスタの故障検出信号(結線905)と論理和がとら
れ、故障検出フラグ60を“1”にセットする。故障検
出フラグ60出力は、エラー通知信号(結線601)と
して障害処理装置に通知される。本実施例では記載して
いないが、障害処理は、診断装置かサービス・プロセッ
サ等が主力となって実行する。
This pseudo-failure signal is converted into an actual hardware signal by an OR circuit 51.
A logical OR is taken with the failure detection signal of the register (connection 905), and the failure detection flag 60 is set to "1". The failure detection flag 60 output is notified to the failure processing device as an error notification signal (connection 601). Although not described in this embodiment, failure processing is mainly carried out by a diagnostic device, a service processor, or the like.

次に擬障アドレスレジスタ10等の設定について説明す
る。
Next, the settings of the pseudo-failure address register 10 and the like will be explained.

擬障アドレスレジスタ10、許可フラグ20、擬障コー
ドレジスタ40のセットはマイクロプログラムから実行
可能となっており、ソフトウェア命令からセットするこ
とも可能である。また、サービス・プロセッサを通じて
マイクロプログラムを制御しセットすることも可能であ
り、サービス・プロセッサにはオペレータ(人間)の指
示をマイクロプログラムに通知する手段を有しているの
で、人手でコンソールからセットすることも可能である
。いずれにしても、直接セット指示を発行するのはマイ
クロ・プログラムである。マイクロプログラムで許可フ
ラグ20が“1“にセットされると、擬障発生機構が有
効となる。ただし、本実施例においては、擬障コードレ
ジスタ4oの値によっては、結線311が“1′となら
なくても擬障の発生を有効とすることもある。
Setting of the pseudo-fault address register 10, permission flag 20, and pseudo-fault code register 40 can be executed from a microprogram, and can also be set from a software instruction. It is also possible to control and set the microprogram through the service processor, and since the service processor has a means of notifying the microprogram of operator (human) instructions, it is possible to set the microprogram manually from the console. It is also possible. In any case, it is the microprogram that issues the direct set instruction. When the permission flag 20 is set to "1" by the microprogram, the false failure generation mechanism becomes effective. However, in this embodiment, depending on the value of the pseudo fault code register 4o, the occurrence of a pseudo fault may be valid even if the connection 311 does not become "1'."

次に第2図を用いて本実施例の動作について説明をする
Next, the operation of this embodiment will be explained using FIG. 2.

前述のように、マイクロ・プログラムによって、タイミ
ングt1で擬障アドレスレジスタ1oに擬障発生アドレ
ス′N”がセットされ、タイミングt′2で擬障コード
レジスタ40に擬障コード“a(ハードウェアレジスタ
擬障)がセットされ、タイミングt、で許可フラグ20
”が“1“とされると、タイミングt、以降、アドレス
一致信号(第1図の比較器30出力)が有効となる。
As mentioned above, at timing t1, the pseudo fault occurrence address 'N' is set in the pseudo fault address register 1o by the micro program, and at timing t'2, the pseudo fault code "a" (hardware register) is set in the pseudo fault code register 40. pseudo fault) is set, and the permission flag is set to 20 at timing t.
” is set to “1”, the address match signal (output from the comparator 30 in FIG. 1) becomes valid from timing t onwards.

以上で擬障発生の準備が完了すると、マイクロ・プログ
ラムはプログラムの開始あるいは再開を指示する。これ
により、第2図では、タイミングt4からプログラム上
の命令が走行開始し、メモリアクセスを必要とするよう
な命令を実行すると、メモリアドレスがハードウェアで
発生される。このメモリアドレスはプログラム発生アド
レスと呼ばれ、この値が第1図の比較器30でチエツク
されることになる。
When preparations for pseudo-failure generation are completed, the microprogram instructs to start or restart the program. As a result, in FIG. 2, instructions on the program start running at timing t4, and when an instruction requiring memory access is executed, a memory address is generated by hardware. This memory address is called a program generation address, and its value will be checked by comparator 30 in FIG.

第2図において、タイミング1.において命令X実行で
プログラム発生アドレスが“N”となると、次のタイミ
ング(tい、)において、検出フラグ60がセットされ
、擬障によるエラー発生が完了する。
In FIG. 2, timing 1. When the program generation address becomes "N" upon execution of instruction X, the detection flag 60 is set at the next timing (t), and the error occurrence due to the pseudo fault is completed.

検出フラグ60の出力は他の検出フラグの出力と論理和
され、システム内の適当な装置へ通知され、障害処理が
起動されるが、本発明の範囲を超えるのでここでは説明
を省く。タイミング上4以降で走行するプログラムが同
一なら同じタイミングで擬障が発生するが、異なるプロ
グラムでは異なったタイミングで擬障が発生するように
できる。
The output of the detection flag 60 is logically ORed with the outputs of other detection flags, and the appropriate device within the system is notified and fault handling is activated, but this is beyond the scope of the present invention and will not be described here. In terms of timing, if the programs running after 4 are the same, the pseudo fault will occur at the same timing, but with different programs, the pseudo fault can occur at different timings.

[発明の効果] 以上説明したように、本発明は、プログラムが任意に設
定可能な値と同一のアドレスを発生したとき、擬障を発
生させることにより、時間軸上で不規則な時間に擬障を
発生させることができる。
[Effects of the Invention] As explained above, the present invention generates a pseudo fault when a program generates an address that is the same as an arbitrarily settable value, thereby causing a pseudo fault to occur at an irregular time on the time axis. It can cause problems.

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

第1図は本発明の一実施例のブロック図、第2図は本発
明の詳細な説明するためのタイムチャートである。 10.40・・・レジスタ、20,60・・・フリップ
・70ツブ、30・・・比較器、50・・・デコーダ、
31・・・AND回路、51・・・OR回路。
FIG. 1 is a block diagram of an embodiment of the present invention, and FIG. 2 is a time chart for explaining the present invention in detail. 10.40...Register, 20,60...Flip/70 tube, 30...Comparator, 50...Decoder,
31...AND circuit, 51...OR circuit.

Claims (1)

【特許請求の範囲】 1、故障検出手段を有し、該故障検出手段で故障が検出
されるとあらかじめ決められた方法に従って処理を実行
するデータ処理装置において、擬障条件を規定するアド
レスを保持する擬障アドレスレジスタと、 プログラム実行に伴ない発生される実効アドレスと前記
擬障アドレスレジスタの内容とが一致しているか否か検
出する比較器と、 擬障発生を許可するフラグとを具備し、 第1の段階で前記擬障アドレスレジスタに所望のアドレ
スをセットするとともに前記許可フラグをオンとしてか
ら、プログラムを再開させることにより、該プログラム
が前記所望のアドレスを発生すると前記比較器で一致を
検出することにより擬障を発生させることを特徴とする
擬障発生方式。
[Claims] 1. In a data processing device that has a failure detection means and executes processing according to a predetermined method when a failure is detected by the failure detection means, an address that defines a false failure condition is held. A comparator for detecting whether an effective address generated during program execution matches the contents of the pseudo fault address register, and a flag for permitting the occurrence of a pseudo fault. In the first step, the desired address is set in the false fault address register and the permission flag is turned on, and then the program is restarted. When the program generates the desired address, the comparator detects a match. A pseudo-failure generation method that is characterized by generating a pseudo-fault by detecting it.
JP63265262A 1988-10-22 1988-10-22 Pseudo machine error generation system Pending JPH02113345A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63265262A JPH02113345A (en) 1988-10-22 1988-10-22 Pseudo machine error generation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63265262A JPH02113345A (en) 1988-10-22 1988-10-22 Pseudo machine error generation system

Publications (1)

Publication Number Publication Date
JPH02113345A true JPH02113345A (en) 1990-04-25

Family

ID=17414787

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63265262A Pending JPH02113345A (en) 1988-10-22 1988-10-22 Pseudo machine error generation system

Country Status (1)

Country Link
JP (1) JPH02113345A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH052504A (en) * 1991-06-25 1993-01-08 Nec Corp Dummy fault display system
JP5362856B2 (en) * 2010-02-08 2013-12-11 富士通株式会社 Error generation instruction circuit, storage device, information processing apparatus, and error generation instruction circuit control method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH052504A (en) * 1991-06-25 1993-01-08 Nec Corp Dummy fault display system
JP5362856B2 (en) * 2010-02-08 2013-12-11 富士通株式会社 Error generation instruction circuit, storage device, information processing apparatus, and error generation instruction circuit control method

Similar Documents

Publication Publication Date Title
EP0702297A1 (en) A data processor with breakpoint circuit and method therefor
US7043582B2 (en) Self-nesting interrupts
JPH02113345A (en) Pseudo machine error generation system
KR20180019594A (en) And apparatus for protecting the program counter structure of a processor system and for monitoring the processing of an interrupt request
JPH0675820A (en) Interruption device in multi-processor system
JP2653412B2 (en) How to set breakpoints
JPH02183346A (en) Pseudo fault generating system
JPH0652017A (en) Program runaway detecting system
JPS6118045A (en) Detecting system of program runaway
JPH0581041A (en) Information processor
JPS59112494A (en) Memory testing system
JPH0535611A (en) Information processor
JP2004342001A (en) Semiconductor integrated circuit device
JPH01237852A (en) Abnormality monitoring timer controller
JPH02103643A (en) Interruption generation circuit for debug
JPS6167146A (en) Pseudo fault generating system
JPH0512005A (en) Information processor
JPH07295834A (en) Debug monitor processing method/device
JPH05241898A (en) Hard brake system
JPH0659931A (en) Debugging device
JPH01142834A (en) Test result output control system for test program
JPH0772874B2 (en) Interrupt receiving device
JPH02190943A (en) Pseudo fault generator
JPS6113609B2 (en)
JPH07134665A (en) Information processor