system verilog - Is there a way to exclude some coverpoints from coverage collection in systemverilog? -
my coverage contains lot of complex crosses , built coverpoints don't care them when stand alone. coverpoints appearing on final report , affecting coverage percentage. there way include tree leaves in coverage report? ( i.e crosses , , coverpoints not included in cross ) done when writing code? or there way change options , settings of shown? ( i'm using dve. if familiar else, helpful too. )
for coverpoints, can use option.weight
feature:
from ieee 1800-2012, table 19-3:
weight = constant_number
default = 1
comment = if set @ covergroup syntactic level, specifies weight of covergroup computing overall cumulative (or type) coverage of saved database. if set @ coverpoint (or cross) syntactic level, specifies the weight of coverpoint (or cross) computing cumulative (or type) coverage of enclosing covergroup. specified weight shall nonnegative integral value.
you can set weight 0 coverpoints want mask. add following line in coverpoints:
option.weight = 0;
further, example in same section:
a : coverpoint a_var { // use weight 2 compute coverage of each instance option.weight = 2; // use weight 3 compute cumulative (type) coverage g1 type_option.weight = 3; // note: type_option.weight = w cause syntax error. }
using 0 weight shall not count coverpoint individual coverage hit, shall counted in calculation of cross coverage.
Comments
Post a Comment