Hello Everyone,
I wanted to keep the bins of my covergroup flexible, to facilitate reuse. Is it possible to supply bin information to coverpoint using hierarchical access? Writing an example below to explain what I want to do:
//configuration class
class my_config;
bins bin_info;
endclass
//main class
class my_sampler;
my_config config_h;
covergroup my_cov;
a: coverpoint x { bins config_h.bin_info };
endgroup
function new (my_config config_h);
this.config_h = config_h;
my_cov = new();
endfunction
endclass