주요 콘텐츠

SystemVerilog DPI Test Bench

R2026b
Generate DPI test bench code from entire Simulink model

When you generate HDL code from a subsystem, you can optionally generate a SystemVerilog test bench. This test bench verifies the generated HDL code by using a C component generated from the entire Simulink® model.

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.

Functions

makehdltbGenerate HDL test bench from model or subsystem

Model Settings

expand all

Simulation toolSimulator to use to run generated test benches
HDL code coverageEnable HDL code coverage flags in generated simulator scripts
SystemVerilog DPI test benchEnable SystemVerilog DPI test bench generation

Topics