Execute Tcl command in Incisive or ModelSim simulator
tclHdlSim(tclCmd)
tclHdlSim(tclCmd,portNumber)
tclHdlSim(tclCmd, portname, hostname)
tclHdlSim(
executes a Tcl command on the Incisive® or ModelSim® simulator
using a shared connection during a Simulink® cosimulation session.tclCmd
)
tclHdlSim(
executes
a Tcl command on the Incisive or ModelSim simulator by connecting
to the local host on port tclCmd
,portNumber
)portNumber
.
tclHdlSim(
executes
a Tcl command on the Incisive or ModelSim simulator by connecting
to the host tclCmd
, portname
, hostname
)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')
.
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')