Hi,
I am trying to cross 4 cove points A, B, C and D.
bit [3:0] x, y;
covergroup cg @(posedge clk);
c1: coverpoint x;
c2: coverpoint y;
c1Xc2: cross c1,c2;
endgroup : cg
I want the cross to ignore cross coverage bins when x>y. Can anyone help understand how to write the ignore bins.
Thanks,
Venkat
dave_59
2
In reply to vbabusr:
You can use the with clause:
covergroup cg @(posedge clk);
c1: coverpoint x;
c2: coverpoint y;
c1Xc2: cross c1,c2 { ignore_bins ig = c1Xc2 with (c1 > c2);}
endgroup : cg
Or simpler equivalent:
covergroup cg @(posedge clk);
xXy: cross x,y { ignore_bins ig = xXy with (x > y);}
endgroup : cg