JPH11232131A - Testing method for data processor - Google Patents

Testing method for data processor

Info

Publication number
JPH11232131A
JPH11232131A JP10030842A JP3084298A JPH11232131A JP H11232131 A JPH11232131 A JP H11232131A JP 10030842 A JP10030842 A JP 10030842A JP 3084298 A JP3084298 A JP 3084298A JP H11232131 A JPH11232131 A JP H11232131A
Authority
JP
Japan
Prior art keywords
instruction
branch
test
test instruction
instruction group
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
JP10030842A
Other languages
Japanese (ja)
Inventor
Hiroichi Mitsumata
博一 三俣
Yutaka Kodama
豊 児玉
Joji Shirota
丈治 城田
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 Ltd
Hitachi Information Technology Co Ltd
Original Assignee
Hitachi Ltd
Hitachi Information Technology Co 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 Ltd, Hitachi Information Technology Co Ltd filed Critical Hitachi Ltd
Priority to JP10030842A priority Critical patent/JPH11232131A/en
Publication of JPH11232131A publication Critical patent/JPH11232131A/en
Pending legal-status Critical Current

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Advance Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To make effectively verifiable the transition of all the branching prediction RAMs of multi-level constitution by generating a test instruction group for a branching prediction mechanism of a loop structure in an instruction group generated with random number data as input. SOLUTION: The generation part 202 of the instruction group for the branching prediction mechanism is composed of a general test instruction group generation part 203 and a branching system test instruction group generation part 204. From that and a test instruction detailed information table 209, a test instruction setting part 205 generates the test instruction group 212 for the branching mechanism and an execution initial value 210 by using a random number value generation part 201 for generating a random value. A simulation processing part 206 generates an expected value 213 by using the test instruction group 212 for the branching mechanism and the execution initial value 210. A test instruction execution part 207 executes the instruction to be tested by using the execution initial value 210 and the test instruction group 212 for the branching instruction mechanism. A comparison processing part 208 compares an executed result value 214 sampled from the test instruction execution part 207 with the expected value 213, generates an error message and outputs it to an error message output part 211.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、データ処理装置の
試験に関し、特にランダムに試験命令群を生成して被試
験データ処理装置の処理機能を試験する方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a test of a data processing device, and more particularly to a method of randomly generating a test instruction group to test a processing function of a data processing device under test.

【0002】[0002]

【従来の技術】データ処理装置の高性能化を支える技術
として、命令をいくつかの処理ステージに分解し、各装
置(ユニット)が特定のステージを1マシンサイクル毎
に処理するパイプライン処理方式が広く採用されてい
る。更にパイプラインを円滑に処理するために、分岐系
命令時に分岐条件成立/不成立を予測し、予め先行され
る命令を決定する分岐予測機構が広く採用されている。
前記分岐予測機構は、分岐状態を保存しておくために多
階層の分岐予測RAMを有しており、分岐系命令実行毎
に前記分岐予測RAMを参照して分岐条件成立/不成立
を予測することによって分岐による命令遷移の高速化を
実現している。
2. Description of the Related Art As a technique for supporting high performance of a data processing apparatus, a pipeline processing method in which an instruction is divided into several processing stages and each apparatus (unit) processes a specific stage every one machine cycle is used. Widely adopted. Further, in order to smoothly process the pipeline, a branch prediction mechanism that predicts whether a branch condition is satisfied / not satisfied at the time of a branch instruction and determines a precedent instruction in advance is widely used.
The branch prediction mechanism has a multi-level branch prediction RAM for storing a branch state, and predicts whether a branch condition is satisfied / not satisfied with reference to the branch prediction RAM every time a branch-related instruction is executed. This realizes faster instruction transition by branching.

