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.
Simulink subsystem — Access this feature from the Model Configuration Parameters dialog box, under Code Generation. See Generate SystemVerilog DPI Component.
MATLAB function — Generate the component
using the dpigen
function. See Generate DPI Component Using MATLAB.
HDL Verifier™ supports SystemVerilog DPI component generation with these products and platforms.
Design Format | Required Products | Recommended Products | Supported Platforms |
---|---|---|---|
Simulink subsystem | Simulink and Simulink Coder™ | Embedded Coder® |
|
MATLAB function | MATLAB and MATLAB 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 Verify HDL Design With Large Data Set Using SystemVerilog DPI Test Bench (HDL Coder).
HDL Verifier supports SystemVerilog DPI test bench generation in HDL Coder with these products and platforms.
Design Format | Required Products | Recommended Products | Supported Platforms |
---|---|---|---|
Simulink subsystem | Simulink and Simulink Coder | Embedded Coder |
|