AVL has been developed by experienced, industry professional verification engineers to provide a methodology
and library of base classes for developing functional verification environments in Python.
AVL is built on the CocoTB framework, but aims to combine the best elements of
UVM in a more engineer friendly and efficient way.
AVL now supports CocoTB2.0 https://docs.cocotb.org/en/development/upgrade-2.0.html. This was introduced in v0.3.0.
All older versions support v1.9.1 and will fail if run with CocoTB 2.0.
To upgrade follow the instructions given on the link above.
# Standard build
pip install avl-core
# Development build
pip install avl-core[dev]git clone https://github.com/projectapheleia/avl.git
cd avl
# Standard build
pip install .
# Development build
pip install .[dev]Alternatively if you want to create a virtual environment rather than install globally a script is provided. This will install, with edit privileges to local virtual environment.
This script assumes you have Verilator, GTKWave and Graphviz installed, so all examples and documentation will build out of the box.
git clone https://github.com/projectapheleia/avl.git
cd avl
source avl.shIn order to build the documentation you must have installed the development build.
cd docs
make html
<browser> build/html/index.htmlIn order to run all the examples you must have installed the development build.
To run all examples:
cd examples
# To run
make -j 8 sim
# To clean
make -j 8 cleanTo run an individual example:
cd examples/THE EXAMPLE YOU WANT
# To run
make sim
# To clean
make cleanThe examples use the CocoTB Makefile and default to Verilator with all waveforms generated. This can be modified using the standard CocoTB build system.
WARNING: Due to GNU Make not exporting variables not already in env the user must ensure PYTHONPATH is set in the environment. If you have sourced the avl.sh this is done for you.
This project uses Ruff for linting and formatting.
Check code for issues:
ruff check .Automatically fix common issues:
ruff check . --fix| Library | Description |
|---|---|
| avl-ral | Register Abstraction Layer |
| avl-qemu | QEMU Integration |
| avl-apb | AMBA APB UVC |
| avl-axi-stream | AMBA AXI-STREAM UVC |
| avl-axi | AMBA AXI5 UVC |
| avl-riscv-coverage | RISCV Coverage collection from trace framework |
| avl-tutorials | AVL Tutorials and introduction presentations |
- Email: avl@projectapheleia.net
- GitHub: projectapheleia