JPS6148045A - Pseudo fault generating system - Google Patents

Pseudo fault generating system

Info

Publication number
JPS6148045A
JPS6148045A JP59169496A JP16949684A JPS6148045A JP S6148045 A JPS6148045 A JP S6148045A JP 59169496 A JP59169496 A JP 59169496A JP 16949684 A JP16949684 A JP 16949684A JP S6148045 A JPS6148045 A JP S6148045A
Authority
JP
Japan
Prior art keywords
interrupt
window
fault
program
central processing
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
JP59169496A
Other languages
Japanese (ja)
Inventor
Yoshihiro Hongo
本郷 喜裕
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 JP59169496A priority Critical patent/JPS6148045A/en
Publication of JPS6148045A publication Critical patent/JPS6148045A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To simplify a debugging or a test relating to a fault processing of a program by providing a window which can control by a program whether an interruption is permitted or not, concerning the interruption due to the fault. CONSTITUTION:The program to be tested indicates a permission to the window 1b only in a partition to be tested. At a time of t0, the program enters a partition except the test object, and executes an instruction I1 for indicating an impermission to the window 1b. Thereafter, at the time of t2, an instruction I2 for activating a suspected fault is performed, and a bit in question of an interrupting cell 2a is set at a hold condition. At the time of t4, an instruction I3 for indicating a permission to the window 1b is executed and immediately, the interruption due to the pseudofault is generated and a test relating to the fault processing of the program to be tested is executed.

Description

【発明の詳細な説明】 〔技術分野〕 本発明は、障害が割込みによって中央処理装置へ報告さ
れる電子計算機システムにおける擬似障害発生方式に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field] The present invention relates to a pseudo fault generation method in a computer system in which a fault is reported to a central processing unit by an interrupt.

〔従来技術〕[Prior art]

従来、障害が割込みKよって中央処理装置に報告される
電子計算機システムにおけるプログラムの障害処理に関
連する部分のデバッグやテストは論理回路の特定の部分
を人為的に短絡させたり、あたかも障害が発生したかの
如き割込み動作を中央処理装ff1lc起こさせる装置
診断命令を実行したりして、擬似的に障害を発生させる
方式が実施されてきた。前者の方式では人手が介入する
ので障害による割込みが発生するプログラムの部分を特
定することは不可能であるし、後者の方式では装置診断
命令は通常特権命令であること、および割込みを抑止す
る割込みiスフレジスタを使用しない限り、該命令の実
行により直ちに擬似障害による割込みが発生するととか
う、通常のプログラムの実行中の障害処WK関連する部
分のデバッグやテストに使用することは困難である。ま
た、割込みマスクレジスタはオペレーティングシステム
がシステムの制御手段として使用しており、通常のプロ
グラムのデバッグやテストの目的でその内容を変更でき
るものではない。したがって、従来の方式はいずれも擬
似障害による割込みの発生のタイミングに関する制約が
極めて大きく、通常のプログラムの障害処理に関連する
部分の網羅的デバッグやテストには使えないという欠点
をもつ。
Conventionally, in computer systems where faults are reported to the central processing unit by interrupt K, debugging and testing of parts related to fault handling of programs involves artificially short-circuiting specific parts of logic circuits, or detecting faults as if a fault had occurred. A method has been implemented in which a failure is caused in a pseudo manner by executing a device diagnostic instruction that causes the central processing unit ff1lc to cause such an interrupt operation. In the former method, it is impossible to identify the part of the program where an interrupt occurs due to a failure because it involves human intervention, and in the latter method, the device diagnostic instruction is usually a privileged instruction, and there is an interrupt that prevents the interrupt. Unless the i-splash register is used, it is difficult to use it for debugging or testing parts related to fault handling WK during normal program execution, such as when an interrupt due to a pseudo fault occurs immediately upon execution of the instruction. Further, the interrupt mask register is used by the operating system as a system control means, and its contents cannot be changed for the purpose of normal program debugging or testing. Therefore, all of the conventional methods have extremely large restrictions on the timing of occurrence of interrupts due to pseudo-faults, and have the disadvantage that they cannot be used for comprehensive debugging or testing of parts related to fault handling in normal programs.

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

