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-348 13 - Measuring code coverage<br />

Excluding lines/files with a filter file<br />

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

Exclusion filter files specify files <strong>and</strong> line numbers or condition <strong>and</strong> expression udp truth<br />

table rows (see below for details) that you wish to exclude from coverage statistics. You<br />

can create the filter file in any text editor or save the current filter in the Current Exclusions<br />

pane by selecting the pane <strong>and</strong> then choosing File > Save. To load the filter during a future<br />

analysis, select the Current Exclusions pane <strong>and</strong> select File > Open.<br />

Syntax<br />

...<br />

[[ ...] [ ...]] | all<br />

or<br />

begin instance ...<br />

...<br />

[[ ...] [ ...]] | all<br />

end instance<br />

Arguments<br />

<br />

The name of the file you want to exclude. Required if you are not specifying an instance.<br />

The filter file may include an unlimited number of filename entries, each on its own line.<br />

You may use environment variables in the pathname.<br />

begin instance <br />

The name of an instance for which you want to exclude lines. Required if you don’t<br />

specify . The filter file may include an unlimited number of instances.<br />

<br />

The name of the file(s) that compose the instance from which you are excluding lines.<br />

Optional.<br />

...<br />

A range of line numbers you want to exclude. Optional. Enter the range in "# - #" format.<br />

For example, 32 - 35. You can specify multiple ranges separated by spaces.<br />

...<br />

A line number that you want to exclude. Optional. You can specify multiple line numbers<br />

separated by spaces.<br />

all<br />

When used with , specifies that all lines in the file should be excluded. When<br />

used with , specifies that all lines in the instance <strong>and</strong> all instances<br />

contained within the specified instance should be excluded. Required if a range or line<br />

number is not specified.<br />

Example<br />

control.vhd<br />

72 - 76 84 93<br />

testring.vhd<br />

all<br />

begin instance /test_delta/chip/bid01_inst<br />

src/delta/buffers.vhd<br />

45-46

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

Saved successfully!

Ooh no, something went wrong!