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.

Viewing coverage data in the Source window<br />

Viewing coverage data in the Source window UM-341<br />

Source window (GR-199) include two columns for code coverage statistics – the Hits<br />

column <strong>and</strong> the BC (Branch Coverage) column. These columns provide an immediate<br />

visual indication about how your source code is executing. The default code coverage<br />

indicators are check marks <strong>and</strong> Xs.<br />

A green check mark indicates that the statemen ts <strong>and</strong>/or branches in a particular line have<br />

executed.<br />

A red X indicates that a statement or branch was not executed.<br />

An X T indicates the true branch of an conditional statement was not executed.<br />

An X F indicates the false branch was not executed.<br />

A green "E" indicates a line of code that has been excluded from code coverage statistics.<br />

When you hover the cursor over a line of code (see line 58 in the illustration above), the<br />

number of statement <strong>and</strong> branch executions, or "hits," will be displayed in place of the<br />

check marks <strong>and</strong> Xs. If you prefer, you can display only numbers by selecting Tools ><br />

Code Coverage > Show Coverage Numbers.<br />

Also, when you click in either the Hits or BC column, the Details pane in the Main window<br />

updates to display information on that line.<br />

You can skip to "missed lines" three ways: select Edit > Previous Coverage Miss <strong>and</strong> Edit<br />

> Next Coverage Miss from the menu bar; click the Previous zero hits <strong>and</strong> Next zero hits<br />

icons on the toolbar; or press - (previous miss) or Tab (next miss).<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!