User`s guide
18 Coverage Collection During Simulation
18-4
View Coverage Results in a Model
In this section...
“Overview of Model Coverage Highlighting” on page 18-4
“Enable Coverage Highlighting” on page 18-5
“View Results in Coverage Display Window” on page 18-8
Overview of Model Coverage Highlighting
When you simulate a Simulink model, you can configure your model to provide visual
results that allow you to see at a glance which objects recorded 100% coverage. After the
simulation:
• In the model window, model objects are highlighted in certain colors according to
what coverage was recorded:
• Light green indicates that an object received full coverage during testing.
• Light red indicates that an object received incomplete coverage.
• Gray indicates that an object was filtered from coverage.
• Objects with no color highlighting received no coverage.
• When you click a colored object, the Coverage Display Window provides details
about the coverage recorded for that block. For subsystems and Stateflow charts,
the Coverage Display Window lists the summary coverage for all objects in that
subsystem or chart. For other blocks, the Coverage Display Window lists specific
details about the objects that did not receive 100% coverage.
The simulation highlights blocks that received the following types of model coverage:
• “Decision Coverage (DC)” on page 15-4
• “Condition Coverage (CC)” on page 15-4
• “Modified Condition/Decision Coverage (MCDC)” on page 15-5
• “Saturate on Integer Overflow Coverage”
• “Simulink Design Verifier Coverage” on page 15-9