User guide
24-217
SystemVerilog Testbench Constructs
Defining a Coverage Point
In a coverage point definition you can specify the following:
• bins for value ranges
• bins for value transitions
• bins for illegal coverage point values
Bins for Value Ranges
You use the curly braces { } and the bins keyword to specify the
bins for a coverage point, for example:
covergroup cg1 @ (posedge clk);
coverpoint data
{
bins some_name [] = {[1:20]};
}
endgroup
In coverage point data:
• The keyword bins specifies one or more bins for coverage data.
• The name some_name is an identifier for all the bins. It is the root
bin name.
• The empty square brackets [] specifies there will be a separate
bin for each value in the specified range.
• The range of value follows the equal sign = and is in the nested
set of curly braces { }. This range is 1 through 20. The range is
always specified as lowest_value:highest_value.