How do I measure coverage of a block reset feature?

2 ビュー (過去 30 日間)
Pat Canny
Pat Canny 2021 年 7 月 7 日
回答済み: Pat Canny 2021 年 7 月 7 日
I am using a Resettable Delay block in my design, and want to measure coverage on the reset feature (i.e., I want to know when the reset input is TRUE during my tests).
Simulink Coverage does not measure this on the Resettable Delay block.

採用された回答

Pat Canny
Pat Canny 2021 年 7 月 7 日
One approach is to add a Test Objective with just a “true” condition going into the reset input. Simulink Coverage measures coverage of the Test Objective block from Simulink Design Verifier. This type of coverage needs to be enabled by selecting "Objectives and constraints" in the "Other metrics" dropdown in the Coverage Settings pane.
Here is a simple example:

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGenerate Tests についてさらに検索

製品


リリース

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by