【0003】処理性能向上/高密度実装化に伴い、上記
分岐予測機構で制御する分岐状態の種類、分岐予測RA
M数が増加しており、非ループ型試験命令では処理能力
向上のために組み込まれている多種の高速化論理及び分
岐予測論理動作の組合わせをテストするためには、大量
のテストパターンを実行することが必要であり、短期間
で効果的な検証を実現することが困難になってきた。従
来の非ループ型のデータ処理テスト方法としては、例え
ば、特開平8―166892号公報等に記載された技術
がある。
With the improvement of processing performance / high-density mounting, the type of branch state controlled by the above-described branch prediction mechanism, the branch prediction RA
As the number of M increases, a large number of test patterns are executed in order to test various combinations of high-speed logic and branch prediction logic operation incorporated in non-loop-type test instructions to improve processing performance. It has become difficult to achieve effective verification in a short period of time. As a conventional non-loop type data processing test method, for example, there is a technique described in Japanese Patent Application Laid-Open No. 8-166892.

【0004】[0004]

【発明が解決しようとする課題】従来の技術では、乱数
データを入力として生成する試験命令群は、全て非ルー
プ型命令群であり、そのため命令実行されるアドレスが
関係する分岐予測処理の検証には不向きであった。従来
はこれを解決するために、試験実行前に分岐予測RAM
に直接、分岐状態を設定し試験する等の方式を採用して
いた。ただし、これは分岐予測RAMが単一の場合であ
り、多階層の分岐予測RAMの試験は対象としていなか
った。これを複数の分岐予測RAMに拡大し、従来の技
術でこれらのRAMに分岐状態を設定し、試験を行って
も分岐状態が遷移しにくい最下層の分岐予測RAMを検
証することが困難であり、また分岐予測RAMには外部
からの設定が不可能であるという問題も発生する。本発
明の目的は、上記問題点の解決を図り、多階層構成の全
ての分岐予測RAMの遷移を効果的に検証することにあ
る。
In the prior art, a test instruction group that generates random number data as an input is a non-loop type instruction group. Therefore, it is necessary to verify a branch prediction process involving an address at which an instruction is executed. Was unsuitable. Conventionally, in order to solve this, a branch prediction RAM is required before the test is executed.
For example, a method of directly setting a branch state and performing a test was adopted. However, this is a case where the branch prediction RAM is single, and the test of the multi-layer branch prediction RAM is not targeted. This is extended to a plurality of branch prediction RAMs, and it is difficult to set a branch state in these RAMs by a conventional technique and to verify a lowermost branch prediction RAM in which the branch state is difficult to transition even when a test is performed. There is also a problem that the branch prediction RAM cannot be externally set. SUMMARY OF THE INVENTION An object of the present invention is to solve the above problems and to effectively verify transitions of all branch prediction RAMs having a multi-layer structure.

【0005】[0005]

【課題を解決するための手段】本発明は、乱数データを
入力として生成する命令群に於いて、ループ構造の分岐
予測機構用試験命令群を生成することにより、多階層の
分岐予測RAMから構成される分岐予測論理を効果的に
検証することが可能になる。
SUMMARY OF THE INVENTION The present invention comprises a multi-layered branch prediction RAM by generating a test instruction group for a branch prediction mechanism having a loop structure in an instruction group for generating random number data as an input. This makes it possible to effectively verify the predicted branch prediction logic.

【0006】[0006]

【発明の実施の形態】以下、本発明の一実施例を図面に
より詳細に説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below in detail with reference to the drawings.

