Hello Sir,
Can you please guide how to write coverage for unpacked array. For example i have following scenario:
[7:0] attribute[];
It is unpacked dynamic array. How to write bins for that.
Please help and guide.
Regards
Sunil
Hello Sir,
Can you please guide how to write coverage for unpacked array. For example i have following scenario:
[7:0] attribute[];
It is unpacked dynamic array. How to write bins for that.
Please help and guide.
Regards
Sunil
In reply to sunils:
You will need to create a dynamic array of covergroup instances, the same size as your dynamic unpacked array.
See this example. Although it is for a bit of a packed array, you could do a similar thing for an unpacked array.