メインコンテンツ

このページは機械翻訳を使用して翻訳されました。元の英語を参照するには、ここをクリックします。

Simulink サブシステムの DPI 生成

Simulink® サブシステムから SystemVerilog DPI コンポーネントを生成する

Simulink サブシステムから生成された DPI コンポーネントは、次の 2 つの方法で使用できます。

  • SystemVerilog DPI コンポーネントをエクスポート - このコンポーネントを動作モデルとして HDL シミュレーションに統合できます。コンポーネント ジェネレーターは、テストポイントと調整可能なパラメーターをサポートします。生成された DPI コンポーネントをサブシステムのデータ ベクトルに対して検証するSystemVerilogテストベンチを生成することもできます。SystemVerilog DPIコンポーネントを生成するを参照してください。

  • SystemVerilog DPI テストベンチの生成 (HDL Coder™ を使用) — このテストベンチを使用して、DUT およびデータ ソースを含む Simulink モデル全体から生成された C コードを使用して、生成された HDL コードを検証します。Verify HDL Design Using SystemVerilog DPI Test Bench (HDL Coder)を参照してください。

Simulink による DPI コンポーネント生成を参照してください。

この機能を使用するには、ASIC Testbench for HDL Verifier アドオンをダウンロードしてインストールしてください。この機能には Simulink Coder™ も必要です。

すべての DPI 生成機能が MATLAB® Online™ で使用できるわけではありません。

アプリ

HDL VerifierHDL検証アーティファクトを生成し、Simulinkサブシステムから検証ワークフローに従います。

ブロック

AssertionSimulinkアサーションからSystemVerilogアサーションを生成する

モデル設定

生成された SystemVerilog コードをカスタマイズChoice to customize the generated SystemVerilog code
ソース ファイル テンプレートFile name and location of the template you want to use for customizing the generated SystemVerilog code
ランタイム エラーのレポートExports run-time errors
SeveritySeverity for run-time errors
テスト ベンチを生成Generates a testbench for the DPI component
浮動小数点許容誤差Numeric tolerance when comparing floating point values from Simulink output with the DPI component outputs running in the HDL simulator (R2025a 以降)
HDL シミュレーターHDL simulator to use when simulating the testbench in MATLAB
テスト ポイントへのアクセス関数を生成Type of test point access functions to generate in the SystemVerilog DPI component
端子のデータ型SystemVerilog data type used for ports that have fixed-point data
接続How signals are connected when the module is instantiated
複合データ型How the SystemVerilog ports are generated when your Simulink model includes a port which is a Nonvirtual bus or a complex data type
行列およびベクトル端子のスカラー化Choice for how ports are generated when your Simulink model includes a port which is an array or matrix data type
コンポーネント テンプレート タイプTemplate for SystemVerilog DPI generation

トピック

DPIコンポーネントの生成と検証

高度な DPI オプション

生成された HDL コードをSystemVerilog DPI テストベンチで検証する (HDL Coder ライセンスが必要)

注目の例