【0007】図1は、試験対象データ処理装置内に構成
されている分岐予測機構の構成と動作の一実施例であ
る。図1の分岐予測機構は、分岐予測RAM1(10
3)、分岐予測RAM2(104)の2階層の分岐予測
RAMで構成されいる。前記パイプライン処理において
先行して命令を登録しておく命令キューに分岐命令が選
択されたとき(101)、分岐予測RAM1(103)
の分岐状態は分岐成立予測であるため分岐命令以降、命
令キューに分岐成立先の命令を登録するが、次に参照す
る分岐予測RAM2(104)内の分岐状態は分岐不成
立予測あるため、既に分岐予測RAM1(103)で予
測されて命令キューに登録されている分岐成立先命令を
キャンセルし、分岐予測RAM1(103)内の分岐状
態を分岐成立予測から分岐不成立予測に書き換える(1
02)。この様に分岐予測機構では、分岐予測先の命令
を先行して実行する事で、パイプライン処理による命令
実行のペナルティを無くす事が可能となり高速な分岐命
令処理を実現できる。
FIG. 1 shows an embodiment of the configuration and operation of a branch prediction mechanism configured in the data processing apparatus under test. The branch prediction mechanism shown in FIG.
3) It is composed of a branch prediction RAM of two layers of a branch prediction RAM 2 (104). When a branch instruction is selected in the instruction queue in which an instruction is registered in advance in the pipeline processing (101), the branch prediction RAM1 (103)
Is a branch taken prediction, the instruction of the branch taken destination is registered in the instruction queue after the branch instruction. However, the branch state in the branch prediction RAM 2 (104) to be referred to next is the branch not taken prediction, and the branch has already been taken. The branch taken instruction predicted by the prediction RAM 1 (103) and registered in the instruction queue is canceled, and the branch state in the branch prediction RAM 1 (103) is rewritten from the branch taken prediction to the branch not taken prediction (1).
02). As described above, in the branch prediction mechanism, by executing the instruction of the branch prediction destination in advance, it is possible to eliminate the penalty of the instruction execution by the pipeline processing, and to realize the high-speed branch instruction processing.

【0008】図2は、試験対象データ処理装置の試験装
置の構成を示す本発明の一実施例のブロック図である。
図2において試験装置は、ランダムな値を生成する乱数
値生成部(201)を用い、一般試験命令群生成部(2
03)/分岐系試験命令群生成部(204)から成る分
岐予測機構用命令群生成部(202)と試験命令詳細情
報テーブル(209)から分岐機構用試験命令群(21
2)と実行初期値(210)を生成する試験命令設定部
(205)、分岐機構用試験命令群(212)と実行初
期値(210)を用いて期待値(213)を生成するシ
ミュレーション処理部(206)、実行初期値(21
0)/分岐命令機構用試験命令群(212)を用いて、
被試験命令を実行する試験命令実行部(207)、試験
命令実行部(207)から採取した実行結果値(21
4)と期待値(213)を比較しエラーメッセージを作
成する比較処理部(208)、エラーメッセージ出力部
(211)より構成される。
FIG. 2 is a block diagram of an embodiment of the present invention showing the configuration of a test apparatus of the data processing apparatus under test.
In FIG. 2, the test apparatus uses a random value generation unit (201) that generates a random value, and a general test instruction group generation unit (2).
03) / A branch prediction mechanism instruction group generation unit (202) comprising a branch system test instruction group generation unit (204) and a branch mechanism test instruction group (21) from the test instruction detailed information table (209).
2) and a test instruction setting unit (205) for generating an execution initial value (210); a simulation processing unit for generating an expected value (213) using the branch mechanism test instruction group (212) and the execution initial value (210) (206), execution initial value (21
0) / Using the test instruction group (212) for the branch instruction mechanism,
A test instruction execution unit (207) that executes the instruction under test, and an execution result value (21) extracted from the test instruction execution unit (207).
4) is composed of a comparison processing unit (208) for comparing the expected value (213) with the expected value to generate an error message, and an error message output unit (211).

