24.03.2013 Views

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

ModelSim SE User's Manual - Electrical and Computer Engineering

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

20 - Tcl <strong>and</strong> macros (DO files)<br />

Chapter contents<br />

Introduction . . . . . . . . . . . . . . . UM-472<br />

Tcl features within <strong>ModelSim</strong>. . . . . . . . . . UM-472<br />

Tcl References. . . . . . . . . . . . . . UM-472<br />

Tcl comm<strong>and</strong>s . . . . . . . . . . . . . . . UM-473<br />

Tcl comm<strong>and</strong> syntax . . . . . . . . . . . . . UM-474<br />

if comm<strong>and</strong> syntax . . . . . . . . . . . . UM-476<br />

set comm<strong>and</strong> syntax . . . . . . . . . . . . UM-477<br />

Comm<strong>and</strong> substitution . . . . . . . . . . . UM-478<br />

Comm<strong>and</strong> separator . . . . . . . . . . . . UM-478<br />

Multiple-line comm<strong>and</strong>s . . . . . . . . . . . UM-478<br />

Evaluation order . . . . . . . . . . . . . UM-478<br />

Tcl relational expression evaluation . . . . . . . . UM-478<br />

Variable substitution . . . . . . . . . . . . UM-479<br />

System comm<strong>and</strong>s. . . . . . . . . . . . . UM-479<br />

List processing . . . . . . . . . . . . . . . UM-480<br />

<strong>ModelSim</strong> Tcl comm<strong>and</strong>s . . . . . . . . . . . . UM-480<br />

<strong>ModelSim</strong> Tcl time comm<strong>and</strong>s . . . . . . . . . . UM-481<br />

Tcl examples . . . . . . . . . . . . . . . UM-483<br />

Macros (DO files) . . . . . . . . . . . . . . UM-487<br />

Creating DO files . . . . . . . . . . . . . UM-487<br />

Using Parameters with DO files . . . . . . . . . UM-487<br />

Deleting a file from a .do script . . . . . . . . . UM-487<br />

Making macro parameters optional . . . . . . . . UM-488<br />

Useful comm<strong>and</strong>s for h<strong>and</strong>ling breakpoints <strong>and</strong> errors . . . UM-490<br />

Error action in DO files . . . . . . . . . . . UM-490<br />

Macro helper . . . . . . . . . . . . . . . UM-492<br />

The Tcl Debugger . . . . . . . . . . . . . . UM-493<br />

Starting the debugger . . . . . . . . . . . . UM-493<br />

How it works . . . . . . . . . . . . . . UM-493<br />

The Chooser . . . . . . . . . . . . . . UM-493<br />

The Debugger . . . . . . . . . . . . . . UM-494<br />

Breakpoints . . . . . . . . . . . . . . UM-495<br />

Configuration . . . . . . . . . . . . . . UM-495<br />

TclPro Debugger . . . . . . . . . . . . . . UM-493<br />

UM-471<br />

<strong>ModelSim</strong> <strong>SE</strong> User’s <strong>Manual</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!