Main Content

vsimulink

Load instantiated HDL module for cosimulation with ModelSim and Simulink

Description

example

Note

Issue this command in ModelSim®, not in MATLAB®.

vsimulink instance -socket tcp_spec <vsim_args> 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.

To generate the vsimulink function, you must first invoke the vsim function in MATLAB.

Examples

Load Instantiated HDL Model for Cosimulation with Simulink

In ModelSim, load the HDL module instance parse from the library work, and establish communication with Simulink.

ModelSim> vsimulink work.parse

Input Arguments

collapse all

Instance of the HDL module to load for cosimulation.

vsim command arguments, as required by ModelSim. For details, see the description of vsim in the ModelSim documentation.

TCP/IP socket communication for the link between ModelSim and Simulink, specified as a TCP/IP port name or service name. If the MATLAB server is running on a remote host, you must also specify the name or internet address of the remote host. When this input argument is not specified, the function uses shared memory communication. This setting overrides the setting specified with the MATLAB vsim function.

Version History

Introduced in R2008a

See Also