Python CLI for Verilog and SystemVerilog RTL testing, randomized regressions, coverage, and simulator workflow automation.
Project description
rtl_buddy
rtl_buddy is a Python CLI for running Verilog and SystemVerilog RTL tests, randomized regressions, filelist generation, Verilator/VCS simulator workflows, and adjacent verification automation. It is designed to work well for both humans and AI agents.
It is built to sit on top of the tools your project already uses, while giving you a cleaner, more repeatable interface for day-to-day verification work. The primary supported flows are Verilator and VCS-based compile, simulation, and regression workflows. Basic Verible command integration exists, while broader first-class Verible and PeakRDL workflows are on the roadmap.
Typical commands look like:
uv run rb test basic
uv run rb test smoke --repeat 20
uv run rb regression
uv run rb regression --coverage-merge
Why rtl_buddy
rtl_buddy gives RTL projects a lightweight control plane for common verification tasks:
- Run a single test or a full regression from YAML config instead of ad hoc shell scripts
- Keep simulator invocation, seeds, logs, and result handling consistent across runs
- Manage filelists easily with project model definitions
- Add sweep generation, preprocessing, and postprocessing hooks without rewriting the main flow
- Export machine-readable logs that work well in CI and AI-agent-driven workflows
Features
- Test and regression commands: run one test, many tests, or whole suites with a consistent CLI
- Randomized testing support: create new seeds, repeat runs, and replay previous randomized iterations
- Structured config model: describe suites, regressions, platforms, builders, and models in readable YAML
- Filelist generation: build simulator-ready filelists from
models.yaml - Coverage workflows: collect, merge, summarize, and export Verilator coverage
- Hookable execution flow: plug in your own sweep generation, test preprocessing, and postprocessing scripts
- Verible integration: invoke lint, syntax, formatting, and preprocessing commands through the same project config
- Rich outputs for humans: displays pretty formatted for easy reading
- Structured logging for machines: emits JSONL logs for interpretation by CI systems, automation, and coding agents
- Cross-project reuse: keep one tool interface while adapting it to different RTL repo layouts and builder setups
Installation
rtl_buddy is available on PyPI and installed into your project environment with uv:
uv add rtl_buddy
For local development in this repo, install the composite dev group:
uv sync --group dev
uv run ruff check
uv run ruff format --check
uv run pytest
Prerequisites:
- Python 3.11+
uv- A simulator on
PATH- Verilator is the recommended open-source starting point
- VCS is also supported as a first-class flow
- Optional: Verible if you want to use
uv run rb verible ...— e.g.brew tap chipsalliance/verible && brew install veribleon macOS, or see Verible releases for other platforms - Optional system-level coverage tools:
lcovfor LCOV and HTML coverage export- Coverview for Coverview package generation
Documentation
Full documentation is at rtl-buddy.github.io/rtl_buddy.
Quick Start
The fastest way to get started is the rtl-buddy project template — a ready-to-run RTL project with example designs, tests, and full rtl_buddy integration.
Once you have a project set up, the basic commands are:
uv run rb test basic # run a single test
uv run rb regression # run the full regression
For full usage, see the Quick Start guide.
Runtime artefacts are stored under artefacts/{sanitized_test_name}/. Single runs write files such as test.log, test.err, test.randseed, and coverage.dat there directly, while repeated runs use nested directories such as artefacts/{sanitized_test_name}/run-0001/. The suite root always keeps test.log, test.err, and test.randseed symlinked to the latest run for convenience.
Known Issues
See the known issues page.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rtl_buddy-3.2.4.tar.gz.
File metadata
- Download URL: rtl_buddy-3.2.4.tar.gz
- Upload date:
- Size: 152.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df4ef1b7be5a2d64874aace200b7f5dcd6af5f84f90588c5dcbc64acb8234a77
|
|
| MD5 |
291fd4e666ac31b23a2e3467a39ce6f2
|
|
| BLAKE2b-256 |
1b1b9f1710612b7ad0d842f4b726e2c30302dbce3693c20cb824fa141376258f
|
Provenance
The following attestation bundles were made for rtl_buddy-3.2.4.tar.gz:
Publisher:
release.yml on rtl-buddy/rtl_buddy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rtl_buddy-3.2.4.tar.gz -
Subject digest:
df4ef1b7be5a2d64874aace200b7f5dcd6af5f84f90588c5dcbc64acb8234a77 - Sigstore transparency entry: 1458286401
- Sigstore integration time:
-
Permalink:
rtl-buddy/rtl_buddy@4011293447c8217825aa84c42c28651c534bd0eb -
Branch / Tag:
refs/heads/main - Owner: https://github.com/rtl-buddy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4011293447c8217825aa84c42c28651c534bd0eb -
Trigger Event:
pull_request
-
Statement type:
File details
Details for the file rtl_buddy-3.2.4-py3-none-any.whl.
File metadata
- Download URL: rtl_buddy-3.2.4-py3-none-any.whl
- Upload date:
- Size: 114.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27f0c77e51b73ce045e895be3893f86bf41e75b08e896d7f737147780a40af04
|
|
| MD5 |
4dc3fa962918e0031d624d752641e0e0
|
|
| BLAKE2b-256 |
7c7e5d1363b7acfb233ce55943be585270acee59fc8a5c3df4319f47d5eb2a7d
|
Provenance
The following attestation bundles were made for rtl_buddy-3.2.4-py3-none-any.whl:
Publisher:
release.yml on rtl-buddy/rtl_buddy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
rtl_buddy-3.2.4-py3-none-any.whl -
Subject digest:
27f0c77e51b73ce045e895be3893f86bf41e75b08e896d7f737147780a40af04 - Sigstore transparency entry: 1458286589
- Sigstore integration time:
-
Permalink:
rtl-buddy/rtl_buddy@4011293447c8217825aa84c42c28651c534bd0eb -
Branch / Tag:
refs/heads/main - Owner: https://github.com/rtl-buddy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4011293447c8217825aa84c42c28651c534bd0eb -
Trigger Event:
pull_request
-
Statement type: