Disabling auto bins

In reply to Hrithik_8050:

You could use default bins :


logic [3:0] a;
logic b;
covergroup test;
coverpoint a 
{
  illegal_bins  ill = {1} iff(b);  //  bin_identifier missing in your code
       bins  others = default ;
}
endgroup