JPH064330A - Test system - Google Patents

Test system

Info

Publication number
JPH064330A
JPH064330A JP4188699A JP18869992A JPH064330A JP H064330 A JPH064330 A JP H064330A JP 4188699 A JP4188699 A JP 4188699A JP 18869992 A JP18869992 A JP 18869992A JP H064330 A JPH064330 A JP H064330A
Authority
JP
Japan
Prior art keywords
unit
instruction sequence
test
instruction
data
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.)
Withdrawn
Application number
JP4188699A
Other languages
Japanese (ja)
Inventor
Shigezo Mikoyama
茂三 三箇山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP4188699A priority Critical patent/JPH064330A/en
Publication of JPH064330A publication Critical patent/JPH064330A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PURPOSE:To provide the test system which can efficiently execute tests over a wide range with satisfactory reproducivility. CONSTITUTION:A tester 10 is composed of a parameter storage part 11, parameter setting part 17 to prepare test object instructions or various limit conditions based on pseudo random numbers and to store them in the parameter storage part 11, instruction sequence start part 14 to transfer test instruction sequences from an instruction sequence generation part 12 and output data from a data generation part 13 to an information processor 20 and to execute them, simulator part 15 to perform simulation based on the output data of the instruction sequence generation part 12 and the output data of the data generation part 13, executed result comparison part 16 to compare the executed result of the information processor 20 with the simulation result of the simulator part 15, and error information output part 18 to output error information when the compared result shows non-coincidence at this executed result comparison part 16.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、試験システムに係り、
とくに情報処理装置の試験システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a test system,
In particular, it relates to a test system for information processing equipment.

【0002】[0002]

【従来の技術】従来の情報処理装置の試験システムは、
情報処理装置の試験用命令列を生成するためのパラメー
タを操作者が人手で設定する必要があった。また、パラ
メータを変更する場合は、操作者が試験システムを一旦
終了させ、パラメータを変更して試験システムを再び起
動していた。
2. Description of the Related Art A conventional information processing system test system is
The operator has to manually set the parameters for generating the test instruction sequence of the information processing apparatus. In addition, when changing the parameter, the operator once stopped the test system, changed the parameter, and restarted the test system.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、上記従
来例においては、試験用命令列を生成するときのパラメ
ータ設定を人手で行わなければならず、しかもパラメー
タの変更も人手で行わなければならないために、システ
ム運用に工数がかかるとともに、パラメータ設定の誤り
や偏りにより必要十分な試験が行われないという不都合
があった。
However, in the above-mentioned conventional example, the parameter setting at the time of generating the test instruction sequence must be manually performed, and the parameter must be manually changed. However, there are inconveniences that it takes a lot of time to operate the system and necessary and sufficient tests cannot be performed due to an error or imbalance in parameter setting.

【0004】[0004]

【発明の目的】本発明の目的は、かかる従来例の有する
不都合を改善し、とくに試験命令列を生成するときのパ
ラメータを自動的にランダムに変化させながら試験を実
行することができ、効率よく広範囲の試験を再現性よく
行うことができる試験システムを提供することにある。
SUMMARY OF THE INVENTION The object of the present invention is to improve the disadvantages of the conventional example, and in particular, to perform the test efficiently while automatically changing the parameters when the test instruction sequence is generated randomly. It is to provide a test system capable of performing a wide range of tests with good reproducibility.

【0005】[0005]

【課題を解決するための手段】そこで、本発明では、試
験装置が、試験対象命令や各種制約条件を記憶している
パラメータ記憶部と、疑似乱数に基づいて試験対象命令
や各種制約条件を作成しパラメータ記憶部に格納するパ
ラメータ設定部と、疑似乱数に基づいてパラメータ記憶
部を参照して試験命令列を作成する命令列生成部と、疑
似乱数に基づいてデータを作成するデータ生成部と、命
令列生成部で作成された試験命令列とデータ生成部で作
成されたデータを情報処理装置に転送し実行させる命令
列起動部と、命令列生成部で作成された試験命令列とデ
ータ生成部で作成されたデータに基づいてシミュレーシ
ョンを行うシミュレータ部と、情報処理装置での実行結
果とシミュレータ部でのシミュレーション結果との比較
を行う実行結果比較部と、この実行結果比較部での比較
結果が一致しない場合にエラー情報を出力するエラー情
報出力部とを具備するという構成を採っている。これに
よって前述した目的を達成しようとするものである。
Therefore, according to the present invention, a test apparatus creates a test target instruction and various constraint conditions based on a pseudo random number and a parameter storage unit that stores a test target instruction and various constraint conditions. A parameter setting unit to be stored in the parameter storage unit, an instruction sequence generation unit to create a test instruction sequence by referring to the parameter storage unit based on a pseudo random number, and a data generation unit to create data based on the pseudo random number, An instruction sequence starting unit that transfers the test instruction sequence created by the instruction sequence generation unit and the data created by the data generation unit to the information processing device for execution, and a test instruction sequence created by the instruction sequence generation unit and a data generation unit The execution result ratio that compares the execution result in the information processing device and the simulation result in the simulator part with the simulator part that performs the simulation based on the data created in And parts, it adopts a configuration that includes an error information output unit for outputting error information when the comparison result in the execution result comparison unit does not match. This aims to achieve the above-mentioned object.

