JP2006227668A - Memory model, program and logic circuit verification method - Google Patents
Memory model, program and logic circuit verification method Download PDFInfo
- Publication number
- JP2006227668A JP2006227668A JP2005037093A JP2005037093A JP2006227668A JP 2006227668 A JP2006227668 A JP 2006227668A JP 2005037093 A JP2005037093 A JP 2005037093A JP 2005037093 A JP2005037093 A JP 2005037093A JP 2006227668 A JP2006227668 A JP 2006227668A
- Authority
- JP
- Japan
- Prior art keywords
- memory
- logic circuit
- memory model
- data
- expected value
- 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
Links
Images
Abstract
Description
この発明は、メモリをアクセスするASIC(Application Specific Integrated Circuit)等の論理回路を検証するための該メモリと同等の機能を有するメモリモデル、そのメモリモデルとしての機能をコンピュータに実現させるためのプログラム、および上記メモリモデルにおける論理回路検証方法に関する。 The present invention relates to a memory model having a function equivalent to the memory for verifying a logic circuit such as an ASIC (Application Specific Integrated Circuit) that accesses the memory, a program for causing a computer to realize the function as the memory model, And a logic circuit verification method in the memory model.
画像形成装置等のデータ処理装置として、装置全体を制御するCPU(中央処理装置)や、そのCPUがデータを処理する際に使用するRAM等のメモリの他に、そのメモリをアクセスする専用の論理回路(ASIC等)を搭載したものがある。
そのような論理回路は、メモリに対してアクセスを実行する際にアクセス対象アドレス,マスク信号,又はデータを出力(発行)するが、回路のバグ(エラー)により、異常なアドレス,マスク信号,又はデータを出力することがある。
As a data processing apparatus such as an image forming apparatus, in addition to a CPU (central processing unit) that controls the entire apparatus and a memory such as a RAM that is used when the CPU processes data, a dedicated logic for accessing the memory Some have a circuit (such as an ASIC).
Such a logic circuit outputs (issues) an address to be accessed, a mask signal, or data when executing access to the memory, but due to a bug (error) in the circuit, an abnormal address, mask signal, or Data may be output.
そのため、論理回路をデータ処理装置に搭載する前に、その論理回路をコンピュータあるいは専用装置によって検証することにより、バグを見つけ出し、そのバグを直すデバック処理を行うようにしている。
論理回路の検証(設計検証)装置や検証方法としては、例えば特許文献1に見られるものがある。
As a logic circuit verification (design verification) apparatus and verification method, for example, there is one found in
しかしながら、従来の論理回路の検証(設計検証)装置や検証方法では、検証結果を出力するが、その検証結果から論理回路におけるエラー発生箇所やエラー内容を直ちに特定することができず、論理回路に対するデバック処理を効率的に行うことができなかった。
この発明は上記の点に鑑みてなされたものであり、論理回路に対するデバック処理の効率を向上させることを目的とする。
However, in the conventional logic circuit verification (design verification) apparatus and verification method, the verification result is output. However, the error occurrence location and the error content in the logic circuit cannot be immediately identified from the verification result. The debugging process could not be performed efficiently.
The present invention has been made in view of the above points, and an object thereof is to improve the efficiency of debug processing for a logic circuit.
この発明は、上記の目的を達成するため、メモリモデルとプログラムと論理回路検証方法を提供する。
請求項1の発明によるメモリモデルは、メモリをアクセスする論理回路を検証するための該メモリと同等の機能を有するメモリモデルであって、上記論理回路による当該メモリモデルに対するアクセス実行時に該論理回路から出力されるアクセス対象アドレスの実際値と予め設定された該アクセス対象アドレスの期待値とを比較して、両値が一致するか否かをチェックするアドレスチェック手段と、該アドレスチェック手段によって上記両値が一致しないと判断された場合に、その時の上記アクセス対象アドレスの実際値および該アクセス対象アドレスの期待値を含むエラー情報を報知するエラー報知手段とを設けたものである。
In order to achieve the above object, the present invention provides a memory model, a program, and a logic circuit verification method.
A memory model according to a first aspect of the present invention is a memory model having a function equivalent to that of the memory for verifying a logic circuit that accesses the memory, and when the logic circuit performs access to the memory model, An actual value of the access target address to be output is compared with a preset expected value of the access target address to check whether or not both values match, and both the above-mentioned addresses are checked by the address check unit. When it is determined that the values do not match, there is provided error notifying means for notifying error information including the actual value of the access target address and the expected value of the access target address at that time.
請求項2の発明によるメモリモデルは、メモリをアクセスする論理回路を検証するための該メモリと同等の機能を有するメモリモデルであって、上記論理回路による当該メモリモデルに対するライトアクセス実行時に該論理回路から出力されるマスク信号の実際値と予め設定された該マスク信号の期待値とを比較して、両値が一致するか否かをチェックするマスク信号チェック手段と、該マスク信号チェック手段によって上記両値が一致しないと判断された場合に、その時の上記マスク信号の実際値および該マスク信号の期待値を含むエラー情報を報知するエラー報知手段とを設けたものである。 A memory model according to a second aspect of the present invention is a memory model having a function equivalent to that of the memory for verifying a logic circuit that accesses the memory, and when the logic circuit executes a write access to the memory model, the logic circuit The mask signal check means for comparing the actual value of the mask signal output from the value and the preset expected value of the mask signal to check whether or not both values match, and the mask signal check means When it is determined that the two values do not match, there is provided error notifying means for notifying error information including the actual value of the mask signal and the expected value of the mask signal at that time.
請求項3の発明によるメモリモデルは、メモリをアクセスする論理回路を検証するための該メモリと同等の機能を有するメモリモデルであって、上記論理回路による当該メモリモデルに対するライトアクセス実行時に該論理回路から出力されるデータの実際値と予め設定された該データの期待値とを比較して、両値が一致するか否かをチェックするデータチェック手段と、該データチェック手段によって上記両値が一致しないと判断された場合に、その時の上記データの実際値および該データの期待値を含むエラー情報を報知するエラー報知手段とを設けたものである。
請求項4の発明によるプログラムは、請求項1〜3のいずれかのメモリモデルを構成する各手段としての機能をコンピュータに実現させるためのプログラムである。
A memory model according to a third aspect of the invention is a memory model having a function equivalent to that of the memory for verifying a logic circuit that accesses the memory, and the logic circuit is executed when the logic circuit executes a write access to the memory model. The data check means for comparing the actual value of the data output from the data and the preset expected value of the data to check whether the two values match, and the two values match by the data check means When it is determined that the error is not to be performed, error notification means is provided for notifying error information including the actual value of the data at that time and the expected value of the data.
A program according to a fourth aspect of the invention is a program for causing a computer to realize the functions as the respective means constituting the memory model of any one of the first to third aspects.
請求項5の発明による論理回路検証方法は、メモリをアクセスする論理回路を検証するための該メモリと同等の機能を有するメモリモデルにおける論理回路検証方法であって、上記論理回路による当該メモリモデルに対するアクセス実行時に該論理回路から出力されるアクセス対象アドレスの実際値と予め設定された該アクセス対象アドレスの期待値とを比較して両値が一致するか否かをチェックし、両値が一致しない場合に、その時の上記アクセス対象アドレスの実際値および該アクセス対象アドレスの期待値を含むエラー情報を報知するものである。 A logic circuit verification method according to a fifth aspect of the present invention is a logic circuit verification method in a memory model having a function equivalent to that of the memory for verifying a logic circuit that accesses the memory. When the access is executed, the actual value of the access target address output from the logic circuit is compared with the preset expected value of the access target address to check whether or not both values match. In this case, error information including the actual value of the access target address and the expected value of the access target address at that time is notified.
請求項6の発明による論理回路検証方法は、メモリをアクセスする論理回路を検証するための該メモリと同等の機能を有するメモリモデルにおける論理回路検証方法であって、上記論理回路による当該メモリモデルに対するライトアクセス実行時に該論理回路から出力されるマスク信号の実際値と予め設定された該マスク信号の期待値とを比較して両値が一致するか否かをチェックし、上記両値が一致しない場合に、その時の上記マスク信号の実際値および該マスク信号の期待値を含むエラー情報を報知するものである。 A logic circuit verification method according to a sixth aspect of the present invention is a logic circuit verification method in a memory model having a function equivalent to that of the memory for verifying a logic circuit that accesses the memory. The actual value of the mask signal output from the logic circuit at the time of write access is compared with the preset expected value of the mask signal to check whether or not the two values match. In this case, error information including the actual value of the mask signal at that time and the expected value of the mask signal is notified.
請求項7の発明による論理回路検証方法は、メモリをアクセスする論理回路を検証するための該メモリと同等の機能を有するメモリモデルにおける論理回路検証方法であって、 上記論理回路による当該メモリモデルに対するライトアクセス実行時に該論理回路から出力されるデータの実際値と予め設定された該データの期待値とを比較して両値が一致するか否かをチェックし、上記両値が一致しない場合に、その時の上記データの実際値および該データの期待値を含むエラー情報を報知するものである。 A logic circuit verification method according to a seventh aspect of the present invention is a logic circuit verification method in a memory model having a function equivalent to that of the memory for verifying a logic circuit that accesses the memory. When the write access is executed, the actual value of the data output from the logic circuit is compared with the preset expected value of the data to check whether the two values match. The error information including the actual value of the data at that time and the expected value of the data is notified.
この発明によれば、論理回路(メモリアクセス用の論理回路)による当該メモリモデルに対するアクセス実行時に該論理回路から出力されるアクセス対象アドレスの実際値と予め設定された該アクセス対象アドレスの期待値とを比較して両値が一致するか否かをチェックし、両値が一致しない場合に、その時の上記アクセス対象アドレスの実際値および該アクセス対象アドレスの期待値を含むエラー情報を報知することにより、そのエラー情報の内容から論理回路におけるエラー発生箇所やエラー内容を直ちに特定することができ、論理回路に対するデバック処理を効率的に行うことができる。 According to the present invention, the actual value of the access target address output from the logic circuit and the preset expected value of the access target address when the logic circuit (logic circuit for memory access) executes access to the memory model. By comparing the two values and checking whether or not both values match, and if both values do not match, by notifying error information including the actual value of the access target address and the expected value of the access target address at that time The error occurrence location and error content in the logic circuit can be immediately identified from the content of the error information, and the debugging process for the logic circuit can be performed efficiently.
あるいは、論理回路による当該メモリモデルに対するライトアクセス実行時に該論理回路から出力されるマスク信号の実際値と予め設定された該マスク信号の期待値とを比較して両値が一致するか否かをチェックし、上記両値が一致しない場合に、その時の上記マスク信号の実際値および該マスク信号の期待値を含むエラー情報を報知することによっても、そのエラー情報の内容から論理回路におけるエラー発生箇所やエラー内容を直ちに特定することができ、論理回路に対するデバック処理を効率的に行うことができる。 Alternatively, when the logical circuit performs a write access to the memory model, the actual value of the mask signal output from the logic circuit is compared with the preset expected value of the mask signal to determine whether the two values match. If the two values do not match, the error information location including the actual value of the mask signal and the expected value of the mask signal at that time is also notified from the content of the error information. The error contents can be immediately identified, and the debugging process for the logic circuit can be performed efficiently.
あるいはまた、論理回路による当該メモリモデルに対するライトアクセス実行時に該論理回路から出力されるデータの実際値と予め設定された該データの期待値とを比較して両値が一致するか否かをチェックし、上記両値が一致しない場合に、その時の上記データの実際値および該データの期待値を含むエラー情報を報知することによっても、そのエラー情報の内容から論理回路におけるエラー発生箇所やエラー内容を直ちに特定することができ、論理回路に対するデバック処理を効率的に行うことができる。 Alternatively, when a write access to the memory model is performed by the logic circuit, the actual value of the data output from the logic circuit is compared with the preset expected value of the data to check whether both values match. If the two values do not match, the error information including the actual value of the data and the expected value of the data at that time can be notified from the contents of the error information. Can be immediately identified, and the debugging process for the logic circuit can be performed efficiently.
以下、この発明を実施するための最良の形態を図面に基づいて説明する。
図1は、この発明を実施するメモリモデルの検証対象の論理回路としてのASICの構成例を示すブロック図である。
The best mode for carrying out the present invention will be described below with reference to the drawings.
FIG. 1 is a block diagram showing a configuration example of an ASIC as a logic circuit to be verified of a memory model for implementing the present invention.
このASIC10は、CPU・I/F(インタフェース)・コントローラ11,メモリアービタ12,メモリ制御部13,圧縮伸張器14,回転器15,ライトDMAコントローラ16,17,およびリードDMAコントローラ18,19等からなる論理回路(多機能デバイスボード)であり、後述するCPU1の制御対象となるデバイスの共有化を図り、アーキテクチャの面からアプリ(アプリケーションソフト)等の開発の高効率化を支援するIC回路である。
The ASIC 10 includes a CPU / I / F (interface)
このASIC10は、CPU1およびメモリ2と共に、データ処理装置、例えばデジタル複写機,プリンタ,ファクシミリ装置,スキャナ,あるいはそれらの装置の機能を統合したデジタル複合機等の画像形成装置やスキャナ装置等の画像読取装置に搭載される。
CPU・I/F・コントローラ11は、CPU1との間の通信を制御するインタフェース回路である。
メモリアービタ12は、CPU・I/F・コントローラ11,メモリ制御部13,ライトDMAコントローラ16,17,リードDMAコントローラ18,19からの入出力要求に対する調停(アービトレーション)を行い、データの入出力を行う調停回路である。
The ASIC 10, together with the
The CPU / I / F /
The
メモリ制御部13は、CPU1がデータを処理する際に使用するメモリ2とメモリアービタ12との間の信号やデータの入出力を制御する制御回路である。
圧縮伸張器14は、リードDMAコントローラ18からのデータを圧縮処理してライトDMAコントローラ16へ出力する回路である。
回転器15は、リードDMAコントローラ19からのデータを回転処理してライトDMAコントローラ17へ出力する回路である。
The
The compression /
The
ライトDMAコントローラ16は、メモリアービタ12およびメモリ制御部13経由でメモリ2に対してライトアドレス(アクセス対象アドレス)およびマスク信号(データの書き込み可,不可を示すための信号)を発行することにより、圧縮伸張器14からのデータをメモリ2に書き込むライトアクセスを実行するための回路である。
ライトDMAコントローラ17は、メモリアービタ12およびメモリ制御部13経由でメモリ2に対してライトアドレスおよびマスク信号を発行することにより、回転器15からのデータをメモリ2に書き込むライトアクセスを実行するための回路である。
The write
The write
リードDMAコントローラ18は、メモリアービタ12およびメモリ制御部13経由でメモリ2に対してリードアドレスを発行することにより、メモリ2内のデータを読み込んで圧縮伸張器14へ出力するリードアクセスを実行するための回路である。
リードDMAコントローラ19は、メモリアービタ12およびメモリ制御部13経由でメモリ2に対してリードアドレスを発行することにより、メモリ2内のデータを読み込んで回転器15へ出力するリードアクセスを実行するための回路である。
The read
The read
CPU1は、メモリ2内のプログラムに従ってデータ処理装置(実機)全体を統括的に制御する中央処理装置である。このCPU1が、ライトDMAコントローラ16,17又はリードDMAコントローラ18,19に対してスタートアドレス,転送サイズ(データサイズ)を含むレジスタ値を設定することにより、ライトDMAコントローラ16,17がメモリ2に対してライトアクセスを実行したり、リードDMAコントローラ18,19がメモリ2に対してリードアクセスを実行することができる。
The
メモリ2は、複数のアプリケーション・プログラムを含む各種プログラム(ソフトウェア)やデータを記憶する記憶媒体である。メモリ2としては、RAMや、ハードディスクを含むハードディスク装置(HDD)、フレキシブルディスクを着脱可能に備えたフレキシブルディスク装置、あるいはMO,CD−R,CD−RW,DVD+R,DVD+RW,DVD−R,DVD−RW,又はDVD−RAM等の光ディスクを着脱可能に備えた光ディスク装置を使用できる。
The
図2は、この発明を実施するメモリモデルおよび図1に示したASIC10を含むASICテストベンチの構成例を示すブロック図である。
図1に示したASIC10は、製品となるデータ処理装置に搭載される前に、検証(シュミレーン)を行う必要がある。
そこで、ASIC10を検証する際に、図2に示すように、ASIC10のCPU・I/F・コントローラ11に図1のCPU1と同等の機能を有するCPUモデル21を、メモリ制御部13に図1のメモリ2と同等の機能を有するメモリモデル22をそれぞれ接続する。
FIG. 2 is a block diagram showing a configuration example of an ASIC test bench including the memory model for implementing the present invention and the
The ASIC 10 shown in FIG. 1 needs to be verified (sumilane) before being mounted on a data processing apparatus as a product.
Therefore, when verifying the
ここで、ASIC10の検証における環境は、検証するASIC10を含め、仮想的なシステムとして構築する。そのうち、CPUモデル21はデータ処理装置(実機)でASIC10につながる予定のCPUとして、メモリモデル22はデータ処理装置でASIC10につながる予定のメモリとしてそれぞれ仮想的に作っているため、「モデル」を付加している。
Here, the environment for verification of the ASIC 10 is constructed as a virtual system including the ASIC 10 to be verified. Among them, the
そのため、テストベンチは、CPUモデル21,メモリモデル22,およびテストシナリオ(検証プログラム)23を含む仮想的なシステムをパーソナルコンピュータ等のコンピュータに実現させるためのプログラムと、そのコンピュータとによって構成される。
CPUモデル21およびメモリモデル22は、テストシナリオ23に従ってASIC10の検証に係わる処理を行う。
よって、メモリモデル22が、アドレスチェック手段,マスク信号チェック手段,データチェック手段,およびエラー報知手段としての機能を果たすことになる。
なお、CPUモデル21又はメモリモデル22を、ハードウェアのみによって構成することもできる。
Therefore, the test bench includes a program for causing a computer such as a personal computer to implement a virtual system including the
The
Therefore, the
Note that the
次に、図2に示したテストベンチによるASIC10の検証処理について、図3〜図5を参照して具体的に説明する。
図3は、テストベンチによるASIC10の検証処理の第1例を示すフローチャートである。
Next, verification processing of the
FIG. 3 is a flowchart showing a first example of the verification process of the
ステップS1では、テストシナリオ23により、CPUモデル21を介してASIC10内のDMAコントローラ(ライトDMAコントローラ16,17,リードDMAコントローラ18,19のいずれでもよい)にスタートアドレスや転送アドレスを設定する。
ステップS2では、テストシナリオ23より、ASIC10内のDMAコントローラに設定したスタートアドレスや転送サイズ等のレジスタ値をメモリモデル22に渡す。メモリモデル22は、受けたレジスタ値に基づいてASIC10から出力されるべきアクセス対象アドレスの期待値を算出(予測)する。
In
In
ステップS3では、テストシナリオ23より、CPUモデル21を介してDMAコントローラを起動する。それによって、DMAコントローラは、メモリモデル22に対してアクセス(ライトアクセス又はリードアクセスのいずれでもよい)を実行するが、その際にメモリモデル22に対してアクセス対象アドレス(ライトアドレス又はリードアドレス)を発行する。
ステップS4では、メモリモデル22が、ステップS2で受けたレジスタ値に基づいて算出したアクセス対象アドレスの期待値を予め用意しておき、それとASIC10より発行されたアクセス対象アドレスの実際値とを比較して、両値が一致するか否かをチェックする。
In step S 3, the DMA controller is activated via the
In step S4, the
ステップS5では、その両値が一致しないと判断した場合に、その旨を図示しない表示装置にログ表示する。つまり、その時の一致しなかったアクセス対象アドレスの実際値とそのアクセス対象アドレスの期待値とを含むエラー情報(例えば「### Error Memory address = 0x1000 (exp 0x1004)」)を図示しないコンピュータの表示装置(ディスプレイ)に表示(報知)する。
ステップ6では、ASIC10の検証処理(シミュレーション)を停止する(例えば「Verilogであれば$stopもしくは$finish」)。
In step S5, when it is determined that the two values do not match, a message to that effect is displayed on a display device (not shown). That is, error information (for example, “### Error Memory address = 0x1000 (exp 0x1004)”) including the actual value of the access target address that did not match at that time and the expected value of the access target address is displayed on a computer (not shown) Display (notify) on the device (display).
In step 6, the verification processing (simulation) of the
図4は、テストベンチによるASIC10の検証処理の第2例を示すフローチャートである。
ステップS11では、テストシナリオ23により、CPUモデル21を介してASIC10内のライトDMAコントローラ(ライトDMAコントローラ16,17のいずれでもよい)にスタートアドレスや転送アドレスを設定する。
FIG. 4 is a flowchart showing a second example of the verification process of the
In
ステップS12では、テストシナリオ23より、ASIC10内のライトDMAコントローラに設定したスタートアドレスや転送サイズ等のレジスタ値をメモリモデル22に渡す。メモリモデル22は、受けたレジスタ値に基づいてASIC10から出力されるべきマスク信号の期待値を算出する。
ステップS13では、テストシナリオ23より、CPUモデル21を介してライトDMAコントローラを起動する。それによって、ライトDMAコントローラは、メモリモデル22に対してライトアクセスを実行するが、その際にメモリモデル22に対してマスク信号を発行する。
In
In step S13, the write DMA controller is activated via the
ステップS14では、メモリモデル22が、ステップS12で受けたレジスタ値に基づいて算出したマスク信号の期待値を予め用意しておき、それとASIC10より発行されたマスク信号の実際値とを比較して、両値が一致するか否かをチェックする。
ステップS15では、その両値が一致しないと判断した場合に、その旨を図示しない表示装置にログ表示する。つまり、その時の一致しなかったマスク信号の実際値とそのマスク信号の期待値とを含むエラー情報(例えば「### Error Memory write mask = 4'b1000 (exp 4'b1100) address = 0x10000」)をコンピュータの表示装置に表示する。
ステップ16では、ASIC10の検証処理(シミュレーション)を停止する(例えば「Verilogであれば$stopもしくは$finish」)。
In step S14, the
In step S15, if it is determined that the two values do not match, a message to that effect is displayed on a display device (not shown). That is, error information including the actual value of the mask signal that did not match at that time and the expected value of the mask signal (for example, "### Error Memory write mask = 4'b1000 (exp 4'b1100) address = 0x10000") Is displayed on the display device of the computer.
In
図5は、テストベンチによるASIC10の検証処理の第3例を示すフローチャートである。
ステップS21では、テストシナリオ23により、CPUモデル21を介してASIC10内のライトDMAコントローラ(ライトDMAコントローラ16,17のいずれでもよい)にスタートアドレスや転送アドレスを設定する。
FIG. 5 is a flowchart showing a third example of the verification process of the
In step S21, a start address and a transfer address are set in the write DMA controller (which may be either of the
ステップS22では、テストシナリオ23より、ASIC10内のライトDMAコントローラに設定したスタートアドレスや転送サイズ等のレジスタ値をメモリモデル22に渡す。メモリモデル22は、受けたレジスタ値に基づいてASIC10から出力されるべきデータの期待値を算出する。
ステップS23では、テストシナリオ23より、CPUモデル21を介してライトDMAコントローラを起動する。それによって、ライトDMAコントローラは、メモリモデル22に対してライトアクセスを実行するが、その際にメモリモデル22に対してデータを発行する。
In
In step S23, the write DMA controller is activated from the
ステップS24では、メモリモデル22が、ステップS22で受けたレジスタ値に基づいて算出したデータの期待値を予め用意しておき、それとASIC10より発行されたデータの実際値とを比較して、両値が一致するか否かをチェックする。
ステップS25では、その両値が一致しないと判断した場合に、その旨を図示しない表示装置にログ表示する。つまり、その時の一致しなかったデータの実際値とそのデータの期待値とを含むエラー情報(例えば「### Error Memory write data = 0x1234 (exp 0xffe4) address = 0x10014」)をコンピュータの表示装置に表示する。
ステップ26では、ASIC10の検証処理(シミュレーション)を停止する(例えば「Verilogであれば$stopもしくは$finish」)。
In step S24, the
In step S25, if it is determined that the two values do not match, a message to that effect is displayed on a display device (not shown). In other words, error information (for example, “### Error Memory write data = 0x1234 (exp 0xffe4) address = 0x10014”) including the actual value of the mismatched data and the expected value of the data is displayed on the computer display device. indicate.
In
なお、図3〜図5に示した検証処理によってエラー情報を表示装置に表示する際に、検証時間(ASIC10の検証処理を開始してからエラーが発生するまでの経過時間)をクロック又はns等の任意の単位で同時に表示することもできる。また、エラー情報を図示しない音声装置によって音声出力することもできる。
When error information is displayed on the display device by the verification process shown in FIGS. 3 to 5, the verification time (elapsed time from when the verification process of the
このように、メモリモデル22が、ASIC10(メモリアクセス用の論理回路)による当該メモリモデル22に対するアクセス実行時にASIC10から出力されるアクセス対象アドレスの実際値と予め設定(算出)された該アクセス対象アドレスの期待値とを比較して両値が一致するか否かをチェックし、両値が一致しない場合に、その時の上記アクセス対象アドレスの実際値および該アクセス対象アドレスの期待値を含むエラー情報を報知することにより、そのエラー情報の内容からASIC10におけるエラー発生箇所やエラー内容を直ちに特定することができ、ASIC10に対するデバック処理を効率的に行うことができる。
As described above, when the
あるいは、メモリモデル22が、ASIC10による当該メモリモデルに対するライトアクセス実行時にASIC10から出力されるマスク信号の実際値と予め設定された該マスク信号の期待値とを比較して両値が一致するか否かをチェックし、上記両値が一致しない場合に、その時の上記マスク信号の実際値および該マスク信号の期待値を含むエラー情報を報知することによっても、そのエラー情報の内容からASIC10におけるエラー発生箇所やエラー内容を直ちに特定することができ、ASIC10に対するデバック処理を効率的に行うことができる。
Alternatively, the
あるいはまた、メモリモデル22が、ASIC10による当該メモリモデルに対するライトアクセス実行時にASIC10から出力されるデータの実際値と予め設定された該データの期待値とを比較して両値が一致するか否かをチェックし、上記両値が一致しない場合に、その時の上記データの実際値および該データの期待値を含むエラー情報を報知することによっても、そのエラー情報の内容からASIC10におけるエラー発生箇所やエラー内容を直ちに特定することができ、ASIC10に対するデバック処理を効率的に行うことができる。
以上、この発明をASICを検証するメモリモデルを含むテストベンチに適用した実施例について説明したが、この発明はこれに限らず、ASIC以外の論理回路を検証するメモリモデルを含むテストベンチにも適用可能である。
また、この発明によるプログラムは、メモリモデルとして機能するコンピュータに、この発明による各種機能(アドレスチェック手段,マスク信号チェック手段,データチェック手段,およびエラー報知手段)を実現させるためのプログラムであり、このようなプログラムをコンピュータに実行させることにより、上述したような効果を得ることができる。
Alternatively, the
As described above, the embodiment in which the present invention is applied to the test bench including the memory model for verifying the ASIC has been described. However, the present invention is not limited thereto, and the present invention is also applied to the test bench including the memory model for verifying the logic circuit other than the ASIC. Is possible.
The program according to the present invention is a program for causing a computer functioning as a memory model to realize various functions according to the present invention (address check means, mask signal check means, data check means, and error notification means). By causing a computer to execute such a program, the above-described effects can be obtained.
このようなプログラムは、はじめからROMあるいはHDD等の記憶手段に格納しておいてもよいが、記録媒体であるCD−ROMあるいはフレキシブルディスク,SRAM,EEPROM,メモリカード等の不揮発性記録媒体(メモリ)に記録して提供することもできる。そのメモリに記録されたプログラムをコンピュータに実行させるか、コンピュータにそのメモリからこのプログラムを読み出して実行させることにより、上述した各手順を実行させることができる。
さらに、ネットワークに接続され、プログラムを記録した記録媒体を備える外部機器あるいはプログラムを記憶手段に記憶した外部機器からダウンロードして実行させることも可能である。
Such a program may be stored in a storage means such as a ROM or HDD from the beginning, but a non-volatile recording medium (memory such as a CD-ROM or flexible disk, SRAM, EEPROM, or memory card) as a recording medium. ) Can be recorded and provided. Each procedure described above can be executed by causing a computer to execute a program recorded in the memory or causing the computer to read and execute the program from the memory.
Furthermore, it is also possible to download and execute an external device that is connected to a network and includes a recording medium that records the program, or an external device that stores the program in a storage unit.
以上の説明から明らかなように、この発明によれば、論理回路におけるエラー発生箇所やエラー内容を直ちに特定することができ、論理回路に対するデバック処理を効率的に行うことが可能になる。したがって、この発明を利用すれば、使い勝手のよいメモリモデルを提供することができる。 As is apparent from the above description, according to the present invention, an error occurrence location and error content in a logic circuit can be immediately identified, and a debugging process for the logic circuit can be performed efficiently. Therefore, if the present invention is used, a convenient memory model can be provided.
1:CPU 2:メモリ 10:ASIC 11:CPU・I/F・コントローラ
12:メモリアービタ 13:メモリ制御部 14:圧縮伸張器 15:回転器
16,17:ライトDMAコントローラ 18,19:リードDMAコントローラ
21:CPUモデル 22:メモリモデル 23:テストシナリオ
1: CPU 2: Memory 10: ASIC 11: CPU / I / F / Controller 12: Memory Arbiter 13: Memory Control Unit 14: Compression / Expansion Unit 15:
Claims (7)
前記論理回路による当該メモリモデルに対するアクセス実行時に該論理回路から出力されるアクセス対象アドレスの実際値と予め設定された該アクセス対象アドレスの期待値とを比較して、両値が一致するか否かをチェックするアドレスチェック手段と、
該アドレスチェック手段によって前記両値が一致しないと判断された場合に、その時の前記アクセス対象アドレスの実際値および該アクセス対象アドレスの期待値を含むエラー情報を報知するエラー報知手段と
を設けたことを特徴とするメモリモデル。 A memory model having a function equivalent to the memory for verifying a logic circuit that accesses the memory,
Compares the actual value of the access target address output from the logic circuit and the preset expected value of the access target address when the logic circuit performs access to the memory model, and whether both values match Address checking means to check,
Error notification means for notifying the error information including the actual value of the access target address at that time and the expected value of the access target address when it is determined by the address check means that the two values do not match; A memory model characterized by
前記論理回路による当該メモリモデルに対するライトアクセス実行時に該論理回路から出力されるマスク信号の実際値と予め設定された該マスク信号の期待値とを比較して、両値が一致するか否かをチェックするマスク信号チェック手段と、
該マスク信号チェック手段によって前記両値が一致しないと判断された場合に、その時の前記マスク信号の実際値および該マスク信号の期待値を含むエラー情報を報知するエラー報知手段と
を設けたことを特徴とするメモリモデル。 A memory model having a function equivalent to the memory for verifying a logic circuit that accesses the memory,
Compare the actual value of the mask signal output from the logic circuit with the expected value of the mask signal set in advance when the logical circuit performs a write access to the memory model, and determine whether the two values match. Mask signal checking means for checking,
Error notification means for notifying the error information including the actual value of the mask signal at that time and the expected value of the mask signal when the mask signal check means determines that the two values do not match. A featured memory model.
前記論理回路による当該メモリモデルに対するライトアクセス実行時に該論理回路から出力されるデータの実際値と予め設定された該データの期待値とを比較して、両値が一致するか否かをチェックするデータチェック手段と、
該データチェック手段によって前記両値が一致しないと判断された場合に、その時の前記データの実際値および該データの期待値を含むエラー情報を報知するエラー報知手段と
を設けたことを特徴とするメモリモデル。 A memory model having a function equivalent to the memory for verifying a logic circuit that accesses the memory,
When the logical circuit performs a write access to the memory model, the actual value of data output from the logic circuit is compared with a preset expected value of the data to check whether the two values match. Data check means,
Error notification means for notifying the error information including the actual value of the data at that time and the expected value of the data when the data check means determines that the two values do not match. Memory model.
前記論理回路による当該メモリモデルに対するアクセス実行時に該論理回路から出力されるアクセス対象アドレスの実際値と予め設定された該アクセス対象アドレスの期待値とを比較して両値が一致するか否かをチェックし、両値が一致しない場合に、その時の前記アクセス対象アドレスの実際値および該アクセス対象アドレスの期待値を含むエラー情報を報知することを特徴とするメモリモデルにおける論理回路検証方法。 A logic circuit verification method in a memory model having a function equivalent to the memory for verifying a logic circuit that accesses the memory,
Whether or not both values match by comparing the actual value of the access target address output from the logic circuit and the preset expected value of the access target address when executing the access to the memory model by the logic circuit A logic circuit verification method in a memory model, characterized in that, when both values do not match, error information including an actual value of the access target address and an expected value of the access target address at that time is notified.
前記論理回路による当該メモリモデルに対するライトアクセス実行時に該論理回路から出力されるマスク信号の実際値と予め設定された該マスク信号の期待値とを比較して両値が一致するか否かをチェックし、前記両値が一致しない場合に、その時の前記マスク信号の実際値および該マスク信号の期待値を含むエラー情報を報知することを特徴とするメモリモデルにおける論理回路検証方法。 A logic circuit verification method in a memory model having a function equivalent to the memory for verifying a logic circuit that accesses the memory,
Compare the actual value of the mask signal output from the logic circuit with the expected value of the mask signal set in advance when the write access to the memory model is executed by the logic circuit and check whether both values match When the two values do not coincide with each other, error information including an actual value of the mask signal at that time and an expected value of the mask signal is notified.
前記論理回路による当該メモリモデルに対するライトアクセス実行時に該論理回路から出力されるデータの実際値と予め設定された該データの期待値とを比較して両値が一致するか否かをチェックし、前記両値が一致しない場合に、その時の前記データの実際値および該データの期待値を含むエラー情報を報知することを特徴とするメモリモデルにおける論理回路検証方法。 A logic circuit verification method in a memory model having a function equivalent to the memory for verifying a logic circuit that accesses the memory,
Compares the actual value of the data output from the logic circuit and the preset expected value of the data when performing a write access to the memory model by the logic circuit, and checks whether both values match, A method of verifying a logic circuit in a memory model, characterized in that, when the two values do not match, error information including an actual value of the data at that time and an expected value of the data is notified.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005037093A JP2006227668A (en) | 2005-02-15 | 2005-02-15 | Memory model, program and logic circuit verification method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2005037093A JP2006227668A (en) | 2005-02-15 | 2005-02-15 | Memory model, program and logic circuit verification method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2006227668A true JP2006227668A (en) | 2006-08-31 |
Family
ID=36989032
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2005037093A Pending JP2006227668A (en) | 2005-02-15 | 2005-02-15 | Memory model, program and logic circuit verification method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2006227668A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011059953A (en) * | 2009-09-09 | 2011-03-24 | Ricoh Co Ltd | Logic verification device and logic verification method |
CN114880181A (en) * | 2022-07-05 | 2022-08-09 | 摩尔线程智能科技(北京)有限责任公司 | Memory test method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0561935A (en) * | 1991-08-30 | 1993-03-12 | Hitachi Ltd | Logical simulation system |
JP2002312416A (en) * | 2001-04-18 | 2002-10-25 | Canon Inc | Logic verification device and method of memory control circuit |
JP2003186938A (en) * | 2001-12-19 | 2003-07-04 | Canon Inc | Verification method using scoreboard |
JP2004334374A (en) * | 2003-05-01 | 2004-11-25 | Sony Corp | Memory access verification system and method, and memory access-verifying program |
-
2005
- 2005-02-15 JP JP2005037093A patent/JP2006227668A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0561935A (en) * | 1991-08-30 | 1993-03-12 | Hitachi Ltd | Logical simulation system |
JP2002312416A (en) * | 2001-04-18 | 2002-10-25 | Canon Inc | Logic verification device and method of memory control circuit |
JP2003186938A (en) * | 2001-12-19 | 2003-07-04 | Canon Inc | Verification method using scoreboard |
JP2004334374A (en) * | 2003-05-01 | 2004-11-25 | Sony Corp | Memory access verification system and method, and memory access-verifying program |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011059953A (en) * | 2009-09-09 | 2011-03-24 | Ricoh Co Ltd | Logic verification device and logic verification method |
CN114880181A (en) * | 2022-07-05 | 2022-08-09 | 摩尔线程智能科技(北京)有限责任公司 | Memory test method and device |
CN114880181B (en) * | 2022-07-05 | 2022-09-06 | 摩尔线程智能科技(北京)有限责任公司 | Memory test method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7685499B2 (en) | XOR circuit, RAID device capable of recovering a plurality of failures and method thereof | |
JP2007172363A (en) | Data transmission apparatus and method on i2c bus, and data transmission program on i2c bus | |
JP2006252267A (en) | Circuit for system verification | |
JP4909772B2 (en) | Simulation device | |
JP2008282308A (en) | Cooperation verification device, cooperation verification method, and cooperation verification program | |
JP4187470B2 (en) | Semiconductor device development support cooperation device and development support method | |
JP2008282314A (en) | Simulator and simulation method | |
JP2006227668A (en) | Memory model, program and logic circuit verification method | |
JP6667733B2 (en) | Simulation apparatus, simulation method, and simulation program | |
US11095778B2 (en) | Storing and outputting log for failure analysis in image forming apparatus equipped with SATA system, control method therefor, and storage medium | |
JP5664430B2 (en) | Test apparatus, verification model development method and program | |
JP5789832B2 (en) | Integrated circuit device, verification device, and verification method | |
JP2006350646A (en) | Simulation device and simulation method | |
JP4164473B2 (en) | Functional memory access control system, functional memory device, control method therefor, and program | |
JP2010140440A (en) | Bus arbitration device | |
US20070265821A1 (en) | Simulation apparatus, simulation method, and computer-readable recording medium storing simulation program | |
JP2007018440A (en) | Architecture verification apparatus | |
JP2021144468A (en) | Information processing device, test program and testing method | |
JP4286201B2 (en) | Test bench system and program | |
JP4351961B2 (en) | Simulator program and storage medium | |
JPH11149489A (en) | Simulation system | |
JP4728667B2 (en) | Disk management apparatus and disk load information acquisition method | |
JP5656589B2 (en) | Data transfer device, data transfer method, and data transfer program | |
JP2010182054A (en) | Evaluation system for printer driver | |
JP2010122860A (en) | Debugging-supporting device and debugging-supporting method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20070622 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090630 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20090826 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20091027 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20100406 |
|
RD02 | Notification of acceptance of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7422 Effective date: 20100531 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20100817 |