Hi
I am actually learning coverage and I was trying example of cross coverage but I am unable to sample the values fully every time I run the code its giving 75 and not 100 what’s the issue in this??
module cross_cover;
bit [1:0]a[8]='{0,1,2,3,0,1,2,3};
bit [1:0]b[8]='{0,1,2,3,0,1,2,3};
bit[1:0]x,y;
covergroup cg@(posedge clk);
coverpoint_y:coverpoint y;
coverpoint_x:coverpoint x;
cross_xy:cross coverpoint_y,coverpoint_x;
endgroup
cg cg1=new;
initial
begin
for(int i=0;i<8;i++)
begin
x=a[i];
y=b[i];
end
$display(cg1.get_inst_coverage);
end
endmodule