[go: up one dir, main page]

JP2002149440A - Method for verifying logic circuit and device for the same - Google Patents

Method for verifying logic circuit and device for the same

Info

Publication number
JP2002149440A
JP2002149440A JP2000340942A JP2000340942A JP2002149440A JP 2002149440 A JP2002149440 A JP 2002149440A JP 2000340942 A JP2000340942 A JP 2000340942A JP 2000340942 A JP2000340942 A JP 2000340942A JP 2002149440 A JP2002149440 A JP 2002149440A
Authority
JP
Japan
Prior art keywords
verification
test program
logic circuit
simulation
pattern
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
JP2000340942A
Other languages
Japanese (ja)
Inventor
Takahiro Kondo
孝宏 近藤
Tomonori Yonezawa
友紀 米澤
Yasuo Takahashi
靖雄 孝橋
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.)
Panasonic Holdings Corp
Original Assignee
Matsushita Electric Industrial 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 Matsushita Electric Industrial Co Ltd filed Critical Matsushita Electric Industrial Co Ltd
Priority to JP2000340942A priority Critical patent/JP2002149440A/en
Publication of JP2002149440A publication Critical patent/JP2002149440A/en
Pending legal-status Critical Current

Links

Landscapes

  • Tests Of Electronic Circuits (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a method and device for verifying a logic circuit capable of suppressing the deterioration of verifying efficiency due to logical simulation using overlapped verification patterns. SOLUTION: This method is provided with a test program generation step for generating a test program by using random numbers, a software simulation execution step for performing software simulation using the test program, a verification execution judgment step for judging whether or not verification using the test program should be executed based on the software simulation executed result and already verified pattern history information, a logical simulation execution step for executing the test program on a logic circuit to be tested by the logical simulation when it is judged that the verification should be executed, an expected value comparison step for comparing the logical simulation executed result with an expected value, and an already verified pattern history information update step for updating the already verified pattern history information by information related with the verification pattern included in the test program when the expected value compared results are mutually coincident.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、論理回路の検証方
法及びその装置に関し、特に乱数データを用いた検証を
行うものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and an apparatus for verifying a logic circuit, and more particularly to performing verification using random number data.

【0002】[0002]

【従来の技術】近年、LSIの高機能化・高集積化に伴
い、機能検証及び論理検証には膨大な検証パターン及び
それを含むテストプログラムが必要となり、検証時間も
長期化している。こうした問題を解決するために、テス
トプログラムの自動生成、特に多種多様な検証パターン
を生成可能な乱数を用いたテストプログラム自動生成及
び検証フローの自動化が考えられてきている。その一つ
として、例えば特開平6−231000号公報に開示さ
れている「データ処理装置の試験方法」がある。ここ
で、従来例として、図32を用いて、特開平6−231
000号に開示されているデータ処理装置の試験方法に
ついて説明する。
2. Description of the Related Art In recent years, as LSIs become more sophisticated and highly integrated, an enormous amount of verification patterns and test programs including them are required for function verification and logic verification, and the verification time is also prolonged. In order to solve such a problem, automatic generation of a test program, in particular, automatic generation of a test program and automation of a verification flow using random numbers capable of generating various verification patterns have been considered. As one of them, for example, there is a "test method of a data processing device" disclosed in Japanese Patent Laid-Open No. 6-231000. Here, as a conventional example, FIG.
No. 000 will be described.

【0003】図32は、従来例である、データ処理装置
の試験方法の一連の処理を示すフローチャートである。
図32では、まずステップS3200においてあらかじ
め定めた任意の試験回数(例えば1回、2回等)が実行
されたか判定する。任意の試験回数に達していない場
合、ステップS3202に進み、乱数データを用いてデ
−タ処理装置の試験を実行するための試験命令群を生成
する。また、任意の試験回数に達している場合はステッ
プS3201において、後述するステップS3205で
採取したプロセッサ情報を解読し、データ変換をしてフ
ィードバックする情報を作成し、ステップS3202に
おいて、ステップS3201で作成した前記フィードバ
ック情報を参照し、軌道修正しながら試験命令群を生成
する。次にステップS3203において、ステップS3
202で生成した試験命令群をシミュレーションするこ
とにより、前記試験命令群の期待値を求める。次に、ス
テップS3204において、ステップS3202で生成
した試験命令群を被試験データ処理装置で実行し、ステ
ップS3205において、そのときの被試験データ処理
装置の論理動作及びマイクロプログラム動作に関するプ
ロセッサ情報を採取する。そしてステップS3206に
おいて、ステップS3202で生成された期待値とステ
ップS3204での実行結果値とが一致したかどうかを
チェックし、もし不一致であればステップS3207に
おいてエラーメッセージを出力し、一致した場合には、
一連の処理動作を終了する。
FIG. 32 is a flowchart showing a series of processes of a test method for a data processing device, which is a conventional example.
In FIG. 32, first, it is determined whether or not an arbitrary number of tests (for example, once, twice, or the like) predetermined in step S3200 has been performed. If the number of tests has not reached the desired number, the flow advances to step S3202 to generate a test instruction group for executing a test of the data processing device using the random number data. If the number of tests has reached an arbitrary number, in step S3201, the processor information obtained in step S3205 to be described later is decoded, data is converted, and information to be fed back is created. In step S3202, the information created in step S3201 is created. With reference to the feedback information, a test command group is generated while correcting the trajectory. Next, in step S3203, step S3
The expected value of the test instruction group is obtained by simulating the test instruction group generated in 202. Next, in step S3204, the test command group generated in step S3202 is executed by the data processing device under test, and in step S3205, processor information relating to the logical operation and microprogram operation of the data processing device under test at that time is collected. . Then, in step S3206, it is checked whether the expected value generated in step S3202 and the execution result value in step S3204 match, and if they do not match, an error message is output in step S3207. ,
A series of processing operations ends.

【0004】このように、乱数データ入力により生成す
る次の試験命令群に、その前に生成した試験命令群の実
行結果(装置の論理動作やマイクロプログラム動作など
に関する情報)をフィードバックさせ、まだ検証されて
いない部位、つまり、論理回路やマイクロプログラムな
どが動作していない部位の検証を実施する試験命令群の
生成が可能となる。この結果、試験に偏りが生ずること
や試験洩れの発生を自動修正することが可能となり、無
意味な試験や重複した試験の実行を回避できる。また、
以上のようにして有効な試験命令を効率良く実行させる
ことにより、検証期間の短縮を図ることができる。
As described above, the result of execution of the previously generated test instruction group (information on the logical operation and microprogram operation of the apparatus) is fed back to the next test instruction group generated by random number data input, and verification is still performed. It is possible to generate a test instruction group for verifying a part that is not performed, that is, a part where a logic circuit, a microprogram, or the like is not operating. As a result, it is possible to automatically correct the occurrence of bias in the test and the occurrence of test omission, thereby avoiding the execution of meaningless tests and duplicate tests. Also,
As described above, by effectively executing a valid test instruction, the verification period can be shortened.

【0005】[0005]

【発明が解決しようとする課題】しかし、上記従来例の
ような乱数データを用いた試験方法では、試験命令群の
生成に使用するフィードバック情報に、被試験データ処
理装置上での実行結果を使用しているため、前記フィー
ドバック情報を得るのに必ず被試験データ処理装置で一
度実行する必要がある。そして、この前記被試験データ
処理装置の動作を論理シミュレータ等でシミュレートし
て検証を行う場合、シミュレーション速度が遅く、実行
時間が長い。そのため、すでに検証済みの重複したパタ
ーンが上記被試験データ処理装置に入力された場合、検
証時間のロスが非常に大きくなるという問題を有してい
た。ただし、前記フィードバック情報を基に生成される
試験命令群が、常にその時点での検証済みパターンと重
複していなければ、前述のような問題は起こらない。し
かし、乱数を用いたテストプログラム生成においては、
検証当初は重複したパターンが生成される確率は比較的
少ないが、検証を重ねていく(生成するテストプログラ
ム数が増加する)毎に、生成されるテストプログラムに
既に検証済みのパターンが含まれる確率が増加するもの
であるし、また、例えば被試験データ処理装置の内部状
態(あるレジスタのデータ遷移等)を検証項目として設
定している場合、試験命令実行時のそれらの内部状態を
全て制御しながら、検証済みパターンと重複しないよう
に試験命令群を生成するのは極めて困難であり、従来技
術のようなフィードバック情報を用いた試験命令群の生
成を行ったとしても、重複したパターンが含まれて前述
のような問題が生じる。
However, in the test method using random number data as in the above conventional example, the execution result on the data processing device under test is used as feedback information used for generating a test instruction group. Therefore, the data must be executed once by the data processor under test to obtain the feedback information. When the operation of the data processing device under test is simulated by a logic simulator or the like for verification, the simulation speed is slow and the execution time is long. For this reason, there has been a problem that when a duplicate pattern that has already been verified is input to the data processing apparatus under test, the loss of the verification time becomes very large. However, if the test instruction group generated based on the feedback information does not always overlap the verified pattern at that time, the above-described problem does not occur. However, in test program generation using random numbers,
The probability that duplicate patterns are generated at the beginning of verification is relatively low, but the probability that each time verification is performed (the number of test programs to be generated increases), the generated test programs include already verified patterns. If, for example, the internal state of the data processing device under test (data transition of a certain register, etc.) is set as a verification item, all the internal states at the time of executing the test instruction are controlled. However, it is extremely difficult to generate a test instruction group so that it does not overlap with the verified pattern, and even if the test instruction group is generated using feedback information as in the related art, the duplicate pattern is included. Thus, the above-described problem occurs.

【0006】本発明は、上記課題を鑑みてなされたもの
であり、重複したパターンを多く含むテストプログラム
を用いた検証による検証時間の長期化を回避できる論理
回路検証方法、及びその装置を提供することを目的とす
る。
SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and provides a logic circuit verification method and a logic circuit verification method capable of avoiding a prolonged verification time due to verification using a test program including many overlapping patterns. The purpose is to:

【0007】[0007]

【課題を解決するための手段】このような課題を解決す
るために、本発明の請求項1記載にかかる論理回路検証
方法は、論理シミュレーションにより被試験論理回路の
検証を行う検証方法において、乱数を用いてテストプロ
グラムを生成するテストプログラム生成ステップと、前
記テストプログラムをソフトウエアシミュレータ上で実
行しソフトウエアシミュレーション実行結果を出力する
ソフトウエアシミュレーション実行ステップと、前記ソ
フトウエアシミュレーション実行結果、及び検証済みパ
ターンに関する情報である検証済みパターン履歴情報を
基に、前記テストプログラムを用いた被試験論理回路の
検証を実行するかどうかの判定を行う検証実行判定ステ
ップと、前記検証実行判定ステップにおいて検証実行と
判定された場合に前記テストプログラムを論理シミュレ
ーションにより被試験論理回路上で実行し論理シミュレ
ーション実行結果を出力する論理シミュレーション実行
ステップと、前記論理シミュレーション実行結果と期待
値とを比較する期待値比較ステップと、前記期待値比較
ステップにおいて前記期待値と前記論理シミュレーショ
ン実行結果が一致した場合に、前記検証済みパターン履
歴情報を、前記論理シミュレーション実行ステップで検
証したテストプログラムに含まれる検証済みパターンに
関する情報により更新する検証済みパターン履歴情報更
新ステップとを備える、ようにしたものである。
According to a first aspect of the present invention, there is provided a logic circuit verification method for verifying a logic circuit under test by logic simulation. A test program generating step of generating a test program by using the software simulation execution step of executing the test program on a software simulator and outputting a software simulation execution result; and A verification execution determining step of determining whether to execute verification of the logic circuit under test using the test program, based on verified pattern history information that is information on the pattern; and performing verification in the verification execution determining step. If judged A logic simulation execution step of executing the test program on the logic circuit under test by logic simulation and outputting a logic simulation execution result; an expectation value comparison step of comparing the logic simulation execution result with an expected value; A verified pattern history for updating the verified pattern history information with information on a verified pattern included in the test program verified in the logic simulation execution step, when the expected value and the logic simulation execution result match in the step; And an information updating step.

【0008】また、本発明の請求項2にかかる論理回路
検証方法は、請求項1記載の論理回路検証方法におい
て、前記検証実行判定ステップは、前記ソフトウエアシ
ミュレーション実行結果より前記テストプログラムに含
まれる新規パターン数を検出し、前記新規パターン数が
ある閾値以上の場合に検証実行と判定する、ようにした
ものである。
According to a second aspect of the present invention, there is provided the logic circuit verification method according to the first aspect, wherein the verification execution determination step is included in the test program based on the software simulation execution result. The number of new patterns is detected, and when the number of new patterns is equal to or larger than a certain threshold, it is determined that verification is to be performed.

【0009】また、本発明の請求項3にかかる論理回路
検証方法は、請求項2記載の論理回路検証方法におい
て、前記検証実行判定ステップで検証実行しないと判定
された前記テストプログラム、及び前記ソフトウエアシ
ミュレーション実行結果を、少なくとも1つ以上保存す
るテストプログラム保存ステップをさらに備え、前記検
証実行判定ステップにて、ある任意の回数連続して検証
実行しないと判定された場合に、前記テストプログラム
保存ステップで保存した前記テストプログラムの中で、
前記新規パターン数を最も多く含むテストプログラムを
選択し、該選択したテストプログラムを用いて検証を実
行する、ようにしたものである。
According to a third aspect of the present invention, there is provided the logic circuit verification method according to the second aspect, wherein the test program determined not to execute the verification in the verification execution determination step and the software program. A test program storing step of storing at least one or more wear simulation execution results, wherein, when it is determined in the verification execution determining step that the verification is not to be performed continuously for a given number of times, the test program storing step is performed. In the test program saved in
A test program including the largest number of new patterns is selected, and verification is executed using the selected test program.

【0010】また、本発明の請求項4にかかる論理回路
検証方法は、請求項1記載の論理回路検証方法におい
て、前記検証実行判定ステップは、前記ソフトウエアシ
ミュレーション実行結果より前記テストプログラムの新
規リソース使用数を検出し、前記新規リソース使用数が
ある閾値以上の場合に検証実行と判定する、ようにした
ものである。
According to a fourth aspect of the present invention, there is provided the logic circuit verification method according to the first aspect, wherein the step of determining whether or not to execute the verification is performed based on the result of the software simulation. The number of used resources is detected, and when the number of used new resources is equal to or larger than a certain threshold, it is determined that verification is to be performed.

【0011】また、本発明の請求項5にかかる論理回路
検証方法は、請求項1記載の論理回路検証方法におい
て、前記検証実行判定ステップは、前記ソフトウエアシ
ミュレーション実行結果より前記テストプログラム中の
各命令の実行回数を検出し、前記テストプログラム中の
同一命令がある閾値以上繰り返し実行された場合に検証
実行しないと判定する、ようにしたものである。
According to a fifth aspect of the present invention, there is provided the logic circuit verification method according to the first aspect, wherein the step of determining whether to execute the verification includes the step of: The number of times of execution of an instruction is detected, and when the same instruction in the test program is repeatedly executed by a certain threshold or more, it is determined that verification is not executed.

【0012】また、本発明の請求項6にかかる論理回路
検証方法は、請求項1記載の論理回路検証方法におい
て、前記検証実行判定ステップは、前記ソフトウエアシ
ミュレーション実行結果より前記テストプログラムが、
前記被試験論理回路が検証実行しないパターンである検
証項目外パターンを含むかどうかを解析し、前記検証項
目外パターンを含む場合に検証実行しないと判定する、
ようにしたものである。
According to a sixth aspect of the present invention, there is provided the logic circuit verification method according to the first aspect, wherein the verification execution determining step includes the step of:
Analyzing whether the logic circuit under test includes a pattern outside a verification item that is a pattern not to be verified, and determining not to execute verification when including the pattern outside the verification item,
It is like that.

【0013】また、本発明の請求項7にかかる論理回路
検証方法は、請求項1記載の論理回路検証方法におい
て、前記ソフトウエアシミュレーション実行結果より、
前記シミュレーション終了状態を解析するシミュレーシ
ョン終了状態解析ステップをさらに備え、前記シミュレ
ーション終了状態が所望の終了状態でなかった場合、所
望の終了状態になるまで、異なる終了条件でソフトウエ
アシミュレーションの実行を繰り返す、ようにしたもの
である。
According to a seventh aspect of the present invention, there is provided a logic circuit verification method according to the first aspect, wherein the software simulation execution result is obtained based on the software simulation execution result.
The method further includes a simulation end state analysis step of analyzing the simulation end state, and when the simulation end state is not a desired end state, repeats execution of the software simulation under different end conditions until the simulation end state becomes a desired end state. It is like that.

【0014】また、本発明の請求項8にかかる論理回路
検証方法は、請求項7記載の論理回路検証方法におい
て、前記シミュレーション終了状態が所望の終了状態と
なる終了条件を、前記論理シミュレーションステップに
おける論理シミュレーションの終了条件として設定する
論理シミュレーション終了条件設定ステップをさらに備
える、ようにしたものである。
According to an eighth aspect of the present invention, in the logic circuit verification method according to the seventh aspect, an end condition in which the simulation end state becomes a desired end state is set in the logic simulation step. The method further comprises a logic simulation end condition setting step of setting as a logic simulation end condition.

【0015】また、本発明の請求項9にかかる論理回路
検証方法は、請求項1記載の論理回路検証方法におい
て、設定された検証項目数がある閾値よりも大きいかど
うか判定し、該検証項目数が大きい場合に検証実行しな
いと判定する検証項目数判定ステップをさらに備える、
ようにしたものである。
According to a ninth aspect of the present invention, in the logic circuit verification method according to the first aspect, it is determined whether or not the set number of verification items is larger than a certain threshold value. The method further includes a verification item number determination step of determining not to perform verification when the number is large,
It is like that.

【0016】また、本発明の請求項10にかかる論理回
路検証方法は、請求項9記載の論理回路検証方法におい
て、前記閾値は、前記検証済みパターン履歴情報を保存
するデータ記憶部のサイズに関するものである、ように
したものである。
According to a tenth aspect of the present invention, in the logic circuit verifying method of the ninth aspect, the threshold value is related to a size of a data storage unit for storing the verified pattern history information. It is like that.

【0017】また、本発明の請求項11にかかる論理回
路検証方法は、請求項1記載の論理回路検証方法におい
て、前記期待値比較ステップにおいて、前記論理シミュ
レーション実行結果と前記期待値とが不一致の場合に、
前記テストプログラム中のどのパターンでエラーが発生
したのかを解析するエラー発生パターン解析ステップを
さらに備える、ようにしたものである。
Further, in the logic circuit verification method according to the present invention, in the logic circuit verification method according to the first aspect, in the expected value comparison step, the logic simulation execution result and the expected value may be different. In case,
An error occurrence pattern analysis step for analyzing which pattern in the test program caused the error is further provided.

【0018】また、本発明の請求項12にかかる論理回
路検証方法は、請求項11記載の論理回路検証方法にお
いて、それまでに発生したエラー発生パターンの情報で
あるエラー発生パターン履歴情報を基に、前記エラー発
生パターンが前記テストプログラムに含まれない場合に
検証を実行すると判定するエラー発生パターン判定ステ
ップと、前記エラー発生パターン解析ステップにおいて
解析されたエラー発生パターンに関する情報より、前記
エラー発生パターン履歴情報を更新するエラー発生パタ
ーン履歴情報更新ステップとをさらに備える、ようにし
たものである。
A logic circuit verification method according to a twelfth aspect of the present invention is the logic circuit verification method according to the eleventh aspect, wherein the logic circuit verification method is based on error occurrence pattern history information that is information on an error occurrence pattern that has occurred so far. An error occurrence pattern determination step of determining to execute verification when the error occurrence pattern is not included in the test program; and information on the error occurrence pattern analyzed in the error occurrence pattern analysis step. An error occurrence pattern history information updating step of updating information is further provided.

【0019】また、本発明の請求項13にかかる論理回
路検証方法は、請求項1記載の論理回路検証方法におい
て、前記期待値比較ステップにおいて前記論理シミュレ
ーション実行結果と前記期待値が不一致の場合に、前記
テストプログラム又は該テストプログラムを再生成可能
な情報であるエラー発生テストプログラム情報を記録す
るエラー発生テストプログラム記録ステップをさらに備
える、ようにしたものである。
According to a thirteenth aspect of the present invention, there is provided the logic circuit verification method according to the first aspect, wherein the logic simulation execution result and the expected value do not match in the expected value comparing step. And an error occurrence test program recording step of recording the test program or error occurrence test program information which is information capable of regenerating the test program.

【0020】また、本発明の請求項14にかかる論理回
路検証方法は、請求項1記載の論理回路検証方法におい
て、エラーが発生したテストプログラムを再生成可能な
情報であるエラー発生テストプログラム情報から、エラ
ー発生テストプログラムを生成するエラー発生テストプ
ログラム生成ステップをさらに備え、検証に使用するテ
ストプログラムを、前記テストプログラム生成ステップ
で生成するか、又は前記エラー発生テストプログラム生
成ステップで生成するかを最初に選択する、ようにした
ものである。
According to a fourteenth aspect of the present invention, there is provided a logic circuit verification method according to the first aspect, wherein the error occurrence test program information is information capable of regenerating a test program in which an error has occurred. Further comprising an error generation test program generation step of generating an error generation test program, wherein a test program used for verification is generated in the test program generation step or in the error generation test program generation step. To choose.

【0021】また、本発明の請求項15にかかる論理回
路検証装置は、論理シミュレーションにより被試験論理
回路の検証を行う検証装置において、前記被試験論理回
路の検証を行う検証手段を実現するプログラムを格納す
る検証手段記憶装置と、前記検証手段記憶装置に格納さ
れたプログラムを実行する実行装置と、前記実行装置で
前記検証手段記憶装置に格納されたプログラムを実行す
る際に出力又は参照されるデータを格納するデータ記憶
装置とを備え、前記検証手段記憶装置に格納されている
前記検証手段は、乱数を用いてテストプログラムを生成
し前記データ記憶装置に格納するテストプログラム生成
手段と、前記テストプログラムをソフトウエアシミュレ
ータ上で実行し、該ソフトウエアシミュレーション実行
結果を前記データ記憶装置に格納するソフトウエアシミ
ュレーション実行手段と、前記ソフトウエアシミュレー
ション実行結果、及び検証済みパターンに関する情報で
ある検証済みパターン履歴情報を基に、前記テストプロ
グラムを用いた被試験論理回路の検証を実行するかどう
かの判定を行う検証実行判定手段と、前記検証実行判定
手段において検証実行と判定された場合に、前記テスト
プログラムを論理シミュレーションにより被試験論理回
路上で実行し、該論理シミュレーション実行結果を前記
データ記憶装置に格納する論理シミュレーション実行手
段と、前記論理シミュレーション実行結果と期待値とを
比較する期待値比較手段と、前記期待値比較手段におい
て前記期待値と前記論理シミュレーション実行結果が一
致した場合に、前記検証済みパターン履歴情報を前記テ
ストプログラムに含まれる検証済みパターンに関する情
報により更新する検証済みパターン履歴情報更新手段と
を含む、ようにしたものである。
According to a fifteenth aspect of the present invention, there is provided a logic circuit verification apparatus for verifying a logic circuit under test by logic simulation, comprising: a program realizing verification means for verifying the logic circuit under test. Verification means storage device for storing, execution device for executing a program stored in the verification means storage device, and data output or referenced when the execution device executes the program stored in the verification means storage device A data storage device for storing the test program, wherein the verification device stored in the verification device storage device generates a test program using a random number and stores the test program in the data storage device; and the test program Is executed on a software simulator, and the software simulation execution result is stored in the data simulator. A software simulation execution unit to be stored in the storage device, and a verification of the logic circuit under test using the test program based on the software simulation execution result and verified pattern history information which is information on the verified pattern. Verification execution determining means for determining whether to perform the verification, and when the verification execution determining means determines that the verification is to be performed, the test program is executed on the logic circuit under test by logic simulation, and the logic simulation execution result is obtained. A logic simulation executing means stored in the data storage device, an expected value comparing means for comparing the logic simulation execution result with an expected value, and a case where the expected value and the logic simulation execution result match in the expected value comparing means In addition, the verified putter The history information includes the verified pattern history information updating means for updating the information on the verified pattern included in the test program is obtained by way.

【0022】また、本発明の請求項16にかかる論理回
路検証装置は、請求項15記載の論理回路検証装置にお
いて、前記検証実行判定手段は、前記ソフトウエアシミ
ュレーション実行結果より前記テストプログラムに含ま
れる新規パターン数を検出する新規パターン数カウント
手段と、前記新規パターン数カウント手段によって検出
された前記新規パターン数が、ある閾値以上かどうかを
判定する新規パターン数判定手段とを備え、前記新規パ
ターン数判定手段の判定結果により、前記テストプログ
ラムを用いた前記被試験論理回路の検証を実行するかど
うか判定する、ようにしたものである。
The logic circuit verification device according to claim 16 of the present invention is the logic circuit verification device according to claim 15, wherein the verification execution determination means is included in the test program based on the software simulation execution result. New pattern number counting means for detecting the number of new patterns, and new pattern number determining means for determining whether the number of new patterns detected by the new pattern number counting means is greater than or equal to a threshold value, According to a result of the judgment by the judging means, it is judged whether or not the verification of the logic circuit under test using the test program is executed.

【0023】また、本発明の請求項17にかかる論理回
路検証装置は、請求項16記載の論理回路検証装置にお
いて、前記検証実行判定手段において検証実行しないと
判定された前記テストプログラム、及び前記ソフトウエ
アシミュレーション実行結果を少なくとも1つ以上前記
データ記憶装置に保存するテストプログラム保存手段を
さらに備え、前記検証実行判定手段においてある任意の
回数連続して検証実行しないと判定された場合に、前記
テストプログラム保存手段で保存した前記テストプログ
ラムの中で前記新規パターン数を最も多く含むテストプ
ログラムを選択し、該選択されたテストプログラムを用
いて検証を実行する、ようにしたものである。
According to a seventeenth aspect of the present invention, there is provided the logic circuit verification device according to the sixteenth aspect, wherein the test program determined not to execute the verification by the verification execution determination means and the software Test program storage means for storing at least one or more wear simulation execution results in the data storage device, wherein the test execution determination means determines that the test program A test program including the largest number of the new patterns among the test programs stored by the storage unit is selected, and the verification is executed using the selected test program.

【0024】また、本発明の請求項18にかかる論理回
路検証装置は、請求項15記載の論理回路検証装置にお
いて、前記検証実行判定手段は、前記ソフトウエアシミ
ュレーション実行結果より前記テストプログラムの新規
リソース使用数を検出する新規リソース数カウント手段
と、前記新規リソース数カウント手段によって検出され
た前記新規リソース使用数がある閾値以上かどうか判定
を行う新規リソース数判定手段とを備え、前記新規リソ
ース数判定手段の判定結果により、前記テストプログラ
ムを用いた前記被試験論理回路の検証を実行するかどう
か判定する、ようにしたものである。
The logic circuit verification device according to claim 18 of the present invention is the logic circuit verification device according to claim 15, wherein the verification execution determining means determines a new resource of the test program based on the software simulation execution result. New resource number counting means for detecting the number of used resources, and new resource number determining means for determining whether the new resource usage number detected by the new resource number counting means is greater than or equal to a certain threshold, According to the determination result of the means, it is determined whether to execute the verification of the logic circuit under test using the test program.

【0025】また、本発明の請求項19にかかる論理回
路検証装置は、請求項15記載の論理回路検証装置にお
いて、前記検証実行判定手段は、前記ソフトウエアシミ
ュレーション実行結果より前記テストプログラム中の各
命令の実行回数を検出する命令実行回数カウント手段
と、前記命令実行回数カウント手段により検出された前
記実行回数がある閾値より小さいかどうか判定する命令
実行回数判定手段とを備え、前記命令実行回数判定手段
の判定結果により、前記テストプログラムを用いた前記
被試験論理回路の検証を実行するかどうか判定する、よ
うにしたものである。
According to a nineteenth aspect of the present invention, in the logic circuit verification device according to the fifteenth aspect, the verification execution determining means determines each of the test programs in the test program based on the software simulation execution result. An instruction execution number counting means for detecting an instruction execution number; and an instruction execution number determination means for determining whether the execution number detected by the instruction execution number counting means is smaller than a certain threshold value. According to the determination result of the means, it is determined whether to execute the verification of the logic circuit under test using the test program.

【0026】また、本発明の請求項20にかかる論理回
路検証装置は、請求項15記載の論理回路検証装置にお
いて、前記検証実行判定手段は、前記ソフトウエアシミ
ュレーション実行結果より前記テストプログラムが、前
記被試験論理回路が検証実行しないパターンである検証
項目外パターンを含むかどうかを解析し、前記検証項目
外パターンを含む場合に検証実行しないと判定する、よ
うにしたものである。
According to a twentieth aspect of the present invention, in the logic circuit verification device according to the fifteenth aspect, the verification execution determining means determines that the test program is based on the software simulation execution result. An analysis is performed to determine whether the logic circuit under test includes a pattern outside a verification item that is a pattern not to be verified, and it is determined that verification is not performed when the pattern includes the pattern outside the verification item.

【0027】また、本発明の請求項21にかかる論理回
路検証装置は、請求項15記載の論理回路検証装置にお
いて、前記ソフトウエアシミュレーション実行結果より
シミュレーション終了状態を解析するシミュレーション
終了状態解析手段をさらに備え、前記シミュレーション
終了状態解析手段で前記シミュレーション終了状態が所
望の終了状態でなかった場合、所望の終了状態になるま
で、異なる終了条件でソフトウエアシミュレーションの
実行を繰り返す、ようにしたものである。
According to a twenty-first aspect of the present invention, in the logic circuit verification device according to the fifteenth aspect, a simulation end state analyzing means for analyzing a simulation end state from the software simulation execution result is further provided. When the simulation end state analysis means does not determine that the simulation end state is a desired end state, the software simulation is repeatedly executed under different end conditions until the simulation end state reaches a desired end state.

【0028】また、本発明の請求項22にかかる論理回
路検証装置は、請求項21記載の論理回路検証装置にお
いて、前記シミュレーション終了状態が所望の終了状態
となる終了条件を、前記論理シミュレーション実行手段
における論理シミュレーションの終了条件として設定す
る論理シミュレーション終了条件設定手段をさらに備え
る、ようにしたものである。
The logic circuit verification device according to claim 22 of the present invention is the logic circuit verification device according to claim 21, wherein the termination condition that the simulation termination state becomes a desired termination state is determined by the logic simulation execution means. And a logic simulation end condition setting means for setting as the end condition of the logic simulation in the above.

【0029】また、本発明の請求項23にかかる論理回
路検証装置は、請求項15記載の論理回路検証装置にお
いて、設定された検証項目数がある閾値よりも大きいか
どうか判定し、該検証項目数が大きい場合に検証実行し
ないと判定する検証項目数判定手段をさらに備える、よ
うにしたものである。
A logic circuit verification device according to a twenty-third aspect of the present invention is the logic circuit verification device according to the fifteenth aspect, wherein it is determined whether or not the set number of verification items is larger than a certain threshold value. The apparatus further includes a verification item number determination unit that determines not to execute the verification when the number is large.

【0030】また、本発明の請求項24にかかる論理回
路検証装置は、請求項23記載の論理回路検証装置にお
いて、前記閾値は、前記検証済みパターン履歴情報を保
存するデータ記憶部のサイズに関する、ようにしたもの
である。
The logic circuit verification device according to claim 24 of the present invention is the logic circuit verification device according to claim 23, wherein the threshold value relates to a size of a data storage unit for storing the verified pattern history information. It is like that.

【0031】また、本発明の請求項25にかかる論理回
路検証装置は、請求項15記載の論理回路検証装置にお
いて、前記期待値比較手段において前記論理シミュレー
ション実行結果と前記期待値とが不一致の場合に、前記
テストプログラム中のどのパターンでエラーが発生した
のかを解析するエラー発生パターン解析手段をさらに備
える、ようにしたものである。
According to a twenty-fifth aspect of the present invention, in the logic circuit verification apparatus according to the fifteenth aspect, when the expected value comparison means does not match the logic simulation execution result with the expected value. And an error occurrence pattern analysis means for analyzing which pattern in the test program caused the error.

【0032】また、本発明の請求項26にかかる論理論
理検証装置は、請求項25記載の論理回路検証装置にお
いて、前記エラー発生パターン解析手段は、エラーが発
生したパターンを特定するエラー解析用シミュレーショ
ンのシミュレーション終了条件を決定するエラー解析用
シミュレーション終了条件決定手段と、前記エラー解析
用シミュレーション終了条件決定手段により決定された
終了条件で、前記テストプログラムをソフトウエアシミ
ュレータ上で実行し、エラー解析用期待値を前記データ
記憶部に格納するエラー解析用ソフトウエアシミュレー
ション実行手段と、前記エラー解析用シミュレーション
終了条件決定手段により決定された終了条件で、前記テ
ストプログラムを論理シミュレーションにより被試験論
理回路上で実行し、該エラー解析用論理シミュレーショ
ン実行結果を前記データ記憶部に格納するエラー解析用
論理シミュレーション実行手段と、前記エラー解析用ソ
フトウエアシミュレーション実行手段により出力された
前記エラー解析用期待値と、前記エラー解析用論理シミ
ュレーション実行手段により出力された前記エラー解析
用論理シミュレーション実行結果とを比較するエラー解
析用期待値比較手段と、エラー解析処理を終了するかど
うかを判定するエラー解析終了判定手段と、解析したエ
ラー発生パターンを表示するエラー解析パターン表示手
段とを備える、ようにしたものである。
According to a twenty-sixth aspect of the present invention, in the logic circuit verifying apparatus according to the twenty-fifth aspect, the error occurrence pattern analysis means includes an error analysis simulation for specifying a pattern in which an error has occurred. Executing the test program on a software simulator with the end condition determined by the error analysis simulation end condition determining means for determining the simulation end condition of the error analysis; The test program is executed on the logic circuit under test by a logic simulation under an ending condition determined by the error analysis software simulation executing means for storing a value in the data storage unit and the error analysis simulation ending condition determining means. I An error analysis logic simulation execution unit that stores the error analysis logic simulation execution result in the data storage unit; the error analysis expected value output by the error analysis software simulation execution unit; An error analysis expected value comparison unit that compares the error analysis logic simulation execution result output by the logic simulation execution unit; an error analysis end determination unit that determines whether to end the error analysis process; And an error analysis pattern display means for displaying an occurrence pattern.

【0033】また、本発明の請求項27にかかる論理回
路検証装置は、請求項25または請求項26記載の論理
回路検証装置において、それまでに発生したエラー発生
パターンに関する情報であるエラー発生パターン履歴情
報を基に、前記エラー発生パターンが前記テストプログ
ラムに含まれない場合に検証を実行すると判定するエラ
ー発生パターン判定手段と、前記エラー発生パターン解
析手段において解析されたエラー発生パターンに関する
情報により前記エラー発生パターン履歴情報を更新する
エラー発生パターン履歴情報更新手段とをさらに備え
る、ようにしたものである。
The logic circuit verification device according to claim 27 of the present invention is the logic circuit verification device according to claim 25 or 26, wherein the error occurrence pattern history is information on an error occurrence pattern that has occurred so far. Based on the information, an error occurrence pattern determination unit that determines to execute a verification when the error occurrence pattern is not included in the test program, and the error occurrence pattern analysis unit analyzes the error occurrence pattern based on information on the error occurrence pattern analyzed by the error occurrence pattern analysis unit. An error occurrence pattern history information updating means for updating occurrence pattern history information is further provided.

【0034】また、本発明の請求項28にかかる論理回
路検証装置は、請求項15記載の論理回路検証装置にお
いて、前記期待値比較手段において前記論理シミュレー
ション実行結果と前記期待値とが不一致の場合に、前記
テストプログラム又は該テストプログラムを再生成可能
な情報であるエラー発生テストプログラム情報を前記デ
ータ記録装置に記録するエラー発生テストプログラム記
録手段をさらに備える、ようにしたものである。
According to a twenty-eighth aspect of the present invention, in the logic circuit verification device according to the fifteenth aspect, when the expected value comparison means does not match the logic simulation execution result with the expected value. And an error occurrence test program recording means for recording the test program or error occurrence test program information, which is information capable of regenerating the test program, in the data recording device.

【0035】また、本発明の請求項29にかかる論理回
路検証装置は、請求項15記載の論理回路検証装置にお
いて、エラーが発生したテストプログラムを再生成可能
な情報であるエラー発生テストプログラム情報から、エ
ラー発生テストプログラムを生成するエラー発生テスト
プログラム生成手段と、検証に使用するテストプログラ
ムを、前記テストプログラム生成手段で生成するか、前
記エラー発生テストプログラム生成手段で生成するかを
選択するテストプログラム生成選択手段をさらに備え
る、ようにしたものである。
According to a twenty-ninth aspect of the present invention, there is provided the logic circuit verification device according to the fifteenth aspect, wherein the error generation test program information is information that can regenerate a test program in which an error has occurred. An error occurrence test program generating means for generating an error occurrence test program, and a test program for selecting whether the test program used for verification is generated by the test program generation means or the error generation test program generation means. The apparatus further includes a generation selection unit.

【0036】[0036]

【発明の実施の形態】まず、図1のフローチャートに従
って、本発明の論理回路検証方法の概要を説明する。図
1は、本発明の論理回路検証方法の概要を示すフローチ
ャートである。図1において、まず最初にステップS1
00において、乱数を用いてテストプログラムを生成
し、次にステップS101において、上記ステップS1
00で生成されたテストプログラムを、ソフトウエアシ
ミュレータ上で実行してソフトウエアシミュレーション
実行結果を出力する。ここで、ソフトウエアシミュレー
タとは、被試験データ処理装置の機能をC言語等のソフ
トウエアで実現するシミュレータを指す。次にステップ
S108において、前記ステップS101で出力された
ソフトウエアシミュレーション実行結果と、後述するス
テップS103でこれまでに検証したテストプログラム
の検証済みパターンに関する情報である検証済みパター
ン履歴情報とを比較し、前記ステップS100で生成さ
れたテストプログラムを用いた検証を実行するかどうか
判定する。ステップS108において検証実行と判定さ
れた場合には、ステップS103において前記テストプ
ログラムを論理シミュレータを用いた論理シミュレーシ
ョンにより被試験論理回路上で実行して論理シミュレー
ション実行結果を出力し、ステップS104に進む。ま
た、検証実行と判定されなかった場合には、ステップS
100に戻り、別のテストプログラムを生成する。次
に、ステップS104において、前記ステップS103
で出力された論理シミュレーション実行結果と期待値と
を比較する。そして、前記ステップS104にて前記期
待値と前記論理シミュレーション実行結果が一致した場
合、ステップS105において、検証済みパターン履歴
情報を、前記ステップS103で検証したテストプログ
ラムに含まれる検証済みパターンに関する情報により更
新する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS First, an outline of a logic circuit verification method of the present invention will be described with reference to the flowchart of FIG. FIG. 1 is a flowchart showing an outline of the logic circuit verification method of the present invention. In FIG. 1, first, in step S1
In step S00, a test program is generated using random numbers.
The test program generated in 00 is executed on a software simulator to output a software simulation execution result. Here, the software simulator refers to a simulator that realizes the function of the data processing device under test by software such as C language. Next, in step S108, the software simulation execution result output in step S101 is compared with verified pattern history information which is information on a verified pattern of a test program verified so far in step S103, which will be described later. It is determined whether to execute the verification using the test program generated in step S100. If it is determined in step S108 that the verification is to be executed, in step S103, the test program is executed on the logic circuit under test by a logic simulation using a logic simulator to output a logic simulation execution result, and the process proceeds to step S104. If it is not determined that the verification has been performed, the process proceeds to step S
Returning to 100, another test program is generated. Next, in step S104, step S103
And compares the logic simulation execution result output with the expected value. If the expected value matches the logic simulation execution result in step S104, the verified pattern history information is updated in step S105 with information on the verified pattern included in the test program verified in step S103. I do.

【0037】このように本発明の論理回路検証方法にお
いては、重複したパターンを多く含む(新規パターンが
少ない)テストプログラムを、検証速度の遅い論理シミ
ュレータ上で実行させないようにし、検証時間の長期化
を抑えることができる。以下、本発明の実施の形態につ
いて説明する。
As described above, in the logic circuit verification method of the present invention, a test program including many duplicated patterns (less new patterns) is prevented from being executed on a logic simulator having a low verification speed, and the verification time is extended. Can be suppressed. Hereinafter, embodiments of the present invention will be described.

【0038】(実施の形態1)以下、図2から図4を用
いて、本発明の実施の形態1について説明する。まず、
図2を用いて、本実施の形態1における、論理回路検証
装置の構成を説明する。図2は、本実施の形態1におけ
る、論理回路検証装置のブロック構成図である。
(Embodiment 1) Hereinafter, Embodiment 1 of the present invention will be described with reference to FIGS. First,
The configuration of the logic circuit verification device according to the first embodiment will be described with reference to FIG. FIG. 2 is a block diagram of the logic circuit verification device according to the first embodiment.

【0039】図2において、本実施の形態1における論
理回路検証装置は、論理回路を検証する各手段(後述す
る)を実現する各々のプログラムを格納する検証手段記
憶部220と、前記検証手段記憶部220に格納された
各々の検証手段を実行するCPU221と、前記CPU
221において前記検証手段記憶部220に格納された
各検証手段を実行する際に、出力したり参照したりする
データを格納するデータ記憶部222とを備えるもので
ある。なお、前記検証手段記憶部220及びデータ記憶
部222は、メモリやハードディスク等で実現されるも
のである。
In FIG. 2, the logic circuit verification device according to the first embodiment includes a verification means storage unit 220 for storing programs for implementing each means (described later) for verifying a logic circuit, A CPU 221 for executing each verification means stored in the unit 220,
221 is provided with a data storage unit 222 for storing data to be output or referred to when each of the verification units stored in the verification unit storage unit 220 is executed. The verification unit storage unit 220 and the data storage unit 222 are realized by a memory, a hard disk, or the like.

【0040】前記検証手段記憶部220に格納されてい
る各検証手段は、テストプログラム生成手段200、ソ
フトウエアシミュレーション実行手段201、新規パタ
ーン数カウント手段207と新規パターン数判定手段2
02とからなる検証実行判定手段208、論理シミュレ
ーション実行手段203、期待値比較手段204、及び
検証済みパターン履歴情報更新手段205であり、これ
ら検証手段をCPU221で実行することで、論理回路
の検証を行うものである。以下、各検証手段について説
明する。テストプログラム生成手段200は、乱数を用
いてテストプログラム223を生成してデータ記憶部2
22に出力するものであり、ソフトウエアシミュレーシ
ョン実行手段201は、前記テストプログラム生成手段
200で作成されたテストプログラム223をソフトウ
エアシミュレーション上で実行し、そのソフトウエアシ
ミュレーション実行結果225をデータ記憶部222に
出力するものである。新規パターン数カウント手段20
7は、前記ソフトウエアシミュレーション実行手段20
1で出力されたソフトウエアシミュレーション実行結果
225、及び前記検証済みパターン履歴情報206を基
に、前記テストプログラム223に含まれる新規パター
ン数をカウントするものであり、新規パターン数判定手
段202は、前記新規パターン数カウント手段207で
カウントした新規パターン数がある閾値以上かどうかを
判定するものであり、検証実行判定手段208は、上述
した前記新規パターン数カウント手段207と前記新規
パターン数判定手段202によって、前記ソフトウエア
シミュレーション実行結果と、前記データ記憶部222
に格納された検証済みパターンに関する情報である検証
済みパターン履歴情報206とを比較し、前記テストプ
ログラムを用いた検証を実行するかどうかを判定するも
のである。また、論理シミュレーション実行手段203
は、前記新規パターン数判定手段202において検証実
行と判定された場合に、前記テストプログラム223を
論理シミュレータを用いた論理シミュレーションにより
被試験論理回路上で実行し、その論理シミュレーション
実行結果226を前記データ記憶部222に出力するも
のであり、期待値比較手段204は、前記論理シミュレ
ーション実行手段203で出力された論理シミュレーシ
ョン実行結果226と、前記ソフトウエアシミュレーシ
ョン実行手段201で出力された期待値224とを比較
するものであり、検証済みパターン履歴情報更新手段2
05は、前記期待値比較手段204において、前記期待
値224と前記論理シミュレーション実行結果226と
が一致した場合に、前記検証済みパターン履歴情報20
6を、前記論理シミュレーション実行手段203で検証
したテストプログラムに含まれる検証パターンに関する
情報により更新するものである。
The verification means stored in the verification means storage unit 220 include a test program generation means 200, a software simulation execution means 201, a new pattern number counting means 207, and a new pattern number determination means 2
02, a verification execution determination unit 208, a logic simulation execution unit 203, an expected value comparison unit 204, and a verified pattern history information update unit 205, which are executed by the CPU 221 to verify the logic circuit. Is what you do. Hereinafter, each verification unit will be described. The test program generation means 200 generates a test program 223 using random numbers and
The software simulation executing means 201 executes the test program 223 created by the test program generating means 200 on the software simulation, and stores the software simulation execution result 225 in the data storage section 222. Is output to New pattern number counting means 20
7 is the software simulation execution means 20
The number of new patterns included in the test program 223 is counted based on the software simulation execution result 225 output in step 1 and the verified pattern history information 206. The verification execution determination unit 208 determines whether the number of new patterns counted by the new pattern number counting unit 207 is equal to or greater than a threshold. The software simulation execution result and the data storage unit 222
Is compared with the verified pattern history information 206 which is information on the verified patterns stored in the test program, and it is determined whether or not to execute the verification using the test program. Further, the logic simulation executing means 203
Executes the test program 223 on the logic circuit under test by a logic simulation using a logic simulator when the new pattern number determination means 202 determines that the verification is to be executed, and outputs the logic simulation execution result 226 to the data The expected value comparison means 204 compares the logic simulation execution result 226 output from the logic simulation execution means 203 with the expected value 224 output from the software simulation execution means 201. Compared with verified pattern history information updating means 2
05, when the expected value comparison means 204 matches the expected value 224 with the logic simulation execution result 226, the verified pattern history information 20
6 is updated with information on a verification pattern included in the test program verified by the logic simulation executing means 203.

【0041】次に、図3のフローチャートに従って、本
実施の形態1における論理回路検証装置の処理動作を、
図4を参照しながら説明する。
Next, according to the flowchart of FIG. 3, the processing operation of the logic circuit verification device in the first embodiment will be described.
This will be described with reference to FIG.

【0042】図3は、本発明の実施の形態1における、
論理回路検証装置の一連の処理動作を示すフローチャー
トであり、図4は、本実施の形態1における、論理回路
検証方法の各手段による出力例である。
FIG. 3 is a diagram showing Embodiment 1 of the present invention.
FIG. 4 is a flowchart illustrating a series of processing operations of the logic circuit verification device. FIG. 4 is an output example of each unit of the logic circuit verification method according to the first embodiment.

【0043】本実施の形態1においては、まずステップ
S300において、テストプログラム生成手段200に
より、乱数発生器(図示せず)から出力される乱数及
び、被試験論理回路の試験命令情報400(図4
(a))を用いて、テストプログラム401(図4
(b))を生成して、データ記憶部222に出力する。
具体的には、前記乱数発生器に0から7までの8つの整
数をランダムに発生させ、その発生された値をインデッ
クスに持つ命令を試験命令情報400から選択する。例
えば乱数発生器で0が発生された場合、インデックス0
の”SET FR0,1”命令を選択する。そして最初
に選択された命令をテストプログラムの1番目の命令と
して、以降それを全部で5回繰り返し、上述のようにし
て選択された5つの命令から生成された命令群をテスト
プログラムとする。
In the first embodiment, first, in step S300, the test program generating means 200 outputs the random number output from the random number generator (not shown) and the test instruction information 400 of the logic circuit under test (FIG. 4).
(A)), the test program 401 (FIG. 4)
(B)) is generated and output to the data storage unit 222.
Specifically, the random number generator randomly generates eight integers from 0 to 7, and selects an instruction having the generated value as an index from the test instruction information 400. For example, if 0 is generated by the random number generator, the index 0
"SET FR0, 1" instruction is selected. Then, the first selected instruction is set as the first instruction of the test program, and thereafter, it is repeated five times in total, and an instruction group generated from the five instructions selected as described above is set as the test program.