【0006】[0006]

【作用】試験装置が起動されると、パラメータ設定部
は、疑似乱数を用いて試験対象命令と各種制約条件をパ
ラメータ記憶部に設定する。命令列生成部は、疑似乱数
を用いてパラメータ記憶部を参照しあらかじめ定められ
た命令数の試験命令を選択し、各制約条件に合致する命
令列を生成する。データ生成部は、疑似乱数を用いて命
令列で使用するデータを生成する。
When the test apparatus is activated, the parameter setting unit sets the test target instruction and various constraint conditions in the parameter storage unit by using the pseudo random number. The instruction sequence generation unit refers to the parameter storage unit by using a pseudo random number, selects a test instruction having a predetermined number of instructions, and generates an instruction sequence that matches each constraint condition. The data generation unit uses pseudo-random numbers to generate data used in an instruction sequence.

【0007】命令列起動部は、命令列生成部で生成され
た命令列およびデータ生成部で生成されたデータを情報
処理装置に転送し起動をかける。シミュレータ部は、情
報処理装置に転送したのと同じ命令列およびデータを用
いてシミュレーションを行い、実行結果の期待値を生成
する。
The instruction sequence activation unit transfers the instruction sequence generated by the instruction sequence generation unit and the data generated by the data generation unit to the information processing device and activates it. The simulator section performs simulation using the same instruction sequence and data transferred to the information processing apparatus, and generates an expected value of execution result.

【0008】情報処理装置での実行が終了すると、実行
結果比較部は、情報処理装置での実行結果とシミュレー
タ部でのシミュレーション結果とを比較する。比較結果
が不一致であればエラー情報出力部を介して、命令列や
データの初期値および実行結果を含むエラー情報をリス
トに出力する。
When the execution in the information processing device is completed, the execution result comparison unit compares the execution result in the information processing device with the simulation result in the simulator unit. If the comparison result does not match, the error information including the instruction string and the initial value of the data and the execution result is output to the list via the error information output unit.

【0009】[0009]

【発明の実施例】以下、本発明の一実施例を図1ないし
図5に基づいて説明する。図1の実施例は、各種情報処
理を行う情報処理装置20と、この情報処理装置20の
試験を行う試験装置10とから構成されている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS. The embodiment shown in FIG. 1 includes an information processing device 20 that performs various types of information processing, and a test device 10 that tests the information processing device 20.

【0010】ここで、試験装置10は、図2に示される
ように試験対象となる命令やレジスタ制約条件やメモリ
オペランド制約条件を記憶しているパラメータ記憶部1
1と、疑似乱数に基づいて試験対象となる命令やレジス
タ制約条件やメモリオペランド制約条件をパラメータ記
憶部11に格納するパラメータ設定部17と、疑似乱数
に基づいてパラメータ記憶部11を参照して試験命令列
を作成する命令列生成部12と、疑似乱数に基づいてデ
ータを作成するデータ生成部13と、命令列生成部12
で作成された試験命令列とデータ生成部13で作成され
たデータを情報処理装置20に転送し実行させる命令列
起動部14と、命令列生成部12で作成された試験命令
列とデータ生成部13で作成されたデータに基づいてシ
ミュレーションを行うシミュレータ部15と、情報処理
装置20での実行結果とシミュレータ部15でのシミュ
レーション結果との比較を行う実行結果比較部16と、
実行結果比較部16での比較結果が一致しない場合にエ
ラー情報を出力するエラー情報出力部18とを具備して
いる。
Here, as shown in FIG. 2, the test apparatus 10 includes a parameter storage unit 1 that stores instructions to be tested, register constraint conditions, and memory operand constraint conditions.
1, a parameter setting unit 17 that stores an instruction to be tested, a register constraint condition, and a memory operand constraint condition in the parameter storage unit 11 based on the pseudo random number; and a test by referring to the parameter storage unit 11 based on the pseudo random number. An instruction sequence generation unit 12 that generates an instruction sequence, a data generation unit 13 that generates data based on a pseudo random number, and an instruction sequence generation unit 12
An instruction sequence starting unit 14 for transferring the test instruction sequence created in step 1 and the data produced in the data generating unit 13 to the information processing device 20 for execution, and a test instruction sequence created in the instruction sequence generating unit 12 and a data producing unit A simulator unit 15 that performs a simulation based on the data created in 13; an execution result comparison unit 16 that compares the execution result of the information processing device 20 with the simulation result of the simulator unit 15;
An error information output unit 18 is provided for outputting error information when the comparison results of the execution result comparison unit 16 do not match.

