JP4373859B2 - Functional verification device, test bench circuit, simulator program, and recording medium - Google Patents
Functional verification device, test bench circuit, simulator program, and recording medium Download PDFInfo
- Publication number
- JP4373859B2 JP4373859B2 JP2004189535A JP2004189535A JP4373859B2 JP 4373859 B2 JP4373859 B2 JP 4373859B2 JP 2004189535 A JP2004189535 A JP 2004189535A JP 2004189535 A JP2004189535 A JP 2004189535A JP 4373859 B2 JP4373859 B2 JP 4373859B2
- Authority
- JP
- Japan
- Prior art keywords
- interrupt
- model
- flag
- signal
- expectation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Tests Of Electronic Circuits (AREA)
Description
本発明は、ハードウェア記述言語により設計されたモデルについての機能検証を、テストベンチを用いたシミュレーション結果に基づいて行う機能検証装置、テストベンチ回路、シミュレータプログラム及び記憶媒体に関する。 The present invention relates to a function verification apparatus, a test bench circuit , a simulator program, and a storage medium that perform function verification on a model designed in a hardware description language based on a simulation result using a test bench.
近年、ASIC(Application Specified IC)の設計手法は、その回路規模の増大に伴い、回路図による設計から抽象度の高いHDL(ハードウェア記述言語)によるディジタル回路設計へと移ってきている。このHDLにより設計される回路図は、きわめて膨大であり、動作がきわめて複雑になる。そのため、HDLにより設計された回路は、HDLで記述された他のモジュールと合わせてシミュレーション等を行うHDLシミュレータを用いることにより、機能検証作業を行うことが必要となっている。 In recent years, the design method of ASIC (Application Specified IC) has shifted from the design based on a circuit diagram to the digital circuit design based on HDL (hardware description language) with a high degree of abstraction as the circuit scale increases. The circuit diagram designed by the HDL is extremely enormous and the operation becomes extremely complicated. For this reason, a circuit designed by HDL needs to perform a function verification work by using an HDL simulator that performs simulation or the like together with other modules described in HDL.
より詳細には、HDLシミュレータは工程の全ての局面で使用されるものであり、各レベルでのシミュレーション結果に基本的な差がないことを確認するものである。このようなHDLシミュレータは、検証の対象とするHDLモデル(ASIC)に対して、それをテストするためのテストベンチと呼ぶ新たなHDL記述を追加する。テストベンチは、テスト・スティミュラス(テスト・ベクター)を含み、これをテストの対象とするHDLモデル(ASIC)に与え、シミュレーションを自動実行させるような手順をHDLで記述するものである。すなわち、図6に示すような、テストベンチ・モジュールを最上位とする1つのモデルが完成することになる。これをコンパイル、リンクしてコンピュータ上の実行モジュールを作成し、シミュレータ・コントロール・パネル上で実行をコントロールしながら波形を観察することにより、機能検証を行う。 More specifically, the HDL simulator is used in all aspects of the process, and confirms that there is no fundamental difference in simulation results at each level. Such an HDL simulator adds a new HDL description called a test bench for testing the HDL model (ASIC) to be verified. The test bench includes a test stimulus (test vector), which is given to an HDL model (ASIC) to be tested, and a procedure for automatically executing a simulation is described in HDL. That is, one model having the test bench module as the highest level as shown in FIG. 6 is completed. This is compiled and linked to create an execution module on the computer, and the function is verified by observing the waveform while controlling the execution on the simulator control panel.
例えば、特許文献1には、テストベンチを用いてコンピュータシミュレーションすることにより、半導体集積回路装置の機能を検証するテスト用プログラムが提案されている。
For example,
しかしながら、特許文献1のテスト用プログラムは、半導体集積回路装置全体としての動作をテストベンチによってチェックして正常であるか否かを判断するものであるが、回路に対する割り込みの検証を行うものではない。
However, the test program of
本発明は、ハードウェア記述言語により設計されたモデルに対する割り込みの検証を容易かつ高精度に行うことができる機能検証装置、テストベンチ、シミュレータプログラム及び記憶媒体を提供することを目的とする。 It is an object of the present invention to provide a function verification device, a test bench, a simulator program, and a storage medium that can easily and accurately verify an interrupt for a model designed in a hardware description language.
請求項1記載の発明の機能検証装置は、ハードウェア記述言語により設計されたモデルについての機能検証を、テストベンチを用いたシミュレーション結果に基づいて行う機能検証装置において、前記テストベンチは、前記モデルのI/F系バスに応答もしくはアクセスするためのバスモデルと、前記モデルに種々のテスト動作を実行させるための指示を出すテストシナリオと、前記モデルにバス接続される仮想的なCPUであるCPUバスモデルと、割り込み期待を示すフラグと、異常応答の要求を示す異常応答発生フラグと、を備え、前記割り込み期待を示すフラグをアサートした後、前記テストシナリオから前記バスモデルに対して前記異常応答発生フラグを前記モデルに送信して、当該モデルが割り込み信号を発行する状態とし、前記モデルからの前記割り込み信号を前記CPUバスモデルで受信したとき、前記割り込み期待を示すフラグがアサートされているか否かを確認し、アサートされている場合、意図通りの割り込み信号を受信したことを報知すると共に、当該割り込み期待を示すフラグをネゲートし、アサートされていない場合は終了する。
The function verification apparatus according to
したがって、ハードウェア記述言語により設計されたモデルについての割り込みの確認テストを実施する時は、割り込み期待フラグをアサートした状態で、テストシナリオからバスモデルに対して異常応答の要求を示す異常応答発生フラグが送信される。そして、モデルにバス接続されるCPUバスモデルでモデルからの割り込み信号を受信した場合、割り込み期待フラグがアサートされていれば期待通りの割り込みであることが認識され、意図通りの割り込み信号を受信したことが検証者に報知される。 Therefore, when performing an interrupt confirmation test for a model designed in the hardware description language, an abnormal response occurrence flag indicating a request for an abnormal response from the test scenario to the bus model with the interrupt expectation flag asserted. Is sent. When the CPU bus model connected to the model receives an interrupt signal from the model, if the interrupt expectation flag is asserted, the interrupt is recognized as expected, and the interrupt signal is received as intended. This is notified to the verifier.
請求項2記載の発明は、請求項1記載の機能検証装置において、前記テストベンチは、前記モデルからの割り込み信号を前記CPUバスモデルで受信し、割り込み期待を示すフラグがアサートされている場合、割り込み期待を示すフラグをネゲートする。
The invention according to
したがって、ハードウェア記述言語により設計されたモデルについての割り込みの確認テストを確実に終了させることが可能になる。 Therefore, it is possible to reliably end the interrupt confirmation test for the model designed by the hardware description language.
請求項3記載の発明は、請求項1または2記載の機能検証装置において、前記テストベンチは、前記モデルからの割り込み信号を前記CPUバスモデルで受信し、割り込み期待を示すフラグがアサートされていない場合、意図しない割り込み信号を受信したことを報知する。 According to a third aspect of the present invention, in the functional verification device according to the first or second aspect, the test bench receives an interrupt signal from the model by the CPU bus model, and a flag indicating an interrupt expectation is not asserted. In this case, it is notified that an unintended interrupt signal has been received.
したがって、モデルにバス接続されるCPUバスモデルでモデルからの割り込み信号を受信した場合、割り込み期待フラグがアサートされていなければ割り込みの確認テストではないので、意図しない割り込み信号を受信したことが検証者に報知される。 Therefore, when an interrupt signal from a model is received by a CPU bus model connected to the model bus, it is not an interrupt confirmation test unless the interrupt expectation flag is asserted. To be notified.
請求項4記載の発明は、請求項1ないし3のいずれか一記載の機能検証装置において、前記テストベンチは、前記モデルからの割り込み信号を前記CPUバスモデルで受信し、割り込み期待を示すフラグがアサートされていない場合、シミュレーションを停止する。 According to a fourth aspect of the present invention, in the functional verification device according to any one of the first to third aspects, the test bench receives an interrupt signal from the model by the CPU bus model, and a flag indicating an interrupt expectation is provided. If not, stop the simulation.
したがって、モデルにバス接続されるCPUバスモデルでモデルからの割り込み信号を受信した場合、割り込み期待フラグがアサートされていなければ割り込みの確認テストではないので、意図しない割り込み信号を受信したので、シミュレーションが停止される。 Therefore, when an interrupt signal from a model is received by a CPU bus model connected to the model, it is not an interrupt confirmation test unless the interrupt expectation flag is asserted. Stopped.
請求項5記載の発明は、請求項1ないし4のいずれか一記載の機能検証装置において、前記テストベンチは、割り込み期待を示すフラグをアサートした後の所定時間内に、前記モデルからの割り込み信号を前記CPUバスモデルで受信しなかった場合、意図した割り込みが所定時間内に発行されないことを報知する。 According to a fifth aspect of the present invention, in the functional verification device according to any one of the first to fourth aspects, the test bench receives an interrupt signal from the model within a predetermined time after asserting a flag indicating an interrupt expectation. Is not received by the CPU bus model, it is notified that the intended interrupt is not issued within a predetermined time.
したがって、ハードウェア記述言語により設計されたモデルについての割り込みの確認テストを実施する時は、割り込み期待フラグをアサートした状態で、テストシナリオからバスモデルに対して異常応答の要求を示す異常応答発生フラグが送信されるが、割り込み期待を示すフラグをアサートした後の所定時間内に、モデルからの割り込み信号をCPUバスモデルで受信しなかった場合には、意図した割り込み信号が所定時間内に発行されないことが検証者に報知される。 Therefore, when performing an interrupt confirmation test for a model designed in the hardware description language, an abnormal response occurrence flag indicating a request for an abnormal response from the test scenario to the bus model with the interrupt expectation flag asserted. Will be sent, but if the interrupt signal from the model is not received by the CPU bus model within the predetermined time after asserting the flag indicating interrupt expectation, the intended interrupt signal will not be issued within the predetermined time This is notified to the verifier.
請求項6記載の発明は、請求項1ないし5のいずれか一記載の機能検証装置において、前記テストベンチは、割り込み期待を示すフラグをアサートした後の所定時間内に、前記モデルからの割り込み信号を前記CPUバスモデルで受信しなかった場合、シミュレーションを停止する。 According to a sixth aspect of the present invention, in the functional verification device according to any one of the first to fifth aspects, the test bench receives an interrupt signal from the model within a predetermined time after asserting a flag indicating an interrupt expectation. Is not received by the CPU bus model, the simulation is stopped.
したがって、ハードウェア記述言語により設計されたモデルについての割り込みの確認テストを実施する時は、割り込み期待フラグをアサートした状態で、テストシナリオからバスモデルに対して異常応答の要求を示す異常応答発生フラグが送信されるが、割り込み期待を示すフラグをアサートした後の所定時間内に、モデルからの割り込み信号をCPUバスモデルで受信しなかった場合には、意図した割り込み信号が所定時間内に発行されないので、シミュレーションが停止される。 Therefore, when performing an interrupt confirmation test for a model designed in the hardware description language, an abnormal response occurrence flag indicating a request for an abnormal response from the test scenario to the bus model with the interrupt expectation flag asserted. Will be sent, but if the interrupt signal from the model is not received by the CPU bus model within the predetermined time after asserting the flag indicating interrupt expectation, the intended interrupt signal will not be issued within the predetermined time Therefore, the simulation is stopped.
請求項7記載の発明は、請求項5または6記載の機能検証装置において、割り込み期待を示すフラグをアサートした後の所定時間は、随時設定可能である。 According to a seventh aspect of the present invention, in the function verification device according to the fifth or sixth aspect, the predetermined time after the flag indicating the interrupt expectation can be set at any time.
したがって、割り込みに関する検証の再利用性及び保守性を向上させることが可能になる。 Therefore, it is possible to improve the reusability and maintainability of verification regarding interrupts.
請求項8記載の発明のテストベンチ回路は、ハードウェア記述言語により設計されたモデル信号を生成するモデル生成回路に対する各種のシミュレーションを行うテストベンチ回路において、前記モデル生成回路のI/F系バスに応答もしくはアクセスするためのバスモデル信号を生成するためのバスモデル生成回路と、前記モデル生成回路に種々のテスト動作を実行させるための指示を出すテストシナリオ信号を生成するためのテストシナリオ生成回路と、前記モデル生成回路にバス接続される仮想的なCPUであるCPUバスモデル信号を生成するためのCPUバスモデル生成回路と、割り込み期待を示すフラグ信号を生成するための割り込み期待フラグ生成回路と、異常応答の要求を示す異常応答発生フラグ信号を生成するための異常応答発生フラグ生成回路と、を備え、前記割り込み期待フラグ生成回路による前記割り込み期待を示すフラグ信号をアサートした後、前記テストシナリオ生成回路による前記テストシナリオ信号から前記バスモデル生成回路による前記バスモデル信号に対して前記異常応答発生フラグ生成回路による前記異常応答発生フラグ信号を前記モデル生成回路による前記モデル信号に送信して、当該モデル生成回路が割り込み信号を発行する状態とし、前記モデル生成回路からの前記割り込み信号を前記CPUバスモデル生成回路で受信したとき、前記割り込み期待フラグ生成回路による前記割り込み期待を示すフラグ信号がアサートされているか否かを確認し、アサートされている場合、意図通りの割り込み信号を受信したことを報知すると共に、当該割り込み期待を示すフラグ信号をネゲートし、アサートされていない場合は終了する。
Test bench circuits of the invention of
したがって、ハードウェア記述言語により設計されたモデル生成回路によるモデル信号についての割り込みの確認テストを実施する時は、割り込み期待フラグ生成回路による割り込み期待フラグ信号をアサートした状態で、テストシナリオ生成回路によるテストシナリオ信号からバスモデル生成回路によるバスモデル信号に対して異常応答発生フラグ生成回路による異常応答発生フラグ信号が送信される。そして、モデル生成回路にバス接続されるCPUバスモデル生成回路によるCPUバスモデル信号でモデル生成回路によるモデル信号からの割り込み信号を受信した場合、割り込み期待フラグ生成回路による割り込み期待フラグ信号がアサートされていれば期待通りの割り込みであることが認識され、意図通りの割り込み信号を受信したことが検証者に報知される。 Therefore, when performing an interrupt confirmation test on a model signal by a model generation circuit designed by a hardware description language, a test by the test scenario generation circuit with the interrupt expectation flag signal asserted by the interrupt expectation flag generation circuit abnormal response generation flag signal due to abnormal responses occurrence flag generating circuit is transmitted to the bus model signal by the bus model generation circuit from the scenario signal. Then, when receiving the interrupt signal from the model signal according to a model generator in the CPU bus model signal by the CPU bus model generation circuit which is bus-connected to the model generator, interrupt expected flag signal by the interrupt expected flag generating circuit is asserted Then, it is recognized that the interrupt is as expected, and the verifier is notified that the interrupt signal as intended is received.
請求項9記載の発明は、請求項8記載のテストベンチ回路において、前記モデル生成回路からの割り込み信号を前記CPUバスモデル生成回路で受信し、前記割り込み期待フラグ生成回路による前記割り込み期待を示すフラグ信号がアサートされている場合、当該割り込み期待フラグ生成回路による当該割り込み期待を示すフラグ信号をネゲートする。
Flag according to
したがって、ハードウェア記述言語により設計されたモデル生成回路によるモデル信号についての割り込みの確認テストを確実に終了させることが可能になる。 Therefore, it is possible to reliably end the interrupt confirmation test for the model signal by the model generation circuit designed by the hardware description language.
請求項10記載の発明は、請求項8または9記載のテストベンチ回路において、前記モデル生成回路からの割り込み信号を前記CPUバスモデル生成回路で受信し、前記割り込み期待フラグ生成回路による前記割り込み期待を示すフラグ信号がアサートされていない場合、意図しない割り込み信号を受信したことを報知する。
The invention of
したがって、モデル生成回路にバス接続されるCPUバスモデル生成回路でモデル生成回路からの割り込み信号を受信した場合、割り込み期待フラグ生成回路による割り込み期待フラグ信号がアサートされていなければ割り込みの確認テストではないので、意図しない割り込み信号を受信したことが検証者に報知される。 Therefore, when receiving an interrupt signal from the model generating circuit in the CPU bus model generation circuit which is bus-connected to the model generator, interrupt expected flag signal is not a confirmation test of an interrupt if it is not asserted by the interrupt expected flag generator Therefore, the verifier is notified that an unintended interrupt signal has been received.
請求項11記載の発明は、請求項8ないし10のいずれか一記載のテストベンチ回路において、前記モデル生成回路からの割り込み信号を前記CPUバスモデル生成回路で受信し、前記割り込み期待フラグ生成回路による前記割り込み期待を示すフラグ信号がアサートされていない場合、シミュレーションを停止する。
The invention of
したがって、モデル生成回路にバス接続されるCPUバスモデル生成回路でモデル生成回路からの割り込み信号を受信した場合、割り込み期待フラグ生成回路による割り込み期待フラグ信号がアサートされていなければ割り込みの確認テストではないので、意図しない割り込み信号を受信したので、シミュレーションが停止される Therefore, when receiving an interrupt signal from the model generating circuit in the CPU bus model generation circuit which is bus-connected to the model generator, interrupt expected flag signal is not a confirmation test of an interrupt if it is not asserted by the interrupt expected flag generator Because the unintended interrupt signal is received, the simulation is stopped
請求項12記載の発明は、請求項8ないし11のいずれか一記載のテストベンチ回路において、前記割り込み期待フラグ生成回路による前記割り込み期待を示すフラグ信号をアサートした後の所定時間内に、前記モデル生成回路からの割り込み信号を前記CPUバスモデル生成回路で受信しなかった場合、意図した割り込みが所定時間内に発行されないことを報知する。 According to a twelfth aspect of the present invention, in the test bench circuit according to any one of the eighth to eleventh aspects, the model is received within a predetermined time after the flag signal indicating the interrupt expectation by the interrupt expectation flag generation circuit is asserted. When the interrupt signal from the generation circuit is not received by the CPU bus model generation circuit, it is notified that the intended interrupt is not issued within a predetermined time.
したがって、ハードウェア記述言語により設計されたモデル生成回路によるモデル信号についての割り込みの確認テストを実施する時は、割り込み期待フラグ生成回路による割り込み期待フラグ信号をアサートした状態で、テストシナリオ生成回路によるテストシナリオ信号からバスモデル生成回路によるバスモデル信号に対して異常応答発生フラグ生成回路による異常応答発生フラグ信号が送信されるが、割り込み期待フラグ生成回路による割り込み期待を示すフラグ信号をアサートした後の所定時間内に、モデル生成回路からの割り込み信号をCPUバスモデル生成回路で受信しなかった場合には、意図した割り込み信号が所定時間内に発行されないことが検証者に報知される。 Therefore, when performing an interrupt confirmation test on a model signal by a model generation circuit designed by a hardware description language, a test by the test scenario generation circuit with the interrupt expectation flag signal asserted by the interrupt expectation flag generation circuit Although abnormal response generation flag signal due to abnormal responses occurrence flag generation circuit from the scenario signal to the bus model signal by the bus model generation circuit is transmitted, after asserting a flag signal indicating the interruption expected by the interrupt expected flag generator within a predetermined time, an interrupt signal from the model generating circuit when it did not receive CPU bus model generating circuit, that the intended interrupt signal is not issued within a predetermined time is informed to the verifier.
請求項13記載の発明は、請求項8ないし12のいずれか一記載のテストベンチ回路において、前記割り込み期待フラグ生成回路による前記割り込み期待を示すフラグ信号をアサートした後の所定時間内に、前記モデル生成回路からの割り込み信号を前記CPUバスモデル生成回路で受信しなかった場合、シミュレーションを停止する。 According to a thirteenth aspect of the present invention, in the test bench circuit according to any one of the eighth to twelfth aspects, the model is within a predetermined time after the flag signal indicating the interrupt expectation by the interrupt expectation flag generation circuit is asserted. When the interrupt signal from the generation circuit is not received by the CPU bus model generation circuit , the simulation is stopped.
したがって、ハードウェア記述言語により設計されたモデル生成回路によるモデル信号についての割り込みの確認テストを実施する時は、割り込み期待フラグ生成回路による割り込み期待フラグ信号をアサートした状態で、テストシナリオ生成回路によるテストシナリオ信号からバスモデル生成回路によるバスモデル信号に対して異常応答発生フラグ生成回路による異常応答発生フラグ信号が送信されるが、割り込み期待フラグ生成回路による割り込み期待を示すフラグ信号をアサートした後の所定時間内に、モデル生成回路からの割り込み信号をCPUバスモデル生成回路で受信しなかった場合には、意図した割り込み信号が所定時間内に発行されないので、シミュレーションが停止される。 Therefore, when performing an interrupt confirmation test on a model signal by a model generation circuit designed by a hardware description language, a test by the test scenario generation circuit with the interrupt expectation flag signal asserted by the interrupt expectation flag generation circuit Although abnormal response generation flag signal due to abnormal responses occurrence flag generation circuit from the scenario signal to the bus model signal by the bus model generation circuit is transmitted, after asserting a flag signal indicating the interruption expected by the interrupt expected flag generator within a predetermined time, an interrupt signal from the model generating circuit when it did not receive CPU bus model generating circuit, because intended interrupt signal is not issued within a predetermined time, the simulation is stopped.
請求項14記載の発明は、請求項12または13記載のテストベンチ回路において、前記割り込み期待フラグ生成回路による前記割り込み期待を示すフラグ信号をアサートした後の所定時間は、随時設定可能である。 According to a fourteenth aspect of the present invention, in the test bench circuit according to the twelfth or thirteenth aspect, the predetermined time after the flag signal indicating the interrupt expectation by the interrupt expectation flag generating circuit can be set at any time.
したがって、割り込みに関する検証の再利用性及び保守性を向上させることが可能になる。 Therefore, it is possible to improve the reusability and maintainability of verification regarding interrupts.
請求項15記載の発明のシミュレータプログラムは、ハードウェア記述言語により設計されたモデルに対する各種のシミュレーションをコンピュータに実行させるコンピュータに読取り可能なシミュレータプログラムにおいて、前記モデルのI/F系バスに応答もしくはアクセスするためのバスモデルを生成する機能と、前記モデルへのレジスタ設定や前記バスモデルへの動作機能設定を行い、前記モデルに種々のテスト動作を実行させるための指示を出すテストシナリオを生成する機能と、前記モデルにバス接続される仮想的なCPUであるCPUバスモデルを生成する機能と、割り込み期待を示すフラグをアサートする機能と、前記割り込み期待を示すフラグをアサートした後、前記テストシナリオから前記バスモデルに対して異常応答の要求を示す異常応答発生フラグを送信する機能と、前記モデルからの割り込み信号を前記CPUバスモデルで受信する機能と、前記モデルからの前記割り込み信号を前記CPUバスモデルで受信した場合、前記割り込み期待を示すフラグがアサートされているかどうかを確認する機能と、前記割り込み期待を示すフラグがアサートされている場合、意図通りの割り込み信号を受信したことを報知する機能と、を前記コンピュータに実行させる。 A simulator program according to claim 15 is a computer-readable simulator program for causing a computer to execute various simulations for a model designed in a hardware description language, and responds to or accesses an I / F bus of the model. A function for generating a bus model for generating a test scenario, a function for generating a test scenario for setting a register in the model and an operation function for the bus model, and issuing instructions for causing the model to perform various test operations A function for generating a CPU bus model that is a virtual CPU bus-connected to the model, a function for asserting an interrupt expectation flag, and an assertion of the interrupt expectation flag, Abnormal response to the bus model A function of transmitting an abnormality response generation flag indicating a request, if a function of receiving an interrupt signal from said model with said CPU bus models, where the interrupt signal from said model received by the CPU bus model, the interrupt expectations a function of confirming whether the asserted flag indicating, when the flag indicating the interrupt expectation is asserted, executing a function of notifying the reception of the interrupt signal as intended, to the computer.
したがって、ハードウェア記述言語により設計されたモデルについての割り込みの確認テストを実施する時は、割り込み期待フラグをアサートした状態で、テストシナリオからバスモデルに対して異常応答の要求を示す異常応答発生フラグが送信される。そして、モデルにバス接続されるCPUバスモデルでモデルからの割り込み信号を受信した場合、割り込み期待フラグがアサートされていれば期待通りの割り込みであることが認識され、意図通りの割り込み信号を受信したことが検証者に報知される。 Therefore, when performing an interrupt confirmation test for a model designed in the hardware description language, an abnormal response occurrence flag indicating a request for an abnormal response from the test scenario to the bus model with the interrupt expectation flag asserted. Is sent. When the CPU bus model connected to the model receives an interrupt signal from the model, if the interrupt expectation flag is asserted, the interrupt is recognized as expected, and the interrupt signal is received as intended. This is notified to the verifier.
請求項16記載の発明は、請求項15記載のシミュレータプログラムにおいて、前記モデルからの割り込み信号を前記CPUバスモデルで受信し、割り込み期待を示すフラグがアサートされている場合、割り込み期待を示すフラグをネゲートする。 According to a sixteenth aspect of the present invention, in the simulator program according to the fifteenth aspect, when the interrupt signal from the model is received by the CPU bus model and the flag indicating the interrupt expectation is asserted, the flag indicating the interrupt expectation is set. Negate.
したがって、ハードウェア記述言語により設計されたモデルについての割り込みの確認テストを確実に終了させることが可能になる。 Therefore, it is possible to reliably end the interrupt confirmation test for the model designed by the hardware description language.
請求項17記載の発明は、請求項15または16記載のシミュレータプログラムにおいて、前記モデルからの割り込み信号を前記CPUバスモデルで受信し、割り込み期待を示すフラグがアサートされていない場合、意図しない割り込み信号を受信したことを報知する。 According to a seventeenth aspect of the present invention, in the simulator program according to the fifteenth or sixteenth aspect, when an interrupt signal from the model is received by the CPU bus model and a flag indicating an interrupt expectation is not asserted, an unintended interrupt signal Is received.
したがって、モデルにバス接続されるCPUバスモデルでモデルからの割り込み信号を受信した場合、割り込み期待フラグがアサートされていなければ割り込みの確認テストではないので、意図しない割り込み信号を受信したことが検証者に報知される。 Therefore, when an interrupt signal from a model is received by a CPU bus model connected to the model bus, it is not an interrupt confirmation test unless the interrupt expectation flag is asserted. To be notified.
請求項18記載の発明は、請求項15ないし17のいずれか一記載のシミュレータプログラムにおいて、前記モデルからの割り込み信号を前記CPUバスモデルで受信し、割り込み期待を示すフラグがアサートされていない場合、シミュレーションを停止する。 The invention according to claim 18 is the simulator program according to any one of claims 15 to 17, wherein an interrupt signal from the model is received by the CPU bus model, and a flag indicating an interrupt expectation is not asserted. Stop the simulation.
したがって、モデルにバス接続されるCPUバスモデルでモデルからの割り込み信号を受信した場合、割り込み期待フラグがアサートされていなければ割り込みの確認テストではないので、意図しない割り込み信号を受信したので、シミュレーションが停止される。 Therefore, when an interrupt signal from a model is received by a CPU bus model connected to the model, it is not an interrupt confirmation test unless the interrupt expectation flag is asserted. Stopped.
請求項19記載の発明は、請求項15ないし18のいずれか一記載のシミュレータプログラムにおいて、割り込み期待を示すフラグをアサートした後の所定時間内に、前記モデルからの割り込み信号を前記CPUバスモデルで受信しなかった場合、意図した割り込みが所定時間内に発行されないことを報知する。 According to a nineteenth aspect of the present invention, in the simulator program according to any one of the fifteenth to eighteenth aspects, an interrupt signal from the model is transmitted to the CPU bus model within a predetermined time after the flag indicating an interrupt expectation is asserted. If not received, a notification is made that the intended interrupt is not issued within a predetermined time.
したがって、ハードウェア記述言語により設計されたモデルについての割り込みの確認テストを実施する時は、割り込み期待フラグをアサートした状態で、テストシナリオからバスモデルに対して異常応答の要求を示す異常応答発生フラグが送信されるが、割り込み期待を示すフラグをアサートした後の所定時間内に、モデルからの割り込み信号をCPUバスモデルで受信しなかった場合には、意図した割り込み信号が所定時間内に発行されないことが検証者に報知される。 Therefore, when performing an interrupt confirmation test for a model designed in the hardware description language, an abnormal response occurrence flag indicating a request for an abnormal response from the test scenario to the bus model with the interrupt expectation flag asserted. Will be sent, but if the interrupt signal from the model is not received by the CPU bus model within the predetermined time after asserting the flag indicating interrupt expectation, the intended interrupt signal will not be issued within the predetermined time This is notified to the verifier.
請求項20記載の発明は、請求項15ないし19のいずれか一記載のシミュレータプログラムにおいて、割り込み期待を示すフラグをアサートした後の所定時間内に、前記モデルからの割り込み信号を前記CPUバスモデルで受信しなかった場合、シミュレーションを停止する。 According to a twentieth aspect of the present invention, in the simulator program according to any one of the fifteenth to nineteenth aspects, an interrupt signal from the model is transmitted to the CPU bus model within a predetermined time after the flag indicating an interrupt expectation is asserted. If not received, the simulation is stopped.
したがって、ハードウェア記述言語により設計されたモデルについての割り込みの確認テストを実施する時は、割り込み期待フラグをアサートした状態で、テストシナリオからバスモデルに対して異常応答の要求を示す異常応答発生フラグが送信されるが、割り込み期待を示すフラグをアサートした後の所定時間内に、モデルからの割り込み信号をCPUバスモデルで受信しなかった場合には、意図した割り込み信号が所定時間内に発行されないので、シミュレーションが停止される。 Therefore, when performing an interrupt confirmation test for a model designed in the hardware description language, an abnormal response occurrence flag indicating a request for an abnormal response from the test scenario to the bus model with the interrupt expectation flag asserted. Will be sent, but if the interrupt signal from the model is not received by the CPU bus model within the predetermined time after asserting the flag indicating interrupt expectation, the intended interrupt signal will not be issued within the predetermined time Therefore, the simulation is stopped.
請求項21記載の発明は、請求項19または20記載のシミュレータプログラムにおいて、割り込み期待を示すフラグをアサートした後の所定時間は、随時設定可能である。 According to a twenty-first aspect of the present invention, in the simulator program according to the nineteenth or twentieth aspect, the predetermined time after the flag indicating the interrupt expectation can be set at any time.
したがって、割り込みに関する検証の再利用性及び保守性を向上させることが可能になる。 Therefore, it is possible to improve the reusability and maintainability of verification regarding interrupts.
請求項22記載の発明の記憶媒体は、請求項15ないし21の何れか一記載のコンピュータに読取り可能なシミュレータプログラムを格納した。 A storage medium according to a twenty-second aspect stores a computer-readable simulator program according to any one of the fifteenth to twenty-first aspects.
したがって、請求項15ないし21の何れか一記載の発明と同様な作用を奏する。 Accordingly, the same effect as that of any one of claims 15 to 21 can be attained.
本発明によれば、ハードウェア記述言語により設計されたモデルに対する割り込みの検証を容易かつ高精度に行うことができる。 According to the present invention, it is possible to easily and accurately perform interrupt verification for a model designed by a hardware description language.
本発明の実施の一形態を図1ないし図5に基づいて説明する。 An embodiment of the present invention will be described with reference to FIGS.
図1は、本発明が適用される機能検証装置1のハードウェア構成を概略的に示すブロック図である。図1に示すように、機能検証装置1は、例えばパーソナルコンピュータやワークステーションであり、コンピュータの主要部であって各部を集中的に制御するCPU(Central Processing Unit)2を備えている。このCPU2には、BIOSなどを記憶した読出し専用メモリであるROM(Read Only Memory)3と、各種データを書換え可能に記憶するRAM(Random Access Memory)4とがバス5で接続されている。
FIG. 1 is a block diagram schematically showing a hardware configuration of a
さらにバス5には、各種のプログラム等を格納するHDD(Hard Disk Drive)6と、配布されたプログラムであるコンピュータソフトウェアを読み取るための機構としてCD(Compact Disc)−ROM7を読み取るCD−ROMドライブ8と、機能検証装置1とネットワーク9との通信を司る通信制御装置10と、機能検証時の各種操作指示を行うキーボードやマウスなどの入力装置11と、機能検証時のシミュレーション結果等を表示するCRT(Cathode Ray Tube)、LCD(Liquid Crystal Display)などの表示装置12とが、図示しないI/Oを介して接続されている。
Further, the
RAM4は、各種データを書換え可能に記憶する性質を有していることから、CPU2の作業エリアとして機能してバッファ等の役割を果たす。
Since the
図1に示すCD−ROM7は、この発明の記憶媒体を実施するものであり、OS(Operating System)や各種のプログラムが記憶されている。CPU2は、CD−ROM7に記憶されているプログラムをCD−ROMドライブ8で読み取り、HDD6にインストールする。
A CD-ROM 7 shown in FIG. 1 implements the storage medium of the present invention, and stores an OS (Operating System) and various programs. The
なお、記憶媒体としては、CD−ROM7のみならず、DVDなどの各種の光ディスク、各種光磁気ディスク、フレキシブル・ディスクなどの各種磁気ディスク等、半導体メモリ等の各種方式のメディアを用いることができる。また、通信制御装置10を介してインターネットなどのネットワーク9からプログラムをダウンロードし、HDD6にインストールするようにしてもよい。この場合に、送信側のサーバでプログラムを記憶している記憶装置も、この発明の記憶媒体である。なお、プログラムは、所定のOS(Operating System)上で動作するものであってもよいし、その場合に後述の各種処理の一部の実行をOSに肩代わりさせるものであってもよいし、所定のアプリケーションソフトやOSなどを構成する一群のプログラムファイルの一部として含まれているものであってもよい。
As the storage medium, not only the CD-ROM 7 but also various types of media such as semiconductor memory such as various optical disks such as DVD, various magnetic disks such as various magneto-optical disks and flexible disks, and the like can be used. Alternatively, the program may be downloaded from the
このシステム全体の動作を制御するCPU2は、このシステムの主記憶として使用されるHDD6上にロードされたプログラムに基づいて各種処理を実行する。
The
次に、機能検証装置1のHDD6にインストールされている各種のプログラムがCPU2に実行させる機能のうち、本実施の形態の機能検証装置1が備える特長的な機能について説明する。ここでは、HDLシミュレータプログラムがCPU2に実行させるHDLシミュレータ機能について説明する。HDLシミュレータ機能は、概略的には、HDL(ハードウェア記述言語)により設計されたモデルに対してシミュレーションを行うものである。
Next, among the functions that the various programs installed in the
図2は、HDLシミュレータ100のテストベンチ101と検証対象ASIC50との関連構成を概略的に示す機能ブロック図である。HDLシミュレータ100は、HDLにより設計されたモデルである検証対象ASIC50に対するHDLシミュレータ機能を発揮するものである。図2に示すように、HDLシミュレータ100のテストベンチ101は、テストシナリオ102と、異常応答発生フラグ103と、バスモデル104と、CPUバスモデル105と、割り込み期待フラグ106とで構成される。このようなテストベンチ101は、検証対象ASIC50を検証するために、Verilog、VHDL、C/C++、E言語、Vera等の言語を用いてコーディングされたものである。なお、テストベンチ101を電子回路として構成する場合のテストベンチ回路については、上記検証対象ASIC50をモデル信号の生成を行うモデル生成回路とみなすと共に、テストシナリオ102、異常応答発生フラグ103、バスモデル104、CPUバスモデル105、及び割り込み期待フラグ106を含む信号をそれぞれ生成するための同様な機能の各生成回路を同一基板上に設け、図2に示される場合と同様に電気的な接続を行って、信号処理を行わせれば良いものである。
FIG. 2 is a functional block diagram schematically showing a related configuration between the test bench 101 of the
バスモデル104は、検証対象ASIC50のI/F系バス(図示せず)に応答もしくはアクセスするためのものである。
The
CPUバスモデル105は、検証対象ASIC50に接続されるCPU(図示せず)をソフトウェアでモデル化したもの(ソフトウェアで書かれた仮想的なCPU)であり、検証対象ASIC50からの割り込み信号を受信する。
The
テストシナリオ102は、検証対象ASIC50に種々の動作をさせるためのプログラムであり、CPUバスモデル105を経由して検証対象ASIC50へのレジスタ設定やバスモデル104への動作機能設定等を行う。検証対象ASIC50にはレジスタ(ASICの種々動作を司る機能)が内蔵されており、このレジスタに対するテストシナリオ102からのアクセス又は指示によって、検証対象ASIC50が所望の動作を実行するのである。
The
本実施の形態に係るテストベンチ101の特徴は、バスモデル104とテストシナリオ102とCPUバスモデル105とを、ファイルとして別物(それぞれ独立したファイル又は関数)として取り扱い、テストシナリオ102とバスモデル104とをファイル分離したことに伴って、テストシナリオ102とバスモデル104との間の通信は共有フラグ(異常応答発生フラグ103)を用いて行うことにある。異常応答発生フラグ103は、異常応答の要求を示し、検証対象ASIC50はこれを受信したら、エラー割り込みを発生する。
The test bench 101 according to the present embodiment is characterized in that the
加えて、テストシナリオ102とCPUバスモデル105との間の通信も、共有フラグ(割り込み期待フラグ106)を用いて行う。割り込み期待フラグ106は、割り込み期待を示すフラグ(Int_Expect)、割り込みを待つ時間を示す割り込み検出期間(Int_TimeOut)を有する。
In addition, communication between the
[割り込み発行確認のシーケンス]
次に、HDLシミュレータ100のテストベンチ101による割り込み発行確認のシーケンスについて図3のフローチャートを参照して説明する。図3に示すように、テストベンチ101は、シミュレーションの開始時は、割り込み期待を示すフラグ(Int_Expect)をネゲート(Int_Expect=0)しておく(ステップS1)。
[Interrupt issue confirmation sequence]
Next, an interrupt issue confirmation sequence by the test bench 101 of the
テストベンチ101は、割り込みが発生することを確認するテストを実行する時、割り込み期待を示すフラグ(Int_Expect)をアサート(Int_Expect=1)し(ステップS2)、テストシナリオ102とバスモデル104との間の共有フラグ(異常応答発生フラグ103)にてバスモデル104の異常応答を要求する(ステップS3)。これにより、検証対象ASIC50が割り込み信号を発行する状態にすることができる。
When the test bench 101 executes a test for confirming that an interrupt is generated, the test bench 101 asserts a flag (Int_Expect = 1) indicating an interrupt expectation (Int_Expect = 1) (step S2), and between the
テストベンチ101から異常応答を受けた検証対象ASIC50は、テストベンチ101のCPUバスモデル105に対して、割り込み信号を発行する(ステップT1)。
The
テストベンチ101のCPUバスモデル105は、検証対象ASIC50からの割り込み信号を受信すると、割り込み期待を示すフラグ(Int_Expect)がアサート(Int_Expect=1)されているかどうか確認する(ステップS4)。
When the
割り込み期待を示すフラグ(Int_Expect)がアサート(Int_Expect=1)されていれば、意図通りの割り込み受信したことをログ表示し、割り込み期待を示すフラグ(Int_Expect)をネゲート(Int_Expect=0)しておく(ステップS5)。このように、意図通りの割り込み受信したことをログ表示した後、割り込み期待を示すフラグ(Int_Expect)をネゲート(Int_Expect=0)しておくことにより、検証対象ASIC50についての割り込みの確認テストを確実に終了させることが可能になる。
If the flag (Int_Expect) indicating interrupt expectation is asserted (Int_Expect = 1), the fact that the interrupt was received as intended is displayed in a log, and the flag (Int_Expect) indicating interrupt expectation is negated (Int_Expect = 0). (Step S5). In this way, after displaying that the interrupt was received as intended, the flag (Int_Expect) indicating the interrupt expectation is negated (Int_Expect = 0), thereby ensuring the interrupt confirmation test for the
[意図しない割り込み発行確認のシーケンス]
次に、HDLシミュレータ100のテストベンチ101による意図しない割り込み発行確認のシーケンスについて図4のフローチャートを参照して説明する。図4に示すように、テストベンチ101は、シミュレーションの開始時は、割り込み期待を示すフラグ(Int_Expect)をネゲート(Int_Expect=0)しておく(ステップS11)。
[Unintentional interrupt issue confirmation sequence]
Next, an unintended interrupt issuance confirmation sequence by the test bench 101 of the
ここで、検証対象ASIC50に回路バグがあった場合、検証対象ASIC50は、テストベンチ101のCPUバスモデル105に対して、割り込み信号を発行する(ステップT11)。
If there is a circuit bug in the
テストベンチ101のCPUバスモデル105は、検証対象ASIC50からの割り込み信号を受信すると、割り込み期待を示すフラグ(Int_Expect)がアサート(Int_Expect=1)されているかどうか確認する(ステップS12)。
When receiving the interrupt signal from the
割り込み期待を示すフラグ(Int_Expect)がアサート(Int_Expect=1)されていなければ、すなわち割り込み期待を示すフラグ(Int_Expect)がネゲート(Int_Expect=0)されていれば、意図しない割り込み受信したことをログ表示し、シミュレーションを停止する(ステップS13)。 If the flag (Int_Expect) indicating interrupt expectation is not asserted (Int_Expect = 1), that is, if the flag indicating interrupt expectation (Int_Expect) is negated (Int_Expect = 0), a log display indicating that an unintended interrupt has been received Then, the simulation is stopped (step S13).
[割り込みが発行されないことの確認のシーケンス]
次に、HDLシミュレータ100のテストベンチ101による割り込みが発行されないことの確認のシーケンスについて図5のフローチャートを参照して説明する。図5に示すように、テストベンチ101は、シミュレーションの開始時は、割り込み期待を示すフラグ(Int_Expect)をネゲート(Int_Expect=0)しておく(ステップS21)。
[Confirmation sequence that interrupt is not issued]
Next, a sequence for confirming that no interrupt is issued by the test bench 101 of the
テストベンチ101は、割り込みが発生することを確認するテストを実行する時、割り込み期待を示すフラグ(Int_Expect)をアサート(Int_Expect=1)するとともに、割り込みを待つ時間を示す割り込み検出期間(Int_TimeOut)に所定時間(Int_TimeOut=1000)を設定し(ステップS22)、テストシナリオ102とバスモデル104との間の共有フラグ(異常応答発生フラグ103)にてバスモデル104の異常応答を要求する(ステップS23)。これにより、検証対象ASIC50が割り込み信号を発行する状態にすることができる。
When the test bench 101 executes a test for confirming that an interrupt is generated, the test bench 101 asserts a flag (Int_Expect = 1) indicating an interrupt expectation (Int_Expect = 1), and in an interrupt detection period (Int_TimeOut) indicating a time to wait for an interrupt. A predetermined time (Int_TimeOut = 1000) is set (step S22), and an abnormal response of the
ここで、テストベンチ101から異常応答を受けた検証対象ASIC50は、テストベンチ101のCPUバスモデル105に対して割り込み信号を発行することになるが、検証対象ASIC50に回路バグがある場合には、割り込み信号を発行することができない。
Here, the
そこで、テストベンチ101のCPUバスモデル105は、検証対象ASIC50からの割り込み信号を受信するまで単位時間経過毎に所定時間(Int_TimeOut=1000)を減算する(ステップS24)。
Therefore, the
そして、CPUバスモデル105が検証対象ASIC50からの割り込み信号を受信できず、割り込み検出期間(Int_TimeOut)が“0”になると(ステップS25)、意図した割り込みが所定時間内に発行されないことをログ表示し、シミュレーションを停止する(ステップS26)。
When the
以上のような処理動作により、期待通りの割り込み、もしくは、期待していない割り込みを認識することが可能になり、これをログ表示やシミュレーション停止等で検証者に通知することにより、容易に割り込みに関する検証精度を向上させることが可能になる。 With the processing operations described above, it becomes possible to recognize interrupts as expected or unexpected, and by notifying the verifier of this by displaying the log or stopping simulation, etc. Verification accuracy can be improved.
また、検証対象ASIC50に回路バグがあり、期待した割り込みがこない場合に、ログ表示やシミュレーション停止等で検証者に通知することにより、容易に割り込みに関する検証精度を向上させることが可能になる。また、割り込み発生までの時間は、回路の作りにより様々であり、所定時間を随時設定することができることにより、割り込みに関する検証の再利用性及び、保守性を向上させることができる。
In addition, when the
このように本実施の形態によれば、ハードウェア記述言語により設計された検証対象ASIC50についての割り込みの確認テストを実施する時は、割り込み期待フラグ106をアサートした状態で、テストシナリオ102からバスモデル104に対して異常応答の要求を示す異常応答発生フラグ103が送信される。そして、検証対象ASIC50にバス接続されるCPUバスモデル105で検証対象ASIC50からの割り込み信号を受信した場合、割り込み期待フラグ106がアサートされていれば期待通りの割り込みであることが認識され、意図通りの割り込み信号を受信したことが検証者に報知される。これにより、検証対象ASIC50に対する割り込みの検証を容易かつ高精度に行うことができる。
As described above, according to the present embodiment, when the interrupt confirmation test is performed on the
1 機能検証装置
7 記憶媒体
50 ハードウェア記述言語により設計されたモデル
101 テストベンチ
102 テストシナリオ
103 異常応答発生フラグ
104 バスモデル
105 CPUバスモデル
106 割り込み期待を示すフラグ
DESCRIPTION OF
Claims (22)
前記テストベンチは、
前記モデルのI/F系バスに応答もしくはアクセスするためのバスモデルと、
前記モデルに種々のテスト動作を実行させるための指示を出すテストシナリオと、
前記モデルにバス接続される仮想的なCPUであるCPUバスモデルと、
割り込み期待を示すフラグと、
異常応答の要求を示す異常応答発生フラグと、を備え、
前記割り込み期待を示すフラグをアサートした後、前記テストシナリオから前記バスモデルに対して前記異常応答発生フラグを前記モデルに送信して、当該モデルが割り込み信号を発行する状態とし、
前記モデルからの前記割り込み信号を前記CPUバスモデルで受信したとき、前記割り込み期待を示すフラグがアサートされているか否かを確認し、アサートされている場合、意図通りの割り込み信号を受信したことを報知すると共に、当該割り込み期待を示すフラグをネゲートし、アサートされていない場合は終了すること、
を特徴とする機能検証装置。 In a functional verification device that performs functional verification on a model designed in a hardware description language based on simulation results using a test bench,
The test bench is
A bus model for responding to or accessing the I / F bus of the model;
A test scenario for instructing the model to execute various test operations;
A CPU bus model which is a virtual CPU bus-connected to the model;
A flag indicating interrupt expectation,
Bei give a, and abnormal response generation flag indicating a request of the abnormal response,
After asserting a flag indicating the interrupt expectations, transmits the abnormality response generated flag to the model for the bus model from the test scenario, the state of the model issues an interrupt signal,
When the interrupt signal from said model received by the CPU bus model, the flag indicating the interrupt expected to confirm whether it is asserted, if it is asserted, which has received the interrupt signal as intended with notifying, negates the flag indicating the interrupt expectations, if not asserted finished it,
Functional verification device characterized by
ことを特徴とする請求項1記載の機能検証装置。 The test bench receives an interrupt signal from the model by the CPU bus model and negates a flag indicating an interrupt expectation when a flag indicating an interrupt expectation is asserted.
The function verification apparatus according to claim 1.
ことを特徴とする請求項1または2記載の機能検証装置。 The test bench receives an interrupt signal from the model by the CPU bus model, and informs that an unintended interrupt signal has been received when a flag indicating interrupt expectation is not asserted.
The function verification apparatus according to claim 1 or 2, wherein
ことを特徴とする請求項1ないし4のいずれか一記載の機能検証装置。 If the test bench does not receive the interrupt signal from the model within the predetermined time after asserting the flag indicating the interrupt expectation, the intended interrupt is not issued within the predetermined time. To inform,
The function verification apparatus according to claim 1, wherein the function verification apparatus is a function verification apparatus.
ことを特徴とする請求項1ないし5のいずれか一記載の機能検証装置。 The test bench stops simulation if the CPU bus model does not receive an interrupt signal from the model within a predetermined time after asserting a flag indicating interrupt expectation.
The function verification apparatus according to claim 1, wherein the function verification apparatus is a function verification apparatus.
ことを特徴とする請求項5または6記載の機能検証装置。 The predetermined time after asserting the flag indicating interrupt expectation can be set at any time.
7. The function verification apparatus according to claim 5, wherein
前記モデル生成回路のI/F系バスに応答もしくはアクセスするためのバスモデル信号を生成するためのバスモデル生成回路と、
前記モデル生成回路に種々のテスト動作を実行させるための指示を出すテストシナリオ信号を生成するためのテストシナリオ生成回路と、
前記モデル生成回路にバス接続される仮想的なCPUであるCPUバスモデル信号を生成するためのCPUバスモデル生成回路と、
割り込み期待を示すフラグ信号を生成するための割り込み期待フラグ生成回路と、
異常応答の要求を示す異常応答発生フラグ信号を生成するための異常応答発生フラグ生成回路と、を備え、
前記割り込み期待フラグ生成回路による前記割り込み期待を示すフラグ信号をアサートした後、前記テストシナリオ生成回路による前記テストシナリオ信号から前記バスモデル生成回路による前記バスモデル信号に対して前記異常応答発生フラグ生成回路による前記異常応答発生フラグ信号を前記モデル生成回路による前記モデル信号に送信して、当該モデル生成回路が割り込み信号を発行する状態とし、
前記モデル生成回路からの前記割り込み信号を前記CPUバスモデル生成回路で受信したとき、前記割り込み期待フラグ生成回路による前記割り込み期待を示すフラグ信号がアサートされているか否かを確認し、アサートされている場合、意図通りの割り込み信号を受信したことを報知すると共に、当該割り込み期待を示すフラグ信号をネゲートし、アサートされていない場合は終了すること、
を特徴とするテストベンチ回路。 In a test bench circuit that performs various simulations for a model generation circuit that generates a model signal designed by a hardware description language,
A bus model generation circuit for generating a bus model signal for responding or access to the I / F system bus of the model generating circuit,
A test scenario generation circuit for generating a test scenario signal for instructing the model generation circuit to execute various test operations;
A CPU bus model generation circuit for generating a CPU bus model signal is a virtual CPU that is bus-connected to said model generating circuit,
An interrupt expectation flag generation circuit for generating a flag signal indicating interrupt expectation;
Bei give a, and abnormal response occurrence flag generating circuit for generating an abnormal response generation flag signal indicating a request of the abnormal response,
After the flag signal indicating the interrupt expectation by the interrupt expectation flag generation circuit is asserted, the abnormal response generation flag generation circuit from the test scenario signal by the test scenario generation circuit to the bus model signal by the bus model generation circuit The abnormal response occurrence flag signal by is transmitted to the model signal by the model generation circuit , the model generation circuit is in a state of issuing an interrupt signal,
When the interrupt signal from said model generating circuit received by the CPU bus model generating circuit, checks whether the flag signal indicative of the interruption expected by the interrupt expected flag generating circuit is asserted, it is asserted If you are, as well as notifying the reception of the interrupt signal as intended, negates the flag signal indicating the interruption expectations, that if not asserted ends,
Test bench circuit characterized by
ことを特徴とする請求項8記載のテストベンチ回路。 If receiving an interrupt signal from said model generating circuit in the CPU bus model generating circuit, a flag signal indicative of the interruption expected by the interrupt expected flag generating circuit is asserted, the interrupt expected by the interrupt expected flag generator Negate the flag signal indicating
9. The test bench circuit according to claim 8, wherein:
ことを特徴とする請求項8または9記載のテストベンチ回路。 Receiving an interrupt signal from said model generating circuit in the CPU bus model generating circuit, when said flag signal indicating the interruption expected by the interrupt expected flag generating circuit is not asserted, the notification of reception of the unintended interruption signal To
10. The test bench circuit according to claim 8 or 9, wherein:
ことを特徴とする請求項8ないし10のいずれか一記載のテストベンチ装置。 Wherein the interrupt signal from the model generating circuit received by the CPU bus model generating circuit, if the flag signal indicative of the interruption expected by the interrupt expected flag generating circuit is not asserted to halt the simulation
The test bench device according to any one of claims 8 to 10, wherein
ことを特徴とする請求項8ないし11のいずれか一記載のテストベンチ回路装置。 The interrupt expectations flag generating circuit according to the said interrupt expect a predetermined time after asserting a flag signal indicating, when the interrupt signal from said model generating circuit has not been received by the CPU bus model generating circuit, interrupts the intended Notifying that it will not be issued within the specified time,
12. The test bench circuit device according to claim 8, wherein
ことを特徴とする請求項8ないし12のいずれか一記載のテストベンチ回路。 The interrupt expectations flag generating circuit according to the said interrupt expect a predetermined time after asserting a flag signal indicating, when the interrupt signal from said model generating circuit has not been received by the CPU bus model generating circuit, stops the simulation ,
The test bench circuit according to claim 8, wherein the test bench circuit is characterized in that
ことを特徴とする請求項12または13記載のテストベンチ回路。 The predetermined time after asserting the flag signal indicating the interrupt expectation by the interrupt expectation flag generation circuit can be set at any time.
14. The test bench circuit according to claim 12, wherein the test bench circuit is characterized in that
前記モデルのI/F系バスに応答もしくはアクセスするためのバスモデルを生成する機能と、
前記モデルへのレジスタ設定や前記バスモデルへの動作機能設定を行い、前記モデルに種々のテスト動作を実行させるための指示を出すテストシナリオを生成する機能と、
前記モデルにバス接続される仮想的なCPUであるCPUバスモデルを生成する機能と、
割り込み期待を示すフラグをアサートする機能と、
前記割り込み期待を示すフラグをアサートした後、前記テストシナリオから前記バスモデルに対して異常応答の要求を示す異常応答発生フラグを送信する機能と、
前記モデルからの割り込み信号を前記CPUバスモデルで受信する機能と、
前記モデルからの前記割り込み信号を前記CPUバスモデルで受信した場合、前記割り込み期待を示すフラグがアサートされているかどうかを確認する機能と、
前記割り込み期待を示すフラグがアサートされている場合、意図通りの割り込み信号を受信したことを報知する機能と、
を前記コンピュータに実行させることを特徴とするシミュレータプログラム。 In a computer-readable simulator program that causes a computer to execute various simulations for a model designed in a hardware description language,
A function of generating a bus model for responding to or accessing the I / F bus of the model;
A function for generating a test scenario for performing an instruction to perform various test operations on the model by setting a register in the model and an operation function setting on the bus model;
A function of generating a CPU bus model, which is a virtual CPU bus-connected to the model;
A function to assert a flag indicating an interrupt expectation,
After asserting a flag indicating the interrupt expectations, a function of transmitting an abnormality response generation flag indicating a request for the abnormal response to the bus model from the test scenario,
A function of receiving an interrupt signal from the model by the CPU bus model;
If the interrupt signal from said model received by the CPU bus model, a function flag indicating the interrupt expected to check whether it is asserted,
When the flag indicating the interrupt expectation is asserted, a function for notifying that an interrupt signal is received as intended;
Is executed by the computer.
ことを特徴とする請求項15記載のシミュレータプログラム。 When the interrupt signal from the model is received by the CPU bus model and the flag indicating the interrupt expectation is asserted, the flag indicating the interrupt expectation is negated.
The simulator program according to claim 15.
ことを特徴とする請求項15または16記載のシミュレータプログラム。 An interrupt signal from the model is received by the CPU bus model, and when an interrupt expectation flag is not asserted, it is notified that an unintended interrupt signal has been received.
The simulator program according to claim 15 or 16, characterized in that
ことを特徴とする請求項15ないし17のいずれか一記載のシミュレータプログラム。 When the interrupt signal from the model is received by the CPU bus model and the flag indicating the interrupt expectation is not asserted, the simulation is stopped.
The simulator program according to any one of claims 15 to 17, characterized in that:
ことを特徴とする請求項15ないし18のいずれか一記載のシミュレータプログラム。 If the interrupt signal from the model is not received by the CPU bus model within a predetermined time after asserting a flag indicating an interrupt expectation, a notification is made that the intended interrupt is not issued within the predetermined time.
The simulator program according to any one of claims 15 to 18, characterized in that:
ことを特徴とする請求項15ないし19のいずれか一記載のシミュレータプログラム。 If the interrupt signal from the model is not received by the CPU bus model within a predetermined time after asserting the flag indicating the interrupt expectation, the simulation is stopped.
20. A simulator program according to any one of claims 15 to 19, characterized in that:
ことを特徴とする請求項19または20記載のシミュレータプログラム。 The predetermined time after asserting the flag indicating interrupt expectation can be set at any time.
21. The simulator program according to claim 19 or 20, wherein:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004189535A JP4373859B2 (en) | 2004-06-28 | 2004-06-28 | Functional verification device, test bench circuit, simulator program, and recording medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2004189535A JP4373859B2 (en) | 2004-06-28 | 2004-06-28 | Functional verification device, test bench circuit, simulator program, and recording medium |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2006011927A JP2006011927A (en) | 2006-01-12 |
JP4373859B2 true JP4373859B2 (en) | 2009-11-25 |
Family
ID=35779112
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2004189535A Expired - Fee Related JP4373859B2 (en) | 2004-06-28 | 2004-06-28 | Functional verification device, test bench circuit, simulator program, and recording medium |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4373859B2 (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5234806B2 (en) * | 2009-05-13 | 2013-07-10 | Necアクセステクニカ株式会社 | Logic simulation apparatus and simulation method thereof |
CN111737158B (en) * | 2020-08-25 | 2020-12-18 | 开立生物医疗科技(武汉)有限公司 | Abnormal assertion processing method and device, electronic equipment and storage medium |
CN115114176A (en) * | 2022-08-30 | 2022-09-27 | 云账户技术(天津)有限公司 | Assertion method, device, medium, apparatus, and program for automated test result |
-
2004
- 2004-06-28 JP JP2004189535A patent/JP4373859B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2006011927A (en) | 2006-01-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR20090118863A (en) | Reducing power-on time by simulating operating system memory hot add | |
US7454726B2 (en) | Technique for generating input stimulus to cover properties not covered in random simulation | |
JP2016525731A (en) | Program test service | |
CN103713977B (en) | Microprocessor IP (internet protocol) kernel comparison and verification implementation method | |
JP2011186817A (en) | Device and method for verifying logic | |
JP4373859B2 (en) | Functional verification device, test bench circuit, simulator program, and recording medium | |
US20030237023A1 (en) | Associated apparatus and method for supporting development of semiconductor device | |
JP2005149501A (en) | System and method for testing memory with expansion card using dma | |
US7350109B2 (en) | System and method for testing a memory using DMA | |
JP2009104490A (en) | Apparatus for testing program | |
AU2011217727B2 (en) | Co-design of a testbench and driver of a device | |
US20100077383A1 (en) | Simulation method and storage medium for storing program | |
US7630876B1 (en) | Method and system for filtering unknown values in ASIC design simulation | |
JP2006048149A (en) | Function verification device, test bench, model designed by hardware description language, simulator program and recording medium | |
Rashmi et al. | A methodology to reuse random IP stimuli in an SoC functional verification environment | |
US11200125B2 (en) | Feedback from higher-level verification to improve unit verification effectiveness | |
US11023357B1 (en) | Method and system for sequential equivalence checking | |
JP4351961B2 (en) | Simulator program and storage medium | |
CN117113907B (en) | Verification method, verification device, electronic equipment and readable storage medium | |
CN117033113B (en) | Control circuit and method for signal delay | |
US7487399B2 (en) | System and method for testing a component in a computer system using frequency margining | |
JP2003108621A (en) | Variable accuracy mode in microprocessor simulation | |
JP5625942B2 (en) | Design verification program, design verification device, and design verification method | |
US20070265821A1 (en) | Simulation apparatus, simulation method, and computer-readable recording medium storing simulation program | |
JP2006018429A (en) | Functional verification system, test bench, simulator program and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
RD01 | Notification of change of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7421 Effective date: 20051021 |
|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060804 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A821 Effective date: 20060817 |
|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20060817 |
|
RD05 | Notification of revocation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7425 Effective date: 20060922 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20081219 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090106 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090306 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090519 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090717 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20090818 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20090904 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120911 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120911 Year of fee payment: 3 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130911 Year of fee payment: 4 |
|
LAPS | Cancellation because of no payment of annual fees |