【0044】次に、ステップS301において、ソフト
ウエアシミュレーション実行手段201により、ステッ
プS300で生成されたテストプログラム401から、
実行された命令に関する情報であるソフトウエアシミュ
レーション実行結果402(図4(c))を得てデータ
記憶部222に出力する。本実施の形態1では、テスト
プログラム401に含まれる5つの命令が順に実行され
たものとする。なお、ソフトウエアシミュレーション実
行結果402に含まれる情報は、実行された命令に関す
る情報だけでなく、被試験論理回路の内部状態(あるレ
ジスタのデータ遷移等)に関する情報を含んでいてもよ
い。また、本実施の形態1では、ステップS301にお
いて、後述するステップS304で使用する期待値40
3(図4(d))も生成してデータ記憶部222に出力
する。この期待値403は、テストプログラム401を
ソフトウエアシミュレーション実行終了した時のレジス
タFR0,FR1,FR2,FR3,FR7に格納され
ている値を含むものである。
Next, in step S301, the software simulation executing means 201 converts the test program 401 generated in step S300 into
A software simulation execution result 402 (FIG. 4C), which is information on the executed instruction, is obtained and output to the data storage unit 222. In the first embodiment, it is assumed that five instructions included in the test program 401 have been executed in order. Note that the information included in the software simulation execution result 402 may include not only information on the executed instruction but also information on the internal state of the logic circuit under test (data transition of a certain register, etc.). Further, in the first embodiment, in step S301, the expected value 40 used in step S304 described later is used.
3 (FIG. 4D) is also generated and output to the data storage unit 222. The expected value 403 includes the values stored in the registers FR0, FR1, FR2, FR3, FR7 when the software simulation of the test program 401 has been completed.

【0045】次に、ステップS307において、新規パ
ターン数カウント手段207により、ソフトウエアシミ
ュレーション実行結果402(図4(c))、及び検証
済みパターン履歴情報404(図4(e))を用いて、
テストプログラム401に含まれる新規パターン数をカ
ウントする。本実施の形態1においては、試験命令情報
400(図4(a))に含まれる0から7までの8つの
全命令が正常に動作するかどうかを検証項目と設定する
こととし、検証済みパターン履歴情報404には、試験
命令情報400に含まれる各命令のインデックスに対応
した0から7までのインデックスと、各インデックスに
対し検証済み(1)か未検証(0)かどうかを示すフラ
グ情報とが含まれるものとする。具体的には、まずソフ
トウエアシミュレーション実行結果402(図4
(c))から実行された命令の情報を取得する。本実施
の形態1では、試験命令情報400に含まれる命令中、
0,7,1,3,2の5つの命令が実行されている。次
に前述の5つの命令が、検証済みか未検証かどうかを検
証済み履歴情報404(図4(e))から検出し、未検
証命令数をカウントする。本実施の形態1では、検証済
み履歴情報404に含まれる0から7の命令のうち、
0,1,6の命令が既に検証済みなので、ソフトウエア
シミュレーション実行結果402で実行されている命令
のうち、7,3,2の命令が未検証命令となり、新規パ
ターン数は3となる。
Next, in step S307, the new pattern number counting means 207 uses the software simulation execution result 402 (FIG. 4C) and the verified pattern history information 404 (FIG. 4E).
The number of new patterns included in the test program 401 is counted. In the first embodiment, whether or not all eight instructions from 0 to 7 included in the test instruction information 400 (FIG. 4A) operate normally is set as a verification item, and a verified pattern is set. The history information 404 includes indices 0 to 7 corresponding to the indices of the instructions included in the test instruction information 400, flag information indicating whether each index has been verified (1) or not verified (0). Shall be included. Specifically, first, the software simulation execution result 402 (FIG. 4)
The information of the executed instruction is obtained from (c)). In the first embodiment, among the instructions included in the test instruction information 400,
Five instructions 0, 7, 1, 3, and 2 are being executed. Next, it is detected from the verified history information 404 (FIG. 4E) whether the above five instructions have been verified or not, and the number of unverified instructions is counted. In the first embodiment, among the instructions 0 to 7 included in the verified history information 404,
Since the instructions 0, 1, and 6 have already been verified, among the instructions executed in the software simulation execution result 402, the instructions 7, 3, and 2 are unverified instructions, and the number of new patterns is 3.

【0046】次に、ステップS302において、新規パ
ターン数判定手段202で、ステップS307でカウン
トした新規パターン数をある任意の閾値と比較し、テス
トプログラム401を用いた検証を実行するかどうか判
定する。ここで、新規パターン数が閾値以上の場合は、
ステップS303において、物理シミュレーション実行
手段203によりテストプログラム401を用いて論理
シミュレーションを実行し、新規パターン数が閾値より
小さい場合には、ステップS300に戻り、テストプロ
グラム生成手段200により別のテストプログラムを生
成する。ここで具体的に本実施の形態1では閾値を3と
すると、ステップS307において新規パターン数カウ
ント手段207より求めた新規パターン数(3)は前記
閾値(3)以上であるため、ステップS303におい
て、論理シミュレーション実行手段203により被試験
論理回路上で前記テストプログラム401を実行し、論
理シミュレーション実行結果405(図4(f))を出
力する。この論理シミュレーション実行結果405は、
前記テストプログラム401を論理シミュレーション実
行終了した時のレジスタFR0,FR1,FR2,FR
3,FR7に格納されている値を含むものである。な
お、ステップS303の判定に用いる閾値は、予め決め
られた値の他、検証者が任意に設定した値、また全検証
項目数や未検証項目数により自動的に設定された値でも
よい。
Next, in step S302, the number-of-new-patterns determination means 202 compares the number of new patterns counted in step S307 with an arbitrary threshold value, and determines whether or not to execute verification using the test program 401. Here, if the number of new patterns is equal to or greater than the threshold,
In step S303, a logic simulation is performed by the physical simulation execution unit 203 using the test program 401. If the number of new patterns is smaller than the threshold, the process returns to step S300, and another test program is generated by the test program generation unit 200. I do. Here, specifically, if the threshold value is 3 in the first embodiment, the number of new patterns (3) obtained by the new pattern number counting means 207 in step S307 is equal to or larger than the threshold value (3). The test program 401 is executed on the logic circuit under test by the logic simulation executing means 203, and a logic simulation execution result 405 (FIG. 4F) is output. This logic simulation execution result 405 is
Registers FR0, FR1, FR2, FR at the end of the logic simulation of test program 401
3, including the value stored in FR7. The threshold value used for the determination in step S303 may be a value set arbitrarily by the verifier, or a value automatically set based on the total number of verified items or the number of unverified items, in addition to a predetermined value.

【0047】次に、ステップS304において、ステッ
プS301で生成した期待値403、及びステップS3
03で生成した論理シミュレーション実行結果405を
期待値比較手段204にて比較する。具体的には、期待
値403(図4(d))に出力されているレジスタFR
0,FR1,FR2,FR3,FR7のそれぞれの値
1,2,0,1,1と、論理シミュレーション実行結果
405(図4(f))に出力されているレジスタFR
0,FR1,FR2,FR3,FR7のそれぞれの値
1,2,0,1,1とを比較する。ステップS304に
て期待値403と論理シミュレーション実行結果405
とが一致した場合ステップS305に進み、一致しなか
った場合は一連の処理動作を終了する。本実施の形態1
では、全ての値が一致しているので、ステップS305
において、検証済みパターン履歴情報更新手段205に
より検証済みパターン履歴情報404の更新を行い、更
新後の検証済みパターン履歴情報406(図4(g))
を得る。本実施の形態1のテストプログラム401で
は、検証済み履歴情報404に含まれる0から7の命令
のうち、0,7,1,3,2の5つの命令が検証された
ので、それぞれ対応したインデックスのフラグを検証済
み(1)へと更新し、更新後の検証済みパターン履歴情
報406(図4(g))としている。
Next, in step S304, the expected value 403 generated in step S301 and the
The logic simulation execution result 405 generated in step 03 is compared by the expected value comparison means 204. Specifically, the register FR output to the expected value 403 (FIG. 4D)
0, FR1, FR2, FR3, FR7, and the register FR output to the logic simulation execution result 405 (FIG. 4F).
The values 0, FR1, FR2, FR3, and FR7 are compared with the values 1, 2, 0, 1, and 1, respectively. In step S304, the expected value 403 and the logic simulation execution result 405
If they match, the process proceeds to step S305, and if they do not match, the series of processing operations ends. Embodiment 1
Since all the values match, step S305 is performed.
In, the verified pattern history information updating means 205 updates the verified pattern history information 404, and the updated verified pattern history information 406 (FIG. 4 (g))
Get. In the test program 401 according to the first embodiment, since five instructions 0, 7, 1, 3, and 2 among the instructions 0 to 7 included in the verified history information 404 are verified, the corresponding index Is updated to verified (1), and the updated verified pattern history information 406 (FIG. 4G).

【0048】なお、以上で一連の検証処理を終了する
が、例えば上記一連の検証処理を指定された回数等のあ
る終了条件まで繰り返し実行しても良い。また、本実施
の形態1においては、図4(a)に示す被試験論理回路
の試験命令情報400としているがこれは一例であり、
試験命令情報はこれに限られるものではない。
The above-described series of verification processing is ended. For example, the above-described series of verification processing may be repeatedly executed up to a certain end condition such as a designated number of times. In the first embodiment, the test instruction information 400 of the logic circuit under test shown in FIG. 4A is used as an example.
The test instruction information is not limited to this.

【0049】以上のように本実施の形態1によれば、乱
数を用いて生成されたテストプログラムに含まれる新規
パターン(未検証項目)数を、ソフトウエアシミュレー
ション実行結果から計算し、生成されたテストプログラ
ムに含まれる新規パターン数が少ない(検証済みパター
ンが多い)場合には、別のテストプログラムを再生成す
るようにしたので、重複したパターンを多く含むテスト
プログラムを検証速度の遅い論理シミュレータ上で実行
することによる検証時間の増加を抑えることができる。
As described above, according to the first embodiment, the number of new patterns (unverified items) included in the test program generated by using the random numbers is calculated from the result of executing the software simulation and generated. When the number of new patterns included in the test program is small (the number of verified patterns is large), another test program is regenerated. , The increase in the verification time can be suppressed.

【0050】(実施の形態2)以下、図4から図7を用
いて、本発明の実施の形態2について説明する。まず、
図5を用いて、本実施の形態2における、論理回路検証
装置の構成を説明する。図5は、本実施の形態2におけ
る、論理回路検証装置の構成を示すブロック図である。
(Embodiment 2) Hereinafter, Embodiment 2 of the present invention will be described with reference to FIGS. First,
The configuration of the logic circuit verification device according to the second embodiment will be described with reference to FIG. FIG. 5 is a block diagram showing a configuration of the logic circuit verification device according to the second embodiment.

【0051】図5において、509はテストプログラム
生成手段500で生成されたテストプログラム及び、前
記テストプログラムに含まれる新規パターン数に関する
情報であるテストプログラム保存情報527をデータ記
憶部522に保存するテストプログラム保存手段であ
る。なお、その他の構成は実施の形態1と同様であるた
め説明を省略する。
In FIG. 5, reference numeral 509 denotes a test program for storing the test program generated by the test program generation means 500 and the test program storage information 527 which is information on the number of new patterns included in the test program in the data storage unit 522. It is a storage means. The other configuration is the same as that of the first embodiment, and the description is omitted.

【0052】次に、図6のフローチャートに従って、本
実施の形態2における、論理回路検証装置の処理動作
を、図4及び図7を参照しながら説明する。図6は、本
実施の形態2における論理回路検証装置の一連の処理動
作を示すフローチャートであり、図4及び図7は、本実
施の形態2における、論理検証方法の各手段による出力
例である。
Next, the processing operation of the logic circuit verification device according to the second embodiment will be described with reference to FIGS. 4 and 7 in accordance with the flowchart of FIG. FIG. 6 is a flowchart showing a series of processing operations of the logic circuit verification device according to the second embodiment, and FIGS. 4 and 7 are examples of output by each means of the logic verification method according to the second embodiment. .

【0053】本実施の形態2では、まずステップS60
0おいて、テストプログラム生成手段500により、乱
数発生器(図示せず)から出力される乱数、及び被試験
論理回路の試験命令情報400(図4(a))を用い
て、テストプログラム401(図4(b))を生成し、
データ記憶部422に出力する。このテストプログラム
生成方法は実施の形態1と同様である。
In the second embodiment, first, at step S60
0, the test program generation means 500 uses the random number output from the random number generator (not shown) and the test instruction information 400 of the logic circuit under test (FIG. 4A) to generate a test program 401 ( FIG. 4B) is generated,
The data is output to the data storage unit 422. This test program generation method is the same as in the first embodiment.

【0054】次に、ステップS601において、ソフト
ウエアシミュレーション実行手段501により、ステッ
プS600で生成されたテストプログラム401をソフ
トウエアシミュレータ上で実行し、実行された命令に関
する情報であるソフトウエアシミュレーション実行結果
402(図4(c))を得て、データ記憶部422に出
力する。また本実施の形態2では、ステップS601で
実行するソフトウエアシミュレーションにより、後述す
るステップS604で使用する期待値403(図4
(d))を生成し、データ記憶部422に出力する。こ
の期待値403は、テストプログラム401をソフトウ
エアシミュレーション実行終了した時のレジスタFR
0,FR1,FR2,FR3,FR7に格納されている
値を含むものである。
Next, in step S601, the software simulation executing means 501 executes the test program 401 generated in step S600 on a software simulator, and a software simulation execution result 402 which is information on the executed instruction. (FIG. 4C) is obtained and output to the data storage unit 422. In the second embodiment, an expected value 403 (FIG. 4) used in step S604 described later is determined by software simulation executed in step S601.
(D)) is generated and output to the data storage unit 422. The expected value 403 is stored in the register FR when the software simulation of the test program 401 is completed.
0, FR1, FR2, FR3, and FR7.

【0055】次に、ステップS607において、新規パ
ターン数カウント手段507により、データ記憶部42
2に記憶されている前記ソフトウエアシミュレーション
実行結果402、及び検証済みパターン履歴情報404
(図4(e))を用いて、テストプログラム401に含
まれる新規パターン数をカウントする。新規パターン数
の計算方法は実施の形態1と同様であり、本実施の形態
2において新規パターン数は3となる。
Next, in step S607, the new pattern number counting means 507 causes the data storage section 42
2, the software simulation execution result 402 and the verified pattern history information 404
The number of new patterns included in the test program 401 is counted using (FIG. 4E). The calculation method of the number of new patterns is the same as that of the first embodiment, and the number of new patterns is 3 in the second embodiment.