【0011】また、パラメータ記憶部11は、試験対象
となる命令を格納する命令テーブル部11Aと、試験対
象命令で使用するレジスタをどの範囲から選択可能とす
るかのレジスタ制約条件を格納するレジスタ制約条件部
11Bと、試験対象命令で使用するメモリオペランドに
ついてそのメモリ上での開始境界アドレスに対する制限
やその長さに対する制限およびメモリ上での割り付け位
置に対する制限を格納するメモリオペランド制約条件部
11Cとを具備している。
The parameter storage unit 11 also stores an instruction table unit 11A for storing instructions to be tested and a register constraint for storing register constraint conditions for selecting from which range a register used by the instruction to be tested can be selected. A condition part 11B and a memory operand constraint condition part 11C for storing a restriction on a start boundary address on the memory operand used in the instruction to be tested, a restriction on its length, and a restriction on an allocation position on the memory. It has.

【0012】情報処理装置20は、命令列やデータを記
憶している主記憶装置22と、主記憶装置22に格納さ
れているデータを用いて命令列を実行する演算処理装置
21とを具備している。
The information processing device 20 comprises a main memory device 22 for storing instruction sequences and data, and an arithmetic processing device 21 for executing an instruction sequence using the data stored in the main memory device 22. ing.

【0013】また図示していないが、試験装置10に
は、各種処理プログラムやデータを格納するための外部
記憶装置や、操作者が試験装置10を起動したり、結果
を表示するための入出力装置や、エラー情報を出力する
ためのプリンタ等が併設されている。
Although not shown, the test apparatus 10 has an external storage device for storing various processing programs and data, and an input / output for an operator to start the test apparatus 10 and display a result. A device, a printer for outputting error information, and the like are provided side by side.

【0014】次に、本実施例の第1の動作について、図
3のフローチャートを用いて説明する。
Next, the first operation of this embodiment will be described with reference to the flowchart of FIG.

【0015】.試験装置10が起動されると、パラメ
ータ設定部17は、疑似乱数を用いて試験対象命令を命
令テーブル部11Aに設定し、レジスタ制約条件すなわ
ち試験対象命令で使用するレジスタの選択可能範囲をレ
ジスタ制約条件部11Bに設定し、メモリオペランド制
約条件すなわち試験対象命令で使用するメモリオペラン
ドに対するメモリ上での開始境界アドレス制限とその長
さ制限とメモリ上での割り付け位置制限とをメモリオペ
ランド制約条件部11Cに設定する(図3のステップ3
1)。同時に、タイマーをスタートさせる。
.. When the test apparatus 10 is activated, the parameter setting unit 17 sets the test target instruction in the instruction table unit 11A using a pseudo random number, and sets the register constraint condition, that is, the selectable range of the register used in the test target instruction as the register constraint. The memory operand constraint condition is set in the condition unit 11B, that is, the start boundary address limit on the memory for the memory operand used in the test target instruction, its length limit, and the allocation position limit on the memory are specified. Set to (Step 3 in FIG. 3)
1). At the same time, start the timer.

【0016】.命令列生成部12は、疑似乱数を用い
て命令テーブル部11Aとレジスタ制約条件部11Bお
よびメモリオペランド制約条件部11Cを参照しながら
あらかじめ定められた命令数の試験命令を選択し、レジ
スタ制約条件とメモリオペランド制約条件に合致するよ
うに命令列を生成する(図3のステップ32)。
.. The instruction sequence generation unit 12 selects a test instruction having a predetermined number of instructions with reference to the instruction table unit 11A, the register constraint condition unit 11B, and the memory operand constraint condition unit 11C by using a pseudo random number, An instruction string is generated so as to meet the memory operand constraint condition (step 32 in FIG. 3).

