Functional Coverage and Constrained Randomization Extensions for Cocotb
pip install cocotb-coveragecocotb-coverage
Functional Coverage and Constrained Randomization Extensions for Cocotb
This package allows you to use constrained randomization and functional coverage techniques known from CRV (constrained random verification) and MDV (metric-driven verification) methodologies, available in SystemVerilog or e. Such extensions enable the implementation of an advanced verification environment for complex projects.
The implemented functionality is intended to be easily understandable by SystemVerilog users and provides significant extensions compared to Hardware Verification Languages.
There is an option to export coverage database to a readable XML or YML format and a function which allows for merging such files is provided.
Installation
The package can be installed with pip. Version 2.0.0 is the latest one and recommended, adjusted for cocotb >= 2.0.
For cocotb vesrions < 2.0, you may need to use 1.2.0 to get the examples and tests working. However, the core of cocotb-coverage is the same.
pip install cocotb-coverage
References
- cocotb core package - cocotb
- Constraint Solving Problem resolver used in this project - python-constraint
- documentation
- PyPI package
- DVCon 2017 Paper - New Constrained Random and MDV Methodology using Python
- DVCon 2017 Presentation - SLIDES
- example advanced verification project -