1.Is it possible to explicitly list cross coverpoints in system verilog ? Something like below..
2.Since I am only interested in the occurrences of doublets {{1,2},{3,1},{2,4}}
and not b1
or b2
standalone, can I accomplish this without creating coverpoints b1
and b2
(i.e just write cross coverage)?
covergroup test1 with function sample(int i,int j) ;
type_option.comment = "Config";
b1:coverpoint int {bins m1[]={1,2,3};}
b2:coverpoint int {bins m2[]={1,2,4};}
mx :cross int,int
{
bins mx1[] ={{1,2},{3,1},{2,4}};
}
endgroup