【0017】.データ生成部13は、疑似乱数を用い
て命令列で使用するデータを生成する(図3のステップ
33)。
.. The data generator 13 generates data to be used in the instruction sequence by using the pseudo random number (step 33 in FIG. 3).

【0018】.命令列起動部14は、命令列生成部1
2で生成された命令列およびデータ生成部13で生成さ
れたデータを、情報処理装置20に転送する。
.. The instruction sequence activation unit 14 includes the instruction sequence generation unit 1
The instruction sequence generated in 2 and the data generated in the data generation unit 13 are transferred to the information processing device 20.

【0019】情報処理装置20は、転送された命令列お
よびデータを主記憶装置22に格納する。
The information processing device 20 stores the transferred instruction sequence and data in the main storage device 22.

【0020】命令列起動部14は、情報処理装置20に
起動をかける。
The instruction sequence activation unit 14 activates the information processing device 20.

【0021】情報処理装置20は、主記憶装置22から
命令列を演算処理装置21のレジスタに格納し、演算処
理装置21でその命令列を実行する。
The information processing device 20 stores an instruction sequence from the main storage device 22 in a register of the arithmetic processing device 21, and the arithmetic processing device 21 executes the instruction sequence.

【0022】実行が終了したならば、命令列起動部14
は、演算処理装置22のレジスタおよび主記憶装置23
に格納されている実行結果を読み出し、待避しておく
(図3のステップ34)。
When the execution is completed, the instruction sequence starting unit 14
Is a register of the arithmetic processing unit 22 and a main storage unit 23.
The execution result stored in is read and saved (step 34 in FIG. 3).

【0023】.シミュレータ部15は、情報処理装置
20に転送したのと同じ命令列およびデータを用いて、
シミュレーションを行い、実行結果の期待値を生成する
(図3のステップ35)。
.. The simulator unit 15 uses the same instruction sequence and data transferred to the information processing device 20,
A simulation is performed and an expected value of the execution result is generated (step 35 in FIG. 3).

【0024】.実行結果比較部16は、情報処理装置
20での実行結果とシミュレータ部15でのシミュレー
ション結果とを比較する(図3のステップ36)。
[0024]. The execution result comparison unit 16 compares the execution result of the information processing device 20 with the simulation result of the simulator unit 15 (step 36 in FIG. 3).

【0025】比較結果が一致していれば何もせずに下記
(図3のステップ39)の処理に進む。比較結果が不
一致であればエラー情報出力部18を介して、命令列や
データの初期値および実行結果を含むエラー情報をリス
トに出力し(図3のステップ38)、下記(図3のス
テップ39)の処理に進む。
If the comparison results are in agreement, nothing is done and the process proceeds to the following (step 39 in FIG. 3). If the comparison results do not match, the error information including the instruction string and the initial value of the data and the execution result is output to the list via the error information output unit 18 (step 38 in FIG. 3), and the following (step 39 in FIG. 3). ) Processing.

【0026】.タイマーをチェックし(図3のステッ
プ39)、あらかじめ設定されている時間を経過してい
れば、上記の処理(図3のステップ31)に戻る。あ
らかじめ設定されている時間を経過していなければ、上
記の処理(図3のステップ32)に戻る。
.. The timer is checked (step 39 in FIG. 3), and if the preset time has elapsed, the process returns to the above process (step 31 in FIG. 3). If the preset time has not elapsed, the process returns to the above process (step 32 in FIG. 3).

【0027】このように、操作者により停止を指示され
るまで、上記処理ステップを繰り返し実行する。
In this way, the above processing steps are repeatedly executed until the operator instructs the stop.

【0028】次に、本実施例の第2の動作について、図
4のフローチャートを用いて説明する。
Next, the second operation of this embodiment will be described with reference to the flowchart of FIG.

【0029】.試験装置10が起動されると、パラメ
ータ設定部17は、疑似乱数を用いて試験対象命令を命
令テーブル部11Aに設定し、レジスタ制約条件すなわ
ち試験対象命令で使用するレジスタの選択可能範囲をレ
ジスタ制約条件部11Bに設定し、メモリオペランド制
約条件すなわち試験対象命令で使用するメモリオペラン
ドに対するメモリ上での開始境界アドレス制限とその長
さ制限とメモリ上での割り付け位置制限とをメモリオペ
ランド制約条件部11Cに設定する(図4のステップ4
1)。同時に、比較回数カウンターをリセットする。
.. When the test apparatus 10 is activated, the parameter setting unit 17 sets the test target instruction in the instruction table unit 11A using a pseudo random number, and sets the register constraint condition, that is, the selectable range of the register used in the test target instruction as the register constraint. The memory operand constraint condition is set in the condition unit 11B, that is, the start boundary address limit on the memory for the memory operand used in the test target instruction, its length limit, and the allocation position limit on the memory are specified. Set to (Step 4 in FIG. 4)
1). At the same time, the comparison counter is reset.

