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.

14 - PSL Assertions (UM-359)<br />

What are assertions? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-360<br />

Definition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-360<br />

Types of assertions . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-360<br />

PSL assertion language . . . . . . . . . . . . . . . . . . . . . . . . . . UM-361<br />

Using assertions in <strong>ModelSim</strong> . . . . . . . . . . . . . . . . . . . . . . . . . UM-362<br />

Assertion flow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-362<br />

Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-362<br />

Using cover directives . . . . . . . . . . . . . . . . . . . . . . . . . . UM-363<br />

Processing assume directives in simulation . . . . . . . . . . . . . . . . . . UM-363<br />

Embedding assertions in your code . . . . . . . . . . . . . . . . . . . . . . . UM-364<br />

Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-364<br />

Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-364<br />

Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-364<br />

HDL code inside PSL statements . . . . . . . . . . . . . . . . . . . . . . UM-365<br />

Writing assertions in an external file . . . . . . . . . . . . . . . . . . . . . . . UM-366<br />

Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-366<br />

Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-366<br />

Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-366<br />

Inserting VHDL library <strong>and</strong> use clauses in external assertions files . . . . . . . . . UM-367<br />

Underst<strong>and</strong>ing clock declarations . . . . . . . . . . . . . . . . . . . . . . . . UM-368<br />

Default clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-368<br />

Partially clocked properties . . . . . . . . . . . . . . . . . . . . . . . . UM-368<br />

Multi-clocked properties <strong>and</strong> default clock . . . . . . . . . . . . . . . . . . UM-369<br />

Underst<strong>and</strong>ing assertion names . . . . . . . . . . . . . . . . . . . . . . . . . UM-370<br />

Using endpoints in HDL code . . . . . . . . . . . . . . . . . . . . . . . . . UM-371<br />

Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-371<br />

Restrictions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-373<br />

Clocking endpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-373<br />

General assertion writing guidelines . . . . . . . . . . . . . . . . . . . . . . . UM-374<br />

Compiling <strong>and</strong> simulating assertions . . . . . . . . . . . . . . . . . . . . . . . UM-375<br />

Embedded assertions . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-375<br />

External assertions file . . . . . . . . . . . . . . . . . . . . . . . . . . UM-375<br />

Making changes to assertions . . . . . . . . . . . . . . . . . . . . . . . . UM-375<br />

Simulating assertions . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-375<br />

Managing assertions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-376<br />

Viewing assertions in the Assertions pane . . . . . . . . . . . . . . . . . . . UM-376<br />

Enabling/disabling failure <strong>and</strong> pass checking . . . . . . . . . . . . . . . . . UM-377<br />

Enabling/disabling failure <strong>and</strong> pass logging . . . . . . . . . . . . . . . . . . UM-378<br />

Setting failure <strong>and</strong> pass limits . . . . . . . . . . . . . . . . . . . . . . . . UM-379<br />

Setting failure action . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-380<br />

Reporting on assertions . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-381<br />

Specifying an alternative output file for assertion messages . . . . . . . . . . . . UM-381<br />

Viewing assertions in the Wave window . . . . . . . . . . . . . . . . . . . . . UM-382<br />

Assertion ’signals’ . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-382<br />

UM-13<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!