Hi,
I’m writing a covergroup which has all the coverpoints of all the registers. But for 1 register, it has 12 instances. where I want to write a coverpoint for the register which covers for all the 12 instances of it.
Here I’m writing a example code to explain my requirement.
covergroup check (string name) with function sample(input register_block reg_block);
option.name = name;
option.per_instance = 1;
for(int i=0; i<12; i++)
begin
ABC_[i] : coverpoint {reg_block.abc[i].abc.value}
{
bins low_range[] = {[0:15]};
bins mid_low_range[] = {[16:255]};
bins mid_high_range[] = {[256:65535]};
bins high_range[] = {[65536:131071]};
}
Here the coverpoint should cover for all the instances (0-12), and how to print the coverpoint name for all 12 instances.
Thanks