【0009】図3は、図2の試験装置全体の処理を示す
フローチャートである。生成した乱数値(301)を入
力として試験命令詳細情報テーブル、分岐機構用試験命
令群、実行初期値を生成し(302)、試験命令群の命
令をシミュレートし期待値を作成する(303)。その
後試験対象装置上で同一命令群を実行し実行結果を得
(204)、実行結果値と期待値を比較チェックし(3
05)不一致となる実行結果値を生成し(306)、エ
ラーメッセージとして出力する(307)。上記操作を
指定された回数分の試験を実行し終えるまで繰り返す
(308)。
FIG. 3 is a flowchart showing the processing of the entire test apparatus of FIG. Using the generated random number value (301) as an input, a test instruction detailed information table, a branch mechanism test instruction group, and an execution initial value are generated (302), and the test instruction group instruction is simulated to generate an expected value (303). . Thereafter, the same instruction group is executed on the test target device to obtain an execution result (204), and the execution result value is compared with the expected value to check (3).
05) Generate a mismatched execution result value (306) and output it as an error message (307). The above operation is repeated until the specified number of tests are completed (308).

【0010】図4は、本発明で使用される各テーブルの
フォーマットを示す図である。試験命令詳細情報テーブ
ル(403)は、複数の分岐系試験命令詳細情報テーブ
ル(401)と一般試験命令詳細情報テーブル(40
2)で構成されており、一般試験命令詳細情報テーブル
(402)内の情報として、試験命令種、命令タイプ、
命令によって試験される内容(機能)が、分岐系試験命
令詳細情報テーブル(401)には、一般試験命令詳細
情報テーブル(402)の情報に加え、この分岐系試験
命令で機能される分岐タイプ、分岐先が同一ページか他
ページに分岐するかを示す分岐先、分岐先のアドレスの
方向を示す分岐方向、逐次実行して既に決定された試験
命令のアドレスに到着する命令数を示す分岐後走行有効
数、成立/不成立を示す分岐状態、試験命令詳細情報テ
ーブル群で試験されるループの重複数、ループ内命令
数、試験命令番号、ループ要因となる分岐系命令の分岐
先実アドレスが示される1重ループ目開始アドレス/2
重ループ目開始アドレス、ループの終了のアドレスが示
される1重ループ目終了アドレス/2重ループ目終了ア
ドレス、ループ数を保持しておくレジスタを示す1重目
更新レジスタ/2重目更新レジスタ、ループ脱出用比較
命令で前記更新レジスタを比較しループを脱出するため
に用いる1重ループ目比較レジスタ/2重ループ目比較
レジスタ、ループの情報を示す1重ループカウンタ/2
重ループカウンタ/ループ内命令数合計で構成されてい
る。
FIG. 4 is a diagram showing the format of each table used in the present invention. The test instruction detailed information table (403) includes a plurality of branch system test instruction detailed information tables (401) and a general test instruction detailed information table (40).
2), and information in the general test instruction detailed information table (402) includes a test instruction type, an instruction type,
The branch test instruction detailed information table (401) includes, in addition to the information of the general test instruction detailed information table (402), the branch type functioned by the branch system test instruction, A branch destination indicating whether the branch destination branches to the same page or another page, a branch direction indicating the direction of the address of the branch destination, and a run after branch indicating the number of instructions that are sequentially executed and arrive at the address of the test instruction already determined. The effective number, the branch status indicating the taken / not taken, the number of loops tested in the test instruction detailed information table group, the number of instructions in the loop, the test instruction number, and the actual address of the branch destination of the branch instruction that causes the loop are shown. Single loop start address / 2
A first loop end address, a second loop end address indicating the end of the loop, a double loop end address, and a first update register / second update register indicating a register for holding the number of loops; Single-loop comparison register / double-loop comparison register used to compare the update register with a loop exit comparison instruction and exit the loop, single loop counter / 2 indicating loop information
It consists of a heavy loop counter / total number of instructions in the loop.

