Model Coverage Analysis

Generate test cases for systematic verification using formal analysis methods

Blocks

Test ConditionConstrain signal values in test cases

Functions

sldv.conditionTest condition function for Stateflow charts and MATLAB Function blocks
sldvextractExtract subsystem or subchart contents into new model for analysis
sldvtimerIdentify, change, and display timer optimizations
sldvoptionsCreate design verification options object
sldvrunAnalyze model
sldvgencovAnalyze models to obtain missing model coverage
sldvlogsignalsLog simulation input port values
sldvruntestSimulate model by using input data
sldvruntestoptsGenerate simulation or execution options for sldvruntest or sldvruncgvtest
sldvharnessoptsDefault options for sldvmakeharness
sldvmakeharnessGenerate harness model
sldvmergeharnessMerge test cases and initializations into one harness model
sldvreportGenerate Simulink Design Verifier report

Topics

About Model Coverage Analysis

Model Coverage Objectives for Test Generation

Decision coverage in Simulink® Design Verifier™ examines blocks and Stateflow® states that represent decision points in a model.

Modified Condition and Decision Coverage in Simulink Design Verifier

Describes the difference between MCDC coverage in Simulink Design Verifier and in Simulink Coverage™.

Enhanced MCDC Coverage in Simulink Design Verifier

Describes the Enhanced MCDC coverage concept and workflows.

Enhance Model Coverage of Older Release Models

Explains how to use cross release workflow for model upgrade by using Simulink Design Verifier.

Use Test Generation Advisor to Identify Analyzable Components

Use the Test Generation Advisor to guide model and component analysis.

Missing Coverage in Subsystems and Model Blocks

Explains how to convert subsystems to Model blocks before attempting to achieve missing coverage.

Debug Enhanced Modified Condition and Decision Coverage (MCDC) using Model Slicer

This example shows how to find the Simulink Design Verifier (SLDV) generated objectives related to a specific model object using Model Slicer.

Generate Test Cases

Generate Test Cases for Model Decision Coverage

An example that walks you through the process of generating test cases for a model.

Export Test Cases to Simulink Test

Describes how to generate test cases in Simulink Test™ using Simulink Design Verifier analysis results, which can be generated by property proving, design error detection, and test case generation.

Test Generation on Model with C Caller Block

C Caller

Test Generation for Custom Code in a Stateflow Chart

Stateflow Chart

Design Verifier Pane: Test Generation

Specify options that control how Simulink Design Verifier generates tests for the models it analyzes.