avl._core.coverage module
- class avl._core.coverage.Coverage[source]
- __init__() None[source]
Initialize the coverage container This method initializes the coverage container and registers the exit handler to export coverage data when the program exits. It checks if the _cg_ attribute exists; if not, it initializes it as an empty list. If the _cg_ attribute already exists, it does nothing to avoid re-initialization.
- add_covergroup(cg: Covergroup) None[source]
Add a covergroup to the coverage container
- Parameters:
cg – The covergroup to add
- remove_covergroup(cg: Covergroup) None[source]
Remove a covergroup from the coverage container
- Parameters:
cg – The covergroup to remove