【0011】図5は、図4で示した試験命令詳細情報テ
ーブル(403)から生成される2重ループ試験命令群
による分岐予測機構について示したものである。分岐予
測機構をテストする際、2重ループにて同一命令列を2
回実行する事で分岐予測の分岐状態遷移を効率良く試験
することが可能となる。試験命令詳細情報テーブル(5
01)から生成された2重ループ試験命令群(502)
は、1/2重ループの分岐先である1/2重ループ先頭
命令、ループ内命令列に分岐するループ内分岐命令、ル
ープを構成するための1/2重ループ脱出用比較命令、
一般命令から構成される。前記2重ループ試験命令群
(502)を試験したときの、ループ命令列内のループ
内分岐命令Aの分岐成立/不成立を示したものが分岐命
令Aの分岐状態遷移(503)、また分岐命令Aによっ
て前記分岐予測処理機構の分岐予測RAMの状態遷移及
び分岐予測を示したものが分岐命令Aによる分岐予測R
AMの状態遷移(504)である。前記分岐命令Aにお
ける条件成立、条件不成立時の分岐命令Aの分岐状態遷
移(503)から、前記分岐予測機構の動作について述
べる。分岐命令Aの1回目の実行が行われるとき、前記
分岐予測機構は分岐予測RAMの値が“00”から分岐
不成立と判断し分岐命令Aの条件不成立先を先行して命
令を実行しようするが、実際は分岐命令Aは分岐成立な
ので分岐予測機構の分岐予測はミスとなり、分岐命令A
の条件不成立先の命令をとりやめ分岐命令Aの条件成立
先の命令を実行し、分岐予測RAMに“01”を書き込
む。次に2回目の分岐命令Aの実行時は、一回目の実行
時、条件が成立していたので分岐予測機構は分岐成立と
判断し、分岐命令Aの条件成立先を先行して命令を実行
し、実際分岐命令Aは分岐成立しているので、予測はヒ
ットとなる。前記動作をループによってN回行うことに
よって分岐予測RAMの分岐状態の全ての組合せをテス
トする事が可能となる。従来の非ループ型試験命令で
は、前記分岐命令Aにたいし一回しか命令実行しないこ
とから、前記分岐予測機構による分岐予測は一回しか行
われないので分岐予測状態の組合せを全てテストするこ
とができない。
FIG. 5 shows a branch prediction mechanism based on a double loop test instruction group generated from the test instruction detailed information table (403) shown in FIG. When testing the branch prediction mechanism, the same instruction sequence is duplicated in a double loop.
It is possible to efficiently test the branch state transition of the branch prediction by executing it twice. Test instruction detailed information table (5
01) double loop test instruction group (502)
Are a 重 double loop head instruction which is a branch destination of a 重 double loop, a branch instruction in a loop branching to an instruction sequence in the loop, a ル ー プ double loop exit comparison instruction for forming a loop,
Consists of general instructions. When the double loop test instruction group (502) is tested, the branch state transition of the branch instruction A (503) indicating whether the branch instruction A in the loop is taken or not taken in the loop instruction sequence, and the branch instruction A indicates the state transition and the branch prediction of the branch prediction RAM of the branch prediction processing mechanism by A.
This is an AM state transition (504). The operation of the branch prediction mechanism will be described from the branch state transition (503) of the branch instruction A when the condition of the branch instruction A is satisfied or the condition is not satisfied. When the first execution of the branch instruction A is performed, the branch prediction mechanism determines that the branch is not taken from the value of the branch prediction RAM “00” and tries to execute the instruction ahead of the condition where the condition of the branch instruction A is not taken. In fact, since the branch instruction A is taken, the branch prediction by the branch prediction mechanism becomes a mistake, and the branch instruction A
Then, the instruction at the condition where the condition is not satisfied is canceled, the instruction at the condition where the condition of the branch instruction A is satisfied is executed, and "01" is written to the branch prediction RAM. Next, at the time of execution of the second branch instruction A, the condition is satisfied at the time of the first execution, so the branch prediction mechanism determines that the branch is taken, and executes the instruction ahead of the place where the condition of the branch instruction A is satisfied. However, since the branch instruction A is actually taken, the prediction is a hit. By performing the above operation N times in a loop, it is possible to test all combinations of the branch states of the branch prediction RAM. In the conventional non-loop test instruction, since the instruction is executed only once for the branch instruction A, the branch prediction by the branch prediction mechanism is performed only once. Can not.

