Are these 2 covergroup same?

coverpoint p {
   bins exp[]= {[1:100]};
   ignore_bins ign = {23,45,67};
}

coverpoint p {
   bins exp[]= {[1:100]} with (!item inside{23, 45,67});
}

Are above 2 equivalent?

In reply to Jeff_Li_90:

Assuming you meant

bins exp[]= {[1:100]} with ( ! (item inside{23, 45,67}) ); // not inside

Then your two coverpoints are identical. Each of the 97 remaining values will be put into 97 individual bin.

But if you had written
bins exp[10]
, there would be a difference in how those 97 values get distributed across 10 bins. See the
distribute_first
option.