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
|Generate HDL test bench from model or subsystem|
This example shows how to use SystemVerilog DPI test bench for verification of HDL code where a large data set is required.
Select a generated test bench.