In reply to sunils:
You just need to pass each element of the array into the covergroup
covergroup cg(ref bit [3:0] bye);
coverpoint bye;
...
endgroup
foreach (hello.bye[i]) cg_inst[i] = new (hello.bye[i]);
In reply to sunils:
You just need to pass each element of the array into the covergroup
covergroup cg(ref bit [3:0] bye);
coverpoint bye;
...
endgroup
foreach (hello.bye[i]) cg_inst[i] = new (hello.bye[i]);