【0012】図6は、図3の試験命令群の生成(30
2)の処理を示すフローチャートである。前記分岐予測
機構試験の基盤となるループ型(601)、ループ内で
の命令群で使用される試験空間(602)を選択し、ル
ープを引き起こす分岐系命令及び、同一ループ内で分岐
する分岐系命令の分岐系試験詳細情報テーブルを作成
(603)する。選択された命令が一般命令(605)
のときは、命令種別、機能等を決定し一般試験情報テー
ブルを作成(606)、前記情報テーブルから命令の機
能を満たすレジスタ、初期値を決定し命令を生成(60
7)する。試験命令タイプが分岐系命令(605)のと
きは、既に作成した分岐系試験命令情報詳細テーブル
(603)から、逐次に生成された試験命令に対し、ル
ープを引き起こす分岐系命令なら分岐先のアドレス及び
試験命令情報テーブル番号を算出し、分岐系命令がルー
プ内への分岐命令のときは、この分岐命令のアドレスか
ら前記ループ命令のアドレスとを比較し、同一試験空間
内であれば現在のアドレスが待避される分岐命令を、異
なるページであるアドレス空間であれば同一ページであ
るアドレス空間へ分岐される分岐命令を生成し(61
0)、上記分岐系命令を正常にループまたは分岐成立/
不成立するために分岐の比較対象となるレジスタを設定
する命令及び、比較命令を生成し(611)、上記処理
をくりかえす(609)。
FIG. 6 shows the generation (30) of the test instruction group shown in FIG.
It is a flowchart which shows the process of 2). A loop type (601) serving as a basis of the branch prediction mechanism test, a test space (602) used for an instruction group in the loop, a branch type instruction causing a loop, and a branch type branching in the same loop An instruction branch test detailed information table is created (603). The selected instruction is a general instruction (605)
In the case of (1), an instruction type, a function, and the like are determined, a general test information table is created (606), and a register satisfying the instruction function and an initial value are determined from the information table to generate an instruction (60).
7) Yes. If the test instruction type is a branch instruction (605), the branch destination address is used for a branch instruction that causes a loop for the test instruction that is sequentially generated from the already created branch test instruction information detailed table (603). And a test instruction information table number. If the branch instruction is a branch instruction into a loop, the address of the branch instruction is compared with the address of the loop instruction. Is generated, a branch instruction that branches to an address space that is the same page if the address space is a different page is generated (61).
0), the branch instruction is normally looped or a branch is taken /
An instruction for setting a register to be compared with the branch to be not taken and a comparison instruction are generated (611), and the above processing is repeated (609).

【0013】図7は、分岐系試験命令詳細情報テーブル
を生成するフロチャートである。選択された分岐系命令
が、ループを生成するための分岐命令のとき(701)
は、分岐予測機構により分岐予測RAM内の分岐予測状
態が十分に遷移するようループ重複数、カウンターを決
定し(702)、ループ内での命令群によりループの不
成立を防ぐために、ループを制御するレジスタを決定し
(703)、分岐予測RAM内のエントリが、全て作動
するよう分岐命令自身のアドレス及び、分岐先アドレス
を決定する(704)。
FIG. 7 is a flowchart for generating a branch system test instruction detailed information table. When the selected branch-related instruction is a branch instruction for generating a loop (701)
Determines the number of loops and the counter so that the branch prediction state in the branch prediction RAM makes a sufficient transition by the branch prediction mechanism (702), and controls the loop in order to prevent the loop from being broken by a group of instructions in the loop. The register is determined (703), and the address of the branch instruction itself and the branch destination address are determined so that all the entries in the branch prediction RAM operate (704).

