| Link for ModelSim | ![]() |
Configure or deconfigure ModelSim for use with MATLAB and Simulink
setupmodelsim
setupmodelsim('PropertyName', 'PropertyValue'...)
setupmodelsim starts an interactive installation script that configures ModelSim for use with the MATLAB and Simulink features of the Link for ModelSim.
setupmodelsim('PropertyName', 'PropertyValue'...) starts an interactive or programmatic script that configures or deconfigures ModelSim for use with the MATLAB and Simulink. If you specify only the 'action' property, the script runs in interactive mode.
The function modifies an installed version of ModelSim such that it subsequently starts ready to use the Link for ModelSim based on settings of property name/value pairs that specify
Whether the function configures or deconfigures ModelSim
Tcl commands to start ModelSim
The vsim executable
After you call this function, you can use Link for ModelSim commands from the ModelSim environment to
Load instances of VHDL entities for simulations that use MATLAB or Simulink for verification or cosimulation
Initiate MATLAB test bench sessions for loaded instances
Terminate MATLAB test bench sessions
Apply a VHDL wrapper around Verilog modules to be compiled and used with Link for ModelSim (see the wrapverilog command)
Configures ModelSim for use with the MATLAB and Simulink by modifying an installed version of ModelSim such that it subsequently starts ready to use the Link for ModelSim.
Deconfigures ModelSim for use with the MATLAB and Simulink.
Specifies one or more Tcl commands to execute during ModelSim startup. Specify a command string or a cell array of command strings that is to be appended to the ModelSim startup file.
Specifies the pathname to the ModelSim simulator executable (vsim.exe) to be started. By default, the function uses the first version of vsim.exe that it finds on the system path (defined by the path variable) . Use this option to start different versions of the ModelSim simulator or if the version of the simulator you want to run does not reside on the system path.
The following function call starts the interactive installation script that configures ModelSim for use with the MATLAB and Simulink:
setupmodelsim
The following function call configures ModelSim such that it subsequently starts ready for use with MATLAB and Simulink. Based on the specified property data, ModelSim starts vsim from its default executable and creates a temporary DO file in a temporary directory for the Link for ModelSim commands. The Link for ModelSim commands are specified with the 'tclstart' property and include
A vsimmatlab command that loads an instance of the VHDL entity parse in library work for MATLAB verification.
A matlabtb command that initiates the test bench session for an instance of entity parse, using TCP/IP socket communication on port 4449 and a test bench timing value of 10 nanoseconds.
setupmodelsim('action','install','tclstart','vsimmatlab
work.parse; matlabtb parse 10 ns -socket 4449')
| hdldaemon | vsim | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2009 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |