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.

Using the Expression Builder for expression searches<br />

Searching in the Wave <strong>and</strong> List windows UM-253<br />

The Expression Builder is a feature of the Wave <strong>and</strong> List Signal Search dialog boxes, <strong>and</strong><br />

the List trigger properties dialog box. It aids in building a search expression that follows<br />

the "GUI_expression_format" (CR-22).<br />

To locate the Builder:<br />

select Edit > Search (List or Wave window)<br />

select the Search for Expression option in the resulting dialog box<br />

select the Builder button<br />

The Expression Builder dialog box provides an array of buttons that help you build a GUI<br />

expression. For instance, rather than typing in a signal name, you can select the signal in<br />

the associated Wave or List window <strong>and</strong> press Insert Selected Signal. All Expression<br />

Builder buttons correspond to the "Expression syntax" (CR-23).<br />

Saving an expression to a Tcl variable<br />

Clicking the Save button will save the expression to a Tcl variable. Once saved this variable<br />

can be used in place of the expression. For example, say you save an expression to the<br />

variable "foo". Here are some operations you could do with the saved variable:<br />

Read the value of foo with the set comm<strong>and</strong>:<br />

set foo<br />

Put $foo in the Expression: entry box for the Search for Expression selection.<br />

Issue a searchlog comm<strong>and</strong> using foo:<br />

searchlog -expr $foo 0<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!