JPH07306809A - Verifying method of data processor - Google Patents

Verifying method of data processor

Info

Publication number
JPH07306809A
JPH07306809A JP6099514A JP9951494A JPH07306809A JP H07306809 A JPH07306809 A JP H07306809A JP 6099514 A JP6099514 A JP 6099514A JP 9951494 A JP9951494 A JP 9951494A JP H07306809 A JPH07306809 A JP H07306809A
Authority
JP
Japan
Prior art keywords
data
execution
cache memory
expected value
saved
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
JP6099514A
Other languages
Japanese (ja)
Inventor
Masanori Tsushima
正則 津嶋
Ryuji Misonoo
隆二 御園生
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.)
Hitachi Computer Electronics Co Ltd
Hitachi Ltd
Original Assignee
Hitachi Computer Electronics Co Ltd
Hitachi 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 Hitachi Computer Electronics Co Ltd, Hitachi Ltd filed Critical Hitachi Computer Electronics Co Ltd
Priority to JP6099514A priority Critical patent/JPH07306809A/en
Publication of JPH07306809A publication Critical patent/JPH07306809A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To provide the verifying method of the data processor which can specify or estimate a data destruction position in a cache memory. CONSTITUTION:The data processor which has cache memories 2 and 3 in multi- layered structure saves data before test instruction execution in another area in a cache memory in the same layer, and compares an expected value and a saved expected value, execution data and the expected value, saved execution data and the expected value, the expected value and execution data in a high- layer cache memory 2 and execution data in a low-layer cache memory 3 right after test instruction execution and after execution result (PSW and register information) reaping to verify which part of a cache memory in which layer data destruction is caused judging from the generation of a discrepancy. Consequently, the cache memory and its position which causes malfunction due to the data destruction can efficiently be efficiently specified or estimated in a short time by checking the he execution result of software.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、データ処理装置の検証
方式、特に、キャッシュメモリのデータ破壊を検証する
データ処理装置の検証方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data processing device verification method, and more particularly to a data processing device verification method for verifying data destruction of a cache memory.

【0002】[0002]

【従来の技術】データ処理装置の高性能化を支える技術
として、命令を幾つかの処理ステップ(ステージ)に分
解し、各装置が特定のステージを1マシンサイクル毎に
処理するパイプライン制御方式が広く採用されている。
この先行制御機能ともよばれるパイプライン処理は、複
雑かつ大規模な論理により実現さけれており、先行制御
の度合が非常に深くなっている。パイプライン処理は、
演算だけでなく命令、データの転送に係るバッファメモ
リ類の制御も含まれる。
2. Description of the Related Art As a technique for supporting high performance of a data processing apparatus, there is a pipeline control method in which an instruction is decomposed into several processing steps (stages) and each apparatus processes a specific stage every machine cycle. Widely adopted.
The pipeline processing, which is also called the advanced control function, is realized by complicated and large-scale logic, and the degree of advanced control is extremely deep. Pipeline processing,
Control of buffer memories related to transfer of instructions and data as well as calculation is included.

【0003】従来から論理検証を目的とした検証プログ
ラムの中で、上記パイプライン処理が同時に動作するパ
イプライン処理の中でも命令、データ転送に係るキャッ
シュメモリ類に不良(データ化け、破壊)が発生した場
合、その原因追及は非常に複雑かつ困難を極めるもので
あった。
Conventionally, in a verification program for the purpose of logic verification, even in the pipeline processing in which the above pipeline processing operates at the same time, a failure (garbled data, destruction) occurs in cache memory related to instructions and data transfer. In that case, the search for the cause was extremely complicated and extremely difficult.