【0030】.命令列生成部12は、疑似乱数を用い
て命令テーブル部11Aとレジスタ制約条件部11Bお
よびメモリオペランド制約条件部11Cを参照しながら
あらかじめ定められた命令数の試験命令を選択し、レジ
スタ制約条件とメモリオペランド制約条件に合致するよ
うに命令列を生成する(図4のステップ42)。
.. The instruction sequence generation unit 12 selects a test instruction of a predetermined number of instructions by referring to the instruction table unit 11A, the register constraint condition unit 11B, and the memory operand constraint condition unit 11C using the pseudo random number, An instruction sequence is generated so as to meet the memory operand constraint condition (step 42 in FIG. 4).

【0031】.データ生成部13は、疑似乱数を用い
て命令列で使用するデータを生成する(図4のステップ
43)。
.. The data generator 13 generates data to be used in the instruction sequence by using the pseudo random number (step 43 in FIG. 4).

【0032】.命令列起動部14は、命令列生成部1
2で生成された命令列およびデータ生成部13で生成さ
れたデータを、情報処理装置20に転送する。
.. The instruction sequence activation unit 14 includes the instruction sequence generation unit 1
The instruction sequence generated in 2 and the data generated in the data generation unit 13 are transferred to the information processing device 20.

【0033】情報処理装置20は、転送された命令列お
よびデータを主記憶装置22に格納する。
The information processing device 20 stores the transferred instruction sequence and data in the main storage device 22.

【0034】命令列起動部14は、情報処理装置20に
起動をかける。
The instruction sequence activation unit 14 activates the information processing device 20.

【0035】情報処理装置20は、主記憶装置22から
命令列を演算処理装置21のレジスタに格納し、演算処
理装置21でその命令列を実行する。
The information processing apparatus 20 stores the instruction sequence from the main memory 22 in the register of the arithmetic processing unit 21, and the arithmetic processing unit 21 executes the instruction sequence.

【0036】実行が終了したならば、命令列起動部14
は、演算処理装置22のレジスタおよび主記憶装置23
に格納されている実行結果を読み出し、待避しておく
(図4のステップ44)。
When the execution is completed, the instruction sequence starting unit 14
Is a register of the arithmetic processing unit 22 and a main storage unit 23.
The execution result stored in is stored and saved (step 44 in FIG. 4).

【0037】.シミュレータ部15は、情報処理装置
20に転送したのと同じ命令列およびデータを用いて、
シミュレーションを行い、実行結果の期待値を生成する
(図4のステップ45)。
.. The simulator unit 15 uses the same instruction sequence and data transferred to the information processing device 20,
A simulation is performed and an expected value of the execution result is generated (step 45 in FIG. 4).

【0038】.実行結果比較部16は、情報処理装置
20での実行結果とシミュレータ部15でのシミュレー
ション結果とを比較する(図4のステップ46)。そし
て、比較回数カウンターを+1する。
.. The execution result comparison unit 16 compares the execution result of the information processing device 20 with the simulation result of the simulator unit 15 (step 46 in FIG. 4). Then, the comparison counter is incremented by one.

【0039】比較結果が一致していれば何もせずに下記
の処理(図4のステップ49)に進む。比較結果が不
一致であればエラー情報出力部18を介して、命令列や
データの初期値および実行結果を含むエラー情報をリス
トに出力し(図4のステップ48)、下記の処理(図
4のステップ49)に進む。
If the comparison results are in agreement, nothing is done and the process proceeds to the following process (step 49 in FIG. 4). If the comparison result does not match, the error information including the instruction string and the initial value of the data and the execution result is output to the list via the error information output unit 18 (step 48 in FIG. 4), and the following process (see FIG. 4) is performed. Proceed to step 49).

【0040】.比較回数カウンターをチェックし(図
4のステップ49)、あらかじめ設定されている比較回
数に達していれば、上記の処理(図4のステップ4
1)に戻る。あらかじめ設定されている比較回数に達し
ていなければ、上記の処理(図4のステップ42)に
戻る。
.. The comparison counter is checked (step 49 in FIG. 4), and if the preset number of comparisons has been reached, the above process (step 4 in FIG. 4) is performed.
Return to 1). If the preset number of comparisons has not been reached, the process returns to the above process (step 42 in FIG. 4).

