User guide

24-220
SystemVerilog Testbench Constructs
You can specify different bins for different value ranges, for example:
coverpoint data
{
bins first_ten = {[1:10]};
bins second_ten = {[11:20]};
}
Here the coverage information about when the coverage point data
has the values 1 to 10 is in the bin named first_ten, and the information
about when data has the values from 11 to 20 is in the bin named
second_ten.
You can specify a default bin with the default keyword, for example:
coverpoint data
{
bins bin1 = {[1:5]};
bins bin2 = {[6:10]};
bins bin3 = default;
}
In this example coverage information about when data has the values
1-10 is in bins bin1 and bin2, information about all other values is in
bin3.
You can specify a list of value ranges for example:
coverpoint data
{
bins bin1 = {[0:3],5,7,[9:10]};
bins bin2 = {4,6,8};
bins bin3 = default;
}