【0004】弊社においても、ハードウェア内部におけ
る各種キャッシュメモリの状態に対する先行制御に関し
て動作検証の方式が提案されているが、たとえばキャッ
シュメモリ類にデータ化けが発生しても原因追及には人
手により、多くの時間を費やすことになり、不良(デー
タ化け、破壊)は発見できても解析能力の面で不十分な
ものである。
At our company, an operation verification method has been proposed for the advance control of the states of various cache memories inside the hardware. For example, even if the cache memory is garbled, it is necessary to manually investigate the cause. A lot of time is spent, and defects (garbage of data, destruction) can be detected, but the analysis capability is insufficient.

【0005】[0005]

【発明が解決しようとする課題】前述の従来技術では、
試験命令列の1回目の実行時、ハードウェア内部の各種
メモリには、主記憶装置から命令、データが転送されて
いないので、先行制御機能が緩慢に動作し、その際に各
種バッファに主記憶装置から命令、データが転送されて
命令の実行を行い、2回目の同一試験命令列の実行時、
主記憶装置から命令、データを取り出すことなくことな
く、ハードウェア内の各種キャッシュメモリ内にある命
令、データを用いて命令を実行するよう行われる。この
ようにして、先行制御機能とハードウェア内部のキャッ
シュメモリ類の状態との組合せ試験を異なる環境のもと
で実施している。
In the above-mentioned prior art,
At the first execution of the test instruction sequence, since the instruction and data are not transferred from the main storage device to the various memories inside the hardware, the advance control function operates slowly, and at that time, the main memory is stored in various buffers. When the instruction and data are transferred from the device and the instruction is executed, and the second same test instruction sequence is executed,
The instructions and data are executed by using the instructions and data in various cache memories in the hardware without fetching the instructions and data from the main storage device. In this way, the combination test of the advanced control function and the state of the cache memory inside the hardware is carried out under different environments.

【0006】しかし、試験命令実行時に不良(データ化
け、破壊)が発生した場合に、その不良部位を特定する
ことは困難であり、ハードウェア内にもつステージトレ
ーサ(論理信号トレーサ)等を利用した人手による解析
に頼らざるところが大きい。
However, when a defect (garbled data or destruction) occurs during execution of a test instruction, it is difficult to identify the defective portion, and a stage tracer (logic signal tracer) or the like included in the hardware is used. There is a great deal of reliance on manual analysis.

【0007】本発明の目的は、上記従来の課題を解決
し、試験命令実行時に各種キャッシュメモリ内で発生し
たデータ化けや、データ破壊による誤動作の原因となっ
たキャシュメモリ及び部位を特定もしくは、推定するこ
とが、可能なデータ処理装置の検証方法を提供すること
にある。
An object of the present invention is to solve or solve the above-mentioned conventional problems, and to identify or estimate the cache memory and the part which have caused data garbled in various cache memories at the time of executing a test instruction or malfunction due to data destruction. To provide a possible data processing device verification method.

【0008】[0008]

【課題を解決するための手段】本発明のデータ処理装置
の検証方式では、2階層、3階層といった多重階層構造
のキャッシュメモリにおけるデータ破壊の発生部位を検
証するにあたり、まず試験命令実行直後に、検証用の期
待値と実行データを同じキヤッシュメモリ内の別な領域
へ退避する試験データ退避手段と、実行結果(PSW、
レジスタ情報)刈り取り後、同一階層キャッシュメモリ
で期待値と退避した期待値、実行データと期待値、退避
した実行データと期待値及び、この期待値と、上位層キ
ャッシュメモリの実行データ、下位層キャッシュメモリ
の実行データとを比較して、不一致が生じた場合データ
破壊部位として検出する実行結果判定手段を有してい
る。
According to the verification method of the data processor of the present invention, in verifying the location of the data destruction in the cache memory having the multi-layer structure such as the two layers and the three layers, first, immediately after the execution of the test instruction, Test data saving means for saving the expected value for verification and the execution data to another area in the same cache memory, and the execution result (PSW,
Register information) After pruning, the expected value and the expected value saved in the same level cache memory, the execution data and the expected value, the saved execution data and the expected value, and this expected value and the execution data in the upper layer cache memory, the lower layer cache It has an execution result judging means for comparing the execution data of the memory with each other and detecting it as a data destruction portion when a mismatch occurs.

