User`s guide

Model Coverage for Multiple Instances of a Referenced Model
18-17
4
To make sure that the software records coverage for both instances of this model:
a
Select Analysis > Coverage > Settings.
b
On the Coverage pane, under Coverage for referenced models, click Select
Models.
In the Select Models for Coverage Analysis dialog box, verify that both instances
of the referenced model are selected. In this example, the list now looks like the
following.
If you have multiple instances of a referenced model in Normal mode, you can
choose to record coverage for all of them or none of them.
c
Click OK to close the Select Models for Coverage Analysis dialog box.
5
Simulate your model again.
6
When the simulation is complete, open the HTML coverage report.
In this example, the referenced model achieved 85% coverage. Note the following
about the coverage data for the Range Check subsystem:
The Saturate Count block executed 179 times. The simulation of the Counter2
block executed the Saturate Count block an additional 79 times, for a total of 179
executions.
The decision input >= upper limit was true 21 times during this
simulation, compared to 0 during the first simulation. The fourth decision input
> lower limit was still never false. Three out of four decisions were recorded
during simulation, so this block achieved 75% coverage.