I am trying to run with functional coverage on my code, but I am getting a warning stating:
Sampling of covergroup type "LED_PANEL::CVG" (./design.sv:24), referred in
the statement is not enabled. As a result, coverage methods get_coverage(),
get_inst_coverage(), get_hitcount(), and get_inst_hitcount() will return 0 coverage.
0.000000 %
I am not getting coverage printed in the log either. How do I enable coverage?
Here is the coverage group I have created:
covergroup CVG;
LED11: coverpoint PANEL[0][1];
LED12: coverpoint PANEL[0][2];
LED13: coverpoint PANEL[0][3];
LED14: coverpoint PANEL[0][0];
LED21: coverpoint PANEL[1][1];
LED22: coverpoint PANEL[1][2];
LED23: coverpoint PANEL[1][3];
LED24: coverpoint PANEL[1][0];
endgroup: CVG
Here's the link to the code: https://edaplayground.com/x/KUv3