JPH0820966B2 - Data processor test method - Google Patents
Data processor test methodInfo
- Publication number
- JPH0820966B2 JPH0820966B2 JP62237530A JP23753087A JPH0820966B2 JP H0820966 B2 JPH0820966 B2 JP H0820966B2 JP 62237530 A JP62237530 A JP 62237530A JP 23753087 A JP23753087 A JP 23753087A JP H0820966 B2 JPH0820966 B2 JP H0820966B2
- Authority
- JP
- Japan
- Prior art keywords
- test
- instruction
- test instruction
- execution
- flow
- 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.)
- Expired - Lifetime
Links
Landscapes
- Advance Control (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、データ処理装置試験方式に係り、特に、先
行制御機能の試験に用いて好適なデータ処理装置試験方
式に関する。The present invention relates to a data processing device test system, and more particularly to a data processing device test system suitable for use in a test of a preceding control function.
データ処理装置における先行制御機能試験を行う従来
技術として、乱数プログラムを用いる方法が知られてい
る。この試験方法は、全試験対象命令が均一に生成され
なかつたり、ある命令が一度も生成されない場合が生
じ、一定時間内に均一な試験を実施することが困難であ
る。また、この試験方法は、試験命令の結果の期待値が
一義的に定まらない試験項目に対しては、結果比較より
除外して試験を行つておらず、生成試験命令列を1回実
行するだけであり、ハードウエア内部のバツフアメモリ
類の状態と先行制御機能との関連に対する試験が不充分
なものである。A method using a random number program is known as a conventional technique for performing a preceding control function test in a data processing device. In this test method, there are cases where all test target instructions are not uniformly generated or a certain instruction is never generated, and it is difficult to perform a uniform test within a fixed time. In addition, this test method does not test the test items for which the expected value of the test instruction result is not uniquely determined by excluding it from the result comparison, and only executes the generated test instruction sequence once. Therefore, the test for the relation between the state of the buffer memories in the hardware and the advance control function is insufficient.
なお、この種試験方式の従来技術として、例えば特開
昭61−23248号公報等に記載された技術が知られてい
る。As a conventional technique of this type of test system, a technique described in, for example, Japanese Patent Laid-Open No. 61-23248 is known.
前記従来技術は、試験命令の生成に関して、生成命令
の生成頻度の制御が行われていないため、一定時間内に
目的に応じた試験を完全に実行することが困難であり、
期待値の求め方に関して、機種によつて期待値が異なる
試験項目については、実行結果の比較対象から除外し
て、有効試験範囲を狭くしており、また、試験命令の実
行に関して、生成した試験命令列を1回実行するのみで
あるため、ハードウエア内部における各種バツフアメモ
リの状態に対する先行制御機能に対する動作試験を行う
ことができないという問題点を有していた。In the above-mentioned conventional technology, with respect to the generation of the test instruction, since the generation frequency of the generation instruction is not controlled, it is difficult to completely execute the test according to the purpose within a certain time.
Regarding the method of obtaining the expected value, test items with different expected values depending on the model are excluded from the comparison results of the execution results to narrow the effective test range. Since the instruction sequence is executed only once, there is a problem in that it is not possible to perform an operation test for the advance control function for the states of various buffer memories inside the hardware.
本発明の目的は、前記従来技術の問題点を解決し、乱
数による試験命令生成を均一にでき、試験により得られ
る実行結果の期待値を全て比較の対象として、ハードウ
エア内部の各種バツフアの状態に対する先行制御機能試
験の実行を可能としたデータ処理装置試験方式を提供す
ることにある。The object of the present invention is to solve the above-mentioned problems of the prior art, to make test instruction generation by random numbers uniform, and to compare all expected values of the execution results obtained by the test with the states of various buffers inside the hardware. It is to provide a data processing device test method capable of executing a preceding control function test for the.
本発明によれば、前記目的は、乱数データを入力とし
て試験命令を生成し、この試験命令の実行結果の期待値
をシミユレーシヨンにより求め、前記生成試験命令を被
試験データ処理装置に実行させ、その実行結果と前記期
待値とを比較するデータ処理装置試験方式において、試
験命令生成の頻度を命令毎に登録することにより、乱数
データを入力とする試験命令生成の頻度制御を行うと共
に、1つの乱数データによる生成試験命令の実行を複数
回行い、前記生成試験命令の実行結果を入力とした逆シ
ミユレーシヨンにより次回の同一生成試験命令の実行に
対する期待値を求めて比較を行うことにより、試験環境
を変更して試験命令を実行することにより達成される。According to the present invention, the object is to generate a test instruction by inputting random number data, obtain an expected value of the execution result of the test instruction by simulation, and cause the data processing device under test to execute the generated test instruction. In the data processor testing method of comparing the execution result with the expected value, the frequency of test instruction generation is registered for each instruction to control the frequency of test instruction generation with random number data as an input, and to generate one random number. The test environment is changed by executing the generated test instruction with data multiple times, and by performing comparison by obtaining the expected value for the next execution of the same generated test instruction by inverse simulation using the execution result of the generated test instruction as input. And execute a test instruction.
試験命令は、乱数データと試験命令生成頻度テーブル
の内容を参照して試験命令生成部により作成される。試
験命令生成部は、試験命令生成頻度テーブルにより、少
ない発生頻度の試験命令を優先的に作成し、全体として
均一な試験命令の生成を行う。これにより、試験命令生
成の均一化が行われる。機種によつて異なる期待値を求
める動作に関しては、命令を実行したことにより得られ
る結果値によつて期待値が一義的に定まらない場合、結
果判定部で実行結果値を入力として逆シミユレーシヨン
を行い、得られた値を期待値とする。ハードウエア内部
の各種バツフアメモリの状態と先行制御機能の動作試験
は、生成試験命令列の最初の1回目の実行時、ハードウ
エア内部の各種バツフアメモリ類には、主記憶装置から
の命令、データが転送されていないので、先行制御機能
が緩慢に動作し、その際に各種バツフアに主記憶装置か
ら命令、データが転送されて命令の実行を行い、第2回
目の同一生成試験命令列の実行時、主記憶装置から命
令、データを取出すことなく、ハードウエア内の各種バ
ツフアメモリ内にある命令、データを用いて命令を実行
するように行われる。このため、先行制御機能に対し、
高速に命令、データを送ることが可能となり、先行制御
機能は、高速に動作し、先行制御機能とハードウエア内
部のバツフアメモリ類の状態との組合わせ試験を異なる
環境のもとで行うことが可能でなる。The test instruction is created by the test instruction generator with reference to the random number data and the contents of the test instruction generation frequency table. The test instruction generation unit preferentially creates a test instruction with a low occurrence frequency based on the test instruction generation frequency table, and generates a uniform test instruction as a whole. As a result, the test command generation is made uniform. Regarding the operation to obtain the expected value that differs depending on the model, if the expected value is not uniquely determined by the result value obtained by executing the instruction, the result judgment section performs inverse simulation with the execution result value as the input. , The obtained value is the expected value. The state of the various buffer memories inside the hardware and the operation test of the advance control function are determined by the instructions and data from the main memory being transferred to the various buffer memories inside the hardware during the first execution of the first generation test instruction sequence. Since the preceding control function operates slowly, the instructions and data are transferred from the main storage device to various buffers at that time to execute the instructions, and when the second same generation test instruction sequence is executed, The instruction and data are executed without using the instruction and data from the main storage device by using the instructions and data in various buffer memories in the hardware. Therefore, for the advanced control function,
It becomes possible to send commands and data at high speed, the advanced control function operates at high speed, and it is possible to perform a combination test of the advanced control function and the status of the buffer memory inside the hardware under different environments. It consists of
以下、本発明によるデータ処理装置試験方式の一実施
例を図面により詳細に説明する。An embodiment of a data processor testing method according to the present invention will be described in detail below with reference to the drawings.
第1図は本発明の一実施例の構成例を示すブロツク
図、第2図は先行制御機能による命令の実行を説明する
図、第3図は本発明の一実施例の全体の動作を説明する
フローチヤート、第4図は試験命令生成の均一化の動作
を説明するフローチヤート、第5図は一義的でない期待
値を求める動作を説明するフローチヤート、第6図は第
5図の動作に必要な主記憶装置内の情報を説明する図、
第7図(a),(b)はハードウエア内部のバツフアメ
モリの状態と先行制御機能部との組合せ試験時における
命令の実行を説明する図である。第1図において、1は
データ処理装置、2は先行制御機能部、3はバツフアメ
モリ、4は主記憶装置、5は乱数プログラム、6は外部
記憶装置である。FIG. 1 is a block diagram showing an example of the configuration of an embodiment of the present invention, FIG. 2 is a diagram for explaining the execution of instructions by the advance control function, and FIG. 3 is a diagram for explaining the overall operation of one embodiment of the present invention. FIG. 4 is a flow chart for explaining the operation of equalizing test command generation, FIG. 5 is a flow chart for explaining an operation for obtaining an uncertain expected value, and FIG. 6 is for the operation of FIG. A diagram explaining necessary information in the main storage device,
FIGS. 7 (a) and 7 (b) are diagrams for explaining the execution of instructions during the combination test of the state of the buffer memory inside the hardware and the preceding control function unit. In FIG. 1, 1 is a data processing device, 2 is a preceding control function unit, 3 is a buffer memory, 4 is a main storage device, 5 is a random number program, and 6 is an external storage device.
本発明によるデータ処理装置試験を実行するデータ処
理装置1は、第1図に示すように、先行制御機能部2
と、ハードウエア内部のバツフアメモリ3と、主記憶装
置4とにより構成されている。そして、本発明による試
験方法は、このデータ処理装置を試験対象として、外部
記憶装置6内の試験プログラムライブラリより乱数プロ
グラム5を主記憶装置4へロードし、この乱数プログラ
ム5により試験命令列を発生させて、先行制御機能部2
を試験するものである。先行制御機能部2は、第2図に
示すように、生成試験命令列8に対し、命令の解読D、
アドレス変換A、オペランドデータの読出しOF、実行E
の順に、マシンサイクル7に従つて各ステージが動作
し、生成試験命令列の各命令を順次処理していく。As shown in FIG. 1, the data processing device 1 for executing the data processing device test according to the present invention has a preceding control function unit 2 as shown in FIG.
And a buffer memory 3 inside the hardware and a main storage device 4. Then, in the test method according to the present invention, the random number program 5 is loaded from the test program library in the external storage device 6 to the main storage device 4 with this data processing device as a test target, and the random number program 5 generates a test instruction sequence. Let the advance control function unit 2
Is to be tested. As shown in FIG. 2, the advance control function unit 2 decodes the instruction D with respect to the generated test instruction sequence 8.
Address conversion A, reading of operand data OF, execution E
In this order, each stage operates according to the machine cycle 7 and sequentially processes each instruction of the generated test instruction sequence.
本発明は、乱数プログラム5により生成された試験命
令列を前述のように処理することにより、先行制御機能
部2に対する試験を行うものであり、以下、第3図によ
りその全体の動作を説明する。The present invention tests the preceding control function unit 2 by processing the test instruction sequence generated by the random number program 5 as described above, and the overall operation thereof will be described below with reference to FIG. .
(1)乱数プログラム5により乱数が発生され、この乱
数を入力データとして試験命令が生成される(フロー1
3,14)。(1) A random number is generated by the random number program 5, and a test instruction is generated using this random number as input data (Flow 1
3,14).
(2)主記憶装置4内に備えられる図示しない試験命令
生成頻度テーブルを読出し、生成された試験命令の生成
回数をチエツクして、試験命令が均一に生成されるよう
に試験命令の再作成による調整を行い、生成された試験
命令に対応して、試験命令生成頻度テーブルをカウント
アツプする(フロー15〜17)。(2) By reading a test instruction generation frequency table (not shown) provided in the main storage device 4, checking the number of times of generation of the generated test instruction, and re-creating the test instruction so that the test instruction is uniformly generated. Adjustment is performed, and the test instruction generation frequency table is counted up in accordance with the generated test instruction (Flow 15 to 17).
(3)次に、試験命令の実行結果に対する期待値をシミ
ユレートすることにより求め、生成した試験命令の実行
に対し、ハードウエア内のバツフアメモリ3内に存在し
ている試験命令、データを追い出して、バツフアメモリ
をクリアする(フロー18,19)。(3) Next, the expected value for the execution result of the test instruction is obtained by simulating, and in response to the execution of the generated test instruction, the test instruction and data existing in the buffer memory 3 in the hardware are expelled. Clear the buffer memory (Flow 18,19).
(4)生成された試験命令の第1回目の実行により結果
値を求め、この結果値に基づいて機種に依存する期待値
を逆シミユレーシヨンにより求める(フロー20,72)。(4) The result value is obtained by the first execution of the generated test instruction, and the expected value depending on the model is obtained by inverse simulation based on this result value (flow 20, 72).
(5)期待値と結果値とが一致したか否かをチエツク
し、不一致であればエラーメツセージの出力を行う(フ
ロー21,22)。(5) Check if the expected value and the result value match, and if they do not match, output an error message (flow 21, 22).
(6)フロー21で期待値と結果値が一致している場合、
及び、フロー22でエラーメツセージを出力した後、同一
の試験命令が2回続けて行われたか否かをチエツクする
(フロー23)。(6) If the expected value and the result value match in Flow 21,
Also, after outputting the error message in the flow 22, it is checked whether or not the same test instruction is executed twice consecutively (flow 23).
(7)その試験命令が1回しか実行されていない場合、
フロー20に戻り、同一命令が再実行される。このとき、
バツフアメモリ3内には、前回の試験命令実行時の命
令、データが残つたままとなつているので、この回の試
験命令の実行により、第1回目の実行時とは異なる環境
条件でハードウエア内のバツフアメモリ3の状態に対す
る先行制御機能部2の試験を行うことができる(フロー
20,72,21,22)。(7) If the test instruction is executed only once,
Returning to flow 20, the same instruction is re-executed. At this time,
Since the instruction and data at the time of the previous test instruction execution remain in the buffer memory 3, the execution of the test instruction this time causes the hardware internal environment to be different from that at the time of the first execution. The test of the advanced control function unit 2 for the state of the buffer memory 3 can be performed (flow.
20,72,21,22).
(8)フロー23で同一試験命令が2回実行されている場
合、試験命令が、先行制御機能部2の全機能を完全に試
験し得る規定の回数だけ実行されたか否かチエツクし、
規定回数に達していない場合、前述の全フローを繰返し
実行し、規定回数に達している場合、乱数プログラム5
による一連の試験を終了する(フロー24)。(8) If the same test instruction is executed twice in the flow 23, check whether or not the test instruction has been executed a prescribed number of times capable of completely testing all the functions of the advanced control function unit 2.
If the specified number of times has not been reached, the entire flow described above is repeatedly executed, and if the specified number of times has been reached, the random number program 5
A series of tests according to is completed (Flow 24).
前述した試験命令の実行処理において、フロー15〜16
で、試験命令の生成が均一に行われるようにしている
が、第4図に、この試験命令を均一に生成するための処
理をフローとして示しているので、次に、この処理につ
いて説明する。なお、試験命令を均一に生成するための
試験命令再作成は、試験命令生成の都度行う必要はな
く、第4図に示す例では試験命令の実行回数が100の倍
数となる毎に実行されている。In the test instruction execution process described above, the flow 15 to 16
Thus, although the test instructions are generated uniformly, the process for uniformly generating the test instructions is shown in FIG. 4 as a flow. Next, this process will be described. The test instruction re-creation for uniformly generating the test instruction does not have to be performed each time the test instruction is generated. In the example shown in FIG. 4, the test instruction is regenerated every time the number of executions of the test instruction becomes a multiple of 100. There is.
(1)第3図に示すフロー14で試験命令が生成される
と、試験命令再作成モードであるか否かチエツクし、再
作成モードでない場合、試験命令の実行回数が100の倍
数か否かチエツクする。試験命令の実行回数が100の倍
数でない場合、第3図のフロー17に移る(25,26)。(1) When the test instruction is generated in the flow 14 shown in FIG. 3, it is checked whether the test instruction is in the re-creation mode. If not, whether the test instruction is executed is a multiple of 100. Check. If the number of executions of the test instruction is not a multiple of 100, the process moves to the flow 17 of FIG. 3 (25, 26).
(2)フロー26で、試験命令の実行回数が100の倍数で
ある場合、試験命令再作成モードをセツトし、試験命令
生成頻度テーブルより試験命令生成カウント値を取出
し、これらの生成カウント値の平均値を求め、この平均
値より小さい値の試験命令生成頻度テーブルを命令コー
ド対応に、試験命令再生頻度テーブルに移す(フロー2
7,28)。(2) In the flow 26, if the number of executions of the test instruction is a multiple of 100, set the test instruction re-creation mode, extract the test instruction generation count value from the test instruction generation frequency table, and average these generation count values. The value is calculated, and the test instruction generation frequency table having a value smaller than this average value is moved to the test instruction reproduction frequency table in correspondence with the instruction code (Flow 2
7,28).
(3)フロー25で試験命令再作成モードの場合及び前述
のフロー28の処理終了後、試験命令生成頻度テーブルの
個数である有効試験命令生成頻度テーブル数を求め、そ
の数が“0"であるか否かチエツクする(フロー29,3
0)。(3) In the test instruction re-creation mode in Flow 25 and after the processing in Flow 28 described above is completed, the number of valid test instruction generation frequency tables, which is the number of test instruction generation frequency tables, is calculated, and the number is “0”. Check whether or not (Flow 29,3
0).
(4)フロー30で有効試験命令生成頻度テーブル数が
“0"の場合、試験命令再作成モードをリセツトして、第
3図のフロー17に進む(フロー31)。(4) When the number of valid test instruction generation frequency tables is "0" in the flow 30, the test instruction re-creating mode is reset and the process proceeds to the flow 17 in FIG. 3 (flow 31).
(5)フロー30で有効試験命令生成頻度テーブル数が
“0"でない場合、試験命令生成の均一化のための処理と
して、試験命令生成に対応した乱数値と有効試験命令生
成頻度テーブル数とにより新たな試験命令を生成し、そ
の命令に対する試験命令生成頻度テーブルのカウント値
を+1し、次の乱数値の設定を行う(フロー32〜34)。(5) If the number of valid test instruction generation frequency tables is not “0” in the flow 30, as a process for equalizing test instruction generation, a random number value corresponding to the test instruction generation and the number of valid test instruction generation frequency tables are used. A new test instruction is generated, the count value of the test instruction generation frequency table for that instruction is incremented by 1, and the next random number value is set (flows 32 to 34).
(6)規定数の試験命令数が選択されたか否かを判定
し、規定数に達していなければ、フロー32以降の処理を
繰返し、規定数に達していれば、生成カウント値が、生
成カウント値の平均値より等しいか大きい値の試験命令
再生生成頻度テーブルを試験命令生成頻度テーブルに戻
し、第3図の通常の処理に移る(フロー36)。(6) It is determined whether or not the prescribed number of test instructions has been selected. If the prescribed number has not been reached, the processing from flow 32 onward is repeated. If the prescribed number has been reached, the generation count value is the generation count. The test command reproduction generation frequency table having a value equal to or larger than the average value of the values is returned to the test command generation frequency table, and the normal processing of FIG. 3 is performed (flow 36).
次に、一義的に期待値が決定できない結果値に対する
実行結果の判定の動作を第5図、第6図により説明す
る。例えば、第6図に示すような、主記憶装置4の乱数
プログラム領域5で作成された試験命令54、すなわち、
命令MVC,OP1,OP2におけるOP1,OP2は、夫々異なつたアド
レス変換例外要因を持ち、一義的に期待値を決定するこ
とができない。以下にこの命令の実行について、第5図
のフローを説明するが、このフローは、第3図に示すフ
ロー72,21の詳細である。Next, the operation of determining the execution result for the result value for which the expected value cannot be uniquely determined will be described with reference to FIGS. 5 and 6. For example, as shown in FIG. 6, a test instruction 54 created in the random number program area 5 of the main storage device 4, that is,
OP1 and OP2 in the instructions MVC, OP1 and OP2 have different address translation exception factors, and cannot uniquely determine the expected value. Regarding the execution of this instruction, the flow of FIG. 5 will be described below, and this flow is a detail of the flows 72 and 21 shown in FIG.
(1)まず、アドレス変換例外に関する比較判定を行
い、この場合、試験命令がアドレス変換例外要因を有す
るものなので、この命令のハードウエアの実行結果か
ら、割込コード52と、該割込コードに関連する情報とし
てアドレス変換例外アドレス53を求め、これらを第6図
に示すように、主記憶装置4のプリフイツクス領域55に
格納する(フロー47〜49)。(1) First, a comparison judgment is made regarding an address translation exception. In this case, since the test instruction has an address translation exception factor, the interrupt code 52 and the interrupt code are determined from the hardware execution result of this instruction. Address translation exception addresses 53 are obtained as related information, and these are stored in the prefix area 55 of the main memory 4 as shown in FIG. 6 (flows 47 to 49).
(2)次に、前述で求められたアドレス変換アドレス53
をLRA命令に与えて実行させる。このLRA命令の実行は、
与えられたアドレス変換アドレスに対応した割込コード
を発生させるので、このLRA命令の実行結果と、前述の
割込コード52との一致のチエツクを行う(フロー50,5
1)。(2) Next, the address translation address 53 obtained above
To the LRA instruction for execution. The execution of this LRA instruction is
Since the interrupt code corresponding to the given address translation address is generated, the execution result of this LRA instruction and the above-mentioned interrupt code 52 are checked (flow 50, 5).
1).
(3)フロー51で一致が得られない場合、エラーメツセ
ージを出力し、また、一致が得られた場合、エラーメツ
セージの出力後、及びフロー47で試験命令がアドレス変
換例外でない場合、第3図のフロー22に移行する。(3) If a match is not obtained in flow 51, an error message is output, and if a match is obtained, after the error message is output, and if the test instruction is not an address translation exception in flow 47, FIG. Flow 22 of.
第3図、第5図に示すフローチャート及び第6図によ
り説明したように、本発明の一実施例による試験方法
は、第3図のフロー23からフロー20に戻る処理により生
成された試験命令列を複数回実行させるようにしてい
る。すなわち、本発明の一実施例では、同一試験命令列
を2回実行することになる。この処理により行われる逆
シミュレーションにより期待値を求める処理は、複数回
実行させる試験命令列の1回目の実行結果を元に期待値
を逆に求める処理であり、この処理の詳細を、第6図を
参照して再度説明する。As described with reference to the flow charts shown in FIGS. 3 and 5 and FIG. 6, the test method according to the embodiment of the present invention uses the test instruction sequence generated by the process of returning from the flow 23 to the flow 20 in FIG. Is executed multiple times. That is, in one embodiment of the present invention, the same test instruction sequence is executed twice. The process of obtaining the expected value by the inverse simulation performed by this process is a process of inversely obtaining the expected value based on the first execution result of the test instruction sequence to be executed a plurality of times, and the details of this process are shown in FIG. Will be described again with reference to.
第6図に示す乱数プログラム領域5内に生成された命
令54である“MVCOP1,OP2におけるOP1,OP2は、それぞれ
異なったアドレス変換例外要因を持っており、OP1,OP2
のどちらが先に例外要因を検出するかは機種に依存す
る。このため、この試験命令の実行結果の期待値として
一義的に定まった期待値を求めることができない。すな
わち、この場合、期待値が1つではないことになる。そ
こで、逆シミュレーションにより期待値を求める処理が
必要となる。The instruction 54 generated in the random number program area 5 shown in FIG. 6, “OP1 and OP2 in MVCOP1 and OP2”, have different address translation exception factors.
Which of them detects the exception factor first depends on the model. Therefore, an expected value that is uniquely determined as the expected value of the execution result of this test instruction cannot be obtained. That is, in this case, the expected value is not one. Therefore, it is necessary to perform processing for obtaining an expected value by inverse simulation.
いま、命令54のOP1,OP2の何れかによりアドレス変換
例外が発生したとする。その結果、MVC命令のハードウ
ェア実行結果として割込みコード52とアドレス変換例外
を発生させたアドレス変換例外アドレス53とが情報とし
て得られる。ハードウェアは、これらの情報を第6図に
示すプリフィックスエリアに格納する。Now, it is assumed that an address translation exception occurs due to either OP1 or OP2 of the instruction 54. As a result, the interrupt code 52 and the address translation exception address 53 that caused the address translation exception are obtained as information as the hardware execution result of the MVC instruction. The hardware stores this information in the prefix area shown in FIG.
次に、前述で得られたアドレス変換例外アドレス53が
LRA命令のオペランドとして与えられて実行される。LRA
命令はオペランドで示される論理アドレスを実アドレス
に変換する命令であり、実アドレスを求めるアドレス変
換過程において例外要因を検出すると、命令の実行結果
として、条件コード及びアドレス例外要因を発生させた
テーブルアドレスが得られる。すなわち、得られたLRA
命令の実行結果の条件コードが、例えば2であり、ペー
ジテーブルの無効ビットが例えば“1"である等として得
られる。ここで、前述したMVC命令のハードウェア実行
結果である割込みコード52とLRA命令の実行結果の条件
コードを比較することにより、アドレス変換例外が正し
い動作であるか否かを検証することができる。Next, the address translation exception address 53 obtained above is
It is given as an operand of the LRA instruction and executed. LRA
An instruction is an instruction that translates a logical address indicated by an operand into a real address. When an exception factor is detected in the address translation process for finding the real address, the condition code and the address of the table that caused the address exception factor are detected as the execution result of the instruction. Is obtained. That is, the obtained LRA
The condition code of the instruction execution result is obtained as 2, for example, and the invalid bit of the page table is obtained as 1, for example. Here, by comparing the interrupt code 52, which is the hardware execution result of the MVC instruction, with the condition code, which is the execution result of the LRA instruction, it is possible to verify whether or not the address translation exception is a correct operation.
さらに、前述したように、LRA命令の実行結果の条件
コードが2の場合、アドレス例外要因を発生させたペー
ジテーブルエントリアドレスが得られ、該テーブルエン
トリアドレスの示す内容が無効ビット=“1"であるか否
かをチェックすることにより、試験命令列実行前に全て
の期待値が用意されていなくても、実行結果から期待値
を作成することができる。このように、本発明の実施例
によれば、逆シミュレーションの処理により、実行結果
から動作過程及び動作結果が正常であるか否かを逆に求
めることができる。Further, as described above, when the condition code of the execution result of the LRA instruction is 2, the page table entry address causing the address exception factor is obtained, and the content indicated by the table entry address is the invalid bit = "1". By checking whether or not there are all expected values before executing the test instruction sequence, it is possible to create expected values from the execution results. As described above, according to the embodiment of the present invention, it is possible to reversely determine from the execution result whether or not the operation process and the operation result are normal by the inverse simulation process.
第7図はハードウェア内部のバツフアメモリ3の状態
と先行制御機能部2との組合せ試験を可能にするための
組合せ試験時の命令の実行を説明する図である。FIG. 7 is a diagram for explaining the execution of instructions during the combination test to enable the combination test of the state of the buffer memory 3 inside the hardware and the preceding control function unit 2.
第3図によりすでに説明したように、試験命令の第1
回目の実行は、ハードウエア内部のバツフアメモリ3の
内容を追い出してクリアした後に行われるため、マシン
サイクル70の処理で試験命令列8の各試験命令〜に
対して、主記憶装置4からハードウエア内部のバツフア
メモリ3へ命令及びデータを移す必要が生じる。このた
め、試験命令の第1回目の実行は、第7図(a)に示す
ように、余分のマシンサイクルを必要とし、その処理時
間が長くなる。例えば、試験命令の実行では、命令解
読Dの次に、アドレス変換Aを行う際、このAステージ
が試験命令により使用されているので、このマシンサ
イクルにダミーφが挿入され待たされることになる。同
様に、試験命令では、2マシンサイクルに渡つてダミ
ーφが挿入されることになる。As already explained with reference to FIG. 3, the first of the test instructions
The execution of the first time is performed after the contents of the buffer memory 3 inside the hardware have been swept out and cleared, so that in the processing of the machine cycle 70, for each test instruction of the test instruction sequence 8 It becomes necessary to transfer the instruction and the data to the buffer memory 3 of. Therefore, the first execution of the test instruction requires an extra machine cycle as shown in FIG. 7 (a), and its processing time becomes long. For example, in the execution of the test instruction, when the address translation A is performed after the instruction decoding D, the A stage is used by the test instruction, so that the dummy φ is inserted and waited in this machine cycle. Similarly, in the test instruction, the dummy φ will be inserted over two machine cycles.
同一試験命令の引続く第2回目の実行は、ハードウエ
ア内部のバツフアメモリ3の内容が追い出されていない
ので、このバツフアメモリ3の内容を用いて行われる。
このため、第2回目の試験命令の実行は、第7図(b)
に示すように、マシンサイクル71が、試験命令〜に
対して無駄のない処理を実行することにより行われる。The subsequent second execution of the same test instruction is performed using the contents of the buffer memory 3 because the contents of the buffer memory 3 inside the hardware have not been expelled.
Therefore, the execution of the second test instruction is performed as shown in FIG.
As shown in, the machine cycle 71 is performed by executing lean processing for the test instructions.
このような、同一試験命令の2回の実行により、バツ
フアメモリ3の状態と先行制御機能部2の組合せ試験を
行うことができる。By executing the same test instruction twice, a combination test of the state of the buffer memory 3 and the preceding control function unit 2 can be performed.
ここで、先行制御機能部2の組み合わせ試験につい
て、さらに詳細に説明する。Here, the combination test of the advanced control function unit 2 will be described in more detail.
先行制御機能は、パイプライン制御とも呼ばれ、処理
を連続して並列に実行する機能である。先行制御は、機
種により並列処理される深さが異なるが、第7図には一
例として先行制御の概要が示されている。The advance control function, which is also called pipeline control, is a function for continuously executing processes in parallel. Although the depth of parallel processing of the advanced control differs depending on the model, the outline of the advanced control is shown in FIG. 7 as an example.
前述した本発明の一実施例は、試験環境を変えて試験
命令列を複数回実行させているが、この理由は、計算機
には計算機の高速処理を実現するために、各種バッファ
が用意されており、1回目の試験命令列の実行と2回目
以降の試験命令列の実行とでは各種バッファの状態が異
なるからである。そして、各種バッファの状態が異なる
ということは、先行制御処理の動作も異なることにな
る。In the above-described embodiment of the present invention, the test environment is changed and the test instruction sequence is executed a plurality of times. The reason is that the computer is provided with various buffers in order to realize high-speed processing of the computer. This is because the states of various buffers are different between the execution of the first test instruction sequence and the second and subsequent executions of the test instruction sequence. The fact that the states of the various buffers are different also means that the operation of the preceding control processing is also different.
このことを第7図を用いて説明する。 This will be described with reference to FIG.
第7図(a)には1回目の試験命令列の実行を示して
いる。第3図により説明したように、試験命令の1回目
の実行は、ハードウェア内部のバッフアメモリ3の内容
を追い出してクリアした後に行われるために、マシンサ
イクル70の処理で試験命令列8の各試験命令〜に対
して、主記憶装置4からハードウェア内部のバッファメ
モリ3へ命令及びデータを移す必要が生じる。アドレス
変換についても同様にアドレス変換バッファに情報が設
定される。このため、試験命令の1回目の実行は、余分
のマシンサイクルを必要とし、その処理時間が長くな
る。FIG. 7A shows the first execution of the test instruction sequence. As described with reference to FIG. 3, since the first execution of the test instruction is performed after the contents of the buffer memory 3 inside the hardware are flushed and cleared, each test of the test instruction sequence 8 is performed in the processing of the machine cycle 70. In response to the instruction, it becomes necessary to transfer the instruction and the data from the main storage device 4 to the buffer memory 3 inside the hardware. For address translation, information is similarly set in the address translation buffer. Therefore, the first execution of the test instruction requires an extra machine cycle and the processing time becomes long.
これに対して、第7図(b)に示される2回目以降の
試験命令列の実行は、バッファメモリ3に登録された内
容を用いて処理が行われ、先行制御が乱されることなく
処理を進めることができる。On the other hand, the second and subsequent executions of the test instruction sequence shown in FIG. 7B are performed using the contents registered in the buffer memory 3, and the preceding control is performed without being disturbed. Can proceed.
このように、本発明の一実施例は、試験環境を変えて
試験命令列を複数回実行させることにより、先行制御処
理の異なる動作を試験することができる。As described above, according to the embodiment of the present invention, different test environments can be tested by changing the test environment and executing the test instruction sequence a plurality of times.
そして、先行制御が非常に深い計算機では、パイプラ
インの状態により、前述で既に説明したように、期待値
が一義的に定まらない場合がある。その例として、パイ
プラインの状態によっては、アドレス変換例外を検出す
るか否かも確定できない命令が存在することが挙げられ
る。Then, in a computer in which the advanced control is very deep, the expected value may not be uniquely determined depending on the state of the pipeline, as described above. For example, depending on the state of the pipeline, there is an instruction in which whether or not an address translation exception is detected cannot be determined.
本発明の一実施例による逆シミュレーションは、この
ような先行制御機能を有する計算機においても、期待値
が一義的に定まらない試験項目の試験を有効に行うこと
ができる。The inverse simulation according to the embodiment of the present invention can effectively perform the test of the test item whose expected value is not uniquely determined even in the computer having the preceding control function.
前述した本発明の実施例によれば、従来技術に比較し
て、先行制御機能の試験における精度の向上、効率の向
上を図ることができる。According to the above-described embodiment of the present invention, it is possible to improve the accuracy and efficiency in the test of the advance control function, as compared with the related art.
以上説明したように、本発明によれば、乱数データに
よる試験命令の生成を、試験命令生成頻度テーブルを用
いて制御することにより、試験命令の生成を全体として
均一化して、試験の実施を行うことができ、期待値が一
義的に定まらない試験項目に対しては、実行結果から関
連するハードウエアの値を2種取り出し、それらが相互
に矛盾していないか否かによつて、試験対象に対し完全
な試験結果の比較を行うことを可能とし、また、同一試
験命令列を複数回繰返し実行することによつて、ハード
ウエア内部の各種バツフアメモリの状態が変わり、それ
に関連する先行制御機能部の動作組合せの試験を実行で
きるという効果がある。As described above, according to the present invention, the generation of test instructions by random number data is controlled using the test instruction generation frequency table, so that the generation of test instructions is made uniform as a whole, and the test is performed. For test items for which the expected value cannot be uniquely determined, two types of related hardware values are extracted from the execution results, and the test target depends on whether or not they are mutually inconsistent. It is possible to completely compare the test results to each other, and by repeatedly executing the same test instruction sequence multiple times, the states of various buffer memories inside the hardware are changed, and the preceding control function unit related to it changes. There is an effect that the test of the operation combination of can be executed.
第1図は本発明の一実施例の構成を示すブロツク図、第
2図は先行制御機能による命令の実行を説明する図、第
3図は本発明の一実施例の全体の動作を説明するフロー
チヤート、第4図は試験命令生成の均一化の動作を説明
するフローチヤート、第5図は一義的でない期待値を求
める動作を説明するフローチヤート、第6図は第5図の
動作に必要な主記憶装置内の情報を説明する図、第7図
(a),(b)はハードウエア内部のバツフアメモリの
状態と先行制御機能部との組合せ試験時における命令の
実行を説明する図である。 1……データ処理装置、2……先行制御機能部、3……
バツフアメモリ、4……主記憶装置、5……乱数プログ
ラム、6……外部記憶装置。FIG. 1 is a block diagram showing the configuration of an embodiment of the present invention, FIG. 2 is a diagram for explaining the execution of instructions by the advance control function, and FIG. 3 is a diagram for explaining the overall operation of one embodiment of the present invention. Flow chart, FIG. 4 is a flow chart for explaining the operation of equalizing test command generation, FIG. 5 is a flow chart for explaining an operation for obtaining a non-unique expected value, and FIG. 6 is necessary for the operation of FIG. FIG. 7A and FIG. 7B are views for explaining the information in the main memory device, and FIG. 7A and FIG. 7B are views for explaining the execution of the instruction at the time of the combination test of the state of the buffer memory inside the hardware and the preceding control function unit. . 1 ... Data processing device, 2 ... Advance control function unit, 3 ...
Buffer memory, 4 ... Main storage device, 5 ... Random number program, 6 ... External storage device.
───────────────────────────────────────────────────── フロントページの続き (72)発明者 田中 政吉 神奈川県秦野市堀山下1番地 株式会社日 立製作所神奈川工場内 (72)発明者 竹腰 敏彦 東京都渋谷区道玄坂1丁目16番5号 株式 会社日本ビジネスコンサルタント内 (72)発明者 染谷 哲 神奈川県秦野市堀山下1番地 株式会社日 立コンピュータエレクトロニクス内 (72)発明者 鈴木 薫 神奈川県秦野市堀山下1番地 株式会社日 立製作所神奈川工場内 (56)参考文献 特開 昭62−100847(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Masayoshi Tanaka, 1 Horiyamashita, Horiyamashita, Hadano, Kanagawa Prefecture, Kanagawa Plant, Nitrate Seisakusho Co., Ltd. (72) Toshihiko Takekoshi 1-16-5 Dogenzaka, Shibuya-ku, Tokyo Stock Company In Japan Business Consultant (72) Inventor Satoshi Someya 1 Horiyamashita, Hinoyamashita, Hadano City, Kanagawa Prefecture (72) Inventor Kaoru Suzuki, 1 Horiyamashita, Hadano City, Kanagawa Prefecture Hitate Manufacturing Kanagawa Plant ( 56) References JP 62-100847 (JP, A)
Claims (1)
し、この試験命令の実行結果の期待値をシミュレーショ
ンにより求め、前記生成試験命令を被試験データ処理装
置に実行させ、その実行結果と前記期待値とを比較する
データ処理装置試験方式において、試験命令生成の頻度
を命令毎に登録することにより、乱数データを入力とす
る試験命令生成の頻度制御を行うと共に、1つの乱数デ
ータによる生成試験命令の実行を複数回行い、前記生成
試験命令の実行結果を入力とした逆シミュレーションに
より次回の同一生成試験命令の実行に対する期待値を求
めて比較を行うことにより、試験環境を変更して試験命
令を実行することを特徴とするデータ処理装置試験方
式。1. A test command is generated by inputting random number data, an expected value of the execution result of the test command is obtained by simulation, the generated test command is executed by a data processing device under test, and the execution result and the expectation are obtained. In the data processor testing method of comparing with a value, the frequency of test instruction generation is registered for each instruction to control the frequency of test instruction generation with random number data as an input, and to generate a test instruction with one random number data. Is performed multiple times, and the expected value for the next execution of the same generated test instruction is obtained by inverse simulation using the execution result of the generated test instruction as an input, and the comparison is performed to change the test environment and execute the test instruction. A data processing device test method characterized by executing.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62237530A JPH0820966B2 (en) | 1987-09-24 | 1987-09-24 | Data processor test method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP62237530A JPH0820966B2 (en) | 1987-09-24 | 1987-09-24 | Data processor test method |
Publications (3)
| Publication Number | Publication Date |
|---|---|
| JPS6481043A JPS6481043A (en) | 1989-03-27 |
| JPH0820966B2 true JPH0820966B2 (en) | 1996-03-04 |
| JPH0820966B6 JPH0820966B6 (en) | 2007-07-25 |
Family
ID=17016699
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP62237530A Expired - Lifetime JPH0820966B2 (en) | 1987-09-24 | 1987-09-24 | Data processor test method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0820966B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH05274385A (en) * | 1992-03-25 | 1993-10-22 | Hitachi Ltd | Logic verification environment controlling device |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS62100847A (en) * | 1985-10-29 | 1987-05-11 | Nec Corp | Test system for information processor |
-
1987
- 1987-09-24 JP JP62237530A patent/JPH0820966B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS6481043A (en) | 1989-03-27 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4787062A (en) | Glitch detection by forcing the output of a simulated logic device to an undefined state | |
| KR100463809B1 (en) | Method and apparatus for correcting errors in computer systems | |
| US20060218513A1 (en) | Dynamically interleaving randomly generated test-cases for functional verification | |
| US6553527B1 (en) | Programmable array built-in self test method and controller with programmable expect generator | |
| US7302417B2 (en) | Method and apparatus for improving efficiency of constraint solving | |
| US5491639A (en) | Procedure for verifying data-processing systems | |
| JP2023085319A (en) | Test Bit Values in Vector Elements | |
| US20020072889A1 (en) | Efficient array tracing in a logic simulator machine | |
| CN112102875A (en) | LPDDR test method, device, readable storage medium and electronic equipment | |
| CN115732025A (en) | Method and device for verifying RAM access conflict | |
| JPH0820966B2 (en) | Data processor test method | |
| US7353216B2 (en) | Method and apparatus for improving efficiency of constraint solving | |
| US5528604A (en) | Test pattern generation for an electronic circuit using a transformed circuit description | |
| CN112540920A (en) | Test method, device, equipment and storage medium | |
| Zachmann | An architecture for hierarchical collision detection | |
| US6144930A (en) | Method for providing a memory model of a memory device for use in simulation | |
| CN117454835B (en) | Method for storing and reading waveform data, electronic device and storage medium | |
| WO2021247102A1 (en) | Backwards instruction stream generation | |
| Saab | Parallel-concurrent fault simulation | |
| JP2001249906A (en) | Test execution method of SymmetricMulti processor | |
| JPS6153579A (en) | Tester for function of logical circuit | |
| CN119512886A (en) | Test program generation method, test method and related device | |
| CN113076255A (en) | Program testing method and device | |
| JP2767817B2 (en) | Simulated operation method of sequencer contacts | |
| CN119623367A (en) | Code model generation method, code model verification method and related devices |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| R360 | Written notification for declining of transfer of rights |
Free format text: JAPANESE INTERMEDIATE CODE: R360 |
|
| R370 | Written measure of declining of transfer procedure |
Free format text: JAPANESE INTERMEDIATE CODE: R370 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313115 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
| R371 | Transfer withdrawn |
Free format text: JAPANESE INTERMEDIATE CODE: R371 |
|
| R371 | Transfer withdrawn |
Free format text: JAPANESE INTERMEDIATE CODE: R371 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313115 |
|
| S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
| S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
| R371 | Transfer withdrawn |
Free format text: JAPANESE INTERMEDIATE CODE: R371 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313115 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| EXPY | Cancellation because of completion of term | ||
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080304 Year of fee payment: 12 |