Documentation

tclHdlSim

Execute Tcl command in Incisive or ModelSim simulator

Syntax

tclHdlSim(tclCmd)
tclHdlSim(tclCmd,'portNumber')
tclHdlSim(tclCmd, 'portnumber', 'hostname')

Description

tclHdlSim(tclCmd) executes a Tcl command on the Incisive® or ModelSim® simulator using a shared connection during a Simulink® cosimulation session.

tclHdlSim(tclCmd,'portNumber') executes a Tcl command on the Incisive or ModelSim simulator by connecting to the local host on port portNumber.

tclHdlSim(tclCmd, 'portnumber', 'hostname') executes a Tcl command on the Incisive or ModelSim simulator by connecting to the host hostname on port portname.

The Incisive or ModelSim simulator must be connected to MATLAB® and Simulink using the HDL Verifier™ software for this function to work (see either vsimulink or hdlsimulink).

You may specify any valid Tcl command string. The Tcl command string you specify cannot include commands that load an HDL simulator project or modify simulator state. For example, the string cannot include commands such as start, stop, or restart (for ModelSim) or run, stop, or reset (for Incisive).

To execute a Tcl command on the Incisive or ModelSim simulator during a MATLAB cosimulation session, use hdldaemon('tclcmd','command').

Examples

The following function call displays a message in the HDL simulator command window using port 5678 on host name msuser:

>>tclHdlSim('puts "Done"', '5678', 'msuser')

See Also

| |

Was this topic helpful?