Skip to main content

AVL RISCV Coverage - Apheleia Verification Library RISCV Coverage Framework

License: MIT Python

AVL RISCV Coverage has been developed by experienced, industry professional verification engineers to provide a framework
and library of base classes for developing functional coverage for RISCV processors in Python using
the compiled test code and trace files. Coverage can be generated from higher level models with no HDL intermediate.

  • Although a default instr_dict.json is provided, it can be overridden on the commandline.

  • An elf file and spike trace are required.

  • Additional coverage packages can be added from the commandline.

  • Output is generated in AVL coverage.json and optionally rendered into html.

usage: avl-riscv-coverage [-h] [--ref REF] [--extensions [EXTENSIONS ...]] [--packages [PACKAGES ...]] [--elf ELF] [--trace TRACE] [--output OUTPUT] [--html] [--verbose]

options:
  -h, --help            show this help message and exit
  --ref REF             Pointer to instr_dict.json (generated from https://github.com/riscv/riscv-opcodes) (default: ./avl-riscv-coverage/avl_riscv_coverage/instr_dict.json)
  --extensions [EXTENSIONS ...
                        List of extensions
  --packages [PACKAGES ...]
                        List of python packages containing covergroups
  --elf ELF             Elf file for testcase
  --trace TRACE         List of trace files
  --output OUTPUT       Output directory for report
  --html                Generate HTML report
  --verbose             Verbose messages

📦 Installation

Using pip

# Standard build
pip install avl-riscv-coverage

# Development build
pip install avl-riscv-coverage[dev]

Install from Source

git clone https://github.com/projectapheleia/avl-riscv-coverage.git
cd avl-riscv-coverage

# 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-riscv-coverage.git
cd avl-riscv-coverage
source avl-riscv-coverage.sh

📖 Documentation

In order to build the documentation you must have installed the development build.

Build from Source

cd docs
make html
<browser> build/html/index.html

🏃 Examples

In 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 clean

To run an individual example:

cd examples/THE EXAMPLE YOU WANT

# To run
make sim

# To clean
make clean

🧹 Code Style & Linting

This project uses Ruff for linting and formatting.

Check code for issues:

ruff check .

Automatically fix common issues:

ruff check . --fix

📧 Contact

Metadata

Release files for avl-riscv-coverage 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for avl-riscv-coverage 0.0.1
File Size Uploaded Provenance Actions
avl_riscv_coverage-0.0.1.tar.gz 28.9 kB Without provenance Details for avl_riscv_coverage-0.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for avl-riscv-coverage 0.0.1
File Interpreter ABI Platform Actions
avl_riscv_coverage-0.0.1-py3-none-any.whl Python 3 none any Details for avl_riscv_coverage-0.0.1-py3-none-any.whl

Total release size: 61.3 kB

Release files / avl_riscv_coverage-0.0.1.tar.gz

Download URL avl_riscv_coverage-0.0.1.tar.gz
Size 28.9 kB
Tags Source
SHA-256 checksum
How to use checksums
efbc29841365e4b817a4af8b22de0c231a93f1ece15c76b9e61b7cebc8450af5
BLAKE2b-256 checksum
How to use checksums
3429c25675663c82fd448d3c263ebd4f2cdd1202db51efa71270dac04a03a4e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release files / avl_riscv_coverage-0.0.1-py3-none-any.whl

Download URL avl_riscv_coverage-0.0.1-py3-none-any.whl
Size 32.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb19ff0c78424e1abaee73846c1f93bb95b6cc21e849b6a9b23c79bb58b5d343
BLAKE2b-256 checksum
How to use checksums
d7da675b5567f209837d5ee4f3d55a94c38e4ecaddde523eff2c16bed99148c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for avl-riscv-coverage 0.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page