cg cg_inst = new(); initial foreach(values[i]) begin
y = values[i];
cg_inst.sample(); end
endprogram
In the above program, total possible values for y are 0 to 7. Ignore_bins specified to Ignored values between 1 to 5. So the Expected values are 0,6 and 7. Out of these expected values, only 6 and 7 are generated.