【0056】次に、ステップS602において、新規パ
ターン数判定手段502により、ステップS607でカ
ウントした新規パターン数をある任意の閾値と比較す
る。ステップS602で新規パターンがある任意の閾値
より大きいと判定された場合、ステップS603に進
み、論理シミュレーション実行手段603により、テス
トプログラム401を用いて論理シミュレーションを行
う。また、ステップS602で新規パターン数が閾値よ
り小さいと判定された場合には、ステップS609にお
いて、テストプログラム保存手段509により、テスト
プログラム401、期待値403、及びステップS60
7でカウントしたテストプログラムに含まれる新規パタ
ーン数をデータ記憶部522に保存した後、ステップS
600に戻ってテストプログラム生成手段500により
別のテストプログラムを生成する。但し、新規パターン
数が2回連続で閾値より小さい場合には、ステップS6
09で保存されたテストプログラム、及びその時点で生
成されているテストプログラムの中で、新規パターン数
を最も多く含むテストプログラムを用いて、ステップS
603において論理シミュレーション実行手段503に
より論理シミュレーションを行う。具体的に本実施の形
態2では閾値を4とすると、ステップS607でカウン
トされた新規パターン数(3)は前記閾値(4)より小
さいため、ステップS609においてテストプログラム
401(図4(b))、期待値403(図4(d))、
及び前記新規パターン数(3)を保存し、ステップS6
00に戻り別のテストプログラム700(図7(a))
を生成する。そして、ステップS601において、再生
成されたテストプログラム700を用いてソフトウエア
シミュレーションを実行し、ソフトウエアシミュレーシ
ョン実行結果701(図7(b))、及び期待値702
(図7(c))を生成してデータ記憶部422に出力
し、ステップS607において、該データ記憶部422
に記憶されたソフトウエアシミュレーション実行結果7
01(図7(b))、及び検証済みパターン履歴情報4
04(図4(e))を用いて、再生成されたテストプロ
グラム700に含まれる新規パターン数をカウントす
る。ここでの新規パターン数は2であり、ステップS6
02において、その新規パターン数(2)は設定された
閾値(4)より小さいと判定され、これで2回連続して
テストプログラムに含まれる新規パターン数が閾値より
も小さいと判定されたことになるので、ステップS60
9で保存されたテストプログラム401と今回生成され
たテストプログラム700とのうち、新規パターン数を
多く含む方を選択して、その選択された方のテストプロ
グラムを使用して論理シミュレーションを実行する。具
体的には、テストプログラム401(図4(b))及び
テストプログラム700(図7(a))に含まれる新規
パターン数はそれぞれ3、2であるため、ここでは新規
パターン数が多いテストプログラム401を選択し、ス
テップS603においてテストプログラム401を用い
て論理シミュレーションを行う。なお、ステップS60
2の判定に用いる閾値は、予め決められた値の他、検証
者が任意に設定した値、また全検証項目数や未検証項目
数により自動的に設定された値でもよい。また、本実施
の形態2においては、新規パターン数が2回連続して閾
値よりも小さい場合に、テストプログラム保存手段50
9により保存されたデータ中からテストプログラムを選
択するようにしたが、テストプログラム保存手段により
保存されるテストプログラムは任意の数であり、この場
合新規パターンが(任意の数+1)回連続して閾値より
も小さい場合に、検証するテストプログラムを選択して
論理シミュレーションを実行する。この後のステップS
603からステップS605は、実施の形態1と同様で
あるため、説明を省略する。
Next, in step S602, the number of new patterns determined in step S607 is compared with an arbitrary threshold by the new pattern number determination means 502. If it is determined in step S602 that the new pattern is larger than a certain threshold, the process proceeds to step S603, where the logic simulation execution unit 603 performs a logic simulation using the test program 401. If it is determined in step S602 that the number of new patterns is smaller than the threshold, in step S609, the test program storage unit 509 uses the test program 401, the expected value 403, and the step S60.
After storing the number of new patterns included in the test program counted in step 7 in the data storage unit 522,
Returning to 600, another test program is generated by the test program generation means 500. However, if the number of new patterns is smaller than the threshold value twice consecutively, step S6
09 in the test program stored in step S09 and the test program generated at that time, the test program including the largest number of new patterns is used.
In 603, a logic simulation is performed by the logic simulation execution means 503. Specifically, in the second embodiment, assuming that the threshold value is 4, the number of new patterns (3) counted in step S607 is smaller than the threshold value (4), and thus the test program 401 (FIG. 4B) in step S609. , Expected value 403 (FIG. 4D),
And the number of new patterns (3) is saved, and step S6
00 and another test program 700 (FIG. 7A)
Generate Then, in step S601, a software simulation is executed using the regenerated test program 700, and a software simulation execution result 701 (FIG. 7B) and an expected value 702 are obtained.
7 (c) is generated and output to the data storage unit 422. In step S607, the data storage unit 422
Simulation execution result 7 stored in
01 (FIG. 7B) and verified pattern history information 4
04 (FIG. 4E), the number of new patterns included in the regenerated test program 700 is counted. Here, the number of new patterns is two, and step S6
02, it is determined that the number of new patterns (2) is smaller than the set threshold value (4), which means that the number of new patterns included in the test program twice consecutively is smaller than the threshold value. So step S60
9, a test program that includes a larger number of new patterns is selected from the test program 401 stored in step 9 and the test program 700 generated this time, and a logic simulation is performed using the selected test program. More specifically, since the number of new patterns included in the test program 401 (FIG. 4B) and the test program 700 (FIG. 7A) are three and two, respectively, 401 is selected, and a logic simulation is performed using the test program 401 in step S603. Step S60
The threshold value used for the determination of 2 may be a value arbitrarily set by a verifier, or a value automatically set based on the number of all verified items or the number of unverified items, in addition to a predetermined value. Further, in the second embodiment, when the number of new patterns is smaller than the threshold value twice consecutively, the test program storage unit 50
9 is used to select a test program from the data stored. However, the number of test programs stored by the test program storage means is arbitrary, and in this case, a new pattern is continuously (arbitrary number + 1) times. When it is smaller than the threshold value, a test program to be verified is selected and a logic simulation is executed. Step S after this
Steps 603 to S605 are the same as those in the first embodiment, and a description thereof will not be repeated.

【0057】以上のように本実施の形態2によれば、乱
数を用いて生成されたテストプログラムに含まれる新規
パターン(未検証項目)数を、ソフトウエアシミュレー
ション実行結果から計算し、生成されたテストプログラ
ムに含まれる新規パターン数が少ない(検証済みパター
ンが多い)場合には、別のテストプログラムを再生成す
るようにしたので、重複したパターンを多く含むテスト
プログラムを検証速度の遅い論理シミュレータ上で実行
することによる検証時間の増加を抑えることが可能とな
る。また新規パターン数が少ないテストプログラムが連
続して生成された場合に、その中でも新規パターン数が
最も多いテストプログラムを用いて検証を行う制御を施
すようにしたので、テストプログラム生成と新規パター
ン数判定との間を無限に繰り返すことによる検証時間の
ロスを回避可能となる。
As described above, according to the second embodiment, the number of new patterns (unverified items) included in the test program generated by using the random numbers is calculated from the result of executing the software simulation, and the number of generated new patterns is calculated. When the number of new patterns included in the test program is small (the number of verified patterns is large), another test program is regenerated. Therefore, a test program including many duplicated patterns can be executed on a logic simulator with a low verification speed. , It is possible to suppress an increase in the verification time due to the execution. When a test program with a small number of new patterns is continuously generated, control is performed to perform verification using the test program with the largest number of new patterns. It is possible to avoid the loss of the verification time due to the infinite repetition between.

【0058】(実施の形態3)以下、図8から図10を
用いて、本発明の実施の形態3について説明する。ま
ず、図8を用いて、本実施の形態3における、論理回路
検証装置の構成について説明する。図8は、本発明の実
施の形態3における、論理回路検証装置の構成を示すブ
ロック図である。
(Embodiment 3) Hereinafter, Embodiment 3 of the present invention will be described with reference to FIGS. First, the configuration of the logic circuit verification device according to the third embodiment will be described with reference to FIG. FIG. 8 is a block diagram showing a configuration of the logic circuit verification device according to the third embodiment of the present invention.

【0059】図8において、807はソフトウエアシミ
ュレーション実行手段801で出力されたソフトウエア
シミュレーション実行結果825、及びデータ記憶部8
22に格納された検証済みパターン履歴情報806を基
に、前記テストプログラム生成手段800で生成された
テストプログラムに含まれる新規リソース数をカウント
する新規リソース数カウント手段、802は前記新規リ
ソース数カウント手段807でカウントした新規リソー
ス数がある閾値以上かどうかを判定する新規リソース数
判定手段であり、上述した新規リソース数カウント手段
807、及び新規リソース数判定手段802とからな
る、前記テストプログラムを用いた検証を実行するかど
うかを判定する検証実行判定手段808は、前記新規リ
ソース数がある閾値以上の場合は論理シミュレーション
実行手段803により前記テストプログラムを用いた被
試験論理回路の検証を実行し、新規リソース数がある閾
値より小さい場合はテストプログラム生成手段800に
より再度別のテストプログラムを生成すると判定するも
のである。なお、その他の構成は実施の形態1と同様で
あるため、ここでは説明を省略する。
In FIG. 8, reference numeral 807 denotes a software simulation execution result 825 output from the software simulation execution means 801 and the data storage unit 8.
New resource number counting means for counting the number of new resources included in the test program generated by the test program generation means 800 based on the verified pattern history information 806 stored in the storage means 22; The new resource count determining means for determining whether or not the number of new resources counted in 807 is equal to or greater than a certain threshold value. The test program includes the new resource count counting means 807 and the new resource count determining means 802 described above. The verification execution determination unit 808 that determines whether to execute the verification executes the verification of the logic circuit under test using the test program by the logic simulation execution unit 803 when the number of new resources is equal to or more than a certain threshold value. If the number of resources is smaller than a certain threshold It is to determined to generate another test program again by strike program generation unit 800. The other configuration is the same as that of the first embodiment, and the description is omitted here.

【0060】次に、図9のフローチャートに従って、本
実施の形態3における論理回路検証装置の処理動作につ
いて、図10を参照しながら説明する。図9は、本実施
の形態3における、論理回路検証装置の一連の処理動作
を示すフローチャートであり、図10は、本実施の形態
3における、論理回路検証方法の各手段による出力例で
ある。
Next, the processing operation of the logic circuit verification device according to the third embodiment will be described with reference to FIG. 10 according to the flowchart of FIG. FIG. 9 is a flowchart illustrating a series of processing operations of the logic circuit verification device according to the third embodiment. FIG. 10 is an output example of each unit of the logic circuit verification method according to the third embodiment.

【0061】本実施の形態3では、まずステップS90
0において、テストプログラム生成手段800により、
乱数発生器(図示せず)から出力される乱数、及び被試
験論理回路の試験命令情報1000(図10(a))を
用いて、テストプログラム1001(図10(b))を
生成してデータ記憶部822に出力する。このテストプ
ログラム生成方法は、実施の形態1と同様である。
In the third embodiment, first, at step S 90
0, the test program generating means 800
Using a random number output from a random number generator (not shown) and test instruction information 1000 (FIG. 10A) of the logic circuit under test, a test program 1001 (FIG. 10B) is generated and data is generated. Output to the storage unit 822. This test program generation method is the same as in the first embodiment.

【0062】次に、ステップS901において、ソフト
ウエアシミュレーション実行手段801により、ステッ
プS900で生成されたテストプログラム1001をソ
フトウエアシミュレータ上で実行し、実行された命令に
関する情報であるソフトウエアシミュレーション実行結
果1002(図10(c))を得てデータ記憶部822
に出力する。また本実施の形態3では、本ステップS9
01で実行するソフトウエアシミュレーションにより、
後述するステップS904で使用する期待値1003
(図10(d))を生成してデータ記憶部822に出力
する。
Next, in step S901, the software simulation executing means 801 executes the test program 1001 generated in step S900 on a software simulator, and executes a software simulation execution result 1002 which is information on the executed instruction. (FIG. 10C) and the data storage unit 822
Output to In the third embodiment, step S9
01 by software simulation
Expected value 1003 used in step S904 described later
(FIG. 10D) is generated and output to the data storage unit 822.

【0063】次に、ステップS907において、新規リ
ソース数カウント手段807により、前記ソフトウエア
シミュレーション実行結果1002(図10(c))、
及び検証済みパターンに関する情報である検証済みパタ
ーン履歴情報1004(図10(e))を用いて、前記
テストプログラム1001に含まれる新規リソース数を
カウントする。本実施の形態3では、リソースとしてF
R0,FR1,FR2,FR3,FR4,FR5,FR
6,FR7の8つのレジスタが使用可能であるとし、前
記8つの全レジスタが検証で使用され、正常に動作した
かどうかを検証項目と設定することとする。また、検証
済みパターン履歴情報1004には前述の8つのレジス
タと、各レジスタに対し検証済み(1)か未検証(0)
かどうかを示すフラグ情報が含まれるものとする。具体
的には、まずソフトウエアシミュレーション実行結果1
002(図10(c))から、ソフトウエアシミュレー
ションで使用されたリソースの情報を取得する。ここで
は、FR0,FR1,FR2,FR3,FR7の5つの
レジスタが使用されている。次に、前述の5つのレジス
タが、検証済みか未検証かどうかを検証済みパターン履
歴情報1004(図10(e))から検出し、未検証リ
ソース数をカウントする。本実施の形態3では検証済み
パターン履歴情報1004に含まれる8つのレジスタの
うち、FR0,FR1のレジスタが既に検証済みなの
で、ソフトウエアシミュレーション実行結果1002
(図10(c))に含まれているレジスタのうち、FR
7,FR3,FR2のレジスタが新規リソースとなり、
新規リソース数は3となる。
Next, in step S907, the software simulation execution result 1002 (FIG. 10 (c))
The number of new resources included in the test program 1001 is counted using the verified pattern history information 1004 (FIG. 10E) which is information on the verified pattern. In the third embodiment, F
R0, FR1, FR2, FR3, FR4, FR5, FR
It is assumed that eight registers 6, FR7 can be used, and whether all the eight registers are used in the verification and whether or not they operate normally is set as a verification item. The verified pattern history information 1004 includes the above-described eight registers, and whether each register has been verified (1) or not verified (0).
It is assumed that flag information indicating whether or not this is included. Specifically, first, the software simulation execution result 1
From 002 (FIG. 10C), information on resources used in the software simulation is obtained. Here, five registers FR0, FR1, FR2, FR3, and FR7 are used. Next, the above-mentioned five registers detect whether the data has been verified or not, from the verified pattern history information 1004 (FIG. 10E), and count the number of unverified resources. In the third embodiment, among the eight registers included in the verified pattern history information 1004, the registers FR0 and FR1 have already been verified.
Of the registers included in FIG.
Registers 7, 7, and 3 become new resources,
The number of new resources is three.

【0064】次に、ステップS902において、ステッ
プS907でカウントしたテストプログラム1001に
含まれる新規リソース数をある任意の閾値と比較し、テ
ストプログラム1001を用いた検証を実行するかどう
か判定する。新規リソース数が閾値以上の場合は、ステ
ップS903において論理シミュレーション実行手段8
03により、テストプログラム1001を用いて論理シ
ミュレーションを行う。また新規リソース数が閾値より
小さい場合には、ステップS900に戻り別のテストプ
ログラムを生成する。具体的に本実施の形態3では閾値
を3とすると、ステップS907においてカウントされ
た新規リソース数(3)は前記閾値(3)以上と判定さ
れ、ステップS903に移る。なお、本ステップS90
2の判定に用いる閾値は、予め決められた値の他、検証
者が任意に設定した値、また全検証項目数や未検証項目
数により自動的に設定された値でもよい。
Next, in step S 902, the number of new resources included in the test program 1001 counted in step S 907 is compared with an arbitrary threshold value, and it is determined whether verification using the test program 1001 is to be performed. If the number of new resources is equal to or larger than the threshold, the logic simulation executing means 8 is executed in step S903.
In step 03, a logic simulation is performed using the test program 1001. If the number of new resources is smaller than the threshold, the process returns to step S900 to generate another test program. Specifically, when the threshold is set to 3 in the third embodiment, the number of new resources (3) counted in step S907 is determined to be equal to or larger than the threshold (3), and the process proceeds to step S903. This step S90
The threshold value used for the determination of 2 may be a value arbitrarily set by a verifier, or a value automatically set based on the number of all verified items or the number of unverified items, in addition to a predetermined value.

【0065】ステップS903においては、論理シミュ
レーション実行手段803により、テストプログラム1
001を論理シミュレータを用いた論理シミュレーショ
ンにより被試験論理回路上で実行し、論理シミュレーシ
ョン実行結果1005(図10(f))をデータ記憶部
822に出力する。この論理シミュレーション実行結果
1005は、テストプログラム1001を論理シミュレ
ーション実行終了した時に、レジスタFR0,FR1,
FR2,FR3,FR7各々に格納されている値を含む
ものである。
In step S 903, the logic simulation executing means 803 executes the test program 1
001 is executed on the logic circuit under test by logic simulation using a logic simulator, and a logic simulation execution result 1005 (FIG. 10F) is output to the data storage unit 822. The logic simulation execution result 1005 indicates that the registers FR0, FR1,
It contains the values stored in FR2, FR3, and FR7, respectively.

【0066】次に、ステップS904において、ステッ
プS902で生成した期待値1003、及びステップS
903で生成した論理シミュレーション実行結果100
5を比較する。そして前記期待値1003と前記論理シ
ミュレーション実行結果1005とが一致している場合
はステップS905に進み、一致していない場合は一連
の処理を終了する。この期待値比較方法については実施
の形態1と同様であり、本実施の形態3では全ての値が
一致しているので、ステップS905に進む。
Next, in step S904, the expected value 1003 generated in step S902 and the
Logic simulation execution result 100 generated in 903
Compare 5 If the expected value 1003 and the logic simulation execution result 1005 match, the process proceeds to step S905, and if they do not match, a series of processes ends. This expected value comparison method is the same as in the first embodiment. In the third embodiment, all the values match, so the process proceeds to step S905.

【0067】次に、ステップS905において、検証済
みパターン履歴情報更新手段805により、検証済みパ
ターン履歴情報1004の更新を行い、更新後の検証済
みパターン履歴情報1006(図10(g))を得る。
具体的には、本実施の形態3のテストプログラム100
1では、検証済みパターン履歴情報1004(図10
(e))に含まれる8つのレジスタのうち、FR0,F
R7,FR1,FR3,FR2の5つのレジスタが検証
されたので、それぞれ対応したレジスタのフラグを検証
済み(1)へと更新し、更新後の検証済みパターン履歴
情報1006を得る。なお以上で一連の検証処理を終了
するが、例えば上記一連の検証処理を指定された回数等
のある終了条件まで繰り返し実行しても良い。
Next, in step S905, the verified pattern history information updating means 805 updates the verified pattern history information 1004 to obtain updated verified pattern history information 1006 (FIG. 10 (g)).
Specifically, the test program 100 of the third embodiment
In FIG. 1, verified pattern history information 1004 (FIG. 10)
Among the eight registers included in (e)), FR0, F0
Since the five registers R7, FR1, FR3 and FR2 have been verified, the flags of the corresponding registers are updated to verified (1), and the updated verified pattern history information 1006 is obtained. Note that the series of verification processing is completed as described above. For example, the series of verification processing may be repeatedly performed up to a certain end condition such as a designated number of times.

【0068】以上のように本実施の形態3によれば、乱
数を用いて生成されたテストプログラムに含まれる新規
リソース(未検証項目)数を、ソフトウエアシミュレー
ション実行結果から計算し、生成されたテストプログラ
ムに含まれる新規リソース数が少ない(検証済みパター
ンが多い)場合には、別のテストプログラムを再生成す
るようにしたので、重複したリソースを多く含むテスト
プログラムを検証速度の遅い論理シミュレータ上で実行
することによる検証時間の増加を抑えることが可能とな
る。
As described above, according to the third embodiment, the number of new resources (unverified items) included in the test program generated by using random numbers is calculated from the result of executing the software simulation and generated. When the number of new resources included in the test program is small (the number of verified patterns is large), another test program is regenerated, so that a test program containing many duplicate resources can be executed on a logic simulator with a low verification speed. , It is possible to suppress an increase in the verification time due to the execution of the process.

【0069】(実施の形態4)以下、図11から図13
を用いて、本発明の実施の形態4について説明する。乱
数を用いてテストプログラムを生成する場合、生成させ
る命令にループ処理を発生させる命令や分岐命令が含ま
れていると、同じ命令が無限に(又は多数回)繰り返し
実行されるようなテストプログラムが生成されることが
ある。こういったテストプログラムを用いて検証を行う
と、一部の命令(パターン)が繰り返し実行されるだけ
であり、検証効率が悪化する。本実施の形態4では、テ
ストプログラム中の命令実行回数をカウントすること
で、同じ命令が無限に(又は多数回)繰り返し実行され
るようなテストプログラムを論理シミュレータ上で実行
させないようにするものである。
Embodiment 4 Hereinafter, FIGS. 11 to 13
The fourth embodiment of the present invention will be described with reference to FIG. When generating a test program using random numbers, if an instruction to be generated includes an instruction that causes loop processing or a branch instruction, a test program in which the same instruction is repeatedly executed indefinitely (or many times) is generated. May be generated. When verification is performed using such a test program, only some instructions (patterns) are repeatedly executed, and the verification efficiency deteriorates. In the fourth embodiment, by counting the number of instruction executions in a test program, a test program in which the same instruction is repeatedly executed indefinitely (or many times) is prevented from being executed on a logic simulator. is there.

【0070】まず、図11を用いて、本実施の形態4に
おける、論理回路検証装置の構成について説明する。図
11は、本実施の形態4における、論理回路検証装置の
構成を示すブロック図である。図11において、110
7はテストプログラム生成手段1100によって生成さ
れたテストプログラムを用いて、ソフトウエアシミュレ
ーション実行手段1101で得たソフトウエアシミュレ
ーション実行結果1125を基に、前記テストプログラ
ムに含まれる各命令の実行回数をカウントする命令実行
回数カウント手段、1102は前記命令実行回数カウン
ト手段1107でカウントした各命令の実行回数がある
閾値より小さいかどうかを判定する命令実行回数判定手
段であり、上述した命令実行回数カウント手段110
7、及び命令実行回数判定手段1102からなる、前記
テストプログラムを用いた検証を実行するかどうかを判
定する検証実行判定手段1108は、各命令の実行回数
が該閾値より小さい場合は論理シミュレーション実行手
段1103において前記テストプログラムを用いた被試
験論理回路の検証を実行し、各命令の実行回数が該閾値
以上の場合は前記テストプログラム生成手段1100に
より別のテストプログラムを生成すると判定するもので
ある。なお、その他の構成は実施の形態1と同様である
ため、ここでは説明を省略する。
First, the configuration of the logic circuit verification device according to the fourth embodiment will be described with reference to FIG. FIG. 11 is a block diagram illustrating a configuration of a logic circuit verification device according to the fourth embodiment. In FIG. 11, 110
7 counts the number of executions of each instruction included in the test program based on the software simulation execution result 1125 obtained by the software simulation execution unit 1101, using the test program generated by the test program generation unit 1100. Instruction execution number counting means 1102 is an instruction execution number determination means for determining whether or not the number of executions of each instruction counted by the instruction execution number counting means 1107 is smaller than a certain threshold value.
7. The verification execution determining means 1108 for determining whether or not to execute the verification using the test program, comprising the instruction execution number determining means 1102 and the logic simulation executing means when the execution number of each instruction is smaller than the threshold. In step 1103, the test circuit is verified using the test program. If the number of executions of each instruction is equal to or greater than the threshold, the test program generation unit 1100 determines that another test program is to be generated. The other configuration is the same as that of the first embodiment, and the description is omitted here.

【0071】以下、図12のフローチャートに従って、
本実施の形態4における論理回路検証装置の処理動作に
ついて、図13を参照しながら説明する。図12は、本
実施の形態4における論理回路検証装置の一連の処理動
作を示すフローチャートであり、図13は、本実施の形
態4における論理回路検証方法の各手段による出力例で
ある。
Hereinafter, according to the flowchart of FIG.
The processing operation of the logic circuit verification device according to the fourth embodiment will be described with reference to FIG. FIG. 12 is a flowchart showing a series of processing operations of the logic circuit verification device according to the fourth embodiment. FIG. 13 is an output example of each unit of the logic circuit verification method according to the fourth embodiment.

【0072】本実施の形態4では、まず、ステップS1
200おいて、テストプログラム生成手段1100によ
り、乱数発生器(図示せず)から出力される乱数、及び
被試験論理回路の試験命令情報1300(図13
(a))を用いて、テストプログラム1301(図13
(b))を生成してデータ記憶部1122に出力する。
このテストプログラム生成方法については、実施の形態
1と同様である。
In the fourth embodiment, first, in step S1
At 200, the test program generating means 1100 outputs a random number output from a random number generator (not shown) and test instruction information 1300 of the logic circuit under test (see FIG. 13).
(A)), the test program 1301 (FIG. 13)
(B)) is generated and output to the data storage unit 1122.
This test program generation method is the same as in the first embodiment.

【0073】次に、ステップS1201において、ソフ
トウエアシミュレーション実行手段1201により、ス
テップS1200で生成されたテストプログラム130
1をソフトウエアシミュレータ上で実行し、実行された
命令に関する情報であるソフトウエアシミュレーション
実行結果1302(図13(c))を得てデータ記憶部
1122に出力する。本実施の形態4では、テストプロ
グラム1301に含まれる5つの命令のうち、最初の2
つの命令“SET FR0,1”、“SETLC0,
3”が実行された後、その後の2つの命令“SUB F
R2,FR0,1”、“AND FR4,FR0,1”
を3回繰り返し実行し、その後最後の命令“ADD F
R1,FR0,1”が実行されるものとする。また本実
施の形態4では、本ステップS1201で実行するソフ
トウエアシミュレーションにより、後述するステップS
1204で使用する期待値1303(図13(d))を
生成してデータ記憶部1122に出力する。
Next, in step S1201, the software simulation executing means 1201 generates the test program 130 generated in step S1200.
1 is executed on a software simulator, and a software simulation execution result 1302 (FIG. 13C) as information on the executed instruction is obtained and output to the data storage unit 1122. In the fourth embodiment, of the five instructions included in test program 1301, the first two
Instructions “SET FR0,1”, “SETLC0,
3 "is executed, and then two instructions" SUB F
R2, FR0, 1 "," AND FR4, FR0, 1 "
Is repeated three times, and then the last instruction “ADD F
R1, FR0, 1 "are executed. In the fourth embodiment, the software simulation executed in step S1201 performs the following step S1201.
An expected value 1303 (FIG. 13D) used in step 1204 is generated and output to the data storage unit 1122.

【0074】次に、ステップS1207において、命令
実行回数カウント手段1107により、前記ソフトウエ
アシミュレーション実行結果1302を用いて、前記テ
ストプログラム1301に含まれる各命令の実行回数を
カウントする。本実施の形態4では、テストプログラム
1301(図13(b))に含まれる5つの命令のう
ち、3つの命令“SET FR0,1”、“SET L
C0,3”、“ADDFR1,FR0,1”が1回実
行、あと2つの命令“SUB FR2,FR0,1”、
“AND FR4,FR0,1”が3回実行されてい
る。
Next, in step S 1207, the number of executions of each instruction included in the test program 1301 is counted by the instruction execution number counting means 1107 using the software simulation execution result 1302. In the fourth embodiment, of the five instructions included in the test program 1301 (FIG. 13B), three instructions “SET FR0,1”, “SET L
C0,3 "," ADDFR1, FR0,1 "executed once, and two more instructions" SUB FR2, FR0,1 ",
"AND FR4, FR0, 1" is executed three times.

【0075】次に、ステップS1202において、命令
実行回数判定手段1102により、ステップS1207
でカウントしたテストプログラム1301に含まれる各
命令の実行回数をある任意の閾値と比較し、前記テスト
プログラム1301を用いた検証を実行するかどうか判
定する。ここで、命令の実行回数が閾値より小さい場合
は、ステップS1203においてテストプログラム13
01を用いて論理シミュレーションを行う。また命令の
実行回数が閾値以上の場合には、ステップS1200に
戻り、テストプログラム生成手段1100により別のテ
ストプログラムを生成する。ここで具体的に本実施の形
態4では閾値を3とすると、テストプログラム1301
に含まれる2つの命令“SUB FR2,FR0,
1”、“AND FR4,FR0,1”の実行回数
(3)は閾値(3)以上であるため、テストプログラム
生成ステップS1200で別のテストプログラム130
4(図13(e))を再生成し、ステップS1201に
おいて再生成されたテストプログラム1304を用いて
ソフトウエアシミュレーションを実行し、ソフトウエア
シミュレーション実行結果1305(図13(f))、
及び期待値1306(図13(g))を得てデータ記憶
部1122に出力する。そして、ステップS1207に
おいて、再生成されたテストプログラム1304に含ま
れる各命令の実行回数をカウントする。ここでは、テス
トプログラム1304に含まれる5つの命令うち、3つ
の命令“SET FR0,1”、“SUB FR2,F
R0,1”、“SET LC0,2”が1回実行、あと
2つの命令“AND FR4,FR0,1”、“ADD
FR1,FR0,1”が2回実行されている。そし
て、再びステップS1202において、命令実行回数判
定手段1102により、ステップS1207でカウント
した再生成されたテストプログラム1304に含まれる
各命令の実行回数を前記閾値(3)と比較し、該テスト
プログラム1304を用いた検証を実行するかどうかを
判定する。この場合、テストプログラム1304に含ま
れる5つの命令それぞれの実行回数が全て閾値(3)よ
り小さいためステップS1203に進み、再生成された
テストプログラム1304を用いて論理シミュレーショ
ンを実行する。この後のステップS1203からステッ
プS1205における処理は、実施の形態1と同様であ
る。
Next, in step S1202, the instruction execution count determining means 1102 executes step S1207.
By comparing the number of executions of each instruction included in the test program 1301 counted in the above with an arbitrary threshold value, it is determined whether or not to execute the verification using the test program 1301. If the number of executions of the instruction is smaller than the threshold, the test program 13 is executed in step S1203.
A logic simulation is performed by using 01. If the number of executions of the instruction is equal to or more than the threshold, the process returns to step S1200, and another test program is generated by the test program generation unit 1100. Here, specifically, in the fourth embodiment, assuming that the threshold value is 3, the test program 1301
SUB FR2, FR0,
Since the number of executions (3) of “1” and “AND FR4, FR0, 1” is equal to or greater than the threshold (3), another test program 130 is executed in the test program generation step S1200.
4 (FIG. 13E), a software simulation is executed using the test program 1304 regenerated in step S1201, and a software simulation execution result 1305 (FIG. 13F)
And an expected value 1306 (FIG. 13 (g)) and output it to the data storage unit 1122. Then, in step S1207, the number of executions of each instruction included in the regenerated test program 1304 is counted. Here, of the five instructions included in the test program 1304, three instructions “SET FR0,1”, “SUB FR2, F”
R0,1 "and" SET LC0,2 "are executed once, and the other two instructions" AND FR4, FR0,1 "," ADD
FR1, FR0, 1 "are executed twice. Then, again in step S1202, the instruction execution count determining means 1102 determines the number of executions of each instruction included in the regenerated test program 1304 counted in step S1207. It is compared with the threshold value (3) to determine whether to execute the verification using the test program 1304. In this case, the number of executions of each of the five instructions included in the test program 1304 is smaller than the threshold value (3). Therefore, the process proceeds to step S1203, where a logic simulation is performed using the regenerated test program 1304. The subsequent processes from step S1203 to step S1205 are the same as those in the first embodiment.

【0076】以上のように本実施の形態4によれば、乱
数を用いて生成されたテストプログラムに含まれる各命
令の実行回数を、ソフトウエアシミュレーション実行結
果から計算し、同一命令を多数回繰り返し実行するよう
なテストプログラムの場合には、別のテストプログラム
を再生成するようにしたので、同一命令を繰り返し実行
するテストプログラムを検証速度の遅い論理シミュレー
タ上で実行することによる検証時間の増加を抑えること
が可能となる。
As described above, according to the fourth embodiment, the number of executions of each instruction included in the test program generated by using the random numbers is calculated from the software simulation execution result, and the same instruction is repeated many times. In the case of a test program to be executed, another test program is regenerated. It can be suppressed.

【0077】(実施の形態5)以下、図33から図35
を用いて、本発明の実施の形態5について説明する。被
試験論理回路が、例えばそれぞれの命令A、命令Bは単
独では実行可能であるが、これらの命令を連続で実行す
ることはできないという制約をもつ場合、該被試験論理
回路において命令A,Bを連続で実行するパターンを含
むテストプログラムを用いて検証を実行すると正常に動
作せず、検証結果はエラーとなる。このエラーの原因
は、前記被試験論理回路の仕様であって、テストプログ
ラムのエラーではないのだが、エラー検出された時点で
はそのエラー原因がわからないため、上述したような場
合でエラーになった場合でも検証者はエラー解析を行わ
なければならず、効率が悪化していた。また、このよう
なエラーを回避するため命令を生成する際に命令A,B
を連続で生成しない制約をつける方法もあるのだが、テ
ストプログラム内に分岐命令が含まれていたり、割り込
み処理等を加味した検証を行う場合には、実行される命
令は生成された命令順序通りでは無くなるので、上記方
法でこれらの制約を完全に満たすのは困難である。そこ
で本実施の形態5では、ソフトウエアシミュレーション
実行結果に、検証項目外パターン情報(ここでは命令
A,B連続実行)が含まれるかどうかを解析し、含まれ
る場合には別のテストプログラムを生成するようにする
ものである。
(Embodiment 5) Hereinafter, FIGS. 33 to 35
The fifth embodiment of the present invention will be described with reference to FIG. If the logic circuit under test has a restriction that, for example, each of the instructions A and B can be executed alone but these instructions cannot be executed consecutively, the instructions A and B in the logic circuit under test If the verification is executed using a test program including a pattern for continuously executing the verification, the operation does not operate normally, and the verification result becomes an error. The cause of this error is the specification of the logic circuit under test, not a test program error.However, when the error is detected, the cause of the error is not known. However, the verifier had to perform an error analysis, which reduced efficiency. In order to avoid such an error, when instructions are generated, instructions A, B
There is also a method to add a constraint that does not generate consecutively, but if the test program contains a branch instruction or performs verification taking into account interrupt processing, etc., the executed instructions will be in the generated instruction order However, it is difficult to completely satisfy these restrictions by the above method. Therefore, in the fifth embodiment, it is analyzed whether the software simulation execution result includes pattern information outside verification items (in this case, instructions A and B are continuously executed), and if so, another test program is generated. It is something to do.