【0009】[0009]

【作用】本発明においては、試験命令実行時に不良(デ
ータ化け、破壊)が発生した場合、各種キャッシュメモ
リ内で発生したデータ化けや、データ破壊による誤動作
の原因となったキャッシュメモリ及び部位を特定もしく
は、推定を従来からの人手で測定機を使用して行う方式
に変って、ソフトウェアを実行することで可能とした。
これにより、データ破壊発生部位を検出するために必要
な、人員、時間を大幅に低減することができる。
According to the present invention, when a defect (garbled data or destruction) occurs during execution of a test instruction, the cache memory and the part that cause the malfunction of data in various cache memories or the malfunction due to data destruction are identified. Alternatively, the estimation was changed to the conventional method of manually using a measuring instrument, and it was made possible by executing software.
As a result, it is possible to significantly reduce the number of personnel and the time required to detect the data destruction occurrence site.

【0010】[0010]

【実施例】次に本発明について図面を参照して説明す
る。
The present invention will be described below with reference to the drawings.

【0011】図1は、本発明の一実施例を示すシステム
の構成図である。命令を実行するさいは、先述したよう
に主記憶装置5から命令、データがシステム制御装置4
内の、ワーク記憶3と呼ばれるキャッシュメモリに転送
され、さらに、バッファ記憶2と呼ばれるキャッシュメ
モリに転送されたのち、命令プロセッサ1により実行さ
れる。
FIG. 1 is a block diagram of a system showing an embodiment of the present invention. When executing an instruction, as described above, the instruction and data are transferred from the main memory 5 to the system controller 4
It is transferred to a cache memory called a work memory 3 in the above, further transferred to a cache memory called a buffer memory 2, and then executed by the instruction processor 1.

【0012】図2は、本発明の一実施例を示すブロック
図である。データ処理装置の検証方式は、試験命令実行
手段21と、試験データ退避手段22と、実行結果判定
手段23を有する。
FIG. 2 is a block diagram showing an embodiment of the present invention. The verification method of the data processing device has a test instruction executing means 21, a test data saving means 22, and an execution result judging means 23.

【0013】試験命令実行手段21と、試験データ退避
手段22と、実行結果判定手段23からなる検証プログ
ラム20と、モニタプログラム10とが主記憶装置6に
格納されている。
A test instruction executing means 21, a test data saving means 22, a verification program 20 including an execution result judging means 23, and a monitor program 10 are stored in the main storage device 6.

【0014】図3は、図1のバッファ記憶2、ワーク記
憶3の内部構成を示したものである。このキャッシュメ
モリは、カラムとROWよりデータを格納する位置を指
定すようになっている。
FIG. 3 shows the internal structure of the buffer memory 2 and the work memory 3 of FIG. In this cache memory, a position for storing data is designated by a column and a ROW.

【0015】図4は、キャッシュメモリの検証を行う検
証プログラム20の処理を示す流れ図である。
FIG. 4 is a flow chart showing the processing of the verification program 20 for verifying the cache memory.

【0016】まず、モニタプログラムは、検証プログラ
ム20を、主記憶装置5にロードし、検証プログラム2
0を起動する。起動された検証プログラムは、図4に示
した処理を行う。
First, the monitor program loads the verification program 20 into the main storage device 5, and the verification program 2
Start 0. The activated verification program performs the processing shown in FIG.

【0017】処理100で、試験命令の実行を行うと、
図3の下位層キャッシュメモリに実行データ80、上位
層キャッシュメモリに実効データ80と同一内容の実効
データ60が格納される。
When the test instruction is executed in the process 100,
Execution data 80 is stored in the lower layer cache memory of FIG. 3, and effective data 60 having the same content as the effective data 80 is stored in the upper layer cache memory.

