DPICustomTemplateConfiguration
R2026bDescription
Add-On Required: This feature requires the ASIC Testbench for HDL Verifier add-on.
Use DPICustomTemplateConfiguration objects to configure a custom
template for generating SystemVerilog DPI or a UVM component from a Simulink® model.
After you configure the object, save it to a MAT file and specify the MAT file path in the Simulink configuration parameters. When you set the DPI component template type to Custom, the code generator uses the settings stored in the object.
If you generate DPI components from MATLAB® functions rather than Simulink models, use the svdpiConfiguration object with the
dpigen function instead.
Creation
Description
Properties
Object Functions
addPortGroup | Add port group mapping to svdpiConfiguration or
DPICustomTemplateConfiguration object |
removePortGroup | Remove port group mapping from svdpiConfiguration or
DPICustomTemplateConfiguration object |
Examples
Limitations
When testbench generation is enabled in the configuration parameters, you must set Connection to
Port list. The option ofInterfaceis not supported.When testbench generation is enabled in the configuration parameters, you must set Generate access function to test point to one of these options:
One function for all test pointsNone
The option for
One function per Test Pointis not supported.
Version History
Introduced in R2026b