In reply to Lina.Lin:
Hi Lina:
Thank you for the options. I am planning to implement my covergroup’s in TB. In my case the parameterized design lies down in the hierarchy of design. So, can I bind the sample function hierarchical? For example:
Instead of
//way 1 define the covergroup in tb
cg_param_inst.sample(dut1.mode, dut1.dut_type);
Is it legal to do below ?:
cg_param_inst.sample(dut1.dut_inst1.dut_inst.mode, dut1.dut_inst1.dut_inst.dut_type);
Thanks,
Karma