【0018】処理101で、試験対象となる命令の実行
直前にテストデータの退避処理を行い図2に示すよう
に、検証対象キャッシュメモリの期待値50を、期待値
51,52に、実行データ60を、実効データ61,6
2へというように、任意の領域へ複数退避する。
In process 101, the test data is saved immediately before the instruction to be tested is executed, and as shown in FIG. 2, the expected value 50 of the verification target cache memory is changed to the expected values 51 and 52 and the execution data 60. The effective data 61,6
A plurality of files are saved in an arbitrary area, such as to 2.

【0019】処理102で、試験命令実行直後、試験命
令の実行結果(PSW、レジスタ情報)の刈り取り処理
を行う。
Immediately after the execution of the test instruction, the process 102 prunes the execution result (PSW, register information) of the test instruction.

【0020】処理103で、図2に示す期待値50と、
退避した期待値51,52を比較して不一致が発生した
場合、比較したデータが破壊されているので処理104
へ移行して、この時の試験で使用したキャッシュメモリ
内のデータ位置、内容をエラー情報として出力し処理を
終了する。
In process 103, the expected value 50 shown in FIG.
When the saved expected values 51 and 52 are compared with each other and a mismatch occurs, the compared data has been destroyed, so the process 104
Then, the process moves to the step, and the data position and contents in the cache memory used in the test at this time are output as error information, and the process ends.

【0021】もし、期待値50と、退避した期待値5
1,52との比較で不一致が発生しなければ、期待値5
0と実効データ60,61,62、下位層キャッシュメ
モリの実効データ80を比較し不一致が発生した場合、
比較したデータが破壊されているので、処理104へ移
行して、この時試験で使用したキャッシュメモリ内のデ
ータ位置、内容をエラー情報として出力し処理を終了す
る。
If the expected value 50 and the saved expected value 5
If there is no discrepancy in the comparison with 1,52, the expected value is 5
When 0 is compared with the effective data 60, 61, 62 and the effective data 80 of the lower layer cache memory and a mismatch occurs,
Since the compared data is destroyed, the process proceeds to step 104, and the data position and contents in the cache memory used in the test at this time are output as error information, and the process ends.

【0022】次に、本方式でのデータ破壊部位検出につ
いて、具体例をあげて説明する。
Next, the detection of a data destruction portion in this method will be described with a specific example.

【0023】まず、先行制御機構が動作する試験命令列
の中で試験対象とする試験命令の実行直前に、図3に示
す例えば、試験命令の入力データである実行データ60
には例えば’9999’、実行データ60の期待値であ
る期待値50には’9999’が記録されているとす
る。続いて、試験データの退避を行い、実行データ6
1,62には実行データ60を退避する。期待値は、試
験命令の演算には使用しないが念のために期待値51,
52に、期待値50を退避しておく。
First, immediately before the execution of the test instruction to be tested in the test instruction sequence in which the advance control mechanism operates, for example, the execution data 60, which is the input data of the test instruction shown in FIG.
It is assumed that, for example, '9999' is recorded in, and '9999' is recorded in the expected value 50 which is the expected value of the execution data 60. Subsequently, the test data is saved and the execution data 6
The execution data 60 is saved in the areas 1 and 62. The expected value is not used for the calculation of the test instruction, but as a precaution, the expected value 51,
The expected value 50 is saved in 52.

【0024】次に試験命令実行直後に、期待値50と退
避した期待値51,52を比較し、データの正当性を確
認する。
Immediately after the execution of the test instruction, the expected value 50 and the saved expected values 51 and 52 are compared to confirm the validity of the data.

【0025】次に、期待値50と、実行データ60,6
1,62を比較する。通常であれば実行データ60,6
1,62の領域は、試験命令が終了して、続く命令が実
行する段階で初めて使用可能になるので、この時点での
実行データ60,61,62の内容は、’9999’と
なっている。
Next, the expected value 50 and the execution data 60, 6
Compare 1,62. Normally, execution data 60, 6
The areas 1, 62 are available only when the test instruction is completed and the subsequent instruction is executed, so the contents of the execution data 60, 61, 62 at this point are '9999'. .

