JPS63201734A - Data processor testing system - Google Patents
Data processor testing systemInfo
- Publication number
- JPS63201734A JPS63201734A JP62034811A JP3481187A JPS63201734A JP S63201734 A JPS63201734 A JP S63201734A JP 62034811 A JP62034811 A JP 62034811A JP 3481187 A JP3481187 A JP 3481187A JP S63201734 A JPS63201734 A JP S63201734A
- Authority
- JP
- Japan
- Prior art keywords
- error
- instruction
- data
- register
- 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.)
- Granted
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 30
- 238000004458 analytical method Methods 0.000 abstract description 5
- 238000000034 method Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000010998 test method Methods 0.000 description 1
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
【発明の詳細な説明】
〔産業上の利用分野〕
本発明はメモリに格納された命令を逐次実行していくデ
ータ処理装置の試験方式に関する。DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a testing method for a data processing device that sequentially executes instructions stored in a memory.
従来、この種のデータ処理装置試験方式では、試験対象
命令の実行結果エラーが検出された時試験対象命令実行
後のチェック対象データ結果値等の表示は行なうが、試
験対象命令を表示していなかった。Conventionally, in this type of data processing device testing method, when an execution result error of the instruction to be tested is detected, the result value of the data to be checked after execution of the instruction to be tested is displayed, but the instruction to be tested is not displayed. Ta.
上述した従来の方式は、試験対象命令実行の結果エラー
が検出された時に試験対象命令を表示していないため、
エラー解析のために試験プログラムのアセンブルリスト
や仕様書を見る必要があり、障害箇所検出までに多大の
時間を要するという欠点かある。In the conventional method described above, the instruction to be tested is not displayed when an error is detected as a result of executing the instruction to be tested.
The drawback is that it is necessary to look at the test program's assembly list and specifications for error analysis, and it takes a lot of time to detect the fault location.
本発明のデータ処理装置試験方式は、試験対象命令の格
納アドレスを登録する登録手段と、前記試験対象命令実
行前の動作環境を設定する環境設定手段と、前記試験対
象命令を実行する実行手段と、前記実行手段で実行され
た試験対象命令の実行結果を期待値と比較してエラーの
有無をチェツりするチェック手段と、前記チェック手段
でエラーが検出された時にエラーメツセージの一部とし
て前記登録手段で登録されたアドレスを基に試験対象命
令を表示する表示手段を含む。The data processing device testing method of the present invention includes a registration means for registering a storage address of an instruction under test, an environment setting means for setting an operating environment before execution of the instruction under test, and an execution means for executing the instruction under test. , a checking means for checking the presence or absence of an error by comparing the execution result of the instruction to be tested executed by the execution means with an expected value, and registering the above as part of an error message when an error is detected by the checking means. It includes a display means for displaying the instruction to be tested based on the address registered by the means.
このように、データ処理装置の命令試験でエラーが検出
された時にエラーメツセージの一部として試験対象命令
を表示することにより、試験プログラムのアセンブルリ
ストや仕様書がなくてもエラー解析が可能になる。In this way, by displaying the instruction to be tested as part of the error message when an error is detected in an instruction test of a data processing device, error analysis becomes possible without the test program assembly list or specifications. .
次に、本発明の実施例について図面を参照しで説明する
。Next, embodiments of the present invention will be described with reference to the drawings.
第1図を参照すると、本実施例は、登録手段1、環境設
定手段2、実行手段3、チェック手段4、表示手段5、
テストデータブロック6、コンソール7から構成される
。Referring to FIG. 1, this embodiment includes a registration means 1, an environment setting means 2, an execution means 3, a checking means 4, a display means 5,
It consists of a test data block 6 and a console 7.
第2図を参照すると、登録手段1はクリア1a、チェッ
ク番号登録1b、チェック項目登録1C1命令アドレス
登録1dから構成される。第3・へ
図を参照すると、環境設定手段2はレジスタチェック情
報登録2a、データチェック情報登録2bから構成され
る。第4図を参照すると、実行手段3は命令実行3aか
ら構成される。第5図を参照すると、チェック手段4は
、レジスタ結果値登録4a、レジスタチェック4b、レ
ジスタエラーフラグ設定4c、データチェック4d、デ
ータエラーフラグ設定4eがら構成される。第6図を参
照すると、表示手段5は、エラーチェック5a、エラー
メツセージヘッダ出力5b、レジスタエラーチェック5
C、レジスタエラー情報出力5d、データエラーチェッ
ク5e、データエラー情報出力5fから構成される。第
7図を参照すると、テストデータブロック6は、エラー
フラグ6a、チェック番号6b、チェック項目アドレス
6C2命令アドレス6d、レジスタ初期値アドレス6e
、レジスタ結果値アドレス6f、レジスタ期待値アドレ
ス69、レジスタマスク値アドレス6h、データ長61
、データ結果値アドレス6j、データ期待値アドレス6
k、データマスク値アドレス61から構成される。Referring to FIG. 2, the registration means 1 is comprised of clear 1a, check number registration 1b, check item registration 1C1 command address registration 1d. Referring to the third figure, the environment setting means 2 is comprised of a register check information registration 2a and a data check information registration 2b. Referring to FIG. 4, the execution means 3 consists of an instruction execution 3a. Referring to FIG. 5, the checking means 4 includes a register result value registration 4a, a register check 4b, a register error flag setting 4c, a data check 4d, and a data error flag setting 4e. Referring to FIG. 6, the display means 5 includes an error check 5a, an error message header output 5b, and a register error check 5.
C, register error information output 5d, data error check 5e, and data error information output 5f. Referring to FIG. 7, the test data block 6 includes an error flag 6a, a check number 6b, a check item address 6C, an instruction address 6d, and a register initial value address 6e.
, register result value address 6f, register expected value address 69, register mask value address 6h, data length 61
, data result value address 6j, data expected value address 6
k, and data mask value address 61.
次に、本実施例の動作について図面を参照して説明する
。Next, the operation of this embodiment will be explained with reference to the drawings.
まず、登録手段]のクリア1aでテストデータブロック
6内のエラーフラグ6auゼロクリアし、チェック番号
登録1bで試験項目識別のための10進2桁のチェツク
番号6b%登録し、チェック項目アドレス6Cに登録し
、命令アドレス登録1dで命令実行3aの示す試験対象
命令のアドレスを命令アドレス6dに登録する。First, clear the error flag 6au in the test data block 6 by clearing 1a of [registration means], register the 2-digit decimal check number 6b% for identifying test items with check number registration 1b, and register it in the check item address 6C. Then, in instruction address registration 1d, the address of the test target instruction indicated by instruction execution 3a is registered as instruction address 6d.
次に、環境設定手段2のレジスタチェック情報登録2a
てレジスタチェック4bにおいてチェックするためにあ
らかじめ用意されたレジスタ期待値格納エリアのアドレ
スをレジスタ期待値アドレス69に、レジスタチェック
4bにおいてチェックするためにあらかじめ用意された
レジスタマスク値のアドレスをレジスタマスク値アドレ
ス6hに登録し、レジスタ初期値アドレス6eの領域に
命令実行3a直前のレジスタ値を登録し、データチェッ
ク情報登録2bでデータチェック4dにおいて比較する
データのバイト数をデータ長61に、命令実行3aの示
す試験対象命令によって更新されるデータのアドレスを
データ結果値アドレス6jに、データチェック4aでチ
ェックするためにあらかじめ用意されたデータ期待値の
アドレスをデータ期待値アドレス6kに、データチェッ
ク4aでチェックするためにあらかじめ用意されたデー
タマスク値のアドレスをデータマスク値アドレス61に
登録する。Next, register check information registration 2a of environment setting means 2
The address of the register expected value storage area prepared in advance to be checked in the register check 4b is set as the register expected value address 69, and the address of the register mask value prepared in advance to be checked in the register check 4b is set as the register mask value address. 6h, register the register value immediately before instruction execution 3a in the area of register initial value address 6e, set the number of bytes of data to be compared in data check 4d to data length 61 in data check information registration 2b, and set the data length 61 of the instruction execution 3a. The address of the data updated by the test target instruction shown in FIG. The address of a data mask value prepared in advance for this purpose is registered in the data mask value address 61.
次に実行手段3の命令実行3aで試験対象命令を実行す
る。Next, the instruction execution 3a of the execution means 3 executes the instruction to be tested.
次にチェック手段4のレジスタ結果値登録4aでレジス
タ結果値アドレス6fが示す領域に命令実行3a直後の
レジスタ値を登録し、レジスタ結果値とレジスタ期待値
アドレス69が示す領域のレジスタ期待値とをそれぞれ
レジスタマスク値アドレス6hが示す領域のレジスタマ
スク値との間で論理積を取った後に比較して、等しけれ
ばデータチェック4dの処理へ移り、等しくなければレ
ジスタエラー7フラグ設定4Cでエラーフラグ6aのレ
ジスタエラーフラグビットに1をセットした後データチ
ェック4dの処理へ移る。データチェック4dではデー
タ結果値アドレス6jが示す領域のデータ結果値とデー
タ期待値アドレス6kが示す領域のデータ期待値とをそ
れぞれデータマスク値アドレス61が示す領域のデータ
マスク値との間で論理積を取った後に比較して、等しけ
れば表示手段5の処理へ移り、等しくなければデータエ
ラーフラグ設定4eでエラーフラグ6aのデータエラー
フラグビットに1をセットした後表示手段5の処理へ移
る。Next, register result value registration 4a of checking means 4 registers the register value immediately after instruction execution 3a in the area indicated by register result value address 6f, and registers the register result value and register expected value in the area indicated by register expected value address 69. After taking a logical product with the register mask value of the area indicated by the register mask value address 6h, they are compared. If they are equal, the process moves to data check 4d, and if they are not equal, the error flag 6a is set by register error 7 flag setting 4C. After setting the register error flag bit to 1, the process moves to data check 4d. In the data check 4d, the data result value in the area indicated by the data result value address 6j and the data expected value in the area indicated by the data expected value address 6k are ANDed with the data mask value in the area indicated by the data mask value address 61. After that, they are compared, and if they are equal, the process goes to the display means 5. If they are not equal, the data error flag bit of the error flag 6a is set to 1 in the data error flag setting 4e, and then the process goes to the display means 5.
次に、表示手段5のエラーチェック5aでエラーフラグ
6a’lrチエツクして全てゼロなら処理を終了し、い
ずれかのビットがゼロでなかったならエラーメツセージ
ヘッダ出力5bでチェック番号6bが示すチェック番号
と、チェック項目アドレス6Cが示す試験概要を表すメ
ツセージと、命令アドレス6dが示す試験対象命令とを
コンソール7に表示し、レジスタエラーチェック5Cで
レジスタ初期値アドレス6eが示す領域のレジスタ初期
値と、レジスタ結果値アドレス6fが示す領域のレジス
タ結果値と、レジスタ期待値アドレス6fが示す領域の
レジスタ期待値と、レジスタマスク値アドレス6hが示
す領域のレジスタマスク偵とをコンソール7に表示し、
データエラーチェック5eでエラーフラグ6aのデータ
エラーフラグビットをチェックしてゼロなら処理を終了
し、ゼロでなかったならデータエラー情報出力5fでデ
ータ結果値アドレス6jが示すデータ結果値と、データ
期待値アドレス6kが示すデータ期待値と、データマス
ク値アドレス61が示すデータマスク値とをデータ長6
1で示すバイト数だけコンソール7に表示する。Next, the error flag 6a'lr is checked in the error check 5a of the display means 5, and if all bits are zero, the process is terminated, and if any bit is not zero, the check number indicated by the check number 6b is output in the error message header output 5b. , a message indicating the test summary indicated by the check item address 6C, and the test target instruction indicated by the instruction address 6d are displayed on the console 7, and the register initial value of the area indicated by the register initial value address 6e is displayed in the register error check 5C. displaying on the console 7 the register result value in the area indicated by the register result value address 6f, the register expected value in the area indicated by the register expected value address 6f, and the register mask value in the area indicated by the register mask value address 6h;
The data error check 5e checks the data error flag bit of the error flag 6a, and if it is zero, the process ends, and if it is not zero, the data error information output 5f displays the data result value indicated by the data result value address 6j and the data expected value. The expected data value indicated by address 6k and the data mask value indicated by data mask value address 61 are set to data length 6.
Only the number of bytes indicated by 1 is displayed on the console 7.
以上の処理により、エラーが検出された時にエラーメツ
セージの一部として自動的に試験対象命令が表示されて
いる。Through the above processing, the instruction to be tested is automatically displayed as part of the error message when an error is detected.
以上説明したように本発明は、データ処理装置の命令試
験でエラーが検出された時にエラーメ・ンセージの一部
として試験対象命令を表示することにより、試験プログ
ラムのアセンブルリストや仕様書がなくてもエラー解析
が可能になるという効果がある。As explained above, the present invention displays the instruction to be tested as part of an error message when an error is detected in an instruction test of a data processing device, thereby eliminating the need for an assembly list or specifications of a test program. This has the effect of making error analysis possible.
第1図は本発明のデータ処理袋M試験方式の一実施例の
ブロック図、第2図は登録手段1のフローチャート、第
3図は環境設定手段2のフローチャート、第4図は実行
手段3のフローチャート、第5図はチェック手段4のフ
ローチャート、第6図は表示手段5のフローチャート、
第7図はテストデータブロック6の形式を示す図である
。
1・・・・・・登録手段、2・・・・・・環境設定手段
、3・・・・・・実行手段、4・・・・・・チェック手
段、5・・・・・・表示手段、6・・・・・・テストデ
ータブロック7・・・・・・コンソール。
I′tID Ol)
?+
N第 00
第7図1 is a block diagram of an embodiment of the data processing bag M test method of the present invention, FIG. 2 is a flowchart of the registration means 1, FIG. 3 is a flowchart of the environment setting means 2, and FIG. 4 is a flowchart of the execution means 3. Flow chart, FIG. 5 is a flow chart of the checking means 4, FIG. 6 is a flow chart of the display means 5,
FIG. 7 is a diagram showing the format of the test data block 6. 1...Registration means, 2...Environment setting means, 3...Execution means, 4...Checking means, 5...Display means , 6... Test data block 7... Console. I't ID Ol)? +
N No. 00 Fig. 7
Claims (1)
装置において、 試験対象命令の格納アドレスを登録する登録手段と、前
記試験対象命令実行前の動作環境を設定する環境設定手
段と、前記試験対象命令を実行する実行手段と、前記実
行手段で実行された試験対象命令の実行結果を期待値と
比較してエラーの有無をチェックするチェック手段と、
前記チェック手段でエラーが検出された時にエラーメッ
セージの一部として前記登録手段で登録されたアドレス
を基に試験対象命令を表示する表示手段を含むデータ処
理装置試験方式。[Scope of Claims] In a data processing device that sequentially executes instructions stored in a memory, there is provided a registration means for registering a storage address of an instruction to be tested, and an environment setting for setting an operating environment before execution of the instruction to be tested. means, an execution means for executing the instruction to be tested, and a checking means for comparing the execution result of the instruction to be tested executed by the execution means with an expected value to check for the presence or absence of an error;
A data processing device testing method including display means for displaying a test target instruction based on an address registered by the registration means as part of an error message when an error is detected by the checking means.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62034811A JPH0648464B2 (en) | 1987-02-17 | 1987-02-17 | Data processor test method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62034811A JPH0648464B2 (en) | 1987-02-17 | 1987-02-17 | Data processor test method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS63201734A true JPS63201734A (en) | 1988-08-19 |
| JPH0648464B2 JPH0648464B2 (en) | 1994-06-22 |
Family
ID=12424596
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62034811A Expired - Lifetime JPH0648464B2 (en) | 1987-02-17 | 1987-02-17 | Data processor test method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0648464B2 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115344488A (en) * | 2022-08-12 | 2022-11-15 | 唯品会(广州)软件有限公司 | Automated test exception handling method, device, storage medium and computer equipment |
Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5738245U (en) * | 1980-08-15 | 1982-03-01 |
-
1987
- 1987-02-17 JP JP62034811A patent/JPH0648464B2/en not_active Expired - Lifetime
Patent Citations (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5738245U (en) * | 1980-08-15 | 1982-03-01 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115344488A (en) * | 2022-08-12 | 2022-11-15 | 唯品会(广州)软件有限公司 | Automated test exception handling method, device, storage medium and computer equipment |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH0648464B2 (en) | 1994-06-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5038348A (en) | Apparatus for debugging a data flow program | |
| JPS63201734A (en) | Data processor testing system | |
| JPH0244269A (en) | System for analyzing trouble of lsi | |
| JPH0448257B2 (en) | ||
| JPH05334135A (en) | Error information display system for abnormal end of program | |
| JPH0478938A (en) | Computer operation supporting system | |
| JPH0833850B2 (en) | Failure information display method | |
| JPH04248634A (en) | Debugger | |
| JPH01309182A (en) | Graphic data check system for circuit diagram | |
| JPH029370B2 (en) | ||
| JPS6048549A (en) | State displaying circuit of microprocessor | |
| JPS6160146A (en) | Check system of microprogram | |
| JPH02259844A (en) | Program debugging system | |
| JPS6339048A (en) | Executing system for diagnosis program | |
| JPS62118448A (en) | Detecting system of indefinite value reference | |
| JPS60252959A (en) | On-line trace controlling system | |
| JPH0421018A (en) | Data input device | |
| JPH04213124A (en) | Interface checking processor | |
| JPS61105590A (en) | Data display system | |
| JPS63103339A (en) | Recording system for action history information on program | |
| JPH03194625A (en) | Address tracing system for information processor | |
| JPS63189937A (en) | Checking system for the number of versions in information processing system | |
| JPH11191072A (en) | Debug break processing method and debug processor | |
| JPS62224833A (en) | Suitability inspecting system of data form | |
| JPH03225437A (en) | Display system for stop frequency of break point |