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-14 Table of Contents<br />

15 - Functional coverage with PSL <strong>and</strong> <strong>ModelSim</strong> (UM-383)<br />

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

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-384<br />

Compiling <strong>and</strong> simulating functional coverage directives . . . . . . . . . . . . . . UM-385<br />

Configuring functional coverage directives . . . . . . . . . . . . . . . . . . . . UM-386<br />

Weighting coverage directives . . . . . . . . . . . . . . . . . . . . . . . UM-387<br />

Choosing "AtLeast" counts . . . . . . . . . . . . . . . . . . . . . . . . UM-387<br />

Viewing functional coverage statistics . . . . . . . . . . . . . . . . . . . . . . UM-388<br />

Filtering data in the pane . . . . . . . . . . . . . . . . . . . . . . . . . UM-388<br />

Viewing coverage directives in the Wave window . . . . . . . . . . . . . . . . . UM-389<br />

Displaying waveforms in "count" mode . . . . . . . . . . . . . . . . . . . . UM-390<br />

Reporting functional coverage statistics . . . . . . . . . . . . . . . . . . . . . UM-391<br />

Sample report output . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-392<br />

Underst<strong>and</strong>ing aggregated statistics . . . . . . . . . . . . . . . . . . . . . UM-393<br />

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

Saving functional coverage data . . . . . . . . . . . . . . . . . . . . . . . . UM-395<br />

Reloading/merging functional coverage data . . . . . . . . . . . . . . . . . . . UM-396<br />

Merging details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-396<br />

Merging results "offline" . . . . . . . . . . . . . . . . . . . . . . . . . UM-396<br />

Clearing functional coverage data . . . . . . . . . . . . . . . . . . . . . . . . UM-397<br />

Creating a reactive testbench with endpoint directives . . . . . . . . . . . . . . . . UM-398<br />

16 - C Debug (UM-399)<br />

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-400<br />

Supported platforms <strong>and</strong> gdb versions . . . . . . . . . . . . . . . . . . . . . . UM-401<br />

Running C Debug on Windows platforms . . . . . . . . . . . . . . . . . . . UM-401<br />

Setting up C Debug . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-402<br />

Running C Debug from a DO file . . . . . . . . . . . . . . . . . . . . . . UM-402<br />

Setting breakpoints . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-403<br />

Stepping in C Debug . . . . . . . . . . . . . . . . . . . . . . . . . . . . . UM-405<br />

Known problems with stepping in C Debug . . . . . . . . . . . . . . . . . . UM-405<br />

Finding function entry points with Auto find bp . . . . . . . . . . . . . . . . . . UM-406<br />

Identifying all registered function calls . . . . . . . . . . . . . . . . . . . . . . UM-407<br />

Enabling Auto step mode . . . . . . . . . . . . . . . . . . . . . . . . . UM-407<br />

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

Auto find bp versus Auto step mode . . . . . . . . . . . . . . . . . . . . . UM-409<br />

Debugging functions during elaboration . . . . . . . . . . . . . . . . . . . . . UM-410<br />

FLI functions in initialization mode . . . . . . . . . . . . . . . . . . . . . UM-411<br />

PLI functions in initialization mode . . . . . . . . . . . . . . . . . . . . . UM-411<br />

VPI functions in initialization mode . . . . . . . . . . . . . . . . . . . . . UM-413<br />

Completing design load . . . . . . . . . . . . . . . . . . . . . . . . . . UM-413<br />

Debugging functions when quitting simulation . . . . . . . . . . . . . . . . . . . UM-414<br />

C Debug comm<strong>and</strong> reference . . . . . . . . . . . . . . . . . . . . . . . . . UM-415

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

Saved successfully!

Ooh no, something went wrong!