【0026】しかし、このとき実行データ60が例え
ば’5555’となっていれば、先行制御機構により処
理されたいずれかの命令または、なんらかの不良によっ
て、実行データ60の場所でデータが破壊されされてい
ることがわかる。
However, at this time, if the execution data 60 is, for example, "5555", the data is destroyed at the location of the execution data 60 due to any instruction processed by the preceding control mechanism or some defect. You can see that

【0027】また、先述したように、図3の実行データ
80には、実行データ60と同一値が格納されるので、
例えば上記の実行データ60が’5555’でなく、’
9999’で期待値50の’9999’と一致し、実行
データ80が例えば’4854’となっていれば、先行
制御機構により処理されたいずれかの命令または、なん
らかの不良によって、実行データ80の場所でデータが
破壊されされていることがわかる。
Further, as described above, since the same value as the execution data 60 is stored in the execution data 80 of FIG. 3,
For example, the execution data 60 above is not "5555", but "
If 9999 'matches the expected value 50 of' 9999 'and the execution data 80 is, for example,' 4854 ', the location of the execution data 80 is due to any instruction processed by the preceding control mechanism or some defect. You can see that the data has been destroyed by.

【0028】なお、本実施例は、3階層のキャッシュメ
モリを用いて説明したが、2階層あるいは、そのほかの
多重構造のキャッシュメモリの検証についても、同様の
考え方である。
Although the present embodiment has been described by using the cache memory of three layers, the same idea is applied to the verification of the cache memory of two layers or other multiple structures.

【0029】[0029]

【発明の効果】以上のように本発明のデータ処理装置の
検証方式によれば、ソフトウェアの実行結果をみること
により、データ破壊による誤動作の原因となったキャッ
シュメモリ及び部位を特定もしくは、推定を短時間で効
率的に行えるという効果がある。
As described above, according to the verification method of the data processing device of the present invention, by observing the execution result of the software, it is possible to identify or estimate the cache memory and the part that cause the malfunction due to the data destruction. The effect is that it can be done efficiently in a short time.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の一実施例を示すシステムの構成図であ
る。
FIG. 1 is a configuration diagram of a system showing an embodiment of the present invention.

【図2】本発明の一実施例を示すブロック図である。FIG. 2 is a block diagram showing an embodiment of the present invention.

【図3】図1のバッファ記憶3、ワーク記憶5の内部構
成を示した図である。
FIG. 3 is a diagram showing an internal configuration of a buffer storage 3 and a work storage 5 of FIG.

【図4】本発明を使用した、検証プログラムの処理を示
す流れ図である。
FIG. 4 is a flow chart showing processing of a verification program using the present invention.

【符号の説明】[Explanation of symbols]