【0041】次に、本実施例の第3の動作について、図
5のフローチャートを用いて説明する。
Next, the third operation of this embodiment will be described with reference to the flowchart of FIG.

【0042】.試験装置10が起動されると、パラメ
ータ設定部17は、疑似乱数を用いて試験対象命令を命
令テーブル部11Aに設定し、レジスタ制約条件すなわ
ち試験対象命令で使用するレジスタの選択可能範囲をレ
ジスタ制約条件部11Bに設定し、メモリオペランド制
約条件すなわち試験対象命令で使用するメモリオペラン
ドに対するメモリ上での開始境界アドレス制限とその長
さ制限とメモリ上での割り付け位置制限とをメモリオペ
ランド制約条件部11Cに設定する(図5のステップ5
1)。同時に、タイマーをスタートさせる。
.. When the test apparatus 10 is activated, the parameter setting unit 17 sets the test target instruction in the instruction table unit 11A using a pseudo random number, and sets the register constraint condition, that is, the register selectable range of the register used in the test target instruction. The memory operand constraint condition is set in the condition unit 11B, that is, the start boundary address limit on the memory for the memory operand used in the test target instruction, its length limit, and the allocation position limit on the memory are specified. Set to (Step 5 in FIG. 5)
1). At the same time, start the timer.

【0043】.命令列生成部12は、疑似乱数を用い
て命令テーブル部11Aとレジスタ制約条件部11Bお
よびメモリオペランド制約条件部11Cを参照しながら
あらかじめ定められた命令数の試験命令を選択し、レジ
スタ制約条件とメモリオペランド制約条件に合致するよ
うに命令列を生成する(図5のステップ52)。
.. The instruction sequence generation unit 12 selects a test instruction of a predetermined number of instructions by referring to the instruction table unit 11A, the register constraint condition unit 11B, and the memory operand constraint condition unit 11C using the pseudo random number, An instruction string is generated so as to meet the memory operand constraint condition (step 52 in FIG. 5).

【0044】.データ生成部13は、疑似乱数を用い
て命令列で使用するデータを生成する(図5のステップ
53)。
.. The data generator 13 uses pseudo-random numbers to generate data used in the instruction sequence (step 53 in FIG. 5).

【0045】.命令列起動部14は、命令列生成部1
2で生成された命令列およびデータ生成部13で生成さ
れたデータを、情報処理装置20に転送する。
.. The instruction sequence activation unit 14 includes the instruction sequence generation unit 1
The instruction sequence generated in 2 and the data generated in the data generation unit 13 are transferred to the information processing device 20.

【0046】情報処理装置20は、転送された命令列お
よびデータを主記憶装置22に格納する。
The information processing device 20 stores the transferred instruction sequence and data in the main storage device 22.

【0047】命令列起動部14は、情報処理装置20に
起動をかける。
The instruction sequence activation unit 14 activates the information processing device 20.

【0048】情報処理装置20は、主記憶装置22から
命令列を演算処理装置21のレジスタに格納し、演算処
理装置21でその命令列を実行する。
The information processing apparatus 20 stores the instruction sequence from the main memory 22 in the register of the arithmetic processing unit 21, and the arithmetic processing unit 21 executes the instruction sequence.

【0049】実行が終了したならば、命令列起動部14
は、演算処理装置22のレジスタおよび主記憶装置23
に格納されている実行結果を読み出し、待避しておく
(図5のステップ54)。
When the execution is completed, the instruction sequence starting unit 14
Is a register of the arithmetic processing unit 22 and a main storage unit 23.
The execution result stored in is read and saved (step 54 in FIG. 5).

【0050】.シミュレータ部15は、情報処理装置
20に転送したのと同じ命令列およびデータを用いて、
シミュレーションを行い、実行結果の期待値を生成する
(図5のステップ55)。
.. The simulator unit 15 uses the same instruction sequence and data transferred to the information processing device 20,
A simulation is performed and an expected value of the execution result is generated (step 55 in FIG. 5).

【0051】.実行結果比較部16は、情報処理装置
20での実行結果とシミュレータ部15でのシミュレー
ション結果とを比較する(図5のステップ56)。
.. The execution result comparison unit 16 compares the execution result of the information processing device 20 with the simulation result of the simulator unit 15 (step 56 in FIG. 5).