【0078】まず、図33を用いて、本実施の形態5に
おける、論理回路検証装置の構成について説明する。図
33は、本発明の実施の形態5における、論理回路検証
装置の構成を説明する図である。
First, the configuration of the logic circuit verification device according to the fifth embodiment will be described with reference to FIG. FIG. 33 is a diagram illustrating a configuration of a logic circuit verification device according to the fifth embodiment of the present invention.

【0079】図33において、3307は、ソフトウエ
アシミュレーション実行手段3301で出力されたソフ
トウエアシミュレーション実行結果3325、及び検証
を行わないパターンに関する情報である検証項目外パタ
ーン情報3327により、テストプログラム生成手段3
300で生成されたテストプログラム3323に、検証
を行わないパターンが含まれるかどうかを解析する検証
項目外パターン解析手段であり、該検証項目外パターン
解析手段3307からなる、前記テストプログラムを用
いた検証を行うかどうか判定する検証実行判定手段33
08は、前記テストプログラム3323に検証を行わな
いパターンが含まれていない場合には、論理シミュレー
ション実行手段3303において前記テストプログラム
3323を用いた被試験論理回路の検証を実行し、検証
を行わないパターンが含まれている場合には、テストプ
ログラム生成手段3300において別のテストプログラ
ムを生成すると判定するものである。なお、その他の構
成は実施の形態1と同様であるため、ここでは説明を省
略する。
In FIG. 33, reference numeral 3307 denotes a test program generation unit 3 based on the software simulation execution result 3325 output from the software simulation execution unit 3301 and the non-verification item pattern information 3327 which is information on a pattern not to be verified.
A non-verification item pattern analysis unit that analyzes whether or not the test program 3323 generated in 300 includes a pattern that is not to be verified. The verification using the test program includes the non-verification item pattern analysis unit 3307. Verification execution determining means 33 for determining whether or not to perform
08, if the test program 3323 does not include a pattern not to be verified, the logic simulation executing means 3303 executes verification of the logic circuit under test using the test program 3323, Is included, the test program generation means 3300 determines to generate another test program. The other configuration is the same as that of the first embodiment, and the description is omitted here.

【0080】以下、図34のフローチャートに従って、
本実施の形態5における論理回路検証装置の処理動作に
ついて、図35を参照しながら説明する。図34は、本
実施の形態5における論理回路検証装置の一連の処理動
作を示すフローチャートであり、図36は、本実施の形
態5における論理回路検証方法の各手段による出力例で
ある。
Hereinafter, according to the flowchart of FIG.
The processing operation of the logic circuit verification device according to the fifth embodiment will be described with reference to FIG. FIG. 34 is a flowchart showing a series of processing operations of the logic circuit verification device according to the fifth embodiment, and FIG. 36 is an output example of each unit of the logic circuit verification method according to the fifth embodiment.

【0081】本実施の形態5では、まずステップS34
00において、テストプログラム生成手段3300によ
り、テストプログラム3501(図35(a))を生成
し、次にステップS3401において、ソフトウエアシ
ミュレーション実行手段3301により、テストプログ
ラム3501をソフトシミュレータ上で実行し、ソフト
ウエアシミュレーション実行結果3502(図35
(b))を出力する。以上の処理は実施の形態1と同様
である。
In the fifth embodiment, first, at step S34
At 00, the test program 3501 (FIG. 35A) is generated by the test program generating means 3300, and then, at step S3401, the software simulation executing means 3301 executes the test program 3501 on a software simulator, and Wear simulation execution result 3502 (FIG. 35)
(B)) is output. The above processing is the same as in the first embodiment.

【0082】次にステップS3402において、検証項
目外パターン解析手段3307により、ステップS34
01で出力されたソフトウエアシミュレーション実行結
果3502、及び検証を行わないパターンに関する情報
である検証項目外パターン情報3503(図35
(c))より、テストプログラム3501に検証項目外
パターンが含まれるかどうかを解析する。ここで検証項
目外パターンがテストプログラムに含まれていない場合
は、ステップS3403においてテストプログラム35
01を用いて論理シミュレーションを行う。また検証項
目外パターンがテストプログラムに含まれている場合に
はステップS3400に戻り、テストプログラム生成手
段3300により別のテストプログラムを生成する。こ
こで具体的に本実施の形態5では、検証項目外パターン
として、“ADD”命令の後に“SUB”命令が実行さ
れるパターンが検証項目外パターン情報3503(図3
5(c))に設定されているものとする。このときのソ
フトウエアシミュレーション実行結果3502により、
実行命令を解析すると、最初に“SET”命令、次に
“SUB”命令、“ADD”命令、“SUB”命令、
“MVD”命令が実行されていることがわかる。この結
果、検証項目外パターンである”ADD”、”SUB”
命令の連続実行がテストプログラム3501に含まれる
ため、再度ステップS3400戻り別のテストプログラ
ムを生成する。以上に示したステップS3400からス
テップS3402までの処理を検証項目外パターンが含
まれないテストプロラムが生成されるまで繰り返し、検
証項目外パターンを含まないテストプログラムが生成さ
れた場合ステップS3403に進み、該生成されたテス
トプログラムを用いて論理シミュレーションを実行す
る。この後のステップS3403からステップS340
5における処理は、実施の形態1と同様である。
Next, in step S3402, the non-verification item pattern analysis means 3307 executes step S34.
01 and the non-verification item pattern information 3503 (FIG. 35) which are information on the software simulation execution result 3502 output in step S01 and the pattern not to be verified.
From (c)), it is analyzed whether or not the test program 3501 includes a pattern outside the verification item. Here, if the pattern outside the verification item is not included in the test program, in step S3403 the test program 35
A logic simulation is performed by using 01. If a pattern outside the verification item is included in the test program, the process returns to step S3400, and another test program is generated by the test program generation unit 3300. Here, specifically, in the fifth embodiment, the pattern in which the “SUB” instruction is executed after the “ADD” instruction is the non-verification item pattern information 3503 (FIG. 3).
5 (c)). From the software simulation execution result 3502 at this time,
When the execution instruction is analyzed, first the “SET” instruction, then the “SUB” instruction, the “ADD” instruction, the “SUB” instruction,
It can be seen that the “MVD” instruction is being executed. As a result, “ADD”, “SUB”, which are patterns outside the verification items,
Since the continuous execution of instructions is included in the test program 3501, the process returns to step S3400 again to generate another test program. The processing from step S3400 to step S3402 described above is repeated until a test program not including the pattern outside the verification item is generated. If a test program not including the pattern outside the verification item is generated, the process proceeds to step S3403. A logic simulation is performed using the generated test program. Steps S3403 to S340 after this
The processing in 5 is the same as in the first embodiment.

【0083】以上のように本実施の形態5によれば、乱
数を用いて生成されたテストプログラムに、予め設定さ
れた検証項目該パターンが含まれているがどうかを解析
し、前記テストプログラムに検証項目外パターンが含ま
れなくなるまで別のテストプログラムを再生成するよう
にしたので、被試験論理回路の仕様が原因で該被試験論
理回路が異常動作することによるエラーがなくなり、検
証効率を向上させることが可能となる。
As described above, according to the fifth embodiment, it is analyzed whether or not the test program generated by using the random numbers includes the predetermined verification item and the pattern. Since another test program is regenerated until the pattern outside the verification item is no longer included, errors due to abnormal operation of the logic circuit under test due to the specifications of the logic circuit under test are eliminated, and verification efficiency is improved. It is possible to do.

【0084】(実施の形態6)以下、図14から図16
を用いて、本発明の実施の形態6について説明する。ま
ず、図14を用いて、本実施の形態6における、論理回
路検証装置の構成について説明する。図14は、本発明
の実施の形態6における、論理回路検証装置の構成を示
すブロック図である。
Embodiment 6 Hereinafter, FIGS. 14 to 16
The sixth embodiment of the present invention will be described with reference to FIG. First, the configuration of the logic circuit verification device according to the sixth embodiment will be described with reference to FIG. FIG. 14 is a block diagram showing a configuration of a logic circuit verification device according to the sixth embodiment of the present invention.

【0085】図14において、1401はテストプログ
ラム生成手段1400で生成されたテストプログラム1
423をあらかじめ設定された終了条件でソフトウエア
シミュレータ上で実行し、そのソフトウエアシミュレー
ション実行結果1425をデータ記憶部1422に出力
するソフトウエアシミュレーション実行手段であり、1
409は前記ソフトウエアシミュレーション実行手段1
401で出力されたソフトウエアシミュレーション実行
結果1425よりシミュレーション終了状態を解析する
シミュレーション終了状態解析手段であり、前記シミュ
レーション終了状態が所望の終了状態ではなかった場
合、再度異なる終了条件でソフトウエアシミュレーショ
ンを実行するものである。また1410は前記シミュレ
ーション終了状態解析手段1409でシミュレーション
の終了条件が変更された場合に、変更後の終了条件を論
理シミュレーション実行手段1403における論理シミ
ュレーションの終了条件に設定する論理シミュレーショ
ン終了条件設定手段である。なお、その他の構成は実施
の形態1と同様であるため、ここでは説明を省略する。
In FIG. 14, reference numeral 1401 denotes a test program 1 generated by the test program generation means 1400.
423 is a software simulation execution unit that executes 423 on a software simulator under preset termination conditions and outputs a software simulation execution result 1425 to the data storage unit 1422.
409 is the software simulation executing means 1
A simulation end state analysis means for analyzing a simulation end state from the software simulation execution result 1425 output in 401. If the simulation end state is not a desired end state, the software simulation is executed again under different end conditions. Is what you do. Reference numeral 1410 denotes a logic simulation end condition setting unit that sets the changed end condition to the logic simulation end condition in the logic simulation execution unit 1403 when the simulation end condition is changed by the simulation end state analysis unit 1409. . The other configuration is the same as that of the first embodiment, and the description is omitted here.

【0086】以下、図15のフローチャートに従って、
本実施の形態6における論理回路検証装置の処理動作つ
いて、図16を参照しながら説明する。図15は、本実
施の形態6における、論理回路検証装置の一連の処理動
作を示すフローチャートであり、図16は、本実施の形
態6における論理回路検証方法の各手段による出力例で
ある。
Hereinafter, according to the flowchart of FIG.
The processing operation of the logic circuit verification device according to the sixth embodiment will be described with reference to FIG. FIG. 15 is a flowchart showing a series of processing operations of the logic circuit verification device according to the sixth embodiment, and FIG. 16 is an output example of each unit of the logic circuit verification method according to the sixth embodiment.

【0087】本実施の形態6では、まずステップS15
00において、テストプログラム生成手段1400によ
り、乱数発生器(図示せず)から出力される乱数、及び
図16(a)に示す被試験論理回路の試験命令情報16
00を用いて、図16(b)に示すテストプログラム1
601を生成し、データ記憶部1422に出力する。こ
のテストプログラム生成方法は、実施の形態1と同様で
ある。
In the sixth embodiment, first, at step S15
At 00, the test program generating means 1400 outputs the random number output from the random number generator (not shown) and the test instruction information 16 of the logic circuit under test shown in FIG.
The test program 1 shown in FIG.
601 is generated and output to the data storage unit 1422. This test program generation method is the same as in the first embodiment.

【0088】次に、ステップS1501において、ソフ
トウエアシミュレーション実行手段1401により、ス
テップS1500で生成されたテストプログラム160
1をソフトウエアシミュレータ上で実行し、実行された
命令に関する情報であるソフトウエアシミュレーション
実行結果1602(図16(c))を生成し、データ記
憶部1422に出力する。このソフトウエアシミュレー
ション実行結果1602は、図16(c)に示すよう
に、実行された命令とその命令の実行が完全に終了した
かどうかを示すフラグ(0:実行途中、1:実行終了)
を含むものである。本実施の形態6では、テストプログ
ラム1601に含まれる命令のうち4つの命令“SET
FR0,1”、“MVD FR7,FR0”、“AD
D FR1,FR0,1”、“AND FR4,FR
0,1”は1シミュレーションサイクルで実行、“MP
Y FR8,FR0,1”は2シミュレーションサイク
ルで実行されるものとし、シミュレーションの終了条件
は4シミュレーションサイクル実行後にシミュレーショ
ンを終了するという設定がされているものとする。また
本実施の形態6では、本ステップS1501で実行する
ソフトウエアシミュレーションにより、後述するステッ
プS1504で使用する期待値1603(図16
(d))を生成し、データ記憶部1422に出力する。
Next, in step S1501, the software simulation executing means 1401 generates the test program 160 generated in step S1500.
1 is executed on the software simulator, a software simulation execution result 1602 (FIG. 16C), which is information on the executed instruction, is generated and output to the data storage unit 1422. As shown in FIG. 16C, the software simulation execution result 1602 indicates the executed instruction and a flag indicating whether the execution of the instruction has been completely completed (0: midway execution, 1: end of execution).
Is included. In the sixth embodiment, of the instructions included in the test program 1601, four instructions “SET
FR0, 1 "," MVD FR7, FR0 "," AD
D FR1, FR0, 1 "," AND FR4, FR
"0,1" is executed in one simulation cycle, and "MP
Y FR8, FR0, 1 "are executed in two simulation cycles, and the simulation end condition is set to end the simulation after the execution of four simulation cycles. In the sixth embodiment, By the software simulation executed in step S1501, an expected value 1603 (FIG. 16) used in step S1504 described below is used.
(D)) is generated and output to the data storage unit 1422.

【0089】次に、ステップS1509において、シミ
ュレーション終了状態解析手段1409により、ステッ
プS1501で得られたソフトウエアシミュレーション
実行結果1602を解析して、シミュレーション終了状
態が所望の終了状態かどうか判定する。そして前記シミ
ュレーション終了状態が所望の終了状態ではない場合は
ステップS1501に戻り、再度異なる終了条件でソフ
トウエアシミュレーションを行う。具体的に本実施の形
態6では、所望の終了状態をある命令の実行が完全に終
了した状態でシミュレーションが終了した場合とする
と、ソフトウエアシミュレーション実行結果1602
(図16(c))から、シミュレーションが“MPY
FR8,FR0,1”命令の実行途中で終了しているの
で、終了条件を5シミュレーションサイクル実行後にシ
ミュレーションを終了するという設定に変更して、再度
ステップS1501にてソフトウエアシミュレーション
実行手段1401により、ソフトウエアシミュレーショ
ンを実行し、ソフトウエアシミュレーション実行結果1
604(図16(e))、及び期待値1605(図16
(f))を生成して、データ記憶部1422に出力す
る。なおこの終了条件の設定は、最初設定されているシ
ミュレーションサイクル数(ここでは4シミュレーショ
ンサイクル)に対して、任意の数足したり、減らしたり
するなど(ここでは1サイクル足した5シミュレーショ
ンサイクル)して、該終了条件の設定変更をする。そし
て、ステップS1509において、ソフトウエアシミュ
レーション実行結果1605(図16(e))からシミ
ュレーション終了状態を解析し、ここでは設定しなおさ
れた終了条件で、前記テストプログラム1601を用い
てステップS1501で実行された4つの命令が完全に
終了しているので、ステップS1507へ移る。
Next, in step S1509, the simulation end state analysis means 1409 analyzes the software simulation execution result 1602 obtained in step S1501, and determines whether the simulation end state is a desired end state. If the simulation end state is not the desired end state, the process returns to step S1501, and the software simulation is performed again under different end conditions. Specifically, in the sixth embodiment, assuming that the simulation is terminated in a state where execution of a certain instruction is completely terminated, the software simulation execution result 1602
(FIG. 16 (c)) shows that the simulation is “MPY
Since the FR8, FR0, 1 "instruction has been terminated in the middle of execution, the termination condition is changed to a setting of terminating the simulation after executing five simulation cycles, and the software simulation execution means 1401 again executes the software in step S1501. Execute software simulation and execute software simulation result 1
604 (FIG. 16E) and expected value 1605 (FIG.
(F)) is generated and output to the data storage unit 1422. The end condition is set by adding or reducing an arbitrary number (here, one simulation cycle is added to five simulation cycles) to the initially set number of simulation cycles (here, four simulation cycles). Then, the setting of the end condition is changed. Then, in step S1509, the simulation end state is analyzed from the software simulation execution result 1605 (FIG. 16E), and the simulation is executed in step S1501 using the test program 1601 under the reset end condition set here. Since the four instructions have been completely completed, the process moves to step S1507.

【0090】次に、ステップS1507において、新規
パターン数カウント手段1407により、ソフトウエア
シミュレーション実行結果1604、及び検証済みパタ
ーン履歴情報1606(図16(g))を用いて、テス
トプログラム1601に含まれる新規パターン数をカウ
ントする。この新規パターン数カウント方法は、実施の
形態1と同様であり、本実施の形態6において新規パタ
ーン数は3となる。
Next, in step S1507, the new pattern number counting means 1407 uses the software simulation execution result 1604 and the verified pattern history information 1606 (FIG. 16 (g)) to generate a new pattern included in the test program 1601. Count the number of patterns. This new pattern number counting method is the same as that of the first embodiment, and the number of new patterns is 3 in the sixth embodiment.

【0091】次に、ステップS1502において、新規
パターン数判定手段1402より、ステップS1507
でカウントしたテストプログラム1601に含まれる新
規パターン数をある任意の閾値と比較し、テストプログ
ラム1601を用いた検証を実行するかどうか判定す
る。新規パターン数が閾値以上の場合はテストプログラ
ム1601を用いてステップS1503において論理シ
ミュレーションを行う。また新規パターン数が閾値より
小さい場合には、ステップS1500で別のテストプロ
グラムを生成する。具体的に本実施の形態6では閾値を
3とすると、ステップS1507で求めた新規パターン
数(3)は前記閾値(3)以上であるため、ステップS
1503において、論理シミュレーション実行手段14
03により、テストプログラム1601を用いた論理シ
ミュレーションを実行する。
Next, in step S1502, the new pattern number determination means 1402 determines whether or not the number of new patterns has reached step S1507.
By comparing the number of new patterns included in the test program 1601 counted in the above with an arbitrary threshold value, it is determined whether or not the verification using the test program 1601 is executed. If the number of new patterns is equal to or larger than the threshold, a logic simulation is performed in step S1503 using the test program 1601. If the number of new patterns is smaller than the threshold, another test program is generated in step S1500. Specifically, in the sixth embodiment, when the threshold is set to 3, the number of new patterns (3) obtained in step S1507 is equal to or larger than the threshold (3).
In 1503, the logic simulation executing means 14
03, a logic simulation using the test program 1601 is executed.