本発明の目的は、上述の欠点を除去し、擬似的な障害に
よる割込みの発生のタイミングに関する制約を緩和し、
プログラムの障害処理に関連する部分のデバッグやテス
トの網m性を上げられるような擬似障害発生方式を提供
することにある。
The purpose of the present invention is to eliminate the above-mentioned drawbacks, relax constraints on the timing of interrupt generation due to pseudo faults, and
It is an object of the present invention to provide a pseudo-fault generation method that can improve the ease of debugging and testing parts related to fault handling of programs.

〔発明の構成〕[Structure of the invention]

本発明の擬似障害発生方式は、中央処理装置への割込み
のうち障害に関するものだけに有効であり、かつ障害に
よる割込みを許可するか否かを示すウィンドウと、前記
ウィンドウに前記許可あるいは不許可を示させるための
設定手段と、障害の擬似的発生を起動する起動手段とを
有し、前記起動手段によって障害の発生が起動された後
前記ウィンドウに許可が示されている時にだけ中央処理
装置へ割込みKよって障害を報告し、前記ウィンドウに
不許可が示されている時には、前記設定手段により許可
が示されるまで中央処理装置への割込みによる障害の報
告を保留することを特徴とする。
The pseudo-failure generating method of the present invention is effective only for failure-related interrupts to the central processing unit, and includes a window indicating whether or not to permit interrupts caused by failures, and a window indicating whether to permit or disallow the interrupts caused by the failure. and a activating means for activating the pseudo-occurrence of a failure, and only when permission is indicated in the window after the activating means activates the occurrence of the failure. When a failure is reported by an interrupt K and the window indicates that permission is not permitted, reporting of the failure by interrupting the central processing unit is suspended until permission is indicated by the setting means.

〔実施例〕〔Example〕

本発明の実施例を図面を参照しながら説明する。 Embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の擬似障害発生方式を適用した電子計算
機システムの一実施例を示すブロック図である。本実施
例の電子計算機システムは中央処理装置Xt、1と、チ
ャネル制御装置3と、主記憶装置4と、これらの各装置
1〜3に接続されるシステム制御装R2とから構成され
ている。さらにシステム制御装置2にはチャネル制御装
置3および中央処理装置1からアクセス可能な、中央処
理装置1に対する割込み要求を保留する割込みセル2a
が設けられ、中央処理装置lには割込みセル2aに保留
された割込み要求のうち、どれを中央処理装置1が受取
るべきかを還択する割込みマスクレジスタlaと中央処
理装置1への割込みのうち障害に関するものだけに有効
で、かつ障害による割込みを許可するか否かを示すウィ
ンドウ1bが設げられている。割込みセル2aには割込
みの1別に対応したビット位置があり、障害による割込
みも割込みセル2aの特定のビット位置を占める。割込
みマスクレジスタ1aは割込みセル2aと同一の配列を
もつビット位置を有し、同様に障害による割込みのビッ
ト位置が存在する。障害の擬似的発生を起動する起動手
段は割込みセA/2aの当該ビットをオン(保留状態)
にすることができる。
FIG. 1 is a block diagram showing an embodiment of a computer system to which the pseudo fault generation method of the present invention is applied. The computer system of this embodiment is composed of a central processing unit Xt, 1, a channel control device 3, a main storage device 4, and a system control device R2 connected to each of these devices 1-3. Further, the system control device 2 has an interrupt cell 2a that is accessible from the channel control device 3 and the central processing device 1 and holds an interrupt request to the central processing device 1.
The central processing unit l is provided with an interrupt mask register la that selects which of the interrupt requests pending in the interrupt cell 2a should be received by the central processing unit 1, and an interrupt mask register la that selects which of the interrupt requests to the central processing unit 1 should be received. A window 1b is provided that is effective only for failure-related items and indicates whether or not to permit interruptions due to failures. The interrupt cell 2a has a bit position corresponding to each interrupt, and an interrupt due to a failure also occupies a specific bit position of the interrupt cell 2a. The interrupt mask register 1a has bit positions having the same arrangement as the interrupt cell 2a, and similarly there are bit positions for interrupts due to failures. The activation means for activating the pseudo-occurrence of a failure turns on the relevant bit of interrupt controller A/2a (pending state).
It can be done.

またウィンドウ1bに障害による割込みを許可するかあ
るいは許可しないかを示させる設定手段も存在する。本
実施例ではこれらはいずれも中央処理装置1の命令とし
て提供される。
There is also a setting means that allows the window 1b to indicate whether or not to permit interruptions due to failures. In this embodiment, these are all provided as instructions from the central processing unit 1.