【0052】比較結果が一致していれば何もせずに下記
(図5のステップ59)の処理に進む。比較結果が不
一致であればエラー情報出力部18を介して、命令列や
データの初期値および実行結果を含むエラー情報をリス
トに出力し(図5のステップ58)、上記の処理(図
5のステップ51)に戻る。
If the comparison results are in agreement, nothing is done and the process proceeds to the following (step 59 in FIG. 5). If the comparison result does not match, the error information including the instruction string and the initial value of the data and the execution result is output to the list via the error information output unit 18 (step 58 in FIG. 5), and the above-described processing (in FIG. 5) Return to step 51).

【0053】.タイマーをチェックし(図5のステッ
プ59)、あらかじめ設定されている時間を経過してい
れば、上記の処理(図5のステップ51)に戻る。あ
らかじめ設定されている時間を経過していなければ、上
記の処理(図5のステップ52)に戻る。
.. The timer is checked (step 59 in FIG. 5), and if the preset time has elapsed, the process returns to the above process (step 51 in FIG. 5). If the preset time has not elapsed, the process returns to the above process (step 52 in FIG. 5).

【0054】なお、本実施例における各部の処理は、ソ
フトウェアで実現することが可能であり、その場合は試
験装置10に併設されている外部記憶装置に処理プログ
ラムを格納し、上記処理を行う。
The processing of each unit in this embodiment can be realized by software. In that case, the processing program is stored in the external storage device provided in the test apparatus 10 and the above processing is performed.

【0055】[0055]

【発明の効果】本発明は以上のように構成され機能する
ので、これによると、試験命令列を生成するときのパラ
メータを自動的にランダムに変化させながら実行するこ
とができ、これがため、効率よく広範囲の試験を再現性
よく行うことができるという従来にない優れた試験シス
テムを提供することができる。
Since the present invention is constructed and functions as described above, according to this, it is possible to automatically and randomly execute a parameter when generating a test instruction sequence, which is effective. It is possible to provide an unprecedented excellent test system capable of performing a wide range of tests with good reproducibility.

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

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

【図2】図1の実施例における試験装置の詳細構成を示
す構成図である。
FIG. 2 is a configuration diagram showing a detailed configuration of a test apparatus in the embodiment of FIG.

【図3】本発明の第1の動作を説明するためのフローチ
ャートである。
FIG. 3 is a flowchart for explaining the first operation of the present invention.

【図4】本発明の第2の動作を説明するためのフローチ
ャートである。
FIG. 4 is a flowchart for explaining a second operation of the present invention.

【図5】本発明の第3の動作を説明するためのフローチ
ャートである。
FIG. 5 is a flowchart for explaining a third operation of the present invention.

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

