DPI Generation for MATLAB Code
Generate SystemVerilog DPI component from MATLAB®code
To generate a DPI component from a MATLAB function, seeConsiderations for DPI Component Generation with MATLAB. You must have aMATLAB Coder™license to use this feature.
Functions
dpigen |
Generate SystemVerilog DPI component fromMATLABfunction |
Topics
- Generate DPI Component Using MATLAB
Code the MATLAB function you want to export to a SystemVerilog environment.
- Considerations for DPI Component Generation with MATLAB
You can export a MATLAB function as a component with a direct programming interface (DPI) for use in a SystemVerilog simulation.
- Use Generated DPI Functions in SystemVerilog
How to export the generated DPI component to a SystemVerilog environment.
- Use Variable-Sized Vector in SystemVerilog DPI Component
This example shows how to configure, generate, and use a SystemVerilog DPI (SVDPI) component with variable-length inputs or outputs.