【0092】ただし、ステップS1503にて論理シミ
ュレーションを実行する前に、ステップS1510にお
いて、論理シミュレーション終了条件設定手段1410
により、ステップS1509で変更された終了条件(5
シミュレーションサイクル実行後にシミュレーションを
終了)を、後述するステップS1503で行う論理シミ
ュレーションの終了条件に設定する。この後のステップ
S1503からステップS1505の処理動作は、実施
の形態1と同様である。
However, before executing the logic simulation in step S1503, in step S1510, the logic simulation end condition setting means 1410
As a result, the end condition (5
(End simulation after execution of simulation cycle) is set as an end condition of the logic simulation performed in step S1503 described later. Subsequent processing operations in steps S1503 to S1505 are the same as those in the first embodiment.

【0093】以上のように本実施の形態6によれば、乱
数を用いて生成されたテストプログラムを用いて検証を
行う場合、ソフトウエアシミュレーションにおけるシミ
ュレーション終了状態が所望の終了状態でなかった時
に、自動的に再度異なる終了条件を設定して、所望の終
了状態になるまでソフトウエアシミュレーションを実行
するようにしたので、期待値比較をするには不適当な、
例えば複数サイクル命令実行途中でシミュレーションが
終了するような検証を回避することが可能となる。また
所望の終了状態に変更された終了条件を論理シミュレー
ションの終了条件に自動的に反映して検証を行うように
したので、ソフトウエアシミュレーションで出力する実
行結果と、論理シミュレーションで出力する実行結果と
が、終了条件を変更することによってずれないようにす
ることが可能となる。
As described above, according to the sixth embodiment, when verification is performed using a test program generated using random numbers, when the simulation end state in the software simulation is not the desired end state, Since different end conditions are automatically set again and the software simulation is executed until a desired end state is obtained, it is inappropriate to compare expected values.
For example, it is possible to avoid verification in which the simulation is completed during the execution of a plurality of cycle instructions. In addition, since the end condition changed to the desired end state is automatically reflected in the end condition of the logic simulation for the verification, the execution result output by the software simulation and the execution result output by the logic simulation are compared. Can be prevented from shifting by changing the termination condition.

【0094】(実施の形態7)以下、図17から図19
を用いて、本発明の実施の形態7について説明する。ま
ず、図17を用いて、本実施の形態7における、論理回
路検証装置の構成について説明する。図17は、本実施
の形態7における、論理回路検証装置の構成を示すブロ
ック図である。
(Embodiment 7) Hereinafter, FIGS.
The seventh embodiment of the present invention will be described with reference to FIG. First, the configuration of the logic circuit verification device according to the seventh embodiment will be described with reference to FIG. FIG. 17 is a block diagram illustrating a configuration of a logic circuit verification device according to the seventh embodiment.

【0095】図17において、1709は検証済みパタ
ーンに関する情報である検証済みパターン履歴情報17
06をデータ記憶部1722に記録する場合に、該デー
タ記憶部上に必要なサイズを設定された検証項目数から
算出する検証済みパターン履歴情報サイズ計算手段であ
り、1710は前記検証済みパターン履歴情報1706
を記録するデータ記憶部1722のサイズを検出するデ
ータ記憶部サイズ検出手段であり、1711は前記検証
済みパターン履歴情報サイズ計算手段1709で計算し
た検証済みパターン履歴情報1706を記録するのに必
要なデータ記憶部1722のサイズが、前記データ記憶
部サイズ検出手段1710で検出したデータ記憶部のサ
イズを上回った場合に、警告を検証者に告知し検証を終
了する検証項目数判定手段である。なお、その他の構成
は実施の形態1と同様であるため、ここでは説明を省略
する。
In FIG. 17, reference numeral 1709 denotes verified pattern history information 17 which is information on a verified pattern.
06 is a verified pattern history information size calculating means for calculating a required size on the data storage unit from the set number of verification items when recording 06 in the data storage unit 1722. Reference numeral 1710 denotes the verified pattern history information. 1706
Is a data storage unit size detecting means for detecting the size of the data storage unit 1722 for recording the data. The data required to record the verified pattern history information 1706 calculated by the verified pattern history information size calculating means 1709 is indicated by 1711. When the size of the storage unit 1722 exceeds the size of the data storage unit detected by the data storage unit size detection unit 1710, a warning item is notified to a verifier and verification is terminated. The other configuration is the same as that of the first embodiment, and the description is omitted here.

【0096】次に、図18のフローチャートに従って、
本実施の形態7における論理回路検証装置の処理動作つ
いて、図19を参照しながら説明する。図18は、本実
施の形態7における論理回路検証装置の一連の処理動作
を示すフローチャートであり、図19は、本実施の形態
7における論理回路検証方法の各手段による出力例であ
る。
Next, according to the flowchart of FIG.
The processing operation of the logic circuit verification device according to the seventh embodiment will be described with reference to FIG. FIG. 18 is a flowchart showing a series of processing operations of the logic circuit verification device according to the seventh embodiment, and FIG. 19 is an output example of each unit of the logic circuit verification method according to the seventh embodiment.

【0097】本実施の形態7では、まずステップS18
09において、検証済みパターン履歴情報サイズ計算手
段1709により、検証済みパターンに関する情報であ
る検証済みパターン履歴情報1706のサイズを、設定
された検証項目数から計算する。具体的に本実施の形態
7の第1の例では、図19(a)に示す試験命令情報1
900に含まれる0から7までの8つの全命令が正常に
動作するかどうかを検証項目と設定し、検証済みパター
ン履歴情報1901(図19(b))には、前記試験命
令情報1900に含まれる各命令のインデックス(0〜
7)に対し検証済み(1)か未検証(0)かどうかを示
す1ビットのフラグ情報が含まれるものとする。これに
より、検証済みパターン履歴情報1901のサイズは1
ビット×8(0〜7)=8ビットとなる。
In the seventh embodiment, first, at step S18
In step 09, the verified pattern history information size calculation unit 1709 calculates the size of the verified pattern history information 1706, which is information on the verified pattern, from the set number of verification items. Specifically, in the first example of the seventh embodiment, the test instruction information 1 shown in FIG.
Whether or not all eight instructions from 0 to 7 included in the 900 operate normally is set as a verification item, and the verified pattern history information 1901 (FIG. 19 (b)) includes the test instruction information 1900. Index of each instruction (0 to
For 7), it is assumed that 1-bit flag information indicating whether verified (1) or unverified (0) is included. As a result, the size of the verified pattern history information 1901 is 1
Bit × 8 (0 to 7) = 8 bits.

【0098】次に、ステップS1810において、デー
タ記憶部サイズ検出手段1710により、検証済みパタ
ーン履歴情報1901を記録するデータ記憶部1722
のサイズを検出する。具体的にここでは検証済みパター
ン履歴情報1901を記録するデータ記憶部1722の
サイズを4ビットとする。
Next, in step S1810, the data storage unit size detection means 1710 stores the verified pattern history information 1901 in the data storage unit 1722.
Detect the size of Specifically, here, the size of the data storage unit 1722 for recording the verified pattern history information 1901 is 4 bits.

【0099】次に、ステップS1811において、ステ
ップS1809で計算した検証済みパターン履歴情報1
901のサイズ(8ビット)と、ステップS1810で
検出した検証済みパターン履歴情報1901を記録する
データ記憶部1722のサイズ(4ビット)を比較す
る。この場合、検証済みパターン履歴情報1901のサ
イズがそれを記録するデータ記憶部1722のサイズよ
りも大きいため、データ記憶部1722に検証済みパタ
ーン履歴情報1901を記録することができない。そこ
で検証者に検証項目数が多すぎるとの警告を告知し、検
証を終了する。なお、ここで検出した検証済みパターン
履歴情報を記録するデータ記憶部1722のサイズから
設定可能な検証項目数を逆算して検証者に示すことも可
能である。
Next, in step S1811, the verified pattern history information 1 calculated in step S1809
The size (8 bits) of the data storage unit 901 is compared with the size (4 bits) of the data storage unit 1722 that records the verified pattern history information 1901 detected in step S1810. In this case, the verified pattern history information 1901 cannot be recorded in the data storage unit 1722 because the size of the verified pattern history information 1901 is larger than the size of the data storage unit 1722 that records it. Therefore, a warning is issued to the verifier that the number of verification items is too large, and the verification is terminated. It should be noted that the number of settable verification items can be calculated backward from the size of the data storage unit 1722 for recording the detected verified pattern history information and shown to the verifier.

【0100】また本実施の形態7の第2の例では、図1
9(c)に示す試験命令情報1902に含まれる0から
3までの4つの全命令が正常に動作するかどうかを検証
項目と設定し、検証済みパターン履歴情報1903(図
19(d))には試験命令情報1902に含まれる各命
令のインデックス(0〜3)に対し検証済み(1)か未
検証(0)かどうかを示す1ビットのフラグ情報が含ま
れるものとする。これにより、検証済みパターン履歴情
報1903のサイズは1ビット×4(0〜3)=4ビッ
トとなる。また、ここでは検証済みパターン履歴情報1
902を記録するデータ記憶部1722のサイズを8ビ
ットとする。
Further, in the second example of the seventh embodiment, FIG.
Whether or not all four instructions from 0 to 3 included in the test instruction information 1902 shown in FIG. 9C operate normally is set as a verification item, and is set in the verified pattern history information 1903 (FIG. 19D). Is assumed to include 1-bit flag information indicating whether the index (0-3) of each instruction included in the test instruction information 1902 has been verified (1) or not verified (0). Thus, the size of the verified pattern history information 1903 is 1 bit × 4 (0 to 3) = 4 bits. Also, here, verified pattern history information 1
The size of the data storage unit 1722 for recording 902 is 8 bits.

【0101】次に、ステップS1811において、検証
済みパターン履歴情報1903のサイズ(4ビット)
と、検証済みパターン履歴情報1902を記録するデー
タ記憶部1722のサイズ(8ビット)を比較する。こ
の場合、検証済みパターン履歴情報1903のサイズが
それを記録するデータ記憶部1722のサイズよりも小
さいため、次のステップS1800に移る。以下のステ
ップS1800からステップS1805の処理は、実施
の形態1と同様である。
Next, in step S1811, the size of the verified pattern history information 1903 (4 bits)
And the size (8 bits) of the data storage unit 1722 that records the verified pattern history information 1902. In this case, since the size of the verified pattern history information 1903 is smaller than the size of the data storage unit 1722 for recording the same, the process proceeds to the next step S1800. The following processing from step S1800 to step S1805 is the same as in the first embodiment.

【0102】以上のように本実施の形態7によれば、検
証開始時点で設定された検証項目数から、検証時に検証
済みパターンに関する情報を記録する検証済み履歴情報
のサイズを計算し、検証済みパターン履歴情報を記録す
るハードディスク等のデータ記憶部のサイズよりも大き
くなる場合には、警告を告知して検証を終了するように
したので、検証者が誤ってデータ記憶部に記録できるサ
イズを超えた検証項目数を設定した状態で検証を開始
し、検証途中にハードディスク等のデータ記憶部がフル
になって、ディスクシステム等に傷害が発生することを
回避することが可能となる。
As described above, according to the seventh embodiment, the size of the verified history information for recording the information on the verified pattern at the time of verification is calculated from the number of verification items set at the start of the verification. When the size becomes larger than the size of the data storage unit such as a hard disk that records pattern history information, a warning is issued and the verification is terminated. The verification is started in a state in which the number of verification items is set, and it is possible to prevent the data storage unit such as the hard disk from becoming full during the verification and causing a damage to the disk system or the like.

【0103】(実施の形態8)以下、図20から図22
を用いて、本発明の実施の形態8について説明する。ま
ず、図20を用いて、本実施の形態8における、論理回
路検証装置の構成について説明する。図20は、本実施
の形態8における、論理回路検証装置の構成を示すブロ
ック図である。
(Embodiment 8) Hereinafter, FIGS.
Embodiment 8 of the present invention will be described with reference to FIG. First, the configuration of the logic circuit verification device according to the eighth embodiment will be described with reference to FIG. FIG. 20 is a block diagram showing a configuration of the logic circuit verification device according to the eighth embodiment.

【0104】図20において、2015は期待値比較手
段2004において、ソフトウエアシミュレーション実
行手段2001により出力された期待値2024と、論
理シミュレーション実行手段2003により出力された
論理シミュレーション実行結果2026とが不一致の場
合に、エラー発生パターンを解析するエラー発生パター
ン解析手段であり、該エラー発生パターン解析手段20
15は、エラー解析用シミュレーション終了条件決定手
段2009と、エラー解析用ソフトウエアシミュレーシ
ョン実行手段2010と、エラー解析用論理シミュレー
ション実行手段2011と、エラー解析用期待値比較手
段2012と、エラー解析終了判定手段2013と、エ
ラー解析パターン表示手段2014とを含むものであ
る。以下、エラー発生パターン解析手段2015に含ま
れるそれぞれの手段について説明する。エラー解析用シ
ミュレーション終了条件設定手段2009はエラーが発
生したパターンを特定する解析シミュレーション時のシ
ミュレーション終了条件を、前回のシミュレーション
(ソフトウエアシミュレーション,論理シミュレーショ
ン)における終了条件、及び期待値比較手段2004に
よる期待値比較結果から決定するものであり、エラー解
析用ソフトウエアシミュレーション実行手段2010は
前記エラー解析用シミュレーション終了条件決定手段2
009で決定された終了条件で前記テストプログラム2
023をソフトウエアシミュレータ上で実行し、エラー
解析用期待値2027をデータ記憶部2022に出力す
るものであり、エラー解析用論理シミュレーション実行
手段2011は前記エラー解析用シミュレーション終了
条件決定手段2009で決定された終了条件で前記テス
トプログラム2023を論理シミュレータを用いた論理
シミュレーションにより被試験論理回路上で実行し、エ
ラー解析用論理シミュレーション実行結果2028をデ
ータ記憶部2022に出力するものであり、エラー解析
用期待値比較手段2012は前記エラー解析用ソフトウ
エアシミュレーション実行手段2010で出力されたエ
ラー解析用期待値2027と、前記エラー解析用論理シ
ミュレーション実行手段2011で出力されたエラー解
析用論理シミュレーション実行結果2028とを比較す
るものである。エラー解析終了判定手段2013は前記
エラー解析用シミュレーション終了条件決定手段200
9から前記エラー解析用期待値比較手段2012までの
一連のエラー解析処理を終了するかどうかを、ソフトウ
エアシミュレーション実行手段2001及び論理シミュ
レーション実行手段2003におけるシミュレーション
終了条件から判定するものであり、エラー発生パターン
表示手段2014は前記エラー解析用シミュレーション
終了条件決定手段2009から前記エラー解析用期待値
比較手段2012までにおいて解析されたエラー発生パ
ターンを表示するものである。
In FIG. 20, reference numeral 2015 denotes an expected value comparison unit 2004 in which the expected value 2024 output from the software simulation execution unit 2001 does not match the logic simulation execution result 2026 output from the logic simulation execution unit 2003. An error occurrence pattern analysis means for analyzing an error occurrence pattern;
Reference numeral 15 denotes an error analysis simulation end condition determination unit 2009, an error analysis software simulation execution unit 2010, an error analysis logic simulation execution unit 2011, an error analysis expected value comparison unit 2012, and an error analysis end determination unit. 2013 and an error analysis pattern display means 2014. Hereinafter, each unit included in the error occurrence pattern analysis unit 2015 will be described. The error analysis simulation end condition setting unit 2009 sets the simulation end condition in the analysis simulation for specifying the pattern in which the error has occurred, the end condition in the previous simulation (software simulation, logic simulation), and the expectation by the expected value comparison unit 2004. The error analysis software simulation execution means 2010 is determined from the result of the value comparison.
The test program 2 with the termination condition determined in 009
023 is executed on the software simulator, and the expected value for error analysis 2027 is output to the data storage unit 2022. The logic simulation for error analysis execution means 2011 is determined by the error analysis simulation end condition determination means 2009. The test program 2023 is executed on the logic circuit under test by a logic simulation using a logic simulator under the ending condition, and a logic simulation execution result 2028 for error analysis is output to the data storage unit 2022. The value comparison means 2012 includes an error analysis expected value 2027 output from the error analysis software simulation execution means 2010 and an error analysis logic simulation output from the error analysis logic simulation execution means 2011. Deployment execution result is to compare the 2028. The error analysis end determination means 2013 is the error analysis simulation end condition determination means 200.
9 to determine whether to end a series of error analysis processes from the error analysis expected value comparison means 2012 to the error analysis expected value comparison means 2012 based on simulation end conditions in the software simulation execution means 2001 and the logic simulation execution means 2003. The pattern display means 2014 displays an error occurrence pattern analyzed by the error analysis simulation end condition determination means 2009 to the error analysis expected value comparison means 2012.

【0105】次に、図21のフローチャートに従って、
本実施の形態8における論理回路検証装置の処理動作つ
いて、図22を参照しながら説明する。図21は、本実
施の形態8における、論理回路検証装置の一連の処理動
作を示すフローチャートであり、図22は、本実施の形
態8における、論理回路検証方法の各手段による出力例
である。
Next, according to the flowchart of FIG.
The processing operation of the logic circuit verification device according to the eighth embodiment will be described with reference to FIG. FIG. 21 is a flowchart showing a series of processing operations of the logic circuit verification device according to the eighth embodiment, and FIG. 22 is an output example of each unit of the logic circuit verification method according to the eighth embodiment.

【0106】本実施の形態8では、まずステップS21
00において、図22(a)に示すテストプログラム2
200を生成してデータ記憶部2022に出力する。こ
のテストプログラム生成方法は実施の形態1と同様であ
る。
In the eighth embodiment, first, at step S21
00, the test program 2 shown in FIG.
200 is generated and output to the data storage unit 2022. This test program generation method is the same as in the first embodiment.

【0107】次に、ステップS2101において、ソフ
トウエアシミュレーション実行手段2001により、ス
テップS2100で生成されたテストプログラム220
0をある終了条件でソフトウエアシミュレータ上で実行
し、実行された命令に関する情報であるソフトウエアシ
ミュレーション実行結果2201(図22(b))を得
て、データ記憶部2022に出力する。ここで本実施の
形態8では、テストプログラム2200に含まれる5つ
の命令“SET FR0,1”、“MVD FR7,F
R0”、“ADD FR1,FR0,1”、“AND
FR4,FR0,1”、“OR FR3,FR0,1”
は1シミュレーションサイクルで実行されるものとし、
シミュレーションの終了条件は4シミュレーションサイ
クル実行後にシミュレーションを終了するという設定が
されているものとする。また本実施の形態8では、本ス
テップS2101で実行するソフトウエアシミュレーシ
ョンにより、後述するステップS2104で使用する期
待値2202(図22(c))を生成してデータ記憶部
2022に出力する。
Next, in step S2101, the software simulation executing means 2001 executes the test program 220 generated in step S2100.
0 is executed on the software simulator under a certain termination condition, a software simulation execution result 2201 (FIG. 22B), which is information on the executed instruction, is obtained and output to the data storage unit 2022. Here, in the eighth embodiment, five instructions “SET FR0, 1”, “MVD FR7, F
R0 "," ADD FR1, FR0, 1 "," AND
FR4, FR0, 1 "," OR FR3, FR0, 1 "
Shall be executed in one simulation cycle,
It is assumed that the simulation end condition is set to end the simulation after four simulation cycles have been executed. In the eighth embodiment, an expected value 2202 (FIG. 22C) used in step S2104 described later is generated by software simulation executed in step S2101 and output to the data storage unit 2022.

【0108】次に、ステップS2107において、新規
パターン数カウント手段2007により、前記ソフトウ
エアシミュレーション実行結果2201(図22
(b))、及びデータ記憶部2022に記録されている
検証済みパターンに関する情報である検証済みパターン
履歴情報2203(図22(d))を用いて、テストプ
ログラム2200に含まれる新規パターン数をカウント
する。新規パターン数カウント方法については、実施の
形態1と同様であり、本実施の形態8において新規パタ
ーン数は3となる。
Next, in step S2107, the software simulation execution result 2201 (FIG.
(B)), and the number of new patterns included in the test program 2200 is counted using the verified pattern history information 2203 (FIG. 22D) which is information on the verified patterns recorded in the data storage unit 2022. I do. The method of counting the number of new patterns is the same as that of the first embodiment, and the number of new patterns is 3 in the eighth embodiment.

【0109】次に、ステップS2102において、新規
パターン数判定手段2002により、ステップS210
7でカウントしたテストプログラム2200に含まれる
新規パターン数をある任意の閾値と比較し、テストプロ
グラム2200を用いた検証を実行するかどうか判定す
る。新規パターン数が閾値以上の場合は、テストプログ
ラム2200を用いてステップS2103において論理
シミュレーションを行い、また新規パターン数が閾値よ
り小さい場合には、ステップS2100に戻りテストプ
ログラム生成手段2000により別のテストプログラム
を生成する。具体的に本実施の形態8では閾値を3とす
ると、ステップS2002でカウントした新規パターン
数(3)は前記閾値(3)以上となるため、ステップS
2103に進みテストプログラム2200を用いた論理
シミュレーションを実行する。
Next, in step S2102, the new pattern number determination means 2002 executes step S210.
The number of new patterns included in the test program 2200 counted in Step 7 is compared with an arbitrary threshold value, and it is determined whether or not to execute the verification using the test program 2200. If the number of new patterns is equal to or larger than the threshold, a logic simulation is performed in step S2103 using the test program 2200. If the number of new patterns is smaller than the threshold, the process returns to step S2100 and another test program Generate Specifically, if the threshold is set to 3 in the eighth embodiment, the number of new patterns (3) counted in step S2002 is equal to or larger than the threshold (3).
Proceeding to 2103, a logic simulation using the test program 2200 is executed.

【0110】次に、ステップS2103において、論理
シミュレーション実行手段2003により、テストプロ
グラム2200(図22(a))を論理シミュレータを
用いた論理シミュレーションにより被試験論理回路上で
実行し、論理シミュレーション実行結果2204(図2
2(e))をデータ記憶部2022に出力する。但し、
このステップS2103における論理シミュレーション
の終了条件は、ステップS2101における終了条件と
同一条件とする。
Next, in step S2103, the logic simulation executing means 2003 executes the test program 2200 (FIG. 22A) on the logic circuit under test by logic simulation using a logic simulator, and the logic simulation execution result 2204 (Figure 2
2 (e)) is output to the data storage unit 2022. However,
The termination condition of the logic simulation in step S2103 is the same as the termination condition in step S2101.

【0111】次に、ステップS2104において、期待
値比較手段2004により、ステップS2101で生成
した期待値2202(図22(c))と、ステップS2
103で生成した論理シミュレーション実行結果220
4(図22(e))とを比較する。この期待値比較方法
は実施の形態1と同様であり、ここでは期待値2202
と論理シミュレーション実行結果2204は不一致であ
ると判定される。
Next, in step S2104, the expected value comparing means 2004 compares the expected value 2202 (FIG. 22C) generated in step S2101 with the expected value 2202 in FIG.
Logic simulation execution result 220 generated in 103
4 (FIG. 22 (e)). This expected value comparison method is the same as that of the first embodiment.
And the logic simulation execution result 2204 are determined to be inconsistent.

【0112】そして、ステップS2104において期待
値比較結果が不一致と判定されたため、以降はステップ
S2115に移り、実行された4つの命令“SET F
R0,1”、“MVD FR7,FR0”、“ADD
FR1,FR0,1”、“AND FR4,FR0,
1”のどの命令でエラーが発生したのかを解析する。
Then, in step S2104, it is determined that the expected value comparison results do not match. Therefore, the process proceeds to step S2115, and the executed four instructions “SET F” are executed.
R0, 1 "," MVD FR7, FR0 "," ADD
FR1, FR0, 1 "," AND FR4, FR0,
It is analyzed which instruction of "1" caused the error.

【0113】まず、ステップS2109において、エラ
ー解析用シミュレーション終了条件決定手段2009に
より、エラー発生パターンを解析するために実行するエ
ラー解析用シミュレーション(ソフトウエアシミュレー
ション及び論理シミュレーション)の終了条件を、前回
のシミュレーション終了条件、及び期待値比較結果から
決定する。具体的には、前回のシミュレーション終了条
件は、“4シミュレーションサイクル実行後に終了”
(ステップS2101及びステップS2103での終了
条件)であり、また前回の期待値比較結果は“不一致”
(ステップS2104での期待値比較結果)である。そ
して、シミュレーション終了条件を決定する方法として
は、前回の期待値比較結果が不一致の場合には、(前回
のシミュレーション終了条件での実行シミュレーション
サイクル数)−(前回のシミュレーション終了条件の実
行シミュレーションサイクル数の半分のサイクル数)
を、エラー発生パターンを解析するシミュレーションの
終了条件とし、また前回の期待値比較結果が一致の場合
には、(前回のシミュレーション終了条件での実行シミ
ュレーションサイクル数)+(前回のシミュレーション
終了条件の実行シミュレーションサイクル数の半分のサ
イクル数)を、エラー発生パターンを解析するシミュレ
ーションの終了条件とする。ここでは、前回の期待値比
較結果であるステップS2104における期待値比較結
果が不一致であるため、(前回のシミュレーション終了
条件での実行シミュレーションサイクル数(4シミュレ
ーションサイクル))−(前回のシミュレーション終了
条件の実行シミュレーションサイクル数の半分のサイク
ル数(2シミュレーションサイクル))=2シミュレー
ションサイクル数が、エラー発生パターンを解析するシ
ミュレーションの終了条件となる。
First, in step S2109, the end condition of the error analysis simulation (software simulation and logic simulation) to be executed to analyze the error occurrence pattern is determined by the error analysis simulation end condition determining means 2009. It is determined from the end condition and the expected value comparison result. Specifically, the previous simulation end condition is “end after execution of four simulation cycles”.
(The end conditions in step S2101 and step S2103), and the previous expected value comparison result is “mismatch”
(Expected value comparison result in step S2104). As a method for determining the simulation end condition, when the previous expected value comparison result does not match, (the number of execution simulation cycles under the previous simulation end condition) − (the number of execution simulation cycles under the previous simulation end condition) Half the number of cycles)
Is the simulation end condition for analyzing the error occurrence pattern, and if the previous expected value comparison result matches, (execution simulation cycle number in the previous simulation end condition) + (execution of the previous simulation end condition) The number of cycles (half of the number of simulation cycles) is set as the end condition of the simulation for analyzing the error occurrence pattern. Here, since the expected value comparison result in step S2104, which is the previous expected value comparison result, does not match, (the number of execution simulation cycles under the previous simulation end condition (4 simulation cycles)) − (the previous simulation end condition The cycle number of half of the execution simulation cycle number (2 simulation cycles) = 2 simulation cycles is the end condition of the simulation for analyzing the error occurrence pattern.

【0114】次に、ステップS2110において、エラ
ー解析用ソフトウエアシミュレーション実行手段201
0により、ステップS2109で決定した終了条件(2
シミュレーションサイクル実行後に終了)で、テストプ
ログラム2200をソフトウエアシミュレータ上で実行
し、エラー解析用期待値2205(図22(f))を生
成してデータ記憶部2022に出力する。
Next, in step S 2110, software simulation execution means 201 for error analysis
0, the end condition (2
At the end of the simulation cycle, the test program 2200 is executed on the software simulator to generate an expected value for error analysis 2205 (FIG. 22F) and output it to the data storage unit 2022.

【0115】次に、ステップS2111において、エラ
ー解析用論理シミュレーション実行手段2011によ
り、ステップS2109で決定した終了条件(2シミュ
レーションサイクル実行後に終了)でテストプログラム
2200を論理シミュレータを用いた論理シミュレーシ
ョンにより被試験論理回路上で実行し、エラー解析用論
理シミュレーション実行結果2206(図22(g))
をデータ記憶部2022に出力する。
Next, in step S2111, the error analysis logic simulation executing means 2011 executes the test program 2200 under the termination condition determined in step S2109 (finished after execution of two simulation cycles) by a logic simulation using a logic simulator. Executed on the logic circuit, and executed logic analysis result for error analysis 2206 (FIG. 22 (g))
Is output to the data storage unit 2022.

【0116】そして、ステップS2112において、エ
ラー解析用期待値比較手段2012により、ステップS
2110において生成したエラー解析用期待値2205
(図22(f))と、ステップS2111において出力
したエラー解析用論理シミュレーション実行結果220
6(図22(g))とを比較する。このエラー解析用期
待値比較方法は前述のステップS2104と同様であ
り、エラー解析用期待値2205とエラー解析用論理シ
ミュレーション実行結果2206は一致していると判定
される。
In step S 2112, the error analysis expected value comparison means 2012 executes step S 2112.
Error analysis expected value 2205 generated in 2110
(FIG. 22 (f)) and the error analysis logic simulation execution result 220 output in step S2111.
6 (FIG. 22 (g)). The expected value comparison method for error analysis is the same as that in step S2104 described above, and it is determined that the expected value for error analysis 2205 and the execution result 2206 of the logic analysis for error analysis match.

【0117】次に、ステップS2113において、エラ
ー解析終了判定手段2013により、ステップS210
9からステップS2112までの一連のエラー発生パタ
ーン解析処理を終了するかどうかを、ステップS210
1及びステップS2103におけるシミュレーション
(ソフトウエアシミュレーション,論理シミュレーショ
ン)の終了条件から判定する。具体的にはステップS2
101及びステップS2103におけるシミュレーショ
ン終了条件の実行シミュレーションサイクル数(4)<
=(2のn乗)となる最小のnを計算し(ここでは4<
=2の2乗であるからn=2となる)、ステップS21
10及びステップS2111がn回実行された場合に終
了と判定する。ここではステップS2110及びステッ
プS2111の実行回数は1回であるため終了とは判定
せず、再びステップS2109へと戻る。
Next, in step S2113, the error analysis end determination means 2013 executes step S210.
Step S210 determines whether or not to end the series of error occurrence pattern analysis processing from Step 9 to Step S2112.
The determination is made based on 1 and the end condition of the simulation (software simulation, logic simulation) in step S2103. Specifically, step S2
101 and the number of execution simulation cycles of the simulation end condition in step S2103 (4) <
= (2 n) is calculated (here, 4 <
= 2 squared so that n = 2), step S21
When Step 10 and Step S2111 have been executed n times, it is determined that the process has been completed. Here, since the number of executions of steps S2110 and S2111 is one, it is not determined that the processing is completed, and the process returns to step S2109 again.

【0118】ステップS2109では、次のシミュレー
ション終了条件を決定する。具体的にここでは前回のシ
ミュレーション終了条件が“2シミュレーションサイク
ル実行後に終了”であり、ステップS2112での前回
の期待値比較結果は“一致”であることから、シミュレ
ーション終了条件は、(前回のシミュレーション終了条
件の実行シミュレーションサイクル数(2シミュレーシ
ョンサイクル数))+(前回のシミュレーション終了条
件の実行シミュレーションサイクル数の半分のサイクル
数(1シミュレーションサイクル数))=3シミュレー
ションサイクル数を終了条件とする。
In step S2109, the next simulation end condition is determined. Specifically, here, the previous simulation end condition is “end after execution of two simulation cycles”, and the previous expected value comparison result in step S2112 is “match”. The number of execution simulation cycles (2 simulation cycles) of the termination condition) + (half the number of execution simulation cycles (1 simulation cycle) of the previous simulation termination condition) = 3 simulation cycles is set as the termination condition.

【0119】次に、ステップS2110及びステップS
2111において、前記ステップS2109で決定した
終了条件(3シミュレーションサイクル実行後に終了)
でそれぞれシミュレーションし、エラー解析用期待値2
207(図22(h))、及びエラー解析用論理シミュ
レーション実行結果2208(図22(i))をデータ
記憶部2022に出力する。
Next, step S2110 and step S21
In step 2111, the end condition determined in step S2109 (end after execution of three simulation cycles)
And simulate each with the expected value for error analysis 2
207 (FIG. 22 (h)) and an error analysis logic simulation execution result 2208 (FIG. 22 (i)) are output to the data storage unit 2022.

【0120】次に、ステップS2112において、エラ
ー解析用期待値2207とエラー解析用論理シミュレー
ション実行結果2208とを比較する。このエラー解析
用期待値比較方法は前述のステップS2104と同様で
よく、ここではエラー解析用期待値2207とエラー解
析用論理シミュレーション実行結果2208とは一致し
ていると判定される。
Next, in step S 2112, the error analysis expected value 2207 is compared with the error analysis logic simulation execution result 2208. This error analysis expected value comparison method may be the same as that in step S2104 described above. Here, it is determined that the error analysis expected value 2207 matches the error analysis logic simulation execution result 2208.

【0121】そして、ステップS2113において、以
上の一連のエラー発生パターン解析処理を終了するかど
うかの判定を行う。ここではステップS2110及びス
テップS2111の実行回数が2回であるため、エラー
発生パターン解析処理を終了する。
Then, in step S2113, it is determined whether or not the above-described series of error occurrence pattern analysis processing ends. Here, since the number of executions of steps S2110 and S2111 is two, the error occurrence pattern analysis processing ends.

【0122】次に、ステップS2114において、エラ
ー発生パターン表示手段2014により、ステップS2
109で決定されたシミュレーション終了条件、及びス
テップS2112での期待値比較結果からエラー発生パ
ターンを決定して表示する。このエラー発生パターンの
決定方法は、ステップS2112での期待値比較結果が
“一致”の場合には、ステップS2109で決定された
シミュレーション終了条件で実行された最後の命令の次
の命令をエラー発生パターンとし、またステップS21
12での期待値比較結果が”不一致”の場合には、ステ
ップS2109で決定されたシミュレーション終了条件
で実行された最後の命令をエラー発生パターンとする。
ここではステップS2112での期待値比較結果が“一
致”であるため、ステップS2109で決定されたシミ
ュレーション終了条件(3シミュレーションサイクル実
行後に終了)で実行された最後の命令の次の命令“AN
DFR4,FR0,1”がエラー発生パターンとなる。
なお、以上で一連の検証処理を終了するが、例えば上記
一連の検証処理を指定された回数等のある終了条件まで
繰り返し実行しても良い。
Next, in step S2114, the error occurrence pattern display means 2014 displays the information in step S2114.
An error occurrence pattern is determined and displayed from the simulation end condition determined in 109 and the expected value comparison result in step S2112. This error occurrence pattern determination method is such that if the expected value comparison result in step S2112 is “match”, the instruction next to the last instruction executed under the simulation end condition determined in step S2109 is replaced with the error occurrence pattern. And step S21
If the expected value comparison result in step 12 is “mismatch”, the last instruction executed under the simulation end condition determined in step S2109 is set as the error occurrence pattern.
Here, since the expected value comparison result in step S2112 is “match”, the instruction “AN” next to the last instruction executed under the simulation end condition (terminated after executing three simulation cycles) determined in step S2109.
DFR4, FR0, 1 "are error occurrence patterns.
Note that the series of verification processing is completed as described above. For example, the series of verification processing may be repeatedly executed up to a certain end condition such as a designated number of times.

【0123】以上のように本実施の形態8によれば、論
理回路検証方法において、テストプログラムのどのパタ
ーンでエラーが発生したのか解析するエラー発生パター
ン解析ステップをさらに備え、乱数を用いて生成された
テストプログラムでの検証において期待値と論理シミュ
レーション実行結果に不一致(エラー)が発生した場合
に、テストプログラム中のどの命令でエラーが発生した
かを自動的に解析、表示するようにしたので、検証者に
かかるエラー解析作業を軽減することができ、検証効率
を向上させることが可能となる。
As described above, according to the eighth embodiment, the logic circuit verification method further includes an error occurrence pattern analysis step of analyzing which pattern of the test program has caused the error, and the error generation pattern analysis step is performed using random numbers. If the expected value and the logic simulation execution result do not match (error) in the verification with the test program, the system automatically analyzes and displays which instruction in the test program caused the error. The error analysis work for the verifier can be reduced, and the verification efficiency can be improved.

【0124】(実施の形態9)以下、図23から図25
を用いて、本発明の実施の形態9について説明する。論
理回路の検証中に論理回路に何らかの問題があり、ある
検証パターンを実行させた場合にエラーが発生する場合
がある。そのとき論理回路に含まれる問題をすぐに改修
できれば、エラーが発生した検証済みパターンを再度実
行したとしても同じエラーは発生しない。しかし問題の
ある回路の設計者が他のタスクを抱えていたり、また問
題の回路を改修することにより他の回路へ別の問題を波
及させないか等の確認に時間がかかったりするなど、実
際にはすぐに改修できない場合がある。そして問題があ
る回路の改修前に、エラーが発生した検証パターンと同
じ検証パターンが実行されると、その都度エラーが発生
してしまい、検証効率が悪化する。本実施の形態9にお
いては、それまでの検証で発生したエラー発生パターン
に関する情報を記録し、該エラー発生パターンが含まれ
るテストプログラムの実行を停止することで、問題があ
る回路が改修されるまでの間は別の回路の検証を進める
ようにしたものである。
Embodiment 9 Hereinafter, FIGS. 23 to 25 will be described.
Embodiment 9 of the present invention will be described with reference to FIG. During verification of the logic circuit, there is a problem in the logic circuit, and an error may occur when a certain verification pattern is executed. At that time, if the problem included in the logic circuit can be repaired immediately, the same error does not occur even if the verified pattern in which the error has occurred is executed again. However, the designer of the problematic circuit may have other tasks, or it may take time to check whether the repair of the problematic circuit will cause another problem to spread to other circuits. May not be renovable immediately. Then, if the same verification pattern as the verification pattern in which the error has occurred is executed before the repair of the problematic circuit, an error occurs each time, and the verification efficiency deteriorates. In the ninth embodiment, information on an error occurrence pattern generated in the previous verification is recorded, and execution of a test program including the error occurrence pattern is stopped, so that a problematic circuit is repaired. In the meantime, verification of another circuit is advanced.

【0125】まず、図23を用いて、本実施の形態9に
おける、論理回路検証装置の構成をについて説明する。
図23は、本発明の実施の形態9における、論理回路検
証装置の構成を示す図である。図23において、231
8はソフトウエアシミュレーション実行手段2301に
より出力されたソフトウエアシミュレーション実行結果
2325、及びデータ記憶部2322に格納されたそれ
までの検証で発生したエラー発生パターンに関する情報
であるエラー発生パターン履歴情報2317を基に、テ
ストプログラム生成手段2300により生成されたテス
トプログラム2323にエラー発生パターンが含まれて
いるかどうかを検出し、エラー発生パターンが含まれて
いない場合には新規パターン数カウント手段2307に
移り、またエラー発生パターンが含まれている場合には
テストプログラム生成手段2300において再度別のテ
ストプログラムを生成するという判定を行うエラー発生
パターン判定手段であり、2316はエラー発生パター
ン解析手段2315において解析されたエラー発生パタ
ーンに関する情報から、エラー発生パターン履歴情報2
317を更新するエラー発生パターン履歴情報更新手段
である。その他の構成は実施の形態8と同様であるた
め、説明を省略する。
First, the configuration of the logic circuit verification device according to the ninth embodiment will be described with reference to FIG.
FIG. 23 shows a configuration of a logic circuit verification device according to the ninth embodiment of the present invention. In FIG. 23, 231
8 is based on the software simulation execution result 2325 output by the software simulation execution means 2301 and the error occurrence pattern history information 2317 stored in the data storage unit 2322 and relating to the error occurrence pattern generated by the previous verification. It is detected whether the test program 2323 generated by the test program generation means 2300 includes an error occurrence pattern, and if the error generation pattern is not included, the process proceeds to the new pattern number counting means 2307. If an occurrence pattern is included, an error occurrence pattern determination unit that determines that another test program is to be generated again in the test program generation unit 2300, and 2316 is an error occurrence pattern analysis unit 231. From the information on the error occurrence pattern is analyzed in an error occurrence pattern history information 2
This is an error occurrence pattern history information updating unit that updates 317. The other configuration is the same as that of the eighth embodiment, and the description is omitted.

【0126】次に、図24のフローチャートに従って、
本実施の形態9における論理回路検証装置の処理動作に
ついて、図25を参照しながら説明する。図24は、実
施の形態9における論理回路検証装置の一連の動作処理
を示すフローチャートであり、図25は、本実施の形態
9における論理回路検証方法の各手段による出力例であ
る。
Next, according to the flowchart of FIG.
The processing operation of the logic circuit verification device according to the ninth embodiment will be described with reference to FIG. FIG. 24 is a flowchart showing a series of operation processing of the logic circuit verification device according to the ninth embodiment, and FIG. 25 is an output example of each unit of the logic circuit verification method according to the ninth embodiment.

【0127】本実施の形態9では、まずステップS24
00において、テストプログラム生成手段2300によ
り、図25(a)に示すテストプログラム2500を生
成して、データ記憶部2322に出力する。このテスト
プログラム生成方法は、実施の形態8と同様である。
In the ninth embodiment, first, at step S24
At 00, the test program generation means 2300 generates the test program 2500 shown in FIG. This test program generation method is the same as in the eighth embodiment.

【0128】次に、ステップS2401において、ソフ
トウエアシミュレーション実行手段2301により、ス
テップS2400で生成されたテストプログラム250
0をある終了条件でソフトウエアシミュレータ上で実行
し、実行された命令に関する情報であるソフトウエアシ
ミュレーション実行結果2501(図25(b))をデ
ータ記憶部2322に出力する。ここで本実施の形態9
では、テストプログラム2500に含まれる5つの命令
“SET FR0,1”、“MVD FR7,FR
0”、“ADD FR1,FR0,1”、“AND F
R4,FR0,1”、“OR FR3,FR0,1”は
1シミュレーションサイクルで実行されるものとし、シ
ミュレーション終了条件は4シミュレーションサイクル
実行後にシミュレーションを終了するという設定がされ
ているものとする。また本実施の形態9では、本ステッ
プS2401で実行するソフトウエアシミュレーション
により、後述するステップS2404で使用する期待値
2502(図25(c))を生成して、データ記憶部2
322に出力する。
Next, in step S2401, the software simulation executing means 2301 generates the test program 250 generated in step S2400.
0 is executed on the software simulator under a certain end condition, and a software simulation execution result 2501 (FIG. 25B), which is information on the executed instruction, is output to the data storage unit 2322. Here, Embodiment 9
Now, the five instructions “SET FR0,1”, “MVD FR7, FR” included in the test program 2500
0 "," ADD FR1, FR0, 1 "," AND F
R4, FR0, 1 "and" OR FR3, FR0, 1 "are executed in one simulation cycle, and the simulation end condition is set to end the simulation after executing four simulation cycles. In the ninth embodiment, an expected value 2502 (FIG. 25 (c)) used in step S2404, which will be described later, is generated by a software simulation executed in step S2401.
322.

【0129】次に、ステップS2418において、エラ
ー発生パターン判定手段2318により、前記ソフトウ
エアシミュレーション実行結果2501、及びそれまで
に発生したエラー発生パターンに関する情報であるエラ
ー発生パターン履歴情報2503(図25(d))を基
に、テストプログラム2500にそれまでに発生したエ
ラー発生パターンが含まれているかどうかを検出する。
具体的にここでは既に発生しているエラー発生パターン
として、エラー発生パターン履歴情報1703に“AN
D FR4,FR0,1”が記録されているものとす
る。本実施の形態9においては、図25(b)に示すソ
フトウエアシミュレーション実行結果2501に“AN
D FR4,FR0,1”命令が含まれていることか
ら、ステップS2418にてテストプログラム2500
にエラー発生パターンが含まれていると判定され、ステ
ップS2400に戻って別のテストプログラム2504
(図25(e))を生成してデータ記憶部2322に出
力する。そしてステップS2401において、再生成さ
れたテストプログラム2504を用いてソフトウエアシ
ミュレータ上で実行し、ソフトウエアシミュレーション
実行結果2505(図25(f))、及び期待値250
6(図25(g))をデータ記憶部2322に出力す
る。この再生成されたテストプログラム2504を用い
て実行されたソフトウエアシミュレーション実行結果2
505には、エラー発生パターン履歴情報2503に記
憶されている“AND FR4,FR0,1”命令が含
まれていないので、ステップS2418においてこのテ
ストプログラム2504はエラー発生パターンを含まな
いと判定され、ステップS2407に移る。この後のス
テップS2407からステップ2415までにおける処
理は実施の形態8と同様である。
Next, in step S2418, the error occurrence pattern determination means 2318 executes the software simulation execution result 2501 and error occurrence pattern history information 2503 (FIG. 25 (d)) which is information on the error occurrence patterns that have occurred so far. )), It is detected whether or not the test program 2500 includes an error occurrence pattern that has occurred so far.
Specifically, here, as the error occurrence pattern that has already occurred, “AN
DFR4, FR0, 1 ”are recorded. In the ninth embodiment,“ AN ”is included in the software simulation execution result 2501 shown in FIG.
Since the DFR4, FR0, 1 "instruction is included, the test program 2500 is executed in step S2418.
Is determined to include an error occurrence pattern, and the process returns to step S2400 to return to another test program 2504.
(FIG. 25E) is generated and output to the data storage unit 2322. In step S2401, the software program is executed on the software simulator using the regenerated test program 2504, and the software simulation execution result 2505 (FIG. 25F) and the expected value 250
6 (FIG. 25G) to the data storage unit 2322. Software simulation execution result 2 executed using the regenerated test program 2504
Since 505 does not include the “AND FR4, FR0, 1” instruction stored in the error occurrence pattern history information 2503, it is determined in step S2418 that the test program 2504 does not include the error occurrence pattern. It moves to S2407. Subsequent processing from step S2407 to step S2415 is the same as in the eighth embodiment.

【0130】本実施の形態9では以上ステップS240
0からステップS2415の処理の結果、ステップS2
404において、ステップS2401で出力した期待値
2506(図25(g))、及びステップS2403で
出力した論理シミュレーション実行結果2507(図2
5(h))の比較結果が不一致であったとし、かつステ
ップS2415において解析したエラー発生パターン
が、テストプログラム2504の中の“OR FR3,
FR0,1”命令であったとする。
In the ninth embodiment, step S240 is performed.
0 to the result of the processing in step S2415, step S2
In 404, the expected value 2506 (FIG. 25 (g)) output in step S2401 and the logic simulation execution result 2507 (FIG. 2) output in step S2403
5 (h)) is not the same, and the error occurrence pattern analyzed in step S2415 corresponds to “OR FR3,” in the test program 2504.
Assume that the instruction is a FR0,1 "instruction.

