vsimulink - Load instantiated HDL module for cosimulation with Simulink

Syntax

vsimulink <instance>
[-socket <tcp_spec>] [<vsim_args>]

Argument

<instance>

Specifies the instance of an HDL module to load for cosimulation.

-socket <tcp_spec>

Specifies TCP/IP socket communication for the link between ModelSim and MATLAB. This setting overrides the setting specified with the MATLAB vsim function. The <tcp_spec> can consist of a TCP/IP socket port number or service name (alias). For example, you might specify port number 4449 or the service name matlabservice.

For more information on choosing TCP/IP socket ports, see TCP/IP Socket Communication.

If you run the HDL simulator and MATLAB on the same computer, you have the option of using shared memory for communication. Shared memory is the default mode of communication and takes effect if you do not specify -socket <tcp-spec> on the command line.

<vsim_args>

Specifies one or more ModelSim vsim command arguments. For details, see the description of vsim in the ModelSim documentation.

Description

The vsimulink command loads the specified instance of an HDL module for cosimulation and sets up ModelSim so it can establish a 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's packages and architectures.

Examples

The following command loads the HDL module instance parse from library work for cosimulation and sets up ModelSim so it can establish a communication link with Simulink:

ModelSim> vsimulink work.parse
  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS