User guide
24-229
SystemVerilog Testbench Constructs
cg1 cg1_1 = new;
initial
begin
cg1_1.option.weight = 10;
cg1_1.option.goal = 75;
.
.
.
end
Instance specific options are procedural statements in an initial block.
There are additional options that are just for instances:
instance_name.option.at_least=integer
Specifies the minimum number of hits in a bin for VCS to consider
the bin covered.
instance_name.option.detect_overlap=boolean
The boolean argument is 1 or 0. When boolean is 1, VCS
displays a warning message when there is an overlap between
the range list or transitions list of two bins for the coverage point.
instance_name.option.name[=string]
This option is used to specify a name for the covergroup instance.
If a name is not specified, a name is automatically generated.
instance_name.option.per_instance=boolean
The boolean argument is 1 or 0. When boolean is 1, VCS keeps
track of coverage data for the instance.