【0131】次に、ステップS2416において、エラ
ー発生パターン履歴情報更新手段2316により、ステ
ップS2415で解析されたエラー発生パターンから
“ORFR3,FR0,1”命令をエラー発生パターン
履歴情報2317に記録し、更新後のエラー履歴情報2
508(図25(i))を生成する。なお、以上で一連
の検証処理を終了するが、例えば上記一連の検証処理を
指定された回数等のある終了条件まで繰り返し実行して
も良い。
Next, in step S2416, the "ORFR3, FR0, 1" instruction is recorded in the error occurrence pattern history information 2317 from the error occurrence pattern analyzed in step S2415 by the error occurrence pattern history information updating means 2316. Error history information 2 after
508 (FIG. 25 (i)). Note that the series of verification processing is completed as described above. For example, the series of verification processing may be repeatedly executed up to a certain end condition such as a designated number of times.

【0132】以上のように本実施の形態9によれば、乱
数を用いて生成されたテストプログラムでの検証におい
て一度エラーが発生した検証済みパターンをエラー発生
パターン履歴情報として記録し、そのエラーの原因であ
る回路の改修が終了するなどの時点まで、該エラー発生
パターン履歴情報に記録されている、同じエラーを発生
させるパターンを含むテストプログラムを用いた検証を
停止するようにしたので、同一のエラーが複数回発生す
ることによる検証効率の悪化を回避することができる。
As described above, according to the ninth embodiment, a verified pattern in which an error has occurred once in verification with a test program generated using random numbers is recorded as error occurrence pattern history information, and the error Until the end of the repair of the circuit that is the cause, the verification using the test program containing the pattern that causes the same error recorded in the error occurrence pattern history information is stopped, so that the same It is possible to prevent the verification efficiency from being deteriorated due to the occurrence of an error a plurality of times.

【0133】(実施の形態10)以下、図26から図2
8を用いて、本発明の実施の形態10について説明す
る。まず、図26を用いて、本実施の形態10におけ
る、論理回路検証装置の構成について説明する。図26
は、本実施の形態10における、論理回路検証装置の構
成を示す図である。
Embodiment 10 Hereinafter, FIGS. 26 to 2
Embodiment 10 of the present invention will be described with reference to FIG. First, the configuration of the logic circuit verification device according to the tenth embodiment will be described with reference to FIG. FIG.
FIG. 15 is a diagram showing a configuration of a logic circuit verification device according to the tenth embodiment.

【0134】図26において、2609は期待値比較手
段2604において、ソフトウエアシミュレーション実
行手段2601による期待値2624と、論理シミュレ
ーション実行手段2603による論理シミュレーション
実行結果2626とが不一致であった場合に、そのエラ
ー発生パターンを含むテストプログラム又は該テストプ
ログラムを再生成するための情報を、エラー発生テスト
プログラム情報2610に記録するエラー発生テストプ
ログラム記録手段である。なお、その他の構成は実施の
形態1と同様であるため、ここでは説明を省略する。
In FIG. 26, when the expected value comparing means 2604 indicates that the expected value 2624 of the software simulation executing means 2601 and the logic simulation execution result 2626 of the logical simulation executing means 2603 do not match, an error 2609 is generated. This is an error occurrence test program recording unit that records, in the error occurrence test program information 2610, a test program including an occurrence pattern or information for regenerating the test program. The other configuration is the same as that of the first embodiment, and the description is omitted here.

【0135】次に、図27のフローチャートに従って、
本実施の形態10における論理回路検証装置について、
図28を参照しながら説明する。図27は、本実施の形
態10における、論理回路検証装置の一連の処理動作を
示すフローチャートであり、図28は、本実施の形態1
0における、論理回路検証方法の各手段による出力例で
ある。
Next, according to the flowchart of FIG.
Regarding the logic circuit verification device according to the tenth embodiment,
This will be described with reference to FIG. FIG. 27 is a flowchart showing a series of processing operations of the logic circuit verification device according to the tenth embodiment, and FIG.
5 is an output example of each unit of the logic circuit verification method at 0.

【0136】本実施の形態10では、まずステップS2
700において、テストプログラム生成手段2600に
より、乱数発生器(図示せず)から発生される乱数、及
び図28(a)に示す被試験論理回路の試験命令情報2
800を用いて、図28(b)に示すテストプログラム
2801を生成して、データ記憶部2622に出力す
る。このテストプログラム生成方法は実施の形態1と同
様である。
In the tenth embodiment, first, at step S2
At 700, a random number generated from a random number generator (not shown) by the test program generation means 2600 and the test instruction information 2 of the logic circuit under test shown in FIG.
Using 800, a test program 2801 shown in FIG. 28B is generated and output to the data storage unit 2622. This test program generation method is the same as in the first embodiment.

【0137】次に、ステップS2701において、ソフ
トウエアシミュレーション実行手段2601により、ス
テップS2700で生成されたテストプログラム280
1(図28(b))をソフトウエアシミュレータ上で実
行し、実行された命令に関する情報であるソフトウエア
シミュレーション実行結果2802(図28(c))を
データ記憶部2622に出力する。また本実施の形態1
0では、本ステップS2701で実行するソフトウエア
シミュレーションにより、後述するステップS2704
で使用する期待値2803(図28(d))を生成し
て、データ記憶部2622に出力する。
Next, in step S2701, the software simulation executing means 2601 executes the test program 280 generated in step S2700.
1 (FIG. 28 (b)) is executed on a software simulator, and a software simulation execution result 2802 (FIG. 28 (c)), which is information on the executed instruction, is output to the data storage unit 2622. Embodiment 1
In the case of 0, the software simulation executed in the step S2701 causes a step S2704 to be described later.
Then, an expected value 2803 (FIG. 28D) to be used is generated and output to the data storage unit 2622.

【0138】次に、ステップS2707において、新規
パターン数カウント手段2607により、ソフトウエア
シミュレーション実行結果2802(図28(c))、
及び検証済みパターンに関する情報である検証済みパタ
ーン履歴情報2804(図28(e))を用いて、前記
テストプログラム2801に含まれる新規パターン数を
カウントする。この新規パターン数カウント方法は実施
の形態1と同様であり、本実施の形態10において新規
パターン数は3となる。
Next, in step S2707, the software simulation execution result 2802 (FIG. 28 (c)) is
The number of new patterns included in the test program 2801 is counted using verified pattern history information 2804 (FIG. 28E) that is information on verified patterns. The method of counting the number of new patterns is the same as that of the first embodiment, and the number of new patterns is three in the tenth embodiment.

【0139】次に、ステップS2702において、新規
パターン数判定手段2602により、ステップS270
7でカウントしたテストプログラム2801に含まれる
新規パターン数をある任意の閾値と比較し、前記テスト
プログラム2801(図28(b))を用いた検証を実
行するかどうか判定する。この判定方法のは実施の形態
1と同様である。ここで具体的に、本実施の形態10で
は閾値を3とし、ステップS2707においてカウント
した新規パターン数(3)は前記閾値(3)以上である
ため、ステップS2703においてテストプログラム2
801を用いた論理シミュレーションを実行する。
Next, in step S2702, the new pattern number determination means 2602 executes step S270.
The number of new patterns included in the test program 2801 counted in step 7 is compared with an arbitrary threshold value, and it is determined whether or not to execute the verification using the test program 2801 (FIG. 28B). This determination method is the same as in the first embodiment. Specifically, in the tenth embodiment, the threshold is set to 3, and the number of new patterns (3) counted in step S2707 is equal to or larger than the threshold (3).
A logic simulation using 801 is executed.

【0140】次に、ステップS2703において、論理
シミュレーション実行手段2603により、テストプロ
グラム2801(図28(b))を論理シミュレータを
用いた論理シミュレーションにより被試験論理回路上で
実行し、論理シミュレーション実行結果2805(図2
8(f))を出力する。
Next, in step S2703, the logic simulation executing means 2603 executes the test program 2801 (FIG. 28 (b)) on the logic circuit under test by logic simulation using a logic simulator, and the logic simulation execution result 2805 (Figure 2
8 (f)).

【0141】次に、ステップS2704において、期待
値比較手段2604により、ステップS2701で生成
した期待値2803(図28(d))と、ステップS2
703で生成した論理シミュレーション実行結果280
5(図28(f))とを比較する。この期待値比較方法
は実施の形態1と同様であり、ここでは前記期待値28
03と論理シミュレーション実行結果2805は不一致
であると判定される。
Next, in step S 2704, the expected value comparison means 2604 compares the expected value 2803 (FIG. 28D) generated in step S 2701 with the expected value
Logic simulation execution result 280 generated in 703
5 (FIG. 28 (f)). This expected value comparison method is the same as that of the first embodiment.
03 and the logic simulation execution result 2805 are determined to be inconsistent.

【0142】ステップS2704で前記期待値2803
と前記論理シミュレーション結果2805とが不一致で
あると判定されたため、ステップS2709において、
エラー発生テストプログラム記録手段2609にて、エ
ラー発生パターンを含むテストプログラム2801、又
は該テストプログラム2801を再生成可能な情報を、
エラー発生テストプログラム情報2610としてデータ
記憶部2622に記録する。本実施の形態10では、テ
ストプログラム2801に含まれる命令に対応した試験
命令情報2800内のインデックスのみを記録すること
とする。具体的にはテストプログラム2801(図28
(b))に含まれる5つの命令“SETFR0,1”、
“MVD FR7,FR0”、“ADD FR1,FR
0,1”、“OR FR3,FR0,1”、“SUB
FR2,FR0,1”に対応した試験命令情報2800
(図28(a))内のインデックス0、7、1、3、2
をエラー発生テストプログラム情報2610に記録す
る。記録後のエラーテストプログラム情報の例2806
を図28(g)に示す。
In step S 2704, the expected value 2803
And the logic simulation result 2805 are determined to be inconsistent, so that in step S2709
The error occurrence test program recording means 2609 stores a test program 2801 including an error occurrence pattern or information capable of regenerating the test program 2801,
It is recorded in the data storage unit 2622 as the error occurrence test program information 2610. In the tenth embodiment, only the index in the test instruction information 2800 corresponding to the instruction included in the test program 2801 is recorded. Specifically, the test program 2801 (FIG. 28)
(B)) contains five instructions “SETFR0,1”,
"MVD FR7, FR0", "ADD FR1, FR
0, 1 "," OR FR3, FR0, 1 "," SUB
Test instruction information 2800 corresponding to FR2, FR0, 1 "
Indexes 0, 7, 1, 3, 2 in FIG.
Is recorded in the error occurrence test program information 2610. Example 2806 of error test program information after recording
Is shown in FIG.

【0143】なお、前記エラー発生テストプログラム情
報2610には、テストプログラム2801をそのまま
すべて記録したり、テストプログラム2801を生成す
る時に使用された乱数の種類を記録するなど、元のテス
トプログラム2801を再生成できる情報であれば、同
様の効果が得られる。なお、以上で一連の検証処理が終
了するが、例えば上記一連の検証処理を指定された回数
等のある終了条件まで繰り返し実行し、エラー発生テス
トプログラム情報に複数のテストプログラムに関する情
報を記録するようにしても良い。
The original test program 2801 is reproduced, for example, by recording the entire test program 2801 in the error occurrence test program information 2610 or by recording the type of random number used when the test program 2801 was generated. The same effect can be obtained as long as the information can be generated. Note that a series of verification processes is completed as described above. For example, the above-described series of verification processes are repeatedly executed until a certain end condition such as a designated number of times, and information on a plurality of test programs is recorded in the error occurrence test program information. You may do it.

【0144】以上のように本実施の形態10によれば、
乱数を用いて生成されたテストプログラムによる検証に
おいて、エラーが発生したテストプログラムを再生成可
能な情報であるエラー発生テストプログラム情報を自動
的に記録・保存しておくようにしたので、エラー発生原
因である回路の不具合改修等が完了した後、エラーが発
生したテストプログラムのみを使用した再検証が容易に
なる。
As described above, according to the tenth embodiment,
When verifying with a test program generated using random numbers, error test program information, which is information that can regenerate the test program in which an error occurred, is automatically recorded and saved. After completion of the repair of the failure of the circuit, re-verification using only the test program in which the error has occurred becomes easy.

【0145】(実施の形態11)以下、図29から図3
1を用いて、本発明の実施の形態11について説明す
る。乱数を用いたテストプログラムによる検証時に何ら
かのエラーが発生した場合、そのエラー発生の原因とな
る回路の改修を行い、その後改修した回路の動作を確認
するために、改修前にエラーが発生したテストプログラ
ムを用いて再検証する必要がある。本実施の形態11に
おいては、まず最初に、テストプログラムを作成して検
証するか、あるいはそれまでの検証においてエラーが発
生したテストプログラムを再生成して検証するかを選択
して、回路の改修前にエラーが発生したテストプログラ
ムのみを用いて再検証を行えるようにしたものである。
(Embodiment 11) FIGS. 29 to 3
Embodiment 11 of the present invention will be described with reference to FIG. If an error occurs during verification using a test program that uses random numbers, the circuit that caused the error is repaired, and then the test program that caused the error before the repair was run to check the operation of the repaired circuit Need to be re-verified using In the eleventh embodiment, first, a test program is created and verified, or a test program in which an error has occurred in the previous verification is regenerated and verified to select a circuit. The re-verification can be performed using only a test program in which an error has occurred before.

【0146】まず、図29を用いて、本実施の形態11
における、論理回路検証装置の構成について説明する。
図29は、本発明の実施の形態11における、論理回路
検証装置の構成を示すブロック図である。
First, the eleventh embodiment will be described with reference to FIG.
, The configuration of the logic circuit verification device will be described.
FIG. 29 is a block diagram showing a configuration of a logic circuit verification device according to Embodiment 11 of the present invention.

【0147】図29において、2911は検証に用いる
テストプログラムを、テストプログラム生成手段290
0において生成するか、あるいは後述するエラー発生テ
ストプログラム生成手段2912において、エラーが発
生したテストプログラムを再生成可能な情報であるエラ
ー発生テストプログラム情報2910から生成するかを
選択するテストプログラム生成選択手段であり、291
2は前記エラー発生テストプログラム情報2910か
ら、検証するテストプログラム2923を生成し、デー
タ記憶部2922に格納するエラー発生テストプログラ
ム生成手段である。なお、その他の構成は実施の形態1
と同様であるため、ここでは説明を省略する。
In FIG. 29, reference numeral 2911 denotes a test program used for verification,
0, or an error generation test program generation unit 2912, which will be described later, selects whether to generate a test program in which an error has occurred from error generation test program information 2910, which is information that can be regenerated. And 291
Reference numeral 2 denotes an error generation test program generation unit that generates a test program 2923 to be verified from the error generation test program information 2910 and stores it in the data storage unit 2922. Other configurations are the same as those in the first embodiment.
The description is omitted here.

【0148】次に、図30のフローチャートに従って、
本実施の形態11における論理回路検証装置の処理動作
について、図31を参照しながら説明する。図30は、
本実施の形態11における、論理回路検証装置の一連の
処理動作を示すフローチャートであり、図31は、本実
施の形態11における論理回路検証方法の各手段による
出力例である。
Next, according to the flowchart of FIG.
The processing operation of the logic circuit verification device according to the eleventh embodiment will be described with reference to FIG. FIG.
32 is a flowchart illustrating a series of processing operations of the logic circuit verification device according to the eleventh embodiment. FIG. 31 illustrates an output example of each unit of the logic circuit verification method according to the eleventh embodiment.

【0149】本実施の形態11では、まずステップS3
011において、テストプログラム生成選択手段291
1により、検証に用いるテストプログラムをステップS
3000とステップS3012とのどちらで生成するか
どうかを選択する。本実施の形態11では検証者がどち
らかを選択するものとし、ここではステップS3012
が選択されたものとする。
In the eleventh embodiment, first, in step S3
In step 011, the test program generation selection means 291
According to 1, the test program used for verification is
It is selected whether to generate the data in 3000 or in step S3012. In the eleventh embodiment, it is assumed that the verifier selects either one.
It is assumed that has been selected.

【0150】次に、ステップS3012において、エラ
ー発生テストプログラム生成手段2912により、エラ
ー発生テストプログラム情報3100(図31(a))
から、検証するテストプログラム3101(図31
(b))を生成する。本実施の形態11ではエラー発生
テストプログラム情報3100には、エラーが発生した
テストプログラムに含まれる命令に対応した試験命令情
報3102(図31(c))内のインデックス0、7、
1、3、2のみが記録されているものとし、本ステップ
S3012ではそのインデックスと試験命令情報310
2(図31(c))とからテストプログラム3101
(図31(b))を生成してデータ記憶部2922に出
力する。具体的には試験命令情報3102(図31
(c))において、インデックスが“0”の命令“SE
T FR0,1”をテストプログラムの最初の命令と
し、以降同様にインデックス7、1、3、2に対応する
命令“MVDFR7,FR0”、“ADD FR1,F
R0,1”、“OR FR3,FR0,1”、“SUB
FR2,FR0,1”をテストプログラムの命令とす
る。
Next, in step S3012, the error occurrence test program generating means 2912 causes the error occurrence test program information 3100 (FIG. 31A).
From the test program 3101 to be verified (FIG. 31)
(B)) is generated. In the eleventh embodiment, the error occurrence test program information 3100 includes the indexes 0, 7 in the test instruction information 3102 (FIG. 31C) corresponding to the instruction included in the test program in which the error has occurred.
It is assumed that only 1, 3, and 2 are recorded, and in this step S3012, the index and the test instruction information 310
2 (FIG. 31 (c)) and the test program 3101
(FIG. 31B) is generated and output to the data storage unit 2922. Specifically, the test instruction information 3102 (FIG. 31)
In (c)), the instruction “SE” whose index is “0”
TFR0,1 "is the first instruction of the test program, and thereafter, similarly, instructions" MVDFR7, FR0 "," ADD FR1, F2 "corresponding to indexes 7, 1, 3, and 2
R0,1 "," OR FR3, FR0,1 "," SUB
FR2, FR0, 1 "are instructions of the test program.

【0151】この後のステップS3001からステップ
S3005における処理は、実施の形態1と同様であ
る。但し、ステップS3011においてステップS30
12が選択され、検証の目的が過去にエラーが発生した
テストプログラムを用いた再検証である場合は、ステッ
プS3007及びステップS3002で行う処理は停止
した方が好ましい。
The processing from step S3001 to step S3005 thereafter is the same as in the first embodiment. However, in step S3011, step S30
If 12 is selected and the purpose of verification is re-verification using a test program in which an error has occurred in the past, it is preferable that the processing performed in steps S3007 and S3002 be stopped.

【0152】なお、エラー発生テストプログラム情報2
910に、エラーが発生した複数のテストプログラムに
関する情報が記録されていた場合、それら複数のテスト
プログラムについて上記一連の処理を行い、連続で検証
を実行することも可能である。
The error occurrence test program information 2
When information regarding a plurality of test programs in which an error has occurred is recorded in 910, the series of processes described above can be performed on the plurality of test programs, and verification can be performed continuously.

【0153】以上のように本実施の形態11によれば、
最初に乱数を用いて生成されたテストプログラムによる
検証において、通常の乱数を用いて生成したテストプロ
グラムによる検証か、エラーが発生したテストプログラ
ムを再生成して検証を行うかどうか選択するテストプロ
グラム選択ステップを設けたので、エラー原因である回
路の不具合改修等が完了した後、エラーが発生したテス
トプログラムのみを使用した再検証が容易になる。
As described above, according to the eleventh embodiment,
First, a test program that uses a random number to generate a test program, selects a test program that uses normal random numbers, or regenerates an error-generated test program to select whether to perform verification Since the steps are provided, it is easy to perform re-verification using only the test program in which the error has occurred, after completing the repair of the circuit which is the cause of the error.

【0154】[0154]

【発明の効果】以上のように、本発明の請求項1記載の
論理回路検証方法によれば、論理シミュレーションによ
り被試験論理回路の検証を行う検証方法において、乱数
を用いてテストプログラムを生成するテストプログラム
生成ステップと、前記テストプログラムをソフトウエア
シミュレータ上で実行しソフトウエアシミュレーション
実行結果を出力するソフトウエアシミュレーション実行
ステップと、前記ソフトウエアシミュレーション実行結
果、及び検証済みパターンに関する情報である検証済み
パターン履歴情報を基に、前記テストプログラムを用い
た被試験論理回路の検証を実行するかどうかの判定を行
う検証実行判定ステップと、前記検証実行判定ステップ
において検証実行と判定された場合に前記テストプログ
ラムを論理シミュレーションにより被試験論理回路上で
実行し論理シミュレーション実行結果を出力する論理シ
ミュレーション実行ステップと、前記論理シミュレーシ
ョン実行結果と期待値とを比較する期待値比較ステップ
と、前記期待値比較ステップにおいて前記期待値と前記
論理シミュレーション実行結果が一致した場合に、前記
検証済みパターン履歴情報を、前記論理シミュレーショ
ン実行ステップで検証したテストプログラムに含まれる
検証済みパターンに関する情報により更新する検証済み
パターン履歴情報更新ステップとを備えるようにしたの
で、重複したパターンを多く含むテストプログラムを、
検証速度の遅い論理シミュレーション上で実行させない
ようにして、検証時間の長期化を押さえることができ
る。
As described above, according to the logic circuit verification method of the first aspect of the present invention, a test program is generated using random numbers in a verification method for verifying a logic circuit under test by logic simulation. A test program generation step, a software simulation execution step of executing the test program on a software simulator and outputting a software simulation execution result, and a verified pattern being information on the software simulation execution result and the verified pattern. A verification execution determining step of determining whether to execute verification of the logic circuit under test using the test program based on the history information; and the test program when the verification execution determining step determines that the verification is to be performed. The logical simulation A logic simulation execution step of executing the logic simulation test result on the logic circuit under test and outputting a logic simulation execution result; an expectation value comparison step of comparing the logic simulation execution result with an expectation value; and the expectation value comparison step. And a verified pattern history information updating step of updating the verified pattern history information with information on a verified pattern included in the test program verified in the logic simulation executing step, when the logical simulation execution result matches. Test program that contains many duplicate patterns,
By not executing the simulation on a logic simulation with a slow verification speed, the verification time can be lengthened.

【0155】また、本発明の請求項2記載の論理回路検
証方法によれば、請求項1記載の論理回路検証方法にお
いて、前記検証実行判定ステップは、前記ソフトウエア
シミュレーション実行結果より前記テストプログラムに
含まれる新規パターン数を検出し、前記新規パターン数
がある閾値以上の場合に検証実行と判定するものである
ようにしたので、重複したパターンを多く含むテストプ
ログラムを検出して、検証速度の遅い論理シミュレーシ
ョン上で実行させないようにすることができる。
Further, according to the logic circuit verification method of the present invention, in the logic circuit verification method of the first aspect, the verification execution determining step includes the step of: The number of new patterns included is detected, and when the number of new patterns is equal to or greater than a certain threshold, it is determined that verification is to be performed. Therefore, a test program including many duplicated patterns is detected and the verification speed is low. It can be prevented from being executed on the logic simulation.

【0156】また、本発明の請求項3記載の論理回路検
証方法によれば、請求項2記載の論理回路検証方法にお
いて、前記検証実行判定ステップで検証実行しないと判
定された前記テストプログラム、及び前記ソフトウエア
シミュレーション実行結果を、少なくとも1つ以上保存
するテストプログラム保存ステップをさらに備え、前記
検証実行判定ステップにて、ある任意の回数連続して検
証実行しないと判定された場合に、前記テストプログラ
ム保存ステップで保存した前記テストプログラムの中
で、前記新規パターン数を最も多く含むテストプログラ
ムを選択し、該選択したテストプログラムを用いて検証
を実行するようにしたので、新規パターン数が少ないテ
ストプログラムが連続して生成された場合に、その中で
新規パターン数が最も多いテストプログラムを用いて検
証を行うように制御し、テストプログラム生成と新規パ
ターン数判定との間を無限に繰り返すことによる検証時
間のロスを回避できる。
According to a third aspect of the present invention, in the logic circuit verifying method of the second aspect, the test program determined not to execute the verification in the verification execution determining step; and And a test program storing step of storing at least one or more of the software simulation execution results. When the verification execution determining step determines that the verification is not to be executed continuously for a given number of times, the test program A test program including the largest number of the new patterns is selected from the test programs saved in the saving step, and the verification is performed using the selected test program. Are generated consecutively, the number of new patterns in the Controlled to perform verification using a large test program, it can be avoided loss verification time by repeating the between test program generation and new pattern number decision indefinitely.

【0157】また、本発明の請求項4記載の論理回路検
証方法によれば、請求項1記載の論理回路検証方法にお
いて、前記検証実行判定ステップは、前記ソフトウエア
シミュレーション実行結果より前記テストプログラムの
新規リソース使用数を検出し、前記新規リソース使用数
がある閾値以上の場合に検証実行と判定するようにした
ので、重複したリソースを多く含むテストプログラムを
検出して、検証速度の遅い論理シミュレーション上で実
行させないようにすることができる。
According to a fourth aspect of the present invention, in the logic circuit verifying method of the first aspect, the step of determining whether to execute the verification is performed based on the result of the software simulation. Since the number of new resources used is detected and it is determined that the verification is executed when the number of new resources used is equal to or greater than a certain threshold value, a test program including a large number of duplicate resources is detected, and a logic simulation with a low verification speed is performed. Can be prevented from being executed.

【0158】また、本発明の請求項5記載の論理回路検
証方法によれば、請求項1記載の論理回路検証方法にお
いて、前記検証実行判定ステップは、前記ソフトウエア
シミュレーション実行結果より前記テストプログラム中
の各命令の実行回数を検出し、前記テストプログラム中
の同一命令がある閾値以上繰り返し実行された場合に検
証実行しないと判定するようにしたので、同一命令を繰
り返し実行するテストプログラムを検出して、検証速度
の遅い論理シミュレーション上で実行させないようにす
ることができる。
According to the logic circuit verification method of the present invention, in the logic circuit verification method of the first aspect, the verification execution determining step includes the step of: The number of executions of each instruction is detected, and when the same instruction in the test program is repeatedly executed by a certain threshold or more, it is determined that verification is not to be executed. Therefore, a test program that repeatedly executes the same instruction is detected. Therefore, it can be prevented from being executed on a logic simulation having a low verification speed.

【0159】また、本発明の請求項6記載の論理回路検
証方法によれば、請求項1記載の論理回路検証方法にお
いて、前記検証実行判定ステップは、前記ソフトウエア
シミュレーション実行結果より前記テストプログラム
が、前記被試験論理回路が検証実行しないパターンであ
る検証項目外パターンを含むかどうかを解析し、前記検
証項目外パターンを含む場合に検証実行しないと判定す
るようにしたので、被試験論理回路の仕様が原因で該被
試験論理回路が異常動作してエラーが発生することがな
くなり、検証効率を向上させることができる。
Further, according to the logic circuit verification method of the present invention, in the logic circuit verification method of the first aspect, the verification execution determining step includes the step of determining whether the test program is executed based on the software simulation execution result. It is analyzed whether the logic circuit under test includes a pattern outside the verification item which is a pattern not to be verified, and when the logic circuit under test includes the pattern outside the verification item, it is determined that the verification is not performed. The logic circuit under test does not operate abnormally due to the specification and no error occurs, and the verification efficiency can be improved.

【0160】また、本発明の請求項7記載の論理回路検
証方法によれば、請求項1記載の論理回路検証方法にお
いて、前記ソフトウエアシミュレーション実行結果よ
り、前記シミュレーション終了状態を解析するシミュレ
ーション終了状態解析ステップをさらに備え、前記シミ
ュレーション終了状態が所望の終了状態でなかった場
合、所望の終了状態になるまで、異なる終了条件でソフ
トウエアシミュレーションの実行を繰り返すようにした
ので、期待値比較をするには不適当な、例えば複数サイ
クル命令実行途中でシミュレーションが終了するような
検証を回避することができる。
According to the logic circuit verification method of the present invention, in the logic circuit verification method of the present invention, a simulation end state for analyzing the simulation end state based on the software simulation execution result. An analysis step is further provided, and when the simulation end state is not the desired end state, the software simulation is repeatedly executed under different end conditions until the simulation end state becomes a desired end state. Can avoid inappropriate verification, for example, a simulation that is terminated during execution of a multi-cycle instruction.

【0161】また、本発明の請求項8記載の論理回路検
証方法によれば、請求項7記載の論理回路検証方法にお
いて、前記シミュレーション終了状態が所望の終了状態
となる終了条件を、前記論理シミュレーションステップ
における論理シミュレーションの終了条件として設定す
る論理シミュレーション終了条件設定ステップをさらに
備えるようにしたので、ソフトウエアシミュレーション
で出力する実行結果と、論理シミュレーションで出力す
る実行結果とが、シミュレーション終了条件を変更した
ことでずれることを防ぐことができる。
Further, according to the logic circuit verification method of the present invention, in the logic circuit verification method of the present invention, the termination condition in which the simulation termination state becomes a desired termination state is determined by the logic simulation. Since a logic simulation end condition setting step of setting as a logic simulation end condition in the step is further provided, the execution result output by the software simulation and the execution result output by the logic simulation change the simulation end condition. This can prevent the displacement.

【0162】また、本発明の請求項9記載の論理回路検
証方法によれば、請求項1記載の論理回路検証方法にお
いて、設定された検証項目数がある閾値よりも大きいか
どうか判定し、該検証項目数が大きい場合に検証実行し
ないと判定する検証項目数判定ステップをさらに備える
ようにしたので、検証者が誤って多くの検証項目数を設
定した状態で検証を開始し、検証途中にハードディスク
等の記憶装置がフルになって、ディスクシステム等に傷
害が発生することを回避することができる。
According to the logic circuit verification method of the ninth aspect of the present invention, in the logic circuit verification method of the first aspect, it is determined whether or not the set number of verification items is larger than a certain threshold value. The method further includes a verification item number determination step of determining that verification is not to be performed when the number of verification items is large, so that a verifier starts verification in a state where a large number of verification items are erroneously set. Can be prevented from becoming full and causing damage to the disk system or the like.

【0163】また、本発明の請求項10記載の論理回路
検証方法によれば、請求項9記載の論理回路検証方法に
おいて、前記閾値は、前記検証済みパターン履歴情報を
保存するデータ記憶部のサイズに関するものであるよう
にしたので、検証者が誤ってデータ記録できるサイズを
超えた検証項目数を設定して、検証を開始しないように
することができる。
According to a tenth aspect of the present invention, in the logic circuit verifying method according to the ninth aspect, the threshold value is determined by the size of a data storage unit for storing the verified pattern history information. Therefore, it is possible to prevent the verification from starting by setting the number of verification items exceeding the size that the verifier can erroneously record data.

【0164】また、本発明の請求項11記載の論理回路
検証方法によれば、請求項1記載の論理回路検証方法に
おいて、前記期待値比較ステップにおいて、前記論理シ
ミュレーション実行結果と前記期待値とが不一致の場合
に、前記テストプログラム中のどのパターンでエラーが
発生したのかを解析するエラー発生パターン解析ステッ
プをさらに備えるようにしたので、テストプログラム中
のどの命令でエラーが発生したかどうかを自動的に解
析, 表示して検証者にかかるエラー解析作業を軽減
し、検証効率を向上させることができる。
Further, according to the logic circuit verification method of the present invention, in the logic circuit verification method of the first aspect, in the expected value comparing step, the logical simulation execution result and the expected value may be different from each other. In the case of a mismatch, an error occurrence pattern analysis step for analyzing which pattern in the test program caused the error is further provided, so that it is possible to automatically determine which instruction in the test program caused the error. The error analysis work required for the verifier to be analyzed and displayed by the user can be reduced, and the verification efficiency can be improved.

【0165】また、本発明の請求項12記載の論理回路
検証方法によれば、請求項11記載の論理回路検証方法
において、それまでに発生したエラー発生パターンの情
報であるエラー発生パターン履歴情報を基に、前記エラ
ー発生パターンが前記テストプログラムに含まれない場
合に検証を実行すると判定するエラー発生パターン判定
ステップと、前記エラー発生パターン解析ステップにお
いて解析されたエラー発生パターンに関する情報より、
前記エラー発生パターン履歴情報を更新するエラー発生
パターン履歴情報更新ステップとをさらに備えるように
したので、同一のエラーが複数回発生することによる検
証効率の悪化を回避することができる。
According to the logic circuit verification method of the twelfth aspect of the present invention, in the logic circuit verification method of the eleventh aspect, error occurrence pattern history information, which is information of an error occurrence pattern that has occurred so far, is stored. Based on an error occurrence pattern determination step of determining to execute verification when the error occurrence pattern is not included in the test program, and information on the error occurrence pattern analyzed in the error occurrence pattern analysis step,
Since the method further includes an error occurrence pattern history information updating step of updating the error occurrence pattern history information, it is possible to avoid a decrease in verification efficiency due to occurrence of the same error a plurality of times.

