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-370 14 - PSL Assertions<br />

Underst<strong>and</strong>ing assertion names<br />

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

PSL 1.1 provides for named directives via the use of a label. You are not allowed to have<br />

a label that duplicates another symbol in the same scope. In other words, you cannot<br />

explicitly label a PSL directive with a name that already exists (as, say, a signal).<br />

In the absence of a label, <strong>ModelSim</strong> generates assertion names for reporting information<br />

about the assertions. For example:<br />

property p0 is always a -> b;<br />

assert p0;<br />

The name generated for this assertion statement will be assert__p0. Generically, the syntax<br />

of the generated name is:<br />

assert__.<br />

However, if you write the same assertion in this manner:<br />

assert always a -> b;<br />

there is no property name, so <strong>ModelSim</strong> will generate a name like assert__0 (i.e., a number<br />

appended to "assert__" ).

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

Saved successfully!

Ooh no, something went wrong!