Retrieve execution coverage information fromCVDATA
目的
coverage = executionInfo(cvdo,对象)
coverage = executionInfo(CVDO,对象,模式)
coverage = executionInfo(cvdo,对象,ignore_descendants)
[覆盖范围,描述] = executionInfo(cvdo,对象)
returns execution coverage results from the覆盖范围
= executioninfo(CVDO
,,,,目的
)CVDATA
目的CVDO
对于由目的
。
returns execution coverage results from the覆盖范围
= executioninfo(CVDO
,,,,目的
,,,,mode
)CVDATA
目的CVDO
对于由目的
for the simulation modemode
。
返回执行覆盖结果覆盖范围
= executioninfo(CVDO
,,,,目的
,,,,ignore_descendants
)目的
,,,,depending on the value ofignore_descendants
。
[[
returns execution coverage results and text descriptions of execution points associated with覆盖范围
,,,,描述
] = executionInfo(CVDO
,,,,目的
)目的
。
|
|
||||||||||||||||||||||||||||||||||||
|
这
指定s功能块时,
对于在循环(SIL)模式或处理器中收集的覆盖范围数据(pil)模拟模式,有效值
|
||||||||||||||||||||||||||||||||||||
|
这
|
||||||||||||||||||||||||||||||||||||
|
Specifies to ignore the coverage of descendant objects if |
|
这value of
|
||||||||||
|
|
打开slvnvdemo_cv_small_controller
建模并创建测试规范对象testobj
。Enable execution coverage forslvnvdemo_cv_small_controller
并执行testobj
使用CVSIM
。利用ExecutionInfo
要检索饱和块的执行覆盖结果,并确定涵盖的执行结果百分比:
mdl ='SLVNVDEMO_CV_SMALL_CONTROLLER';open_system(mdl)testobj = cvtest(mdl)data = cvSim(testobj)blk_handle = get_param([mdl,'/Saturation'],'处理');cov = executionInfo(data,blk_handle)percon_cov = 100 * cov(1) / cov(2)
使用覆盖范围设置收集和显示执行覆盖范围结果:
打开模型。
In the Model Editor, select模型设置在造型标签。
在覆盖范围配置参数对话框的窗格,选择启用覆盖范围分析。
在下面覆盖范围指标, 选择块执行as the structural coverage level.
点击OK关闭“配置参数”对话框并保存更改。
单击模拟模型跑按钮并查看结果。
复杂性Info
|conditioninfo
|决策
|CVSIM
|GetCoverageInfo
|McDcinfo
|过度饱和
|Sigrangeinfo
|SigsizeInfo
|tableinfo
|relationalboundaryinfo