Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

tclHdlSim

Execute Tcl command in Incisive or ModelSim simulator

Syntax

tclHdlSim(tclCmd)
tclHdlSim(tclCmd,portNumber)
tclHdlSim(tclCmd, portname, 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, portname, 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. The Tcl command you specify cannot include commands that load an HDL simulator project or modify simulator state. For example, the character vector 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

| |

Introduced in R2008a

Was this topic helpful?