Coverage Packages ================= All coverage packages should be extended from :any:`_coverage.CoverPackage`. In the constructor the user must declare the variables to be sampled and create the AVL Coverage Groups, Points and Crosses. The user can use the global :any:`_isa.ISA` dictionary and :any:`_isa.Encoding` class to declare the bins. Once delcared an instance of the class must be added to the :any:`_coverage.COVERPACKAGES` list. As this is called later, Extensions can be used to filter. .. literalinclude:: ../../../avl_riscv_coverage/coverage_packages/_opcodes.py :language: python Adding Coverage --------------- The user can add --packages to the command line to add directories to the list of included coverage packages .. code-block:: bash avl_riscv_coverage --packages dir1 --packages dir2 All python files in the provided directories will be includes.