有没有办法从 systemverilog 的覆盖范围收集中排除一些覆盖点?
Is there a way to exclude some coverpoints from coverage collection in systemverilog?
我的覆盖范围包含很多复杂的交叉,所以我建立了一些覆盖点,当它们单独存在时我并不真正关心它们。
封面点出现在最终报告中并影响覆盖率。有没有办法只在覆盖率报告中包含树叶? (即十字架和不包括在十字架中的覆盖点)
是写代码的时候做的吗?或者有没有办法更改显示内容的选项和设置? (我正在使用 DVE。如果你熟悉其他东西,它也会有所帮助。)
对于所有的coverpoints,你可以使用option.weight
特性:
来自 IEEE 1800-2012,Table 19-3:
weight = constant_number
Default = 1
Comment = If set at the covergroup syntactic level, it specifies the weight of this covergroup for computing the overall cumulative (or type) coverage of the saved database. If set at the coverpoint (or cross) syntactic level, it
specifies the weight of a coverpoint (or cross) for computing the
cumulative (or type) coverage of the enclosing covergroup. The
specified weight shall be a nonnegative integral value.
您可以将所有要屏蔽的覆盖点的权重设置为零。只需在 coverpoints 中添加以下行:
option.weight = 0;
此外,来自同一部分的示例:
a : coverpoint a_var
{
// Use weight 2 to compute the coverage of each instance
option.weight = 2;
// Use weight 3 to compute the cumulative (type) coverage for g1
type_option.weight = 3;
// NOTE: type_option.weight = w would cause syntax error.
}
使用零权重不计入覆盖点单个覆盖率命中,但计算交叉覆盖率时应计入。
我的覆盖范围包含很多复杂的交叉,所以我建立了一些覆盖点,当它们单独存在时我并不真正关心它们。 封面点出现在最终报告中并影响覆盖率。有没有办法只在覆盖率报告中包含树叶? (即十字架和不包括在十字架中的覆盖点) 是写代码的时候做的吗?或者有没有办法更改显示内容的选项和设置? (我正在使用 DVE。如果你熟悉其他东西,它也会有所帮助。)
对于所有的coverpoints,你可以使用option.weight
特性:
来自 IEEE 1800-2012,Table 19-3:
weight = constant_number
Default = 1
Comment = If set at the covergroup syntactic level, it specifies the weight of this covergroup for computing the overall cumulative (or type) coverage of the saved database. If set at the coverpoint (or cross) syntactic level, it specifies the weight of a coverpoint (or cross) for computing the cumulative (or type) coverage of the enclosing covergroup. The specified weight shall be a nonnegative integral value.
您可以将所有要屏蔽的覆盖点的权重设置为零。只需在 coverpoints 中添加以下行:
option.weight = 0;
此外,来自同一部分的示例:
a : coverpoint a_var
{
// Use weight 2 to compute the coverage of each instance
option.weight = 2;
// Use weight 3 to compute the cumulative (type) coverage for g1
type_option.weight = 3;
// NOTE: type_option.weight = w would cause syntax error.
}
使用零权重不计入覆盖点单个覆盖率命中,但计算交叉覆盖率时应计入。