setupmodelsim

Configure or deconfigure ModelSim for use with MATLAB and Simulink

Syntax

setupmodelsim
setupmodelsim('PropertyName', 'PropertyValue'...)

Description

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

After you call this function, you can use Link for ModelSim commands from the ModelSim environment to

Property Name/Property Value Pairs

'action', 'install'

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.

'action', 'uninstall'

Deconfigures ModelSim for use with the MATLAB and Simulink.

'tclstart', 'tcl_commands'

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.

'vsimdir', 'pathname'

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.

Examples

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

setupmodelsim('action','install','tclstart','vsimmatlab 
work.parse; matlabtb parse 10 ns -socket 4449')


Learn more about the latest releases of MathWorks products:

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