| EDA Simulator Link™ MQ | ![]() |
vsimulink <instance> [-socket <tcp_spec>] [<vsim_args>]
Specifies the instance of an HDL module 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 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.
Note The communication mode that you specify with the vsimulink command must match what you specify for the communication mode when you configure EDA Simulator Link MQ blocks in your Simulink model. For more information on modes of communication, see Communicating with MATLAB or Simulink and the HDL Simulator. For more information on establishing the Simulink end of the communication link, see Configuring the Communication Link in the HDL Cosimulation Block. |
Specifies one or more ModelSim vsim command arguments. For details, see the description of vsim in the ModelSim documentation.
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.
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
![]() | vsimmatlab | wrapverilog | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |