To generate a DPI component from a MATLAB function, see Considerations for DPI Component Generation with MATLAB. You must have a MATLAB Coder™ license to use this feature.
|Generate SystemVerilog DPI component from MATLAB function|
Code the MATLAB function you want to export to a SystemVerilog environment.
You can export a MATLAB function as a component with a direct programming interface (DPI) for use in a SystemVerilog simulation.
How to export the generated DPI component to a SystemVerilog environment.
This example shows how to configure, generate, and use a SystemVerilog DPI (SVDPI) component with variable-length inputs or outputs.