In reply to kranthi445:
See the following example from LRM
bit [9:0] v_a;
covergroup
cg @(
posedge
clk);
coverpoint
v_a
{
bins
a = { [0:63],65 };
bins b[] = { [127:150],[148:191] }; // note overlapping values
bins c[] = { 200,201,202 };
bins d = { [1000:$] };
bins others[] =
default;
}
endgroup
In the example above, the first
bins
construct associates bin awith the values of variable v_abetween 0 and63, and the value 65. The second binsconstruct creates a set of 65 bins b[127], b[128],...b[191]. Like-wise, the third bins construct creates 3 bins: c[200], c[201], and c[202].
The fourth bins construct asso-ciates bin d with the values between 1000 and 1023 ($ represents the maximum value of v_a).
Every value thatdoes not match bins a, b[], c[], or d[]
is added into its own distinct bin
In this way i also want to create 23 bins but it is not happening