| Link for ModelSim | ![]() |
Load an instance of a VHDL entity for cosimulation with Simulink
vsimulink <instance> [-socket <tcp_spec>]
Specifies the instance of a VHDL entity to load for cosimulation.
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.
Note The communication mode that you specify with the vsimulink command must match what you specify for the communication mode when you configure Link for ModelSim blocks in your Simulink model. For more information on modes of communication, see Modes of Communication. For more information on establishing the Simulink end of the communication link, see Configuring the Communication Link. |
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.
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
| vsimmatlab | wrapverilog | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |