User guide
24-222
SystemVerilog Testbench Constructs
You can use range lists to specify more than one starting value and
more than one ending value, for example:
bins from1and5to6and7 = (1,5=>6,7);
Is the equivalent of:
bins from1and5to6and7 = (1=>6, 1=>7, 5=>6, 5=>7);
You can use the repetition [*] operator, for example:
bin fivetimes3 = (3 [*5]);
Is the equivalent of:
bin fivetimes3 = (3=>3=>3=>3=>3);
You can specify a range of repetitions, for example:
bin fivetimes4 = (4 [*3:5]);
Is the equivalent of:
bin threetofivetimes4 = (4=>4=>4,4=>4=>4=>4,4=>4=>4=>4=>4);
Specifying Illegal Coverage Point Values
Instead of specifying a bin with the bins keyword, use the
illegal_bins keyword to specify values or transitions that are
illegal.
coverpoint data
{
illegal_bins badvals = {7,11,13};
illegal_bins badtrans = (5=>6,6=>5);
bins bindef = default;