-
Hi All, I have looked into the documentation to find way to print bins name with their hit counts. (P.S:- I even digged into source code, it's difficult to conclude). Is there any way out ? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
You should be able to see the bin name and their counts when creating a text coverage report. See: https://pyvsc.readthedocs.io/en/latest/coverage.html#coverage-reports |
Beta Was this translation helpful? Give feedback.
-
Hmm... This may be a use case that the PyVSC coverage model is not designed to support. From your response, I understand that you want to register a Python method callback that is called when a bit hit occurs. Is this the case? |
Beta Was this translation helpful? Give feedback.
-
I created a simple utility class that can be used as the base class for a covergroup. You can register a callback function with this class and be notified whenever a bin is hit. Have a look at the test here: pyvsc/ve/unit/test_covergroup_sampling.py Lines 224 to 269 in cec1810 Let me know if this is the type of functionality that you're requesting. |
Beta Was this translation helpful? Give feedback.
-
By the way, the 'Note' comments in the test above highlight the key steps needed to make it work properly |
Beta Was this translation helpful? Give feedback.
I created a simple utility class that can be used as the base class for a covergroup. You can register a callback function with this class and be notified whenever a bin is hit. Have a look at the test here:
pyvsc/ve/unit/test_covergroup_sampling.py
Lines 224 to 269 in cec1810