vsimulink

Load an instance of a VHDL entity for cosimulation with Simulink

Syntax

vsimulink <instance>
[-socket <tcp_spec>]

Argument

<instance>

Specifies the instance of a VHDL entity 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 Choosing TCP/IP Socket Ports.

If ModelSim and MATLAB are running 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 omit -socket <tcp-spec> from the command line.

Description

The vsimulink command loads the specified instance of an entity 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 entity's packages and architectures.

Examples

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

ModelSim> vsimulink work.parse


Learn more about the latest releases of MathWorks products:

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