This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

SystemVerilog DPI Component Generation

Export Simulink Subsystem or MATLAB Function Using DPI Interface

You can export a Simulink® subsystem or MATLAB® function with a DPI interface for Verilog® or SystemVerilog simulation. The coder wraps generated C code with a DPI wrapper accessed through a SystemVerilog thin interface function.

HDL Verifier™ supports SystemVerilog DPI component generation with these products and platforms.

Design FormatRequired ProductsRecommended ProductsSupported Platforms
Simulink subsystem

Simulink and Simulink Coder™

Embedded Coder®
  • Windows® 32-bit and 64-bit

  • Linux® 64-bit

MATLAB function

MATLAB and MATLAB Coder

 
  • Windows 64-bit

  • Linux 64-bit

Generate SystemVerilog DPI Test Bench in HDL Coder

If you have an HDL Coder™ license, you can generate a SystemVerilog DPI test bench. Use the test bench to verify your generated HDL code using C code generated from your entire Simulink model, including the DUT and data sources. To use this feature, your entire model must support C code generation with Simulink Coder. You can access this feature in HDL Workflow Advisor under HDL Code Generation > Set Testbench Options, or in the Model Configuration Parameters dialog box, under HDL Code Generation>Test Bench. Or, for command-line access, set the GenerateSVDPITestBench property of makehdltb. See (HDL Coder).

HDL Verifier supports SystemVerilog DPI test bench generation in HDL Coder with these products and platforms.

Design FormatRequired ProductsRecommended ProductsSupported Platforms
Simulink subsystem

Simulink and Simulink Coder

Embedded Coder
  • Windows 32-bit and 64-bit

  • Linux 64-bit

Related Topics