Load instantiated HDL module for cosimulation with ModelSim and Simulink
Note
Issue this command in ModelSim®, not in MATLAB®.
vsimulink
loads the specified instance of the HDL design for cosimulation and sets up ModelSim so it can establish a shared communication link with Simulink®. ModelSim opens a simulation workspace and displays a series of messages in the command
window as it loads the HDL module packages and architectures.instance
-socket tcp_spec
<vsim_args
>
To generate the vsimulink
function, you must first invoke the
vsim
function in MATLAB.
In ModelSim, load the HDL module instance parse
from the library
work
, and establish communication with Simulink.
ModelSim> vsimulink work.parse