tclHdlSim - Execute Tcl command in HDL simulator

Syntax

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

Description

tclHdlSim(tclCmd) executes a Tcl command on the HDL simulator using a shared connection.

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

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

The HDL simulator must be connected to MATLAB using the EDA Simulator Link™ IN software for this function to work (see Starting the HDL Simulator. If you start from within MATLAB, you must use hdlsimmatlab.).

Examples

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

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


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