Simulink Coverage

 

Simulink Coverage

Measure test coverage in models and generated code

 

Simulink Coverage™ performs model and code coverage analysis that measures testing completeness in models and generated code. It applies industry-standard metrics such as decision, condition, modified condition/decision coverage (MC/DC), and relational boundary coverage to assess the effectiveness of simulation testing in models, software-in-the-loop (SIL), and processor-in-the-loop (PIL). You can use missing coverage data to find gaps in testing, missing requirements, or unintended functionality.

Simulink Coverage produces interactive reports showing how much of your model, C /C++ S-functions, MATLAB® functions, and code generated by Embedded Coder® has been exercised. You can highlight coverage results in blocks and subsystems to visualize gaps in testing. To assess testing completeness, you can accumulate coverage data from multiple test runs. You can apply filters to exclude blocks from coverage and justify missing coverage in reports.

Support for industry standards is available through DO Qualification Kit and IEC Certification Kit.

 

Measure Model and Code Coverage

Assess completeness of your testing by measuring model elements and C/C++ code exercised during simulation.

Model Coverage

Measure how much of your design is covered by simulation testing to assess testing effectiveness and completeness. Incomplete coverage indicates gaps in testing, missing requirements, or unintended functionality.

Review model coverage results within the Simulink Editor.

Code Coverage

Measure coverage for software-in-the-loop (SIL) and processor-in-the-loop (PIL) tests of code generated with Embedded Coder or for any code called within Simulink models using S-functions, custom code in Stateflow® charts, and C Caller blocks.

View coverage of code called from a C Caller block.

Coverage Metrics

Measure model and code coverage for a variety of metrics, including decision, condition, MCDC, relational boundary, and signal range.

Select from various coverage metrics, including MCDC.

Explore Results and Generate Reports

Accumulate and report coverage results across multiple simulation runs. Reconcile missing coverage.

Managing and Viewing Accumulated Coverage Results

Use the Results Explorer to manage and view accumulated coverage data for all executed simulation runs and tests.

Select simulations to use for cumulative coverage analysis.

Generating Coverage Reports

Generate detailed reports that include accumulated coverage results on selected metrics.

Generate a comprehensive coverage report.    

Reconciling Missing Coverage

Models may contain constructs that prevent full test coverage. Excluding these constructs from coverage recording and reporting lets you focus on other aspects of missing coverage that can and should be tested.

Provide rationale for the exclusion of model elements from coverage analysis.

Latest Features

Model Coverage Visualization

Gain enhanced perspective of coverage results through model highlighting and pop-ups within the Simulink Editor

Parallel Simulation Support

Accelerate coverage analysis through use of parsim

Stateflow Custom Code Support

Collect coverage on elements of Stateflow charts where C/C++ code is used

C Caller Block Support

Perform code coverage analysis for custom C/C++ code in Simulink models

Coverage Filtering API

Create filter rules for custom C/C++ code in normal mode and generated code in SIL or PIL modes

See release notes for details on any of these features and corresponding functions.

How to Use Simulink for ISO 26262 Projects

Learn how Model-Based Design with Simulink enables you to design and test your embedded automotive system under a wide range of driving conditions and fault scenarios long before you go to the proving grounds.

無料評価版を入手する

30 日間の無料評価版はこちら

今すぐダウンロード

あなたは学生ですか?

MATLAB および Simulink のアカデミック版の入手

詳細はこちら