第2図は中央処理装置10割込み処理を示すフローチャ
ートである。先づ割込みセル2aに割込みが保留されて
いるか判定する(ステップ11)。
FIG. 2 is a flowchart showing interrupt processing by the central processing unit 10. First, it is determined whether an interrupt is pending in the interrupt cell 2a (step 11).

割込みが保留されていれば、割Rζスクレジスタlaと
ウィンド1bをチェックしくステップ12゜13)、割
込みが障害でかつこの障害による割込みを許可する場合
に割込みセル2aの当該ビットをクリヤした後(ステッ
プ14)割込み処理を行ない(ステップ15)、とれ以
外の場合は割込与処理な行なわず次の命令を実行する(
ステップ16)。
If the interrupt is pending, check the interrupt Rζ register la and window 1b in steps 12 and 13), and if the interrupt is a fault and the interrupt due to this fault is to be permitted, clear the corresponding bit in the interrupt cell 2a ( Step 14) Performs interrupt processing (Step 15), and in other cases, executes the next instruction without performing interrupt processing (
Step 16).

第3図は本実施例によるプログラムの障害処理に関連す
る部分のテストの流れを示すタイムチャートである。被
テストプログ2ムは、テスト対象区間のみウィンドウ1
bに許可を示す。時刻t。
FIG. 3 is a time chart showing the flow of testing a portion of the program related to fault handling according to this embodiment. The program under test 2 has window 1 only for the test section.
b indicates permission. Time t.

の時点でプログラムは、テスト対象外区間に入りウィン
ドウ1bに不許可を示すための命令II を実行する。
At the point in time, the program enters the non-test target section and executes instruction II to indicate disapproval in window 1b.

