Cover group

In reply to dave_59:

module def_cov_point;
 
class trx;
rand bit [2:0]a;
rand bit [3:0]b;
 
 
endclass
 
 
covergroup c;
  ADDRESS : coverpoint tr.a+tr.b{
    // This should create 11 bins
    bins low[]          = {[0:10]};
    // This should create 10 bins
    bins med[]         = {[11:20]};
  }
 
endgroup
trx tr;
c c1;
 
initial begin 
tr = new;
c1 = new;
repeat(10) begin 
tr.randomize();
c1.sample();
 
end
 
end
endmodule