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.

UM-16 Table of Contents<br />

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

Simulating with input values from a VCD file . . . . . . . . . . . . . . . . . UM-458<br />

Replacing instances with output values from a VCD file . . . . . . . . . . . . . UM-459<br />

<strong>ModelSim</strong> VCD comm<strong>and</strong>s <strong>and</strong> VCD tasks . . . . . . . . . . . . . . . . . . . . UM-461<br />

Compressing files with VCD tasks . . . . . . . . . . . . . . . . . . . . . . UM-462<br />

A VCD file from source to output . . . . . . . . . . . . . . . . . . . . . . . . UM-463<br />

VHDL source code . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-463<br />

VCD simulator comm<strong>and</strong>s . . . . . . . . . . . . . . . . . . . . . . . . . UM-463<br />

VCD output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-464<br />

Capturing port driver data . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-467<br />

Supported TSSI states . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-467<br />

Strength values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-468<br />

Port identifier code . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-468<br />

Example VCD output from vcd dumpports . . . . . . . . . . . . . . . . . . UM-469<br />

20 - Tcl <strong>and</strong> macros (DO files) (UM-471)<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-477<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 />

Conversions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-481<br />

Relations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-481<br />

Arithmetic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-482<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

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

Saved successfully!

Ooh no, something went wrong!