その後時刻t2の時点で擬似障害を起動するための命令
■2を実行し割込みセル2aの当該ビットが保留状態に
設定される。時刻【40時点でウィンドウ1bに許可を
示すための命令■3を実行し直ちに擬似障害による割込
みが発生し彼テストプログラムの障害処理関連部分のテ
ストが行なわれることになる。本実施例では割込みマス
クレジスタ1aがオフ(割込みを禁止している)の区間
は時刻t1から13であるので時刻(4の擬似障害によ
る割込みの発生に何ら影響を与えない。割込みiスフレ
ジスタ1aのオフ状態が時刻t3以降時刻【4を越えて
続(と、その間は擬似障害による割込みについても保留
される。
Thereafter, at time t2, instruction (2) for activating a pseudo failure is executed, and the relevant bit of the interrupt cell 2a is set to a pending state. At time 40, the instruction 3 for indicating permission to the window 1b is executed, and immediately an interruption due to a pseudo failure occurs, and the part of the test program related to the failure handling is tested. In this embodiment, the period in which the interrupt mask register 1a is off (interrupts are prohibited) is from time t1 to time t13, so it has no effect on the occurrence of an interrupt due to a pseudo failure at time t4. The off state continues from time t3 to beyond time 4 (and during that time, interrupts due to pseudo failures are also suspended.

なお、本実施例では障害による割込みが割込みセル2a
と割込みマスクレジスタ1aによって処理される外部割
込みとして扱われる場合を取上げたが、障害による割込
みが内部割込みとして扱われる場合でも全く同禄である
Note that in this embodiment, an interrupt due to a failure is sent to the interrupt cell 2a.
Although we have discussed the case where the interrupt is handled as an external interrupt processed by the interrupt mask register 1a, the same situation applies even when the interrupt due to a failure is handled as an internal interrupt.

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

本発明は障害による割込みに関して該割込みを許可する
か否かをプログラムで制御できるウィンドウを設けるよ
うにしたので、擬似障害による割込み発生のタイミング
に関する制約が緩和され、プログラムの障害処理に関連
する部分のデバッグやテストが容易になるといつ効果が
ある。
The present invention provides a window that allows the program to control whether or not to permit interrupts caused by faults, so constraints on the timing of interrupts caused by pseudo faults are relaxed, and the parts of the program related to fault handling are relaxed. It helps when debugging and testing becomes easier.

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

第1図は、本発明の擬似障害発生方式を適用した電子計
31L機システムの一実施例を示すブロック図、第2図
は第1図の電子計算機システムの中央処理装置1の割込
み処理を示すフローチャート、第3図はi1図の実施例
におけるプログラムの障害処理に関連する部分のテスト
の流れを示すタイムチャートである。 1・・・中央処理装置 2・・・システム制御装置 3・・・チャネル装置 4・・・主記憶装置 Ia・・・割込みマスクレジスタ 1b・・・ウィンドウ 2a・・・割込みセル。 特許出願人  日本電気株式会社 、−m−
FIG. 1 is a block diagram showing an embodiment of a 31L computer system to which the pseudo-failure generating method of the present invention is applied, and FIG. 2 shows interrupt processing of the central processing unit 1 of the computer system shown in FIG. Flow Chart FIG. 3 is a time chart showing the flow of testing of the portion related to fault handling of the program in the embodiment of FIG. i1. 1...Central processing unit 2...System control device 3...Channel device 4...Main storage device Ia...Interrupt mask register 1b...Window 2a...Interrupt cell. Patent applicant: NEC Corporation, -m-

Claims (1)

【特許請求の範囲】[Claims] 障害が割込みによつて中央処理装置へ報告される電子計
算機システムにおいて、中央処理装置への割込みのうち
障害に関するものだけに有効であり、かつ障害による割
込みを許可するか否かを示すウィンドウと、前記ウィン
ドウに前記許可あるいは不許可を示させるための設定手
段と、障害の擬似的発生を起動する起動手段とを有し、
前記起動手段によつて障害の発生が起動された後前記ウ
ィンドウに許可が示されている時にだけ中央処理装置へ
割込みによつて障害を報告し、前記ウィンドウに不許可
が示されている時には、前記設定手段により許可が示さ
れるまで中央処理装置への割込みによる障害の報告を保
留することを特徴とする擬似障害発生方式。
In a computer system in which a fault is reported to a central processing unit by an interrupt, a window is effective only for fault-related interrupts to the central processing unit and indicates whether or not to permit interrupts due to faults; comprising a setting means for causing the window to indicate the permission or disapproval, and a starting means for starting a pseudo-occurrence of a failure,
After the occurrence of a fault is activated by the activation means, the fault is reported by an interrupt to the central processing unit only when permission is indicated in the window, and when denial is indicated in the window; A pseudo-failure generation method, characterized in that reporting of a failure due to an interrupt to a central processing unit is suspended until permission is indicated by the setting means.
JP59169496A 1984-08-14 1984-08-14 Pseudo fault generating system Pending JPS6148045A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59169496A JPS6148045A (en) 1984-08-14 1984-08-14 Pseudo fault generating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59169496A JPS6148045A (en) 1984-08-14 1984-08-14 Pseudo fault generating system

Publications (1)

Publication Number Publication Date
JPS6148045A true JPS6148045A (en) 1986-03-08

Family

ID=15887596

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59169496A Pending JPS6148045A (en) 1984-08-14 1984-08-14 Pseudo fault generating system

Country Status (1)

Country Link
JP (1) JPS6148045A (en)

Similar Documents

Publication Publication Date Title
JPS6148045A (en) Pseudo fault generating system
JPH0415834A (en) Test system for computer
JPH05298204A (en) Test circut for input/output processor
JPS58181160A (en) Controlling system of emergency operation
JPH02272947A (en) Fault monitoring system
JPH04369046A (en) Test system for active check circuit
JPH06103110A (en) Breakpoint setting system
JPS6111855A (en) Function diagnosing method of data processor
JPS6051744B2 (en) Simulated failure generation method
JPH01170879A (en) Logic circuit package
JPS6155748A (en) Electronic computer system
JPH01276249A (en) Log-out control system
JPS6139136A (en) Inspection system of information processor
JPS6162943A (en) Method for inspecting information processor
JPS6162945A (en) Method for inspecting information processor
JPS6250858B2 (en)
JPS6015749A (en) In-line tmp system
JPS61240334A (en) Checking system for information processor
JPS60171544A (en) Self-diagnosis device for abnormality of computer system
JPS6121550A (en) Test method of channel sub-system
JPS6340942A (en) Device testing system
JPH05274173A (en) Pseudo fault setting system
JPH02110743A (en) Fault diagnostic processing system
JPH01166140A (en) Information processor diagnosing system
JPH02121038A (en) Evaluating system for data processor