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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

UM-382 14 - PSL Assertions<br />

Viewing assertions in the Wave window<br />

Assertion ’signals’<br />

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

You can view assertions in the Wave window just like any other signal in your design.<br />

Simply drag an assertion from the Assertions pane <strong>and</strong> drop it in the Wave window or rightclick<br />

an assertion in the Assertions pane <strong>and</strong> select Add Wave.<br />

<strong>ModelSim</strong> represents assertions as waveforms in the Wave window. The picture below<br />

shows several assertions in a Wave window.<br />

Assertion objects are represented by a magenta triangle. The name of each assertion comes<br />

from the assertion code. The plus sign (’+’) to the left of the name indicates that an assertion<br />

is a composite trace <strong>and</strong> can be exp<strong>and</strong>ed to show its elements (properties, sequences,<br />

clocks, <strong>and</strong> HDL signals).<br />

The value in the value pane is determined by the active cursor in the waveform pane. The<br />

value will be one of "ACTIVE", "INACTIVE", "PASS" or "FAIL".<br />

The waveform for an assertion represents both continuous <strong>and</strong> instantaneous information.<br />

The continuous information is whether or not the assertion is active. The assertion is active<br />

anytime it matches the first element in the directive. When active, the trace is raised <strong>and</strong><br />

painted green; when inactive it is lowered <strong>and</strong> painted blue. The instantaneous information<br />

is a pass or fail event on the assertion. These are shown as filled circles above the trace at<br />

the time of the event. A pass is a green circle <strong>and</strong> a fail is a red circle.<br />

Graphic element Meaning<br />

blue line assertion is inactive<br />

green line assertion is active<br />

green dot assertion passed<br />

red dot assertion failed

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

Saved successfully!

Ooh no, something went wrong!