JPH01169641A - Soft error detecting system - Google Patents
Soft error detecting systemInfo
- Publication number
- JPH01169641A JPH01169641A JP62326995A JP32699587A JPH01169641A JP H01169641 A JPH01169641 A JP H01169641A JP 62326995 A JP62326995 A JP 62326995A JP 32699587 A JP32699587 A JP 32699587A JP H01169641 A JPH01169641 A JP H01169641A
- Authority
- JP
- Japan
- Prior art keywords
- program
- data
- error
- user
- value
- 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
Links
- 238000001514 detection method Methods 0.000 claims description 3
- 238000012423 maintenance Methods 0.000 abstract description 8
- 230000000694 effects Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000007796 conventional method Methods 0.000 description 1
- 238000000034 method Methods 0.000 description 1
- 235000011962 puddings Nutrition 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
Landscapes
- Debugging And Monitoring (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はソフトウェア開発、保守システムに係り、特に
ラフ1〜ウエアの開発、保守工数低減、期間短縮、信頼
性向上に好適なソフトウェアのエラーを自動的に検出し
、その発生位置を明示するソフトエラー検出方式に関す
る。[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to software development and maintenance systems, and in particular, to software error detection suitable for developing rough 1 to software, reducing maintenance man-hours, shortening period, and improving reliability. This invention relates to a soft error detection method that automatically detects and clearly indicates the location of occurrence.
従来の方式は、岡本正行著rPAscALプログラミン
グ入門」工学図書株式会社、P77に記載のように変数
の値が指定範囲を越えた場合にハードウェアおよびオペ
レーティングシステム(O8)がチエツクを行っていた
。また、HI TACマニュ−フル8080−3−25
7−40.Pi 34に記載のようにエラー発生箇所等
のトレースバック情報を表示する手段はあった。配列の
添字の範囲についても同様であった。In the conventional method, as described in "Introduction to rPAscAL Programming" by Masayuki Okamoto, Kogaku Tosho Co., Ltd., p. 77, the hardware and operating system (O8) perform a check when the value of a variable exceeds a specified range. Also, HI TAC manual full 8080-3-25
7-40. As described in Pi 34, there was a means to display traceback information such as the location where an error occurred. The same applies to the range of array subscripts.
上記従来技術はユーザがプログラム中の任意の場所によ
り詳細なチエツク項目を記述できる様には配慮されてお
らず、これをユーザがプログラムで行う場合には、チエ
ツク部、エラー時のデータ値出力部、トレースバック情
報出力部を陽に記述する必要があった。The above conventional technology does not allow the user to write detailed check items anywhere in the program. , it was necessary to explicitly describe the traceback information output section.
本発明の目的はユーザがプログラム中にチエツク項目を
記述することにより、エラー時のデータ値、トレースバ
ック情報の表示を可能とし、これを用いてユーザプログ
ラムの開発、保守効率の向上と信頼性向上を目的とする
。The purpose of the present invention is to allow the user to write check items in the program to display data values and traceback information at the time of an error, and use this to improve user program development, maintenance efficiency, and reliability. With the goal.
上記目的は、ユーザがハードウェアおよびオぺレーティ
ングシステム(O8)から成るシステムに、チエツクす
べきデータおよびデータ間の関係を受は渡し、システム
がこれらの情報を用いて、データ間の関係を調べ、関係
を満足しない場合にデータの値とデータ間の関係とユー
ザプログラム中の位置を出力すると共に、チエツク結果
をユーザプログラムに戻すことにより達成される。The above purpose is for a user to send and receive data to be checked and relationships between data to a system consisting of hardware and an operating system (O8), and for the system to use this information to examine relationships between data. This is accomplished by outputting the data value, the relationship between the data, and the position in the user program if the relationship is not satisfied, and returning the check result to the user program.
ユーザはプログラム中に変数の値の取り得る範囲や変数
と変数との大小関係等を記述しておき、プログラムの実
行時にシステムが上記関係をチエツクする。それによっ
て、ユーザは入力データやプログラムのロジックのエラ
ーの原因および箇所を知り、エラ対策が容易に行え、プ
ログラム開発、保守の効率向上が達成できる。また、実
行時にチエツクを行うことにより、これらチエツク結果
が全て正常の場合には、プログラムの計算結果の信頼性
も向上する。The user writes in the program the range of values that variables can take, the magnitude relationships between variables, etc., and the system checks the above relationships when the program is executed. As a result, the user can learn the causes and locations of errors in input data and program logic, easily take countermeasures against errors, and improve the efficiency of program development and maintenance. Furthermore, by performing checks during execution, if all the check results are normal, the reliability of the calculation results of the program is improved.
以下、本発明の実施例を図を用いながら説明する。 Embodiments of the present invention will be described below with reference to the drawings.
第1図はユーザプログラムの例である。11はサブルー
チン名称、12はシステムに渡すチエツク情報13.1
4と、チエツク結果を受けとる変数1−5の例を示す。FIG. 1 is an example of a user program. 11 is the subroutine name, 12 is the check information to be passed to the system 13.1
4 and variables 1-5 that receive the check results are shown below.
16はチエツク結果に基づく分岐命令、17はユーザプ
ログラムの命令の番号の例を示す。14チエツクすべき
第1番目のデータが■であり、第2番目のデータがJで
あることを示す。13はデータ間の関係で、第1番目の
データエの値が第2番目のデータJの値より大きいとい
う関係を示す。ユーザプログラム11が実行され、命令
12を実行する番になると、関係13とデータ14がシ
ステムに渡され、チエツクされる。Reference numeral 16 indicates a branch instruction based on the check result, and 17 indicates an example of the instruction number of the user program. 14 indicates that the first data to be checked is ■ and the second data is J. Reference numeral 13 indicates a relationship between data, and indicates a relationship in which the value of the first data J is greater than the value of the second data J. When a user program 11 is executed and it is its turn to execute an instruction 12, relationships 13 and data 14 are passed to the system and checked.
第2図はシステムにおけるチエツクのフローチャー1−
を示す。ユーザプログラム11に制御が移り、命令12
が実行されると、まず最初に21でデータの関係をチエ
ツクし、その結果が正常な場合、すなわち、第1図12
の例ではI>Jの場合には、23において、CHECK
の値がOにセラトされる。一方、I>Jでない場合には
、24に制御が移りシステムは関係13とデータ14を
プリン1〜し、25でユーザプログラム中の位置、すな
わち、11のプログラム名5UBIと、プログラム中の
命令番号2をプリン1−する。さらに、プログラム5U
BIを参照している主プログラム中の命令位置もプリン
トする。そして、CHECKの値を1にセットしてから
ユーザプログラム11に戻り、命令12における左辺E
RRにCHECKの値O又は1を代入する。ユーザプロ
グラムでは命令16の例の様に変数ERRの値を調べる
ことにより、チエツクの結果を用いてプログラムの流れ
を変更する。Figure 2 shows the check flowchart 1 in the system.
shows. Control is transferred to user program 11, and instruction 12
When executed, the data relationship is first checked in step 21, and if the result is normal, that is, in FIG.
In the example, if I>J, in 23, CHECK
The value of is set to O. On the other hand, if I>J, control is transferred to 24, and the system prints relation 13 and data 14 from 1 to 25. At 25, the position in the user program, that is, the program name 5UBI of 11 and the instruction number in the program. 2 to pudding 1-. In addition, program 5U
The location of the instruction in the main program that references the BI is also printed. Then, after setting the value of CHECK to 1, return to the user program 11, and return to the left side E in instruction 12.
Assign the CHECK value O or 1 to RR. In the user program, the value of the variable ERR is checked as in the example of instruction 16, and the flow of the program is changed using the result of the check.
第3図31は、第1図12の例を簡単化した例である。FIG. 3 31 is a simplified example of the example shown in FIG. 1 12 .
ユーザプログラム中で必要となるチエツクには、a≦X
≦bの形のものが頻繁に現われる。Checks required in the user program include a≦X.
The form ≦b frequently appears.
第3図の例は第1図12における関係13を省略して、
a≦X≦bの形専用のチエツクを行うことにより、関係
を解析する手間を省略すると共に、この場合専用のハー
ドウェア又はソフトウェアを用いることにより、チエツ
クの高速化を計るものである。In the example of FIG. 3, relationship 13 in FIG. 12 is omitted,
By performing a check exclusively for the form a≦X≦b, the effort of analyzing the relationship is omitted, and in this case, by using dedicated hardware or software, the speed of the check can be increased.
第4図41は、大小、等しい、等しくない、等の値開の
関係ではなく、集合に対するチエツクの例を示す。この
例は要素数がNである集合Aの中に値Xが含まれている
かチエツクを行うものである。Xが含まれている場合に
正常とみなされ、ICHECKの値がOとなり、そうで
ない場合にはエラーとして、Xの値、Aの値、プログラ
ム中の位置がプリントされてICHECKの値が1とな
る。FIG. 4 41 shows an example of a check on a set rather than on a relation of values such as magnitude, equality, unequal, etc. In this example, it is checked whether a value X is included in a set A having N elements. If X is included, it is considered normal and the ICHECK value becomes O. Otherwise, the value of X, the value of A, and the position in the program are printed and the value of ICHECK becomes 1. Become.
本実施例によれば、スカラー量を取る変数間の値の正当
性、および、集合に対する正当正のチエツクと、エラー
時の値やプログラム中の位置を明確に知ることができる
。また、頻繁に現われるa≦X≦bの型のチエツクを高
速化が可能となる。According to this embodiment, it is possible to clearly know the validity of the values between variables that take scalar quantities, check the validity of a set, and clearly know the value at the time of an error and the position in the program. Furthermore, it is possible to speed up checking of the type a≦X≦b, which frequently appears.
これらのチエツク命令をプログラム中に記述しておくこ
とにより、入力データ中あるいはプログラムロジック中
に存在するエラーをプログラム実行時に検出する事が可
能となり、さらに、プログラム中での位置が明確になる
ことで、プログラム開発、保守時の効率を向上し、完成
したプログラムの信頼性を向上することが可能となる。By writing these check commands in a program, it becomes possible to detect errors that exist in input data or program logic during program execution. This makes it possible to improve efficiency during program development and maintenance, and improve the reliability of completed programs.
特に、複数のプログラマにより一つのプログラムを開発
する場合において、他人の作成したデータを充分にチエ
ツクすることにより、エラーが発生した場合の原因光が
明確になるために、開発効率が著しく向上する。In particular, when a single program is developed by multiple programmers, by thoroughly checking data created by others, the cause of an error becomes clear, and development efficiency is significantly improved.
本発明によれば、プログラマがチエツクしたい内容、す
なわち、データ間の関係と、データを記述することによ
り、システムがそれらのチエツク実行し、エラー時には
そのデータの内容とプログラム中の位置をプリントする
。この方式を用いてプログラマがデータ間の関係を随所
に記述しておくことにより、入力データやプログラムの
ミスを容易に発見できるので、プログラムの開発および
保守の効率を向上する効果がある。さらに、厳重な実行
時チエツクを行った結果として得られた計算結果の信頼
性を向」ニする効果がある。According to the present invention, the programmer describes the contents he or she wants to check, that is, the relationship between data and the data, and the system executes those checks, and in the event of an error, prints the contents of the data and its position in the program. By using this method, a programmer can write the relationships between data everywhere, and errors in input data or programs can be easily discovered, which has the effect of improving the efficiency of program development and maintenance. Furthermore, it has the effect of increasing the reliability of calculation results obtained as a result of performing strict runtime checks.
第1図は本発明の一実施例であるユーザプログラムでの
記述表示図、第2図は第1図のチエツク命令を実行する
システムのフローチャート、第3図は第1図のチエツク
に頻繁に現れる例を簡略に記述した説明図、第4図は第
1図のチエツク内容に集合演算を記述した説明図である
。
11・・・ユーザプログラム、12・・・チエツク命令
。
24.25 エラー検出時の出力内容。Figure 1 is a description display diagram of a user program which is an embodiment of the present invention, Figure 2 is a flowchart of a system that executes the check command in Figure 1, and Figure 3 frequently appears in the check in Figure 1. FIG. 4 is an explanatory diagram that briefly describes an example, and FIG. 4 is an explanatory diagram that describes set operations in the check contents of FIG. 1. 11... User program, 12... Check command. 24.25 Output content when error is detected.
Claims (1)
計算機システムにおいて、データの値を比較する手段と
、比較結果からエラーを検出する手段とエラー情報を出
力する手段を設けたことを特徴とするソフトエラー検出
方式。1. A computer system consisting of an instruction storage device and an instruction execution device, characterized by being provided with means for comparing data values, means for detecting errors from the comparison results, and means for outputting error information. Soft error detection method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62326995A JPH01169641A (en) | 1987-12-25 | 1987-12-25 | Soft error detecting system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62326995A JPH01169641A (en) | 1987-12-25 | 1987-12-25 | Soft error detecting system |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH01169641A true JPH01169641A (en) | 1989-07-04 |
Family
ID=18194131
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP62326995A Pending JPH01169641A (en) | 1987-12-25 | 1987-12-25 | Soft error detecting system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH01169641A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7084660B1 (en) | 2005-04-04 | 2006-08-01 | International Business Machines Corporation | System and method for accelerated detection of transient particle induced soft error rates in integrated circuits |
-
1987
- 1987-12-25 JP JP62326995A patent/JPH01169641A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7084660B1 (en) | 2005-04-04 | 2006-08-01 | International Business Machines Corporation | System and method for accelerated detection of transient particle induced soft error rates in integrated circuits |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Krasner | Bits of History, Words of Advice | |
Goddard | Software FMEA techniques | |
US5038348A (en) | Apparatus for debugging a data flow program | |
US4520440A (en) | Test verification of processor architecture having a partial instruction set | |
US6415436B1 (en) | Mechanism for cross validating emulated states between different emulation technologies in a dynamic compiler | |
US3618042A (en) | Error detection and instruction reexecution device in a data-processing apparatus | |
US10140476B2 (en) | Tracing processing activity | |
JPH01169641A (en) | Soft error detecting system | |
US7155351B2 (en) | Method for verifying the calculator core of a microprocessor or a microcontroller | |
JPS60142747A (en) | Instruction execution control system | |
JPS6049937B2 (en) | Microprogram controlled data processing device | |
Ozarin | Developing rules for failure modes and effects analysis of computer software | |
Flanagan et al. | Assume-guarantee model checking | |
CN117312137A (en) | Interrupt driver-oriented atomic violation defect detection method and device | |
JP3114909B2 (en) | Calculation error processing method of programmable controller | |
JP3263999B2 (en) | Program content analyzer | |
JPH01306932A (en) | Method for testing data processor | |
CN117742787A (en) | Instruction data conflict diagnosis method, electronic equipment and storage medium | |
EP0526054A2 (en) | Monitoring execution of a computer program to provide test coverage analysis | |
KR950005523B1 (en) | Step-run processing method of programmable logic controller | |
JPS6146535A (en) | Pseudo error setting control system | |
JPH05250221A (en) | Simulator execution system | |
SU1524055A1 (en) | Device for checking programs | |
JP2967741B2 (en) | CPU compatibility test equipment | |
US7627859B2 (en) | Method for configuring non-script language library files to be run as scripts |