【0166】また、本発明の請求項13記載の論理回路
検証方法によれば、請求項1記載の論理回路検証方法に
おいて、前記期待値比較ステップにおいて前記論理シミ
ュレーション実行結果と前記期待値が不一致の場合に、
前記テストプログラム又は該テストプログラムを再生成
可能な情報であるエラー発生テストプログラム情報を記
録するエラー発生テストプログラム記録ステップをさら
に備えるようにしたので、エラー発生原因である回路の
不具合改修等が完了した後、エラーが発生したテストプ
ログラムで再検証することができる。
Further, according to the logic circuit verification method of the present invention, in the logic circuit verification method of the first aspect, in the expected value comparison step, the logic simulation execution result and the expected value are different. In case,
An error occurrence test program recording step of recording the test program or error occurrence test program information, which is information capable of regenerating the test program, is further provided, so that repair of a defect of a circuit causing an error has been completed. Later, it can be re-verified by the test program in which the error occurred.

【0167】また、本発明の請求項14記載の論理回路
検証方法によれば、請求項1記載の論理回路検証方法に
おいて、エラーが発生したテストプログラムを再生成可
能な情報であるエラー発生テストプログラム情報から、
エラー発生テストプログラムを生成するエラー発生テス
トプログラム生成ステップをさらに備え、検証に使用す
るテストプログラムを、前記テストプログラム生成ステ
ップで生成するか、又は前記エラー発生テストプログラ
ム生成ステップで生成するかを最初に選択するようにし
たので、通常のテストプログラムを使用して検証を行う
のか、エラー発生原因である回路の不具合改修等が完了
した後、エラーが発生したテストプログラムのみを使用
した再検証を行うのかを選択することができる。
According to the logic circuit verification method of the present invention, in the logic circuit verification method of the present invention, an error generation test program which is information capable of regenerating a test program in which an error has occurred. From the information,
An error generation test program generation step of generating an error generation test program is further provided, and a test program used for verification is generated in the test program generation step or in the error generation test program generation step. Whether to perform verification using a normal test program or to perform re-verification using only the test program in which an error occurred after completing the repair of the circuit that caused the error, etc. Can be selected.

【0168】また、本発明の請求項15記載の論理回路
検証装置によれば、論理シミュレーションにより被試験
論理回路の検証を行う検証装置において、前記被試験論
理回路の検証を行う検証手段を実現するプログラムを格
納する検証手段記憶装置と、前記検証手段記憶装置に格
納されたプログラムを実行する実行装置と、前記実行装
置で前記検証手段記憶装置に格納されたプログラムを実
行する際に出力又は参照されるデータを格納するデータ
記憶装置とを備え、前記検証手段記憶装置に格納されて
いる前記検証手段は、乱数を用いてテストプログラムを
生成し前記データ記憶装置に格納するテストプログラム
生成手段と、前記テストプログラムをソフトウエアシミ
ュレータ上で実行し、該ソフトウエアシミュレーション
実行結果を前記データ記憶装置に格納するソフトウエア
シミュレーション実行手段と、前記ソフトウエアシミュ
レーション実行結果、及び検証済みパターンに関する情
報である検証済みパターン履歴情報を基に、前記テスト
プログラムを用いた被試験論理回路の検証を実行するか
どうかの判定を行う検証実行判定手段と、前記検証実行
判定手段において検証実行と判定された場合に、前記テ
ストプログラムを論理シミュレーションにより被試験論
理回路上で実行し、該論理シミュレーション実行結果を
前記データ記憶装置に格納する論理シミュレーション実
行手段と、前記論理シミュレーション実行結果と期待値
とを比較する期待値比較手段と、前記期待値比較手段に
おいて前記期待値と前記論理シミュレーション実行結果
が一致した場合に、前記検証済みパターン履歴情報を前
記テストプログラムに含まれる検証済みパターンに関す
る情報により更新する検証済みパターン履歴情報更新手
段とを含むようにしたので、重複したパターンを多く含
むテストプログラムを検証速度の遅い論理シミュレータ
上で実行することによる検証時間の増加を抑えることが
できる検証装置を提供することができる。
Further, according to the logic circuit verification device of the present invention, in a verification device for verifying a logic circuit under test by logic simulation, a verification means for verifying the logic circuit under test is realized. A verification unit storage device for storing a program, an execution device for executing the program stored in the verification unit storage device, and an output or referenced when the execution device executes the program stored in the verification unit storage device. A data storage device for storing data stored in the data storage device, wherein the verification device stored in the verification device storage device generates a test program using a random number and stores the test program in the data storage device; The test program is executed on a software simulator, and the result of the software simulation Software simulation execution means stored in a data storage device, and verification of the logic circuit under test using the test program based on the software simulation execution result and verified pattern history information that is information on the verified pattern. Verification execution determining means for determining whether or not to execute the test program, and when the verification execution determining means determines that the verification is to be executed, the test program is executed on a logic circuit under test by a logic simulation, and the logic simulation execution result is obtained. In the data storage device, an expected value comparing unit that compares the logical simulation execution result with an expected value, and the expected value and the logical simulation execution result match in the expected value comparing unit. The verified Pattern history information updating means for updating the pattern history information with the information on the verified patterns included in the test program, so that a test program containing many duplicated patterns can be executed on a logic simulator having a low verification speed. It is possible to provide a verification device that can suppress an increase in verification time due to the execution of the verification device.

【0169】また、本発明の請求項16記載の論理回路
検証装置によれば、請求項15記載の論理回路検証装置
において、前記検証実行判定手段は、前記ソフトウエア
シミュレーション実行結果より前記テストプログラムに
含まれる新規パターン数を検出する新規パターン数カウ
ント手段と、前記新規パターン数カウント手段によって
検出された前記新規パターン数が、ある閾値以上かどう
かを判定する新規パターン数判定手段とを備え、前記新
規パターン数判定手段の判定結果により、前記テストプ
ログラムを用いた前記被試験論理回路の検証を実行する
かどうか判定するようにしたので、重複したパターンを
多く含むテストプログラムを検出し、検証速度の遅い論
理シミュレータ上で実行することによる検証時間の増加
を抑えることができる検証装置を提供することができ
る。
According to the logic circuit verification device of the present invention, in the logic circuit verification device of the present invention, the verification execution determining means may determine whether the test program is to be executed based on the software simulation execution result. New pattern number counting means for detecting the number of new patterns included, and new pattern number determining means for determining whether the number of new patterns detected by the new pattern number counting means is equal to or greater than a certain threshold value, Since it is determined whether or not to execute the verification of the logic circuit under test using the test program based on the determination result of the pattern number determination unit, a test program including many duplicated patterns is detected, and the verification speed is low. It is possible to suppress the increase in verification time by executing on a logic simulator. It is possible to provide a that verification device.

【0170】また、本発明の請求項17記載の論理回路
検証装置によれば、請求項16記載の論理回路検証装置
において、前記検証実行判定手段において検証実行しな
いと判定された前記テストプログラム、及び前記ソフト
ウエアシミュレーション実行結果を少なくとも1つ以上
前記データ記憶装置に保存するテストプログラム保存手
段をさらに備え、前記検証実行判定手段においてある任
意の回数連続して検証実行しないと判定された場合に、
前記テストプログラム保存手段で保存した前記テストプ
ログラムの中で前記新規パターン数を最も多く含むテス
トプログラムを選択し、該選択されたテストプログラム
を用いて検証を実行するようにしたので、新規パターン
数が少ないテストプログラムが連続して生成された場合
に、その中でも新規パターン数が最も多いテストプログ
ラムを用いて検証を行うように制御し、テストプログラ
ム生成と新規パターン数判定との間を無限に繰り返すこ
とによる検証時間のロスを回避できる検証装置を提供す
ることができる。
Further, according to the logic circuit verification device of the present invention, in the logic circuit verification device of the present invention, the test program determined not to execute the verification by the verification execution determining means; A test program storage unit for storing at least one or more of the software simulation execution results in the data storage device; and when the verification execution determination unit determines that the verification is not to be performed continuously for an arbitrary number of times,
The test program including the largest number of the new patterns is selected from among the test programs stored by the test program storage unit, and the verification is performed using the selected test program. When a small number of test programs are generated consecutively, control is performed so that the test program with the largest number of new patterns among them is used for verification, and the test program generation and the determination of the number of new patterns are repeated indefinitely. Verification device that can avoid a loss of verification time due to the above.

【0171】また、本発明の請求項18記載の論理回路
検証装置によれば、請求項15記載の論理回路検証装置
において、前記検証実行判定手段は、前記ソフトウエア
シミュレーション実行結果より前記テストプログラムの
新規リソース使用数を検出する新規リソース数カウント
手段と、前記新規リソース数カウント手段によって検出
された前記新規リソース使用数がある閾値以上かどうか
判定を行う新規リソース数判定手段とを備え、前記新規
リソース数判定手段の判定結果により、前記テストプロ
グラムを用いた前記被試験論理回路の検証を実行するか
どうか判定するようにしたので、重複したリソースを多
く含むテストプログラムを検出し、検証速度の遅い論理
シミュレータ上で実行することによる検証時間の増加を
抑えることができる検証装置を提供することができる。
According to the logic circuit verification device of the present invention, in the logic circuit verification device of the present invention, the verification execution determining means may determine the test program based on the software simulation execution result. New resource number counting means for detecting a new resource usage number, and new resource number determination means for determining whether the new resource usage number detected by the new resource number counting means is above a certain threshold, A determination is made as to whether or not to execute the verification of the logic circuit under test using the test program based on the determination result of the number determination means. Therefore, a test program containing many duplicated resources is detected, and a logic having a low verification speed is detected. The increase in verification time due to running on the simulator can be suppressed. It is possible to provide a verification device.

【0172】また、本発明の請求項19記載の論理回路
検証装置によれば、請求項15記載の論理回路検証装置
において、前記検証実行判定手段は、前記ソフトウエア
シミュレーション実行結果より前記テストプログラム中
の各命令の実行回数を検出する命令実行回数カウント手
段と、前記命令実行回数カウント手段により検出された
前記実行回数がある閾値より小さいかどうか判定する命
令実行回数判定手段とを備え、前記命令実行回数判定手
段の判定結果により、前記テストプログラムを用いた前
記被試験論理回路の検証を実行するかどうか判定するよ
うにしたので、同一命令を繰り返し実行するテストプロ
グラムを検出し、検証速度の遅い論理シミュレータ上で
実行することによる検証時間の増加を抑えることができ
る検証装置を提供することができる。
Further, according to the logic circuit verification device of the present invention, in the logic circuit verification device of the present invention, the verification execution determining means may determine whether or not the test program is executed based on the software simulation execution result. Instruction execution number counting means for detecting the number of executions of each of the instructions; and instruction execution number determination means for determining whether the execution number detected by the instruction execution number counting means is smaller than a certain threshold value. A determination is made as to whether or not to execute the verification of the logic circuit under test using the test program, based on the determination result of the number-of-times determination means. Provides a verification device that can suppress an increase in verification time due to execution on a simulator Rukoto can.

【0173】また、本発明の請求項20記載の論理回路
検証装置によれば、請求項15記載の論理回路検証装置
において、前記検証実行判定手段は、前記ソフトウエア
シミュレーション実行結果より前記テストプログラム
が、前記被試験論理回路が検証実行しないパターンであ
る検証項目外パターンを含むかどうかを解析し、前記検
証項目外パターンを含む場合に検証実行しないと判定す
るようにしたので、被試験論理回路の仕様が原因で該被
試験論理回路が異常動作してエラーが発生することがな
くなり、検証効率を向上させることができる検証装置を
提供することができる。
According to the logic circuit verification device of the present invention, in the logic circuit verification device of the present invention, the verification execution judging means may execute the test program based on the software simulation execution result. It is analyzed whether the logic circuit under test includes a pattern outside the verification item which is a pattern not to be verified, and when the logic circuit under test includes the pattern outside the verification item, it is determined that the verification is not performed. It is possible to provide a verification device capable of preventing the logic circuit under test from operating abnormally due to the specification and causing an error and improving the verification efficiency.

【0174】また、本発明の請求項21記載の論理回路
検証装置によれば、請求項15記載の論理回路検証装置
において、前記ソフトウエアシミュレーション実行結果
よりシミュレーション終了状態を解析するシミュレーシ
ョン終了状態解析手段をさらに備え、前記シミュレーシ
ョン終了状態解析手段で前記シミュレーション終了状態
が所望の終了状態でなかった場合、所望の終了状態にな
るまで、異なる終了条件でソフトウエアシミュレーショ
ンの実行を繰り返すようにしたので、期待値比較をする
には不適当な、例えば複数サイクル命令実行途中でシミ
ュレーションが終了するような検証を回避することがで
きる検証装置を提供することができる。
According to the logic circuit verification device of the present invention, in the logic circuit verification device of the present invention, a simulation end state analyzing means for analyzing a simulation end state from the software simulation execution result. The simulation end state analysis means repeats the execution of the software simulation under different end conditions until the simulation end state is not the desired end state until the simulation end state is a desired end state. It is possible to provide a verification device that can avoid verification that is inappropriate for performing a value comparison, such as ending a simulation during execution of a multi-cycle instruction.

【0175】また、本発明の請求項22記載の論理回路
検証装置によれば、請求項21記載の論理回路検証装置
において、前記シミュレーション終了状態が所望の終了
状態となる終了条件を、前記論理シミュレーション実行
手段における論理シミュレーションの終了条件として設
定する論理シミュレーション終了条件設定手段をさらに
備えるようにしたので、シミュレーション終了状態を所
望の終了状態に変更した終了条件を、論理シミュレーシ
ョンの終了条件に自動的に反映して検証を行うことによ
り、ソフトウエアシミュレーションで出力する実行結果
と、論理シミュレーションで出力する実行結果がずれる
ことを防ぐことができる検証装置を提供することができ
る。
Further, according to the logic circuit verification device of the present invention, in the logic circuit verification device of the present invention, the termination condition in which the simulation termination state becomes a desired termination state is determined by the logic simulation. A logic simulation end condition setting means for setting as a logic simulation end condition in the execution means is further provided, so that the end condition obtained by changing the simulation end state to a desired end state is automatically reflected on the logic simulation end condition. By performing the verification by performing the verification, it is possible to provide a verification device that can prevent the execution result output by the software simulation from being shifted from the execution result output by the logic simulation.

【0176】また、本発明の請求項23記載の論理回路
検証装置によれば、請求項15記載の論理回路検証装置
において、設定された検証項目数がある閾値よりも大き
いかどうか判定し、該検証項目数が大きい場合に検証実
行しないと判定する検証項目数判定手段をさらに備える
ようにしたので、検証者が誤って設定可能な検証項目数
より多くの検証項目数を設定した状態で検証を開始し、
検証途中にハードディスク等の記憶装置がフルになっ
て、ディスクシステム等に傷害が発生することを回避す
ることができる検証装置を提供することができる。
According to the logic circuit verification device of the present invention, it is determined whether or not the set number of verification items is larger than a certain threshold value. When the number of verification items is large, a verification item number determination unit that determines that verification is not to be performed is further provided. Start,
It is possible to provide a verification device that can prevent a storage device such as a hard disk from becoming full during verification and causing damage to a disk system or the like.

【0177】また、本発明の請求項24記載の論理回路
検証装置によれば、請求項23記載の論理回路検証装置
において、前記閾値は、前記検証済みパターン履歴情報
を保存するデータ記憶部のサイズに関するものであるよ
うにしたので、検証者が誤ってデータ記録できるサイズ
を超えた検証項目数を設定して、検証を開始しないよう
にすることができる検証装置を提供することができる。
According to the logic circuit verification device of the present invention, in the logic circuit verification device of the present invention, the threshold value is determined by the size of a data storage unit for storing the verified pattern history information. Therefore, it is possible to provide a verification device that can prevent the verification from being started by setting the number of verification items exceeding the size that the verifier can erroneously record data.

【0178】また、本発明の請求項25記載の論理回路
検証装置によれば、請求項15記載の論理回路検証装置
において、前記期待値比較手段において前記論理シミュ
レーション実行結果と前記期待値とが不一致の場合に、
前記テストプログラム中のどのパターンでエラーが発生
したのかを解析するエラー発生パターン解析手段をさら
に備えるようにしたので、検証者にかかるエラー解析作
業を軽減し、検証効率を向上させることが可能となる。
According to the logic circuit verification device of the present invention, in the logic circuit verification device of the present invention, the expected value comparing means does not match the logic simulation execution result with the expected value. In the case of
Since an error occurrence pattern analysis means for analyzing which pattern in the test program caused the error is further provided, it is possible to reduce the error analysis work for the verifier and improve the verification efficiency. .

【0179】また、本発明の請求項26記載の論理回路
検証装置によれば、請求項25記載の論理回路検証装置
において、前記エラー発生パターン解析手段は、エラー
が発生したパターンを特定するエラー解析用シミュレー
ションのシミュレーション終了条件を決定するエラー解
析用シミュレーション終了条件決定手段と、前記エラー
解析用シミュレーション終了条件決定手段により決定さ
れた終了条件で、前記テストプログラムをソフトウエア
シミュレータ上で実行し、エラー解析用期待値を前記デ
ータ記憶部に格納するエラー解析用ソフトウエアシミュ
レーション実行手段と、前記エラー解析用シミュレーシ
ョン終了条件決定手段により決定された終了条件で、前
記テストプログラムを論理シミュレーションにより被試
験論理回路上で実行し、該エラー解析用論理シミュレー
ション実行結果を前記データ記憶部に格納するエラー解
析用論理シミュレーション実行手段と、前記エラー解析
用ソフトウエアシミュレーション実行手段により出力さ
れた前記エラー解析用期待値と、前記エラー解析用論理
シミュレーション実行手段により出力された前記エラー
解析用論理シミュレーション実行結果とを比較するエラ
ー解析用期待値比較手段と、エラー解析処理を終了する
かどうかを判定するエラー解析終了判定手段と、解析し
たエラー発生パターンを表示するエラー解析パターン表
示手段とを備えるようにしたので、乱数を用いて生成さ
れたテストプログラムでの検証において期待値と論理シ
ミュレーション実行結果に不一致(エラー)が発生した
場合に、テストプログラム中のどの命令でエラーが発生
したかどうかを自動的に解析、表示する検証装置を提供
することができる。
According to the logic circuit verification device of the twenty-sixth aspect of the present invention, in the logic circuit verification device of the twenty-fifth aspect, the error occurrence pattern analysis means includes an error analysis device for specifying a pattern in which an error has occurred. Executing the test program on a software simulator with the error analysis simulation end condition determining means for determining the simulation end condition for the simulation for the error and the end condition determined by the error analysis simulation end condition determining means for the error analysis; The test program on the logic circuit under test by a logic simulation under the end condition determined by the error analysis software simulation executing means for storing the expected value for use in the data storage unit and the error analysis simulation end condition determining means. Real An error analysis logic simulation execution unit that stores the error analysis logic simulation execution result in the data storage unit; the error analysis expected value output by the error analysis software simulation execution unit; Error analysis expected value comparison means for comparing the error analysis logic simulation execution result output by the analysis logic simulation execution means; error analysis end determination means for determining whether to end the error analysis processing; Error analysis pattern display means for displaying the generated error occurrence pattern, so that when a test program generated using random numbers does not match an expected value and a logic simulation execution result (error) in verification, Which in the test program Automatically analyzing whether an error has occurred in the decree, it is possible to provide a verification device for displaying.

【0180】また、本発明の請求項27記載の論理回路
検証装置によれば、請求項25または請求項26記載の
論理回路検証装置において、それまでに発生したエラー
発生パターンに関する情報であるエラー発生パターン履
歴情報を基に、前記エラー発生パターンが前記テストプ
ログラムに含まれない場合に検証を実行すると判定する
エラー発生パターン判定手段と、前記エラー発生パター
ン解析手段において解析されたエラー発生パターンに関
する情報により前記エラー発生パターン履歴情報を更新
するエラー発生パターン履歴情報更新手段とをさらに備
えるようにしたので、乱数を用いて生成されたテストプ
ログラムでの検証において一度エラーが発生した検証済
みパターンを履歴情報として記録し、そのエラーの原因
である回路の改修が終了するなどの時点まで、同じエラ
ーを発生させるパターンを用いた検証を停止すること
で、同一のエラーが複数回発生することによる検証効率
の悪化を回避する検証装置を提供することができる。
According to the logic circuit verification device of claim 27 of the present invention, in the logic circuit verification device of claim 25 or claim 26, an error occurrence information which is information on an error occurrence pattern which has occurred so far is provided. Based on the pattern history information, an error occurrence pattern determination unit that determines to execute verification when the error occurrence pattern is not included in the test program, and information on the error occurrence pattern analyzed by the error occurrence pattern analysis unit. The error occurrence pattern history information updating means for updating the error occurrence pattern history information is further provided, so that a verified pattern in which an error has once occurred in verification with a test program generated using random numbers is used as history information. Record and modify the circuit that is causing the error Up to the point of such ends, by stopping the verification using a pattern for generating the same error, it is possible to provide a verification device to avoid deterioration of the verification efficiency due to the same error occurs more than once.

【0181】また、本発明の請求項28記載の論理回路
検証装置によれば、請求項15記載の論理回路検証装置
において、前記期待値比較手段において前記論理シミュ
レーション実行結果と前記期待値とが不一致の場合に、
前記テストプログラム又は該テストプログラムを再生成
可能な情報であるエラー発生テストプログラム情報を前
記データ記録装置に記録するエラー発生テストプログラ
ム記録手段をさらに備えるようにしたので、エラー発生
原因である回路の不具合改修等が完了した後、エラーが
発生したテストプログラムうを使用して再検証をするこ
とができる検証装置を提供することができる。
According to the logic circuit verification device of the present invention, in the logic circuit verification device of the present invention, the expected value comparing means does not match the result of the logic simulation execution with the expected value. In the case of
An error occurrence test program recording unit for recording the test program or error occurrence test program information, which is information capable of regenerating the test program, in the data recording device is further provided. It is possible to provide a verification device that can perform re-verification using a test program in which an error has occurred after completion of repair or the like.

【0182】また、本発明の請求項29記載の論理回路
検証装置によれば、請求項15記載の論理回路検証装置
において、エラーが発生したテストプログラムを再生成
可能な情報であるエラー発生テストプログラム情報か
ら、エラー発生テストプログラムを生成するエラー発生
テストプログラム生成手段と、検証に使用するテストプ
ログラムを、前記テストプログラム生成手段で生成する
か、前記エラー発生テストプログラム生成手段で生成す
るかを選択するテストプログラム生成選択手段をさらに
備えるようにしたので、エラー発生原因である回路の不
具合改修等が完了した後、エラーが発生したテストプロ
グラムのみを使用した再検証が容易になる検証装置を提
供することができる。
According to the logic circuit verification device of the present invention, in the logic circuit verification device of the present invention, an error occurrence test program which is information capable of regenerating a test program in which an error has occurred. From the information, an error occurrence test program generation means for generating an error occurrence test program and a test program to be used for verification are selected by the test program generation means or by the error generation test program generation means. Provided is a verification device that further includes a test program generation selection unit, so that re-verification using only a test program in which an error has occurred can be easily performed after repair of a failure of a circuit causing an error has been completed. Can be.

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

【図1】本発明の基本的な処理の概要を示すフローチャ
ートである。
FIG. 1 is a flowchart showing an outline of a basic process of the present invention.

【図2】本発明の実施の形態1における、論理回路検証
装置の構成を示す図である。
FIG. 2 is a diagram illustrating a configuration of a logic circuit verification device according to the first embodiment of the present invention.

【図3】本発明の実施の形態1における、論理回路検証
装置の一連の処理動作を示すフローチャートである。
FIG. 3 is a flowchart showing a series of processing operations of the logic circuit verification device according to the first embodiment of the present invention.

【図4】本発明の実施の形態1において使用するデータ
の具体例である。
FIG. 4 is a specific example of data used in the first embodiment of the present invention.

【図5】本発明の実施の形態2における、論理回路検証
装置の構成を示す図である。
FIG. 5 is a diagram showing a configuration of a logic circuit verification device according to a second embodiment of the present invention.

【図6】本発明の実施の形態2における、論理回路検証
装置の一連の処理動作を示すフローチャートである。
FIG. 6 is a flowchart showing a series of processing operations of the logic circuit verification device according to the second embodiment of the present invention.

【図7】本発明の実施の形態2において使用するデータ
の具体例である。
FIG. 7 is a specific example of data used in Embodiment 2 of the present invention.

【図8】本発明の実施の形態3における、論理回路検証
装置の構成を示す図である。
FIG. 8 is a diagram showing a configuration of a logic circuit verification device according to a third embodiment of the present invention.

【図9】本発明の実施の形態3における、論理回路検証
装置の一連の処理動作を示すフローチャートである。
FIG. 9 is a flowchart showing a series of processing operations of the logic circuit verification device according to the third embodiment of the present invention.

【図10】本発明の実施の形態3において使用するデー
タの具体例である。
FIG. 10 is a specific example of data used in Embodiment 3 of the present invention.

【図11】本発明の実施の形態4における、論理回路検
証装置の構成を示す図である。
FIG. 11 is a diagram showing a configuration of a logic circuit verification device according to a fourth embodiment of the present invention.

【図12】本発明の実施の形態4における、論理回路検
証装置の一連の処理動作を示すフローチャートである。
FIG. 12 is a flowchart illustrating a series of processing operations of the logic circuit verification device according to the fourth embodiment of the present invention.

【図13】本発明の実施の形態4において使用するデー
タの具体例である。
FIG. 13 is a specific example of data used in Embodiment 4 of the present invention.

【図14】本発明の実施の形態6における、論理回路検
証装置の構成を示す図である。
FIG. 14 is a diagram illustrating a configuration of a logic circuit verification device according to a sixth embodiment of the present invention.

【図15】本発明の実施の形態6における、論理回路検
証装置の一連の処理動作を示すフローチャートである。
FIG. 15 is a flowchart showing a series of processing operations of the logic circuit verification device according to the sixth embodiment of the present invention.

【図16】本発明の実施の形態6において使用するデー
タの具体例である。
FIG. 16 is a specific example of data used in Embodiment 6 of the present invention.

【図17】本発明の実施の形態7における、論理回路検
証装置の構成を示す図である。
FIG. 17 is a diagram illustrating a configuration of a logic circuit verification device according to a seventh embodiment of the present invention.

【図18】本発明の実施の形態7における、論理回路検
証装置の一連の処理動作を示すフローチャートである。
FIG. 18 is a flowchart showing a series of processing operations of the logic circuit verification device according to the seventh embodiment of the present invention.

【図19】本発明の実施の形態7において使用するデー
タの具体例である。
FIG. 19 is a specific example of data used in Embodiment 7 of the present invention.

【図20】本発明の実施の形態8における、論理回路検
証装置の構成を示す図である。
FIG. 20 is a diagram illustrating a configuration of a logic circuit verification device according to an eighth embodiment of the present invention.

【図21】本発明の実施の形態8における、論理回路検
証装置の一連の処理動作を示すフローチャートである。
FIG. 21 is a flowchart showing a series of processing operations of the logic circuit verification device according to the eighth embodiment of the present invention.

【図22】本発明の実施の形態8において使用するデー
タの具体例である。
FIG. 22 is a specific example of data used in the eighth embodiment of the present invention.

【図23】本発明の実施の形態9における、論理回路検
証装置の構成を示す図である。
FIG. 23 is a diagram illustrating a configuration of a logic circuit verification device according to a ninth embodiment of the present invention.

【図24】本発明の実施の形態9における、論理回路検
証装置の一連の処理動作を示すフローチャートである。
FIG. 24 is a flowchart showing a series of processing operations of the logic circuit verification device according to the ninth embodiment of the present invention.

【図25】本発明の実施の形態9において使用するデー
タの具体例である。
FIG. 25 is a specific example of data used in Embodiment 9 of the present invention.

【図26】本発明の実施の形態10における、論理回路
検証装置の構成を示す図である。
FIG. 26 is a diagram showing a configuration of a logic circuit verification device according to a tenth embodiment of the present invention.

【図27】本発明の実施の形態10における、論理回路
検証装置の一連の処理動作を示すフローチャートであ
る。
FIG. 27 is a flowchart showing a series of processing operations of the logic circuit verification device according to the tenth embodiment of the present invention.

【図28】本発明の実施の形態10において使用するデ
ータの具体例である。
FIG. 28 is a specific example of data used in the tenth embodiment of the present invention.

【図29】本発明の実施の形態11における、論理回路
検証装置の構成を示す図である。
FIG. 29 is a diagram illustrating a configuration of a logic circuit verification device according to an eleventh embodiment of the present invention.

【図30】本発明の実施の形態11における、論理回路
検証装置の一連の処理動作を示すフローチャートであ
る。
FIG. 30 is a flowchart showing a series of processing operations of the logic circuit verification device according to the eleventh embodiment of the present invention.

【図31】本発明の実施の形態11において使用するデ
ータの具体例である。
FIG. 31 is a specific example of data used in Embodiment 11 of the present invention.

【図32】従来のデータ処理装置の試験方法を示すフロ
ーチャート図である。
FIG. 32 is a flowchart showing a test method of a conventional data processing device.

【図33】本発明の実施の形態5における、論理回路検
証装置の構成を示す図である。
FIG. 33 is a diagram showing a configuration of a logic circuit verification device according to a fifth embodiment of the present invention.

【図34】本発明の実施の形態5における、論理回路検
証装置の一連の処理動作を示すフローチャートである。
FIG. 34 is a flowchart showing a series of processing operations of the logic circuit verification device according to the fifth embodiment of the present invention.

【図35】本発明の実施の形態5において使用するデー
タの具体例である。
FIG. 35 is a specific example of data used in the fifth embodiment of the present invention.

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

200、500、800、1100、1400、170
0、2000、2300、2600、2900、330
0 テストプログラム生成手段 201、501、801、1101、1401、170
1、2001、2301、2601、2901、330
1 ソフトウエアシミュレーション実行手段 202、502、1402、1702、2002、23
02、2602、2902 新規パターン数判定手段 203、503、803、1103、1403、170
3、2003、2303、2603、2903、330
3 論理シミュレーション実行手段 204、504、804、1104、1404、170
4、2004、2304、2604、2904、330
4 期待値比較手段 205、505、805、1105、1405、170
5、2005、2305、2605、2905、330
5 検証済みパターン履歴情報更新手段 206、506、806、1106、1406、170
6、2006、2306、2606、2906、330
6 検証済みパターン履歴情報 207、507、1407、1707、2007、23
07、2607、2907 新規パターン数カウント手
段 208、508、808、1108、1408、170
8、2008、2308、2608、2908、330
8 検証実行判定手段 220、520、820、1120、1420、172
0、2020、2320、2620、2920、332
0 検証手段記憶部 221、521、821、1121、1421、172
1、2021、2321、2621、2921、332
1 CPU 222、522、822、1122、1422、172
2、2022、2322、2622、2922、332
2 データ記憶部 223、523、823、1123、1423、172
3、2023、2323、2623、2923、332
3 テストプログラム 224、524、824、1124、1424、172
4、2024、2324、2624、2924、332
4 期待値 225、525、825、1125、1425、172
5、2025、2325、2625、2925、332
5 ソフトウエアシミュレーション実行結果 226、526、826、1126、1426、172
6、2026、2326、2626、2926、332
6 論理シミュレーション実行結果 509 テストプログラム保存手段 527 テストプログラム保存情報 802 新規リソース数判定手段 807 新規リソース数カウント手段 1102 命令実行回数判定手段 1107 命令実行回数カウント手段 1409 シミュレーション終了状態解析手段 1410 論理シミュレーション終了条件設定手段 1709 検証済みパターン履歴情報サイズ計算手段 1710 データ記憶部サイズ検出手段 1711 検証項目数判定手段 2009 エラー解析用シミュレーション終了条件決定
手段 2010 エラー解析用ソフトウエアシミュレーション
手段 2011 エラー解析用論理シミュレーション手段 2012 エラー解析用期待値比較手段 2013 エラー解析終了判定手段 2014 エラー発生パターン表示手段 2015、2315 エラー発生パターン解析手段 2027 エラー解析用期待値 2028 エラー解析用論理シミュレーション実行結果 2316 エラー発生パターン履歴情報更新手段 2317 エラー発生パターン履歴情報 2318 エラー発生パターン判定手段 2609 エラー発生テストプログラム記憶手段 2610、2910 エラー発生テストプログラム情報 2911 テストプログラム生成選択手段 2912 エラー発生テストプログラム生成手段 3307 検証項目外パターン解析手段 3327 検証項目外パターン情報
200, 500, 800, 1100, 1400, 170
0, 2000, 2300, 2600, 2900, 330
0 Test program generating means 201, 501, 801, 1101, 1401, 170
1, 2001, 2301, 2601, 2901, 330
1 Software simulation execution means 202, 502, 1402, 1702, 2002, 23
02, 2602, 2902 New pattern number determination means 203, 503, 803, 1103, 1403, 170
3, 2003, 2303, 2603, 2903, 330
3 logic simulation execution means 204, 504, 804, 1104, 1404, 170
4, 2004, 2304, 2604, 2904, 330
4 Expected value comparison means 205, 505, 805, 1105, 1405, 170
5, 2005, 2305, 2605, 2905, 330
5 verified pattern history information updating means 206, 506, 806, 1106, 1406, 170
6, 2006, 2306, 2606, 2906, 330
6 verified pattern history information 207, 507, 1407, 1707, 2007, 23
07, 2607, 2907 New pattern number counting means 208, 508, 808, 1108, 1408, 170
8, 2008, 2308, 2608, 2908, 330
8 Verification execution determination means 220, 520, 820, 1120, 1420, 172
0, 2020, 2320, 2620, 2920, 332
0 Verification means storage unit 221, 521, 821, 1121, 1421, 172
1, 2021, 2321, 2621, 2921, 332
1 CPU 222, 522, 822, 1122, 1422, 172
2, 2022, 2322, 2622, 2922, 332
2 Data storage unit 223, 523, 823, 1123, 1423, 172
3, 2023, 2323, 2623, 2923, 332
3 Test programs 224, 524, 824, 1124, 1424, 172
4, 2024, 2324, 2624, 2924, 332
4 Expected value 225, 525, 825, 1125, 1425, 172
5, 2025, 2325, 2625, 2925, 332
5 Software simulation execution results 226, 526, 826, 1126, 1426, 172
6, 2026, 2326, 2626, 2926, 332
6 Logic simulation execution result 509 Test program storage means 527 Test program storage information 802 New resource number determination means 807 New resource number counting means 1102 Instruction execution number determination means 1107 Instruction execution number counting means 1409 Simulation end state analysis means 1410 Logical simulation end condition Setting means 1709 Verified pattern history information size calculation means 1710 Data storage unit size detection means 1711 Verification item number determination means 2009 Error analysis simulation end condition determination means 2010 Error analysis software simulation means 2011 Error analysis logic simulation means 2012 Error Analysis expected value comparison means 2013 Error analysis end determination means 2014 Error occurrence pattern display Step 2015, 2315 Error occurrence pattern analysis means 2027 Error analysis expected value 2028 Error analysis logic simulation execution result 2316 Error occurrence pattern history information updating means 2317 Error occurrence pattern history information 2318 Error occurrence pattern determination means 2609 Error occurrence test program storage means 2610, 2910 Error occurrence test program information 2911 Test program generation selection means 2912 Error occurrence test program generation means 3307 Verification item out-of-verification pattern analysis means 3327 Pattern information outside verification items

