Simulink®
Coverage™ provides commands that allow you to retrieve specific coverage information
from the cvdata
object after you have simulated your model and
recorded coverage. Use these commands to retrieve the specified coverage information for
a block, subsystem, or Stateflow® chart in your model or for the model itself:
complexityinfo
—
Cyclomatic complexity coverage
executioninfo
—
Execution coverage
conditioninfo
—
Condition coverage
decisioninfo
—
Decision coverage
mcdcinfo
—
Modified condition/decision (MCDC) coverage
overflowsaturationinfo
—
Saturate on integer overflow coverage
relationalboundaryinfo
—
Relational boundary coverage
sigrangeinfo
—
Signal range coverage
sigsizeinfo
—
Signal size coverage
tableinfo
—
Lookup Table block coverage
getCoverageinfo
—
Coverage for Simulink
Design Verifier™ blocks
The basic syntax of these functions is:
coverage = <coverage_type_prefix>info(cvdo, ... object, ignore_descendants)
coverage
— Multipart vector
containing the retrieved coverage results for object
cvdo
— cvdata
object created when
coverage is recorded
object
— Handle to a model
or object in the model
ignore_descendants
— Logical value that specifies
whether to ignore the coverage of descendant objects