【0014】[0014]

【発明の効果】本発明により、高性能なパイプライン処
理方式で分岐予測機構を採用している被試験対象に対
し、従来よりも分岐予測機構論理により高い負荷を与え
ることが可能となり、多階層の分岐予測論理を有する処
理装置に対する検証効率を向上を図ることができる。
According to the present invention, it is possible to apply a higher load to the device under test employing the branch prediction mechanism in a high-performance pipeline processing method than in the past, by using the branch prediction mechanism logic. The verification efficiency of the processing device having the branch prediction logic can be improved.

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

【図1】分岐予測機構の構成と動作例である。FIG. 1 is a configuration and operation example of a branch prediction mechanism.

【図2】本発明の一実施例の試験方法によりデータ処理
装置の試験を実施する試験システムの構成を示すブロッ
ク図である。
FIG. 2 is a block diagram showing a configuration of a test system for performing a test of a data processing device by a test method according to an embodiment of the present invention.

【図3】図2の試験システム全体の処理を示すフローチ
ャートである。
FIG. 3 is a flowchart showing processing of the entire test system of FIG. 2;

【図4】本試験システムが使用するデータテーブルフォ
ーマット例である。
FIG. 4 is an example of a data table format used by the test system.

【図5】図4のテーブルから生成される分岐ループ命令
試験と分岐予測動作例である。
FIG. 5 is an example of a branch loop instruction test and a branch prediction operation generated from the table of FIG. 4;

【図6】図2の試験命令生成部の内部処理を示すブロッ
ク図である。
FIG. 6 is a block diagram illustrating internal processing of a test instruction generation unit in FIG. 2;

【図7】図2の分岐系試験命令生成を示すフローチャー
トである。
FIG. 7 is a flowchart showing generation of a branch-system test instruction in FIG. 2;

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

201 乱数値生成部 202 分岐予測機構用命令群生成部 203 一般試験命令群生成部 204 分岐系試験命令生成部 205 試験命令設定部 206 シミュレーション処理部 207 試験命令実行部 208 エラーメッセージ出力部 209 試験命令群詳細情報テーブル 210 実行初期値 211 エラーメッセージ 212 分岐機構用試験命令群 213 期待値 214 実行結果値 Reference Signs List 201 random number generation unit 202 branch prediction mechanism instruction group generation unit 203 general test instruction group generation unit 204 branch system test instruction generation unit 205 test instruction setting unit 206 simulation processing unit 207 test instruction execution unit 208 error message output unit 209 test instruction Group detailed information table 210 Initial execution value 211 Error message 212 Test instruction group for branching mechanism 213 Expected value 214 Execution result value

───────────────────────────────────────────────────── フロントページの続き (72)発明者 児玉 豊 神奈川県秦野市堀山下1番地 株式会社日 立インフォメーションテクノロジー内 (72)発明者 城田 丈治 神奈川県海老名市下今泉810番地 株式会 社日立製作所オフィスシステム事業部内 ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Yutaka Kodama 1st Horiyamashita, Hadano-shi, Kanagawa Prefecture Inside Hitachi Information Technology Co., Ltd. System Division

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】乱数データを入力として試験命令群を生成
する処理と、前記試験命令群の実行結果の期待値をシミ
ュレーションより作成する処理と、前記試験命令群を被
試験データ処理装置に実行させる処理と、前記シミュレ
ーションにより作成した実行結果の期待値と前記データ
処理装置における実行結果の値とを比較する処理と、比
較により不一致が生じた場合に、不一致となった命令を
摘出してエラーメッセージを出力する処理からなるデー
タ処理装置のテスト方法において、前記試験命令群生成
処理としてループ構造の試験命令群生成処理を有し、同
一分岐命令を複数回実行させることにより、パイプライ
ン処理方式における分岐予測機構論理の試験することを
特徴とするデータ処理装置のテスト方法。
1. A process for generating a test instruction group by using random number data as input, a process for generating an expected value of an execution result of the test instruction group by simulation, and causing the data processing device under test to execute the test instruction group. Processing, comparing the expected value of the execution result created by the simulation with the value of the execution result in the data processing device, and extracting a mismatched instruction when the comparison results in a mismatch, and an error message A test method for generating a test instruction group having a loop-structured test instruction group generation process as the test instruction group generation process, wherein the same branch instruction is executed a plurality of times to thereby execute branching in the pipeline processing method. A method for testing a data processing device, comprising testing a prediction mechanism logic.
JP10030842A 1998-02-13 1998-02-13 Testing method for data processor Pending JPH11232131A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10030842A JPH11232131A (en) 1998-02-13 1998-02-13 Testing method for data processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10030842A JPH11232131A (en) 1998-02-13 1998-02-13 Testing method for data processor

