User`s guide

21 Automating Model Coverage Tasks
21-8
Obtain Cumulative Coverage for Reusable Subsystems and
Stateflow® Constructs
This example shows how to create and view cumulative coverage results for a model with
a reusable subsystem.
Simulink® Verification and Validation™ provides cumulative coverage for multiple
instances of identically configured:
Reusable subsystems
Stateflow™ constructs
To obtain cumulative coverage, you add the individual coverage results at the command
line. You can get cumulative coverage results for multiple instances across models and
test harnesses by adding the individual coverage results.
Open example model
At the MATLAB® command line, type:
model = 'slvnvdemo_cv_mutual_exclusion';
open_system(model);
This model has two instances of a reusable subsystem. The instances are named
Subsystem 1 and Subsystem 2.