Main Content

Model Objects That Do Not Receive Coverage

The Simulink® Coverage™ software does not record Decision, Condition, or MCDC coverage for blocks that are not listed in Model Objects That Receive Coverage.


The software only records model coverage when the Simulation mode parameter is set to Normal. If you have Embedded Coder® installed, the software can measure the coverage of code generated from models in SIL or PIL mode. For more information, see Code Coverage for Models in Software-in-the-Loop (SIL) Mode and Processor-in-the-Loop (PIL) Mode.

The following table identifies specific model objects that do not receive coverage in certain conditions.

Model objectDoes not receive coverage...

Logical Operator block

When the Operator parameter specifies XOR or NXOR and there are more than twelve scalar inputs or more than twelve elements in a vector input.

Model block

When the Simulation mode parameter specifies Accelerator.

Coverage for Model blocks is the sum of the coverage data for the contents of the referenced model.

Protected model blockCoverage information is not provided for protected model blocks. See also Model Protection (Simulink Coder).

Subsystem block

When the Read/Write Permissions parameter is set to NoReadOrWrite.

Stateflow® chart

MATLAB Function block

When debugging/animation is not enabled for the model or object.

Virtual Blocks

Virtual blocks do not receive model coverage. For more information, see Nonvirtual and Virtual Blocks.