10 試験装置 11 パラメータ記憶部 12 命令列生成部 13 データ生成部 14 命令列起動部 15 シミュレータ部 16 実行結果比較部 17 パラメータ設定部 18 エラー情報出力部 20 情報処理装置 21 演算処理装置 22 主記憶装置 10 test device 11 parameter storage unit 12 instruction sequence generation unit 13 data generation unit 14 instruction sequence activation unit 15 simulator unit 16 execution result comparison unit 17 parameter setting unit 18 error information output unit 20 information processing device 21 arithmetic processing unit 22 main storage device

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 各種情報処理を行う情報処理装置と、こ
の情報処理装置の試験を行う試験装置とから構成される
試験システムにおいて、 前記試験装置が、試験対象命令や各種制約条件を記憶し
ているパラメータ記憶部と、疑似乱数に基づいて試験対
象命令や各種制約条件を作成し前記パラメータ記憶部に
格納するパラメータ設定部と、疑似乱数に基づいて前記
パラメータ記憶部を参照して試験命令列を作成する命令
列生成部と、疑似乱数に基づいてデータを作成するデー
タ生成部と、前記命令列生成部で作成された試験命令列
と前記データ生成部で作成されたデータを前記情報処理
装置に転送し実行させる命令列起動部と、前記命令列生
成部で作成された試験命令列と前記データ生成部で作成
されたデータに基づいてシミュレーションを行うシミュ
レータ部と、前記情報処理装置での実行結果と前記シミ
ュレータ部でのシミュレーション結果との比較を行う実
行結果比較部と、この実行結果比較部での比較結果が一
致しない場合にエラー情報を出力するエラー情報出力部
とを装備したことを特徴とする試験システム。
1. A test system comprising an information processing device for performing various information processing and a test device for testing the information processing device, wherein the test device stores a test target instruction and various constraint conditions. A parameter storage unit, a parameter setting unit that creates a test target instruction and various constraint conditions based on a pseudo random number and stores them in the parameter storage unit, and a test instruction sequence by referring to the parameter storage unit based on a pseudo random number. An instruction sequence generation unit to generate, a data generation unit to generate data based on a pseudo random number, a test instruction sequence generated by the instruction sequence generation unit and data generated by the data generation unit to the information processing device. A simulation is performed based on the instruction sequence activation unit that is transferred and executed, the test instruction sequence created by the instruction sequence generation unit, and the data created by the data generation unit. An error information is output when the comparison result in the mutator section, the execution result comparison section that compares the execution result in the information processing device with the simulation result in the simulator section, and the comparison result in this execution result comparison section A test system equipped with an error information output section.
【請求項2】 前記パラメータ記憶部が、試験対象命令
を格納する命令テーブル部と、試験対象命令で使用する
レジスタの選択可能範囲を格納するレジスタ制約条件部
と、試験対象命令で使用するメモリオペランドのメモリ
上での開始境界アドレス制限やその長さ制限およびメモ
リ上での割り付け位置制限を格納するメモリオペランド
制約条件部とを具備していることを特徴とする請求項1
記載の試験システム。
2. The parameter storage unit stores an instruction table unit that stores a test target instruction, a register constraint condition unit that stores a selectable range of a register used by the test target instruction, and a memory operand used by the test target instruction. 3. A memory operand constraint condition part for storing a start boundary address limit on the memory, its length limit, and allocation position limit on the memory.
Test system described.
JP4188699A 1992-06-23 1992-06-23 Test system Withdrawn JPH064330A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4188699A JPH064330A (en) 1992-06-23 1992-06-23 Test system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4188699A JPH064330A (en) 1992-06-23 1992-06-23 Test system

Publications (1)

Publication Number Publication Date
JPH064330A true JPH064330A (en) 1994-01-14

Family

ID=16228274

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4188699A Withdrawn JPH064330A (en) 1992-06-23 1992-06-23 Test system

Country Status (1)

Country Link
JP (1) JPH064330A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1153209A (en) * 1997-08-04 1999-02-26 Nec Corp Instruction combination continuous test system
JP2004507833A (en) * 2000-08-28 2004-03-11 ベリシティ リミテッド How to provide bitwise constraints for test generation
KR100896274B1 (en) * 2002-07-10 2009-05-07 엘지전자 주식회사 Pseudo-random code generator

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1153209A (en) * 1997-08-04 1999-02-26 Nec Corp Instruction combination continuous test system
JP2004507833A (en) * 2000-08-28 2004-03-11 ベリシティ リミテッド How to provide bitwise constraints for test generation
KR100896274B1 (en) * 2002-07-10 2009-05-07 엘지전자 주식회사 Pseudo-random code generator

Similar Documents

Publication Publication Date Title
US6077304A (en) Verification system for simulator
US6134690A (en) Computerized automation system and method
US5991529A (en) Testing of hardware by using a hardware system environment that mimics a virtual system environment
JPH064330A (en) Test system
US20090271165A1 (en) Simultaneous Parameter-Driven and Deterministic Simulation With or Without Synchronization
US6728654B2 (en) Random number indexing method and apparatus that eliminates software call sequence dependency
KR100790470B1 (en) Method and apparatus for automatically generating test case for device driver test
CN110187890A (en) The method of project deployment, electronic equipment, storage medium
KR20010007015A (en) Method for creating a simulation environment for enhanced logic verification of a branch history table
US20110225400A1 (en) Device for Testing a Multitasking Computation Architecture and Corresponding Test Method
Cantoro et al. On the optimization of SBST test program compaction
CN115756476A (en) Android system automatic flashing method and device, electronic equipment and storage medium
JPH0652006A (en) Testing instrument for information processor
JP2602983B2 (en) Diagnostic system
JPH04275638A (en) System for testing information processor
JPH0575985B2 (en)
Correia et al. Minimizing the problem of logic testing by the interaction of a design group with user-oriented facilities
JP2005031860A (en) Test case creation device
JPH06295295A (en) Simulator
JPH01217650A (en) Test executing system for software simulator
JPH01181135A (en) Method for testing operating system
JPH05108401A (en) Test pattern generating method
JPH07253901A (en) Method for testing information processor
JPH0712897A (en) Method and equipment for testing lsi
JP2007122597A (en) System verification device

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 19990831