In reply to dave_59:
I need to cover each 8 bits of x[0:63][7:0].
So what I thought is this
covergroup packet (ref bit data[0:63][7:0]);
coverpoint data[i] {
bins = {[8'h00:8'hFF]};
}
packet p[64];
foreach(p[i])
p[i]=new(x);
will it work ?