Main Content

Functional Requirements Testing

Generate test cases for functional design requirements


Test ConditionConstrain signal values in test cases
Test ObjectiveDefine custom objectives that signals must satisfy in test cases
DetectorDetect true duration on input and construct output true duration based on output type
ExtenderExtend true duration of input
ImpliesSpecify condition that produces a certain response
Within ImpliesVerify response occurs within desired duration
Verification SubsystemSpecify proof or test objectives without impacting simulation results or generated code


sldv.conditionTest condition function for Stateflow charts and MATLAB Function blocks
sldv.testTest objective 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
sldvruntestSimulate model by using input data
sldvruntestoptsGenerate simulation or execution options for sldvruntest or sldvruncgvtest
sldvharnessoptsDefault options for sldvmakeharness
sldvmakeharnessGenerate harness model
sldvreportGenerate Simulink Design Verifier report


Introduction to Test Case Generation

What is Test Case Generation?

Brief overview of test case generation with Simulink® Design Verifier™.

Workflow for Test Case Generation

Outlines a process for generating test cases for your model.

Use Test Generation Advisor to Identify Analyzable Components

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

Configuring S-Function for Test Case Generation

This example shows how to compile an S-Function to be compatible with Simulink® Design Verifier™ for test case generation.

Generate Test Cases for Embedded Coder Generated Code

Outlines a process for generating test cases for generated code.

Code Coverage Test Generation

This example shows how to use Simulink® Design Verifier™ to generate test cases to obtain complete code coverage.

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.

What is a Specification Model?

Overview of specification model and its use in requirements-based verification.

Component Verification

What Is Component Verification?

An overview of the two approaches to component verification.

Functions for Component Verification

Describes the Simulink Design Verifier functions you can use for component verification.

Verify a Component for Code Generation

This example uses the slvnvdemo_powerwindow model to show how to verify a component in the context of the model that contains that component.

Parameter Constraint

Parameter Constraint Values

Overview of parameter configuration for Simulink Design Verifier analysis.

Define Constraint Values for Parameters

An example of how to specify parameters as variables for analysis.

Specify Parameter Constraint Values for Full Coverage

An example of how to specify parameter constraint values to achieve full model coverage.

Simulink Design Verifier Pane

Design Verifier Pane: Test Generation

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

Design Verifier Pane: Parameters

Specify options that control how Simulink Design Verifier uses parameter configurations when analyzing models.

Design Verifier Pane

Specify analysis options and configure Simulink Design Verifier output.

Simulink Design Verifier Options

Overview of the Simulink Design Verifier options in the Configuration Parameters dialog box.

Review Analysis Results

Review analysis results in the  Simulink Design Verifier Results Summary window.

Featured Examples