1…命令プロセッサ、 2…バッファ記憶、 3…ワーク記憶、 4…システム制御装置、 5…主記憶装置、 10…モニタプログラム、 20…検証プログラム、 21…テスト命令実行手段、 22…テストデータ退避手段、 23…実行結果判定手段、 50…期待値、 51…期待値、 52…期待値、 60…実行データ、 61…実行データ、 62…実行データ、 80…実行データ、 100…テスト命令実行処理、 101…テストデータ退避処理、 102…テスト命令実行結果刈り取り処理、 103…キャッシュメモリ内実行結果判定処理、 104…エラー情報出力処理。 DESCRIPTION OF SYMBOLS 1 ... Instruction processor, 2 ... Buffer storage, 3 ... Work storage, 4 ... System control device, 5 ... Main storage device, 10 ... Monitor program, 20 ... Verification program, 21 ... Test instruction execution means, 22 ... Test data saving means , 23 ... Execution result judging means, 50 ... Expected value, 51 ... Expected value, 52 ... Expected value, 60 ... Execution data, 61 ... Execution data, 62 ... Execution data, 80 ... Execution data, 100 ... Test instruction execution process, 101 ... Test data saving process, 102 ... Test instruction execution result pruning process, 103 ... Cache memory execution result judging process, 104 ... Error information output process.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】2階層、3階層といった多重階層構造のキ
ャッシュメモリをもつ、データ処理装置において試験命
令実行直前のデータを同一階層キャッシュメモリ内の別
の領域に退避しておき、試験命令実行直後、実行結果
(PSW、レジスタ情報)刈り取り後に、期待値と退避
した期待値、実行データと期待値、退避した実行データ
と期待値とを比較して不一致が発生することで同一階層
キャッシュメモリのデータ破壊の発生部位を検証するこ
と及び、先述した期待値と上位層キャッシュメモリの実
行データ、下位層キャッシュメモリの実行データを比較
して不一致が発生することで、どの階層のキャッシュメ
モリでデータ破壊が発生しているか検証することを、特
徴とするデータ処理装置の検証方式。
1. In a data processing device having a cache memory having a multi-layer structure such as two layers and three layers, data immediately before execution of a test instruction is saved in another area in the same-layer cache memory, and immediately after execution of the test instruction. , After the execution result (PSW, register information) has been pruned, the expected value and the saved expected value, the execution data and the expected value, and the saved execution data and the expected value are compared, and a mismatch occurs, so that data in the same-tier cache memory By verifying the location of the destruction and comparing the expected value with the execution data of the upper-layer cache memory and the execution data of the lower-layer cache memory, and a mismatch occurs, the data corruption occurs in which cache memory. A verification method for a data processing device characterized by verifying whether it has occurred.
JP6099514A 1994-05-13 1994-05-13 Verifying method of data processor Pending JPH07306809A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6099514A JPH07306809A (en) 1994-05-13 1994-05-13 Verifying method of data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6099514A JPH07306809A (en) 1994-05-13 1994-05-13 Verifying method of data processor

Publications (1)

Publication Number Publication Date
JPH07306809A true JPH07306809A (en) 1995-11-21

Family

ID=14249367

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6099514A Pending JPH07306809A (en) 1994-05-13 1994-05-13 Verifying method of data processor

Country Status (1)

Country Link
JP (1) JPH07306809A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014002557A (en) * 2012-06-18 2014-01-09 Fujitsu Ltd Test data generation method, test method, test data generation deice, and test data generation program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014002557A (en) * 2012-06-18 2014-01-09 Fujitsu Ltd Test data generation method, test method, test data generation deice, and test data generation program

Similar Documents

Publication Publication Date Title
US7423442B2 (en) System and method for early qualification of semiconductor devices
JPH07306809A (en) Verifying method of data processor
JPS609301B2 (en) Memory content destruction inspection method during power outage
JP2007328403A (en) Bus monitoring circuit and information processing inspection system
US20050166102A1 (en) CAM expected address search testmode
JP3213792B2 (en) Logic simulation verification method
JPH05158804A (en) Ram checking method
JPH0628329A (en) Input data check system for computer system
JPH01159742A (en) Trouble analysis system
JPH0342736A (en) Fault simulation method
JPH05143515A (en) Testing system for transfer equipment
JPH0495884A (en) Semiconductor test device
JPH0877069A (en) Cache testing method
JPH02242439A (en) Program load control system
JP2001256270A (en) Verified result comparing system
JPH05225800A (en) Ram testing system
JPS603761A (en) Program analyzer
JPH05233349A (en) Automatic test tool for program module
JPH01213724A (en) Testing method for electronic computer circuit
JPH01214950A (en) System for testing pseudo fault of channel processor
JPS603762A (en) Program analyzer
JPH02130791A (en) Diagnostic system for defective address of magnetic bubble memory
JPH06274367A (en) Memory diagnostic system
JPH0322037A (en) Trouble deagnostic system
JPS6211742B2 (en)