In reply to dave_59:
Hi Dave ,
Section 19.7 Specifying coverage options of the LRM says :
Other instance-specific options can be assigned procedurally after a covergroup has been instantiated
covergroup gc (int maxA, int maxB) @(posedge clk) ;
a : coverpoint a_var;
b : coverpoint b_var;
endgroup
...
gc g1 = new (10,20);
g1.option.comment = "Here is a comment set for the instance g1";
g1.a.option.weight = 3;
Here weight is set procedurally at same time as covergroup is instantiated .
Is it also possible to set the weight after some time or after sampling the covergroup ?