Publications (1)

Publication Number Publication Date
JPH11232131A true JPH11232131A (en) 1999-08-27

Family

ID=12314961

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10030842A Pending JPH11232131A (en) 1998-02-13 1998-02-13 Testing method for data processor

Country Status (1)

Country Link
JP (1) JPH11232131A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7398515B2 (en) 2003-07-16 2008-07-08 International Business Machines Corporation Buckets of commands in a multiprocessor-based verification environment
JP2008225978A (en) * 2007-03-14 2008-09-25 Fujitsu Ltd Device, method and program for testing branch prediction circuit of information processor
JP2015122056A (en) * 2013-11-22 2015-07-02 株式会社半導体エネルギー研究所 Semiconductor device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7398515B2 (en) 2003-07-16 2008-07-08 International Business Machines Corporation Buckets of commands in a multiprocessor-based verification environment
US8196111B2 (en) 2003-07-16 2012-06-05 International Business Machines Corporation Buckets of commands in a multiprocessor-based verification environment
JP2008225978A (en) * 2007-03-14 2008-09-25 Fujitsu Ltd Device, method and program for testing branch prediction circuit of information processor
JP2015122056A (en) * 2013-11-22 2015-07-02 株式会社半導体エネルギー研究所 Semiconductor device

Similar Documents

Publication Publication Date Title
US6732297B2 (en) Pipeline testing method, pipeline testing system, pipeline test instruction generation method and storage method
EP0730223B1 (en) Pipeline data processing apparatus for executing a plurality of data processes having a data-dependent relationship
JP4848424B2 (en) Circuit design verification using checkpointing
O'Brien et al. DLS: A scheduling algorithm for high-level synthesis in VHDL
JPH11232131A (en) Testing method for data processor
US6813702B1 (en) Methods and apparatus for generating effective test code for out of order super scalar microprocessors
US11204738B1 (en) Apparatus and method for performing bit permutation operations
US7089174B2 (en) Modelling device behaviour using a first model, a second model and stored valid behaviour
WO2018228528A1 (en) Batch circuit simulation method and system
US7562320B2 (en) Asic based conveyor belt style programmable cross-point switch hardware accelerated simulation engine
CN114116009B (en) Register renaming method and system for processor
JP3955843B2 (en) Microprocessor parallel simulation system
JP2004062522A (en) Circuit verification device, circuit verification program and circuit verification method
JPH08166892A (en) Method for testing data processor
JPH0269825A (en) Pipe line control system
JP2771373B2 (en) Instruction prefetch device
JPH0233175B2 (en)
JPH0350295B2 (en)
JPS60144830A (en) Information processor
JP2002062340A (en) Semiconductor testing apparatus
JP5288124B2 (en) Logic simulation system, logic simulation method, and logic simulation program
JPH07306813A (en) Test device for input/output device
Hayrapetyan et al. Alternative Combination of Processes.
JPS60128529A (en) Merge processing device
JPH04248675A (en) Lsi design supporting device