───────────────────────────────────────────────────── フロントページの続き (72)発明者 孝橋 靖雄 大阪府門真市大字門真1006番地 松下電器 産業株式会社内 Fターム(参考) 2G032 AA01 AB01 AC08 AE12 AG01 AG05 AG10 AL00 5B046 AA08 BA09 JA04 JA05 5B048 AA01 CC02 DD06  ────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Yasuo Takahashi 1006 Kadoma, Kadoma, Osaka Prefecture Matsushita Electric Industrial Co., Ltd. F term (reference) 2G032 AA01 AB01 AC08 AE12 AG01 AG05 AG10 AL00 5B046 AA08 BA09 JA04 JA05 5B048 AA01 CC02 DD06

Claims (29)

【特許請求の範囲】[Claims] 【請求項1】 論理シミュレーションにより被試験論理
回路の検証を行う検証方法において、 乱数を用いてテストプログラムを生成するテストプログ
ラム生成ステップと、 前記テストプログラムをソフトウエアシミュレータ上で
実行しソフトウエアシミュレーション実行結果を出力す
るソフトウエアシミュレーション実行ステップと、 前記ソフトウエアシミュレーション実行結果、及び検証
済みパターンに関する情報である検証済みパターン履歴
情報を基に、前記テストプログラムを用いた被試験論理
回路の検証を実行するかどうかの判定を行う検証実行判
定ステップと、 前記検証実行判定ステップにおいて検証実行と判定され
た場合に前記テストプログラムを論理シミュレーション
により被試験論理回路上で実行し論理シミュレーション
実行結果を出力する論理シミュレーション実行ステップ
と、 前記論理シミュレーション実行結果と期待値とを比較す
る期待値比較ステップと、 前記期待値比較ステップにおいて前記期待値と前記論理
シミュレーション実行結果が一致した場合に、前記検証
済みパターン履歴情報を、前記論理シミュレーション実
行ステップで検証したテストプログラムに含まれる検証
済みパターンに関する情報により更新する検証済みパタ
ーン履歴情報更新ステップとを備える、ことを特徴とす
る論理回路検証方法。
1. A verification method for verifying a logic circuit under test by logic simulation, comprising: a test program generating step of generating a test program using random numbers; and executing the test program on a software simulator to execute a software simulation. A software simulation execution step of outputting a result; and verifying the logic circuit under test using the test program based on the software simulation execution result and verified pattern history information that is information on the verified pattern. A verification execution determination step of determining whether or not the verification execution is performed in the verification execution determination step. A logic simulation execution step of outputting a row result; an expectation value comparison step of comparing the logic simulation execution result with an expectation value; if the expectation value and the logic simulation execution result match in the expectation value comparison step, A logic pattern verification method comprising: updating the verified pattern history information with information on a verified pattern included in the test program verified in the logic simulation execution step.
【請求項2】 請求項1記載の論理回路検証方法におい
て、 前記検証実行判定ステップは、前記ソフトウエアシミュ
レーション実行結果より前記テストプログラムに含まれ
る新規パターン数を検出し、前記新規パターン数がある
閾値以上の場合に検証実行と判定するものである、 ことを特徴とする論理回路検証方法。
2. The logic circuit verification method according to claim 1, wherein the verification execution determination step detects a number of new patterns included in the test program from a result of executing the software simulation, and determines a threshold value of the number of new patterns. In the above case, it is determined that verification is to be performed.
【請求項3】 請求項2記載の論理回路検証方法におい
て、 前記検証実行判定ステップで検証実行しないと判定され
た前記テストプログラム、及び前記ソフトウエアシミュ
レーション実行結果を、少なくとも1つ以上保存するテ
ストプログラム保存ステップをさらに備え、 前記検証実行判定ステップにて、ある任意の回数連続し
て検証実行しないと判定された場合に、前記テストプロ
グラム保存ステップで保存した前記テストプログラムの
中で、前記新規パターン数を最も多く含むテストプログ
ラムを選択し、該選択したテストプログラムを用いて検
証を実行する、 ことを特徴とする論理回路検証方法。
3. The logic circuit verification method according to claim 2, wherein at least one of the test program determined not to be verified in the verification execution determination step and the software simulation execution result are stored. The method further comprises a storage step, wherein, in the verification execution determination step, when it is determined that verification is not to be performed continuously for an arbitrary number of times, the new pattern number is included in the test program stored in the test program storage step. A logic circuit verification method comprising: selecting a test program including the largest number of the test programs; and performing verification using the selected test program.
【請求項4】 請求項1記載の論理回路検証方法におい
て、 前記検証実行判定ステップは、前記ソフトウエアシミュ
レーション実行結果より前記テストプログラムの新規リ
ソース使用数を検出し、前記新規リソース使用数がある
閾値以上の場合に検証実行と判定するものである、 ことを特徴とする論理回路検証方法。
4. The logic circuit verification method according to claim 1, wherein the verification execution determination step detects a new resource usage number of the test program from the software simulation execution result, and includes a threshold value for the new resource usage number. In the above case, it is determined that verification is to be performed.
【請求項5】 請求項1記載の論理回路検証方法におい
て、 前記検証実行判定ステップは、前記ソフトウエアシミュ
レーション実行結果より前記テストプログラム中の各命
令の実行回数を検出し、前記テストプログラム中の同一
命令がある閾値以上繰り返し実行された場合に検証実行
しないと判定するものである、 ことを特徴とする論理回路検証方法。
5. The logic circuit verification method according to claim 1, wherein the verification execution determination step detects the number of executions of each instruction in the test program from a result of the software simulation execution, and determines the same number in the test program. A logic circuit verification method, comprising: determining that verification is not executed when an instruction is repeatedly executed by a certain threshold or more.
【請求項6】 請求項1記載の論理回路検証方法におい
て、 前記検証実行判定ステップは、前記ソフトウエアシミュ
レーション実行結果より前記テストプログラムが、前記
被試験論理回路が検証実行しないパターンである検証項
目外パターンを含むかどうかを解析し、前記検証項目外
パターンを含む場合に検証実行しないと判定するもので
ある、 ことを特徴とする論理回路検証方法。
6. The method of verifying a logic circuit according to claim 1, wherein the step of determining whether to execute the verification is based on a result of the execution of the software simulation, wherein the test program is a pattern other than a verification item that is a pattern that the logic circuit under test does not execute. A logic circuit verification method for analyzing whether a pattern is included or not and determining that verification is not executed when the pattern is included in the pattern outside the verification item.
【請求項7】 請求項1記載の論理回路検証方法におい
て、 前記ソフトウエアシミュレーション実行結果より、前記
シミュレーション終了状態を解析するシミュレーション
終了状態解析ステップをさらに備え、 前記シミュレーション終了状態が所望の終了状態でなか
った場合、所望の終了状態になるまで、異なる終了条件
でソフトウエアシミュレーションの実行を繰り返す、 ことを特徴とする論理回路検証方法。
7. The logic circuit verification method according to claim 1, further comprising a simulation end state analyzing step of analyzing the simulation end state from the software simulation execution result, wherein the simulation end state is a desired end state. If not, a software circuit execution method is repeated under different end conditions until a desired end state is obtained.
【請求項8】 請求項7記載の論理回路検証方法におい
て、 前記シミュレーション終了状態が所望の終了状態となる
終了条件を、前記論理シミュレーションステップにおけ
る論理シミュレーションの終了条件として設定する論理
シミュレーション終了条件設定ステップをさらに備え
る、 ことを特徴とする論理回路検証方法。
8. The logic circuit verification method according to claim 7, wherein an end condition for setting the simulation end state to a desired end state is set as an end condition of the logic simulation in the logic simulation step. A logic circuit verification method, further comprising:
【請求項9】 請求項1記載の論理回路検証方法におい
て、 設定された検証項目数がある閾値よりも大きいかどうか
判定し、該検証項目数が大きい場合に検証実行しないと
判定する検証項目数判定ステップをさらに備える、 ことを特徴とする論理回路検証方法。
9. The logic circuit verification method according to claim 1, wherein it is determined whether or not the set number of verification items is larger than a certain threshold value, and if the number of verification items is large, it is determined that the verification is not to be executed. A logic circuit verification method, further comprising a determining step.
【請求項10】 請求項9記載の論理回路検証方法にお
いて、 前記閾値は、前記検証済みパターン履歴情報を保存する
データ記憶部のサイズに関するものである、ことを特徴
とする論理回路検証方法。
10. The logic circuit verification method according to claim 9, wherein the threshold value is related to a size of a data storage unit that stores the verified pattern history information.
【請求項11】 請求項1記載の論理回路検証方法にお
いて、 前記期待値比較ステップにおいて、前記論理シミュレー
ション実行結果と前記期待値とが不一致の場合に、前記
テストプログラム中のどのパターンでエラーが発生した
のかを解析するエラー発生パターン解析ステップをさら
に備える、 ことを特徴とする論理回路検証方法。
11. The logic circuit verification method according to claim 1, wherein in the expected value comparing step, when the logic simulation execution result and the expected value do not match, an error occurs in any pattern in the test program. A logic circuit verification method, further comprising: an error occurrence pattern analysis step of analyzing whether the error has occurred.
【請求項12】 請求項11記載の論理回路検証方法に
おいて、 それまでに発生したエラー発生パターンの情報であるエ
ラー発生パターン履歴情報を基に、前記エラー発生パタ
ーンが前記テストプログラムに含まれない場合に検証を
実行すると判定するエラー発生パターン判定ステップ
と、 前記エラー発生パターン解析ステップにおいて解析され
たエラー発生パターンに関する情報より、前記エラー発
生パターン履歴情報を更新するエラー発生パターン履歴
情報更新ステップとをさらに備える、 ことを特徴とする論理回路検証方法。
12. The logic circuit verification method according to claim 11, wherein the error occurrence pattern is not included in the test program based on error occurrence pattern history information that is information on an error occurrence pattern that has occurred up to that time. An error occurrence pattern determining step of determining to execute verification, and an error occurrence pattern history information updating step of updating the error occurrence pattern history information from information on the error occurrence pattern analyzed in the error occurrence pattern analysis step. A logic circuit verification method, comprising:
【請求項13】 請求項1記載の論理回路検証方法にお
いて、 前記期待値比較ステップにおいて前記論理シミュレーシ
ョン実行結果と前記期待値が不一致の場合に、前記テス
トプログラム又は該テストプログラムを再生成可能な情
報であるエラー発生テストプログラム情報を記録するエ
ラー発生テストプログラム記録ステップをさらに備え
る、 ことを特徴とする論理回路検証方法。
13. The logic circuit verification method according to claim 1, wherein in the expected value comparing step, when the logic simulation execution result and the expected value do not match, the test program or information capable of regenerating the test program. A logic circuit verification method, further comprising: an error occurrence test program recording step of recording the error occurrence test program information.
【請求項14】 請求項1記載の論理回路検証方法にお
いて、 エラーが発生したテストプログラムを再生成可能な情報
であるエラー発生テストプログラム情報から、エラー発
生テストプログラムを生成するエラー発生テストプログ
ラム生成ステップをさらに備え、 検証に使用するテストプログラムを、前記テストプログ
ラム生成ステップで生成するか、又は前記エラー発生テ
ストプログラム生成ステップで生成するかを最初に選択
する、 ことを特徴とする論理回路検証方法。
14. The method according to claim 1, wherein an error occurrence test program is generated from error occurrence test program information that is information that can regenerate an error-generated test program. A logic circuit verification method, further comprising: first selecting whether to generate a test program used for verification in the test program generation step or in the error occurrence test program generation step.
【請求項15】 論理シミュレーションにより被試験論
理回路の検証を行う検証装置において、 前記被試験論理回路の検証を行う検証手段を実現するプ
ログラムを格納する検証手段記憶装置と、 前記検証手段記憶装置に格納されたプログラムを実行す
る実行装置と、 前記実行装置で前記検証手段記憶装置に格納されたプロ
グラムを実行する際に出力又は参照されるデータを格納
するデータ記憶装置とを備え、 前記検証手段記憶装置に格納されている前記検証手段
は、 乱数を用いてテストプログラムを生成し前記データ記憶
装置に格納するテストプログラム生成手段と、 前記テストプログラムをソフトウエアシミュレータ上で
実行し、該ソフトウエアシミュレーション実行結果を前
記データ記憶装置に格納するソフトウエアシミュレーシ
ョン実行手段と、 前記ソフトウエアシミュレーション実行結果、及び検証
済みパターンに関する情報である検証済みパターン履歴
情報を基に、前記テストプログラムを用いた被試験論理
回路の検証を実行するかどうかの判定を行う検証実行判
定手段と、 前記検証実行判定手段において検証実行と判定された場
合に、前記テストプログラムを論理シミュレーションに
より被試験論理回路上で実行し、該論理シミュレーショ
ン実行結果を前記データ記憶装置に格納する論理シミュ
レーション実行手段と、 前記論理シミュレーション実行結果と期待値とを比較す
る期待値比較手段と、 前記期待値比較手段において前記期待値と前記論理シミ
ュレーション実行結果が一致した場合に、前記検証済み
パターン履歴情報を前記テストプログラムに含まれる検
証済みパターンに関する情報により更新する検証済みパ
ターン履歴情報更新手段とを含む、 ことを特徴とする論理回路検証装置。
15. A verification device for verifying a logic circuit under test by logic simulation, comprising: a verification device storage device for storing a program for realizing a verification device for verifying the logic circuit under test; An execution device for executing the stored program; and a data storage device for storing data output or referenced when the execution device executes the program stored in the verification device storage device, wherein the verification device storage The verification means stored in the device generates a test program using a random number and stores the test program in the data storage device; and executes the test program on a software simulator to execute the software simulation. Software simulation for storing results in the data storage device An execution unit, based on the software simulation execution result and verified pattern history information that is information on the verified pattern, verifying whether to perform verification of the logic circuit under test using the test program. Execution determination means; and a logic for executing the test program on the logic circuit under test by logic simulation when the verification execution determination means determines that the verification is to be executed, and storing the logic simulation execution result in the data storage device. Simulation execution means; expected value comparison means for comparing the logic simulation execution result with an expected value; if the expected value and the logic simulation execution result match in the expected value comparison means, the verified pattern history information Is included in the test program. A verified pattern history information updating means for updating based on the information on the verified pattern.
【請求項16】 請求項15記載の論理回路検証装置に
おいて、 前記検証実行判定手段は、 前記ソフトウエアシミュレーション実行結果より前記テ
ストプログラムに含まれる新規パターン数を検出する新
規パターン数カウント手段と、 前記新規パターン数カウント手段によって検出された前
記新規パターン数が、ある閾値以上かどうかを判定する
新規パターン数判定手段とを備え、 前記新規パターン数判定手段の判定結果により、前記テ
ストプログラムを用いた前記被試験論理回路の検証を実
行するかどうか判定する、 ことを特徴とする論理回路検証装置。
16. The logic circuit verification device according to claim 15, wherein the verification execution determining unit detects a new pattern number included in the test program from the software simulation execution result; A new pattern number judging means for judging whether or not the number of new patterns detected by the new pattern number counting means is equal to or greater than a certain threshold value; and A logic circuit verification device, which determines whether to verify a logic circuit under test.
【請求項17】 請求項16記載の論理回路検証装置に
おいて、 前記検証実行判定手段において検証実行しないと判定さ
れた前記テストプログラム、及び前記ソフトウエアシミ
ュレーション実行結果を少なくとも1つ以上前記データ
記憶装置に保存するテストプログラム保存手段をさらに
備え、 前記検証実行判定手段においてある任意の回数連続して
検証実行しないと判定された場合に、前記テストプログ
ラム保存手段で保存した前記テストプログラムの中で前
記新規パターン数を最も多く含むテストプログラムを選
択し、該選択されたテストプログラムを用いて検証を実
行する、 ことを特徴とする論理回路検証装置。
17. The logic circuit verification device according to claim 16, wherein at least one or more of the test program and the software simulation execution result determined not to be verified by the verification execution determination unit are stored in the data storage device. A test program storing unit for storing the new pattern in the test program stored by the test program storing unit when the verification execution determining unit determines that verification is not to be performed continuously for an arbitrary number of times. A logic circuit verification device, comprising: selecting a test program including the largest number of programs; and performing verification using the selected test program.
【請求項18】 請求項15記載の論理回路検証装置に
おいて、 前記検証実行判定手段は、 前記ソフトウエアシミュレーション実行結果より前記テ
ストプログラムの新規リソース使用数を検出する新規リ
ソース数カウント手段と、 前記新規リソース数カウント手段によって検出された前
記新規リソース使用数がある閾値以上かどうか判定を行
う新規リソース数判定手段とを備え、 前記新規リソース数判定手段の判定結果により、前記テ
ストプログラムを用いた前記被試験論理回路の検証を実
行するかどうか判定する、 ことを特徴とする論理回路検証装置。
18. The logic circuit verification device according to claim 15, wherein the verification execution determining unit detects a new resource usage number of the test program from the software simulation execution result; A new resource number judging unit for judging whether or not the new resource usage number detected by the resource number counting unit is equal to or greater than a certain threshold value. A logic circuit verification device, which determines whether to verify a test logic circuit.
【請求項19】 請求項15記載の論理回路検証装置に
おいて、 前記検証実行判定手段は、 前記ソフトウエアシミュレーション実行結果より前記テ
ストプログラム中の各命令の実行回数を検出する命令実
行回数カウント手段と、 前記命令実行回数カウント手段により検出された前記実
行回数がある閾値より小さいかどうか判定する命令実行
回数判定手段とを備え、 前記命令実行回数判定手段の判定結果により、前記テス
トプログラムを用いた前記被試験論理回路の検証を実行
するかどうか判定する、 ことを特徴とする論理回路検証装置。
19. The logic circuit verification device according to claim 15, wherein the verification execution determination unit includes: an instruction execution number counting unit configured to detect an execution number of each instruction in the test program from the software simulation execution result; Means for determining whether the number of times of execution detected by the number of times of instruction execution is smaller than a certain threshold value; and A logic circuit verification device, which determines whether to verify a test logic circuit.
【請求項20】 請求項15記載の論理回路検証装置に
おいて、 前記検証実行判定手段は、 前記ソフトウエアシミュレーション実行結果より前記テ
ストプログラムが、前記被試験論理回路が検証実行しな
いパターンである検証項目外パターンを含むかどうかを
解析し、前記検証項目外パターンを含む場合に検証実行
しないと判定する、 ことを特徴とする論理回路検証装置。
20. The logic circuit verification device according to claim 15, wherein the verification execution determination unit determines that the test program is a pattern that is not verified by the logic circuit under test from the software simulation execution result. A logic circuit verification device, comprising: analyzing whether a pattern is included; and determining not to execute verification when the pattern includes the pattern outside the verification item.
【請求項21】 請求項15記載の論理回路検証装置に
おいて、 前記ソフトウエアシミュレーション実行結果よりシミュ
レーション終了状態を解析するシミュレーション終了状
態解析手段をさらに備え、 前記シミュレーション終了状態解析手段で前記シミュレ
ーション終了状態が所望の終了状態でなかった場合、所
望の終了状態になるまで、異なる終了条件でソフトウエ
アシミュレーションの実行を繰り返す、 ことを特徴とする論理回路検証装置。
21. The logic circuit verification device according to claim 15, further comprising: a simulation end state analyzing unit that analyzes a simulation end state from the software simulation execution result, wherein the simulation end state is determined by the simulation end state analysis unit. A logic circuit verification device characterized by repeating execution of software simulation under different end conditions until the end state is not the desired end state.
【請求項22】 請求項21記載の論理回路検証装置に
おいて、 前記シミュレーション終了状態が所望の終了状態となる
終了条件を、前記論理シミュレーション実行手段におけ
る論理シミュレーションの終了条件として設定する論理
シミュレーション終了条件設定手段をさらに備える、 ことを特徴とする論理回路検証装置。
22. The logic circuit verification apparatus according to claim 21, wherein an end condition for setting the simulation end state to a desired end state is set as an end condition of the logic simulation in the logic simulation executing means. A logic circuit verification device, further comprising: means.
【請求項23】 請求項15記載の論理回路検証装置に
おいて、 設定された検証項目数がある閾値よりも大きいかどうか
判定し、該検証項目数が大きい場合に検証実行しないと
判定する検証項目数判定手段をさらに備える、ことを特
徴とする論理回路検証装置。
23. The logic circuit verification device according to claim 15, wherein it is determined whether the set number of verification items is larger than a certain threshold value, and if the number of verification items is large, the number of verification items to be determined not to execute the verification is determined. A logic circuit verification device, further comprising a determination unit.
【請求項24】 請求項23記載の論理回路検証装置に
おいて、 前記閾値は、前記検証済みパターン履歴情報を保存する
データ記憶部のサイズに関するものである、ことを特徴
とする論理回路検証装置。
24. The logic circuit verification device according to claim 23, wherein the threshold value is related to a size of a data storage unit that stores the verified pattern history information.
【請求項25】 請求項15記載の論理回路検証装置に
おいて、 前記期待値比較手段において前記論理シミュレーション
実行結果と前記期待値とが不一致の場合に、前記テスト
プログラム中のどのパターンでエラーが発生したのかを
解析するエラー発生パターン解析手段をさらに備える、 ことを特徴とする論理回路検証装置。
25. The logic circuit verification device according to claim 15, wherein an error has occurred in any of the patterns in the test program when the expected value comparing means does not match the logic simulation execution result with the expected value. A logic circuit verification device, further comprising: an error occurrence pattern analysis means for analyzing whether the error occurs.
【請求項26】 請求項25記載の論理回路検証装置に
おいて、 前記エラー発生パターン解析手段は、 エラーが発生したパターンを特定するエラー解析用シミ
ュレーションのシミュレーション終了条件を決定するエ
ラー解析用シミュレーション終了条件決定手段と、 前記エラー解析用シミュレーション終了条件決定手段に
より決定された終了条件で、前記テストプログラムをソ
フトウエアシミュレータ上で実行し、エラー解析用期待
値を前記データ記憶部に格納するエラー解析用ソフトウ
エアシミュレーション実行手段と、 前記エラー解析用シミュレーション終了条件決定手段に
より決定された終了条件で、前記テストプログラムを論
理シミュレーションにより被試験論理回路上で実行し、
該エラー解析用論理シミュレーション実行結果を前記デ
ータ記憶部に格納するエラー解析用論理シミュレーショ
ン実行手段と、 前記エラー解析用ソフトウエアシミュレーション実行手
段により出力された前記エラー解析用期待値と、前記エ
ラー解析用論理シミュレーション実行手段により出力さ
れた前記エラー解析用論理シミュレーション実行結果と
を比較するエラー解析用期待値比較手段と、 エラー解析処理を終了するかどうかを判定するエラー解
析終了判定手段と、解析したエラー発生パターンを表示
するエラー解析パターン表示手段とを備える、 ことを特徴とする論理回路検証装置。
26. The logic circuit verification device according to claim 25, wherein the error occurrence pattern analysis means determines a simulation end condition of an error analysis simulation that specifies a pattern in which an error has occurred. Means for executing the test program on a software simulator under an end condition determined by the error analysis simulation end condition determining means, and storing an expected value for error analysis in the data storage unit. Simulation execution means, executing the test program on a logic circuit under test by a logic simulation under an end condition determined by the error analysis simulation end condition determination means,
An error analysis logic simulation execution unit that stores the error analysis logic simulation execution result in the data storage unit; the error analysis expected value output by the error analysis software simulation execution unit; Error analysis expected value comparison means for comparing the error analysis logic simulation execution result output by the logic simulation execution means; error analysis end determination means for determining whether to end the error analysis processing; A logic circuit verification device, comprising: an error analysis pattern display means for displaying an occurrence pattern.
【請求項27】 請求項25または請求項26記載の論
理回路検証装置において、 それまでに発生したエラー発生パターンに関する情報で
あるエラー発生パターン履歴情報を基に、前記エラー発
生パターンが前記テストプログラムに含まれない場合に
検証を実行すると判定するエラー発生パターン判定手段
と、 前記エラー発生パターン解析手段において解析されたエ
ラー発生パターンに関する情報により前記エラー発生パ
ターン履歴情報を更新するエラー発生パターン履歴情報
更新手段とをさらに備える、 ことを特徴とする論理回路検証装置。
27. The logic circuit verification device according to claim 25, wherein the error occurrence pattern is stored in the test program based on error occurrence pattern history information that is information on an error occurrence pattern that has occurred so far. An error occurrence pattern determination unit that determines to execute verification when not included, and an error occurrence pattern history information update unit that updates the error occurrence pattern history information with information on the error occurrence pattern analyzed by the error occurrence pattern analysis unit A logic circuit verification device, further comprising:
【請求項28】 請求項15記載の論理回路検証装置に
おいて、 前記期待値比較手段において前記論理シミュレーション
実行結果と前記期待値とが不一致の場合に、前記テスト
プログラム又は該テストプログラムを再生成可能な情報
であるエラー発生テストプログラム情報を前記データ記
録装置に記録するエラー発生テストプログラム記録手段
をさらに備える、 ことを特徴とする論理回路検証装置。
28. The logic circuit verification device according to claim 15, wherein the test program or the test program can be regenerated when the expected value comparison means does not match the logic simulation execution result with the expected value. A logic circuit verification device, further comprising: an error occurrence test program recording unit that records error occurrence test program information as information in the data recording device.
【請求項29】 請求項15記載の論理回路検証装置に
おいて、 エラーが発生したテストプログラムを再生成可能な情報
であるエラー発生テストプログラム情報から、エラー発
生テストプログラムを生成するエラー発生テストプログ
ラム生成手段と、 検証に使用するテストプログラムを、前記テストプログ
ラム生成手段で生成するか、前記エラー発生テストプロ
グラム生成手段で生成するかを選択するテストプログラ
ム生成選択手段をさらに備える、 ことを特徴とする論理回路検証装置。
29. The error generation test program generating means according to claim 15, wherein the error generation test program is generated from the error generation test program information which is information capable of regenerating the test program in which the error has occurred. And a test program generation selecting means for selecting whether a test program to be used for verification is generated by the test program generation means or the error occurrence test program generation means. Verification device.
JP2000340942A 2000-11-08 2000-11-08 Method for verifying logic circuit and device for the same Pending JP2002149440A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000340942A JP2002149440A (en) 2000-11-08 2000-11-08 Method for verifying logic circuit and device for the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2000340942A JP2002149440A (en) 2000-11-08 2000-11-08 Method for verifying logic circuit and device for the same

Publications (1)

Publication Number Publication Date
JP2002149440A true JP2002149440A (en) 2002-05-24

Family

ID=18815769

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000340942A Pending JP2002149440A (en) 2000-11-08 2000-11-08 Method for verifying logic circuit and device for the same

Country Status (1)

Country Link
JP (1) JP2002149440A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006201017A (en) * 2005-01-20 2006-08-03 Yokogawa Electric Corp Ic tester
JP2013051764A (en) * 2011-08-30 2013-03-14 Hitachi Vehicle Energy Ltd Storage battery monitoring device
US8560986B2 (en) 2011-08-29 2013-10-15 Fujitsu Limited Computer product, apparatus, and method for correcting assertion
JP2014164646A (en) * 2013-02-27 2014-09-08 Hitachi Information & Telecommunication Engineering Ltd Logic verification method for information processor and program
JP2015114923A (en) * 2013-12-13 2015-06-22 株式会社日立情報通信エンジニアリング Logic verification method and program for information processing apparatus

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006201017A (en) * 2005-01-20 2006-08-03 Yokogawa Electric Corp Ic tester
JP4687117B2 (en) * 2005-01-20 2011-05-25 横河電機株式会社 IC tester
US8560986B2 (en) 2011-08-29 2013-10-15 Fujitsu Limited Computer product, apparatus, and method for correcting assertion
JP2013051764A (en) * 2011-08-30 2013-03-14 Hitachi Vehicle Energy Ltd Storage battery monitoring device
JP2014164646A (en) * 2013-02-27 2014-09-08 Hitachi Information & Telecommunication Engineering Ltd Logic verification method for information processor and program
JP2015114923A (en) * 2013-12-13 2015-06-22 株式会社日立情報通信エンジニアリング Logic verification method and program for information processing apparatus

Similar Documents

Publication Publication Date Title
JP2549266B2 (en) Method and apparatus for debugging digital circuit design
Clarke et al. Computer-aided verification
US4656580A (en) Logic simulation machine
Boulé et al. Adding debug enhancements to assertion checkers for hardware emulation and silicon debug
US7130783B1 (en) Simulation-based functional verification of microcircuit designs
US6487704B1 (en) System and method for identifying finite state machines and verifying circuit designs
US6976246B1 (en) Finite state model-based testing user interface
EP1916534B1 (en) Verification and generation of timing exceptions
JP4468410B2 (en) Software execution device and cooperative operation method
US6751582B1 (en) Method and system for enhanced design validation through trace tailoring
US7124383B2 (en) Integrated proof flow system and method
US7895026B1 (en) Multi-rate simulation scheduler for synchronous digital circuits in a high level modeling system
JP2002149440A (en) Method for verifying logic circuit and device for the same
Marques et al. DAG based library-free technology mapping
US6370494B1 (en) Simulator and computer-readable recordable medium having program for execution on computer realizing the simulator recorded thereon
CN109669669B (en) Error code generation method and error code generator
US6532573B1 (en) LSI verification method, LSI verification apparatus, and recording medium
JP2019091144A (en) Simulation device, simulation system, simulation method, and simulation program
CN107273604B (en) Random constraint selectable coverage rate driving-based random verification method
Lu et al. A semi-formal verification methodology
Encrenaz A symbolic relation for a subset of vhdl'87 descriptions and its application to symbolic model checking
JP6949440B2 (en) Vector generator and vector generator program
US6930931B2 (en) Program counter circuit
Miroshnyk et al. Design of real-time system logic control on FPGA
Strehl Using interval diagram techniques for the symbolic verification of timed automata