RTL Buddy is a build-system with testplan, regression, workflow support for Verilog RTL codebases.
Project description
rtl_buddy
rtl_buddy is a CLI for running RTL tests, regressions, filelist generation, and adjacent workflow automation in Verilog and SystemVerilog projects. 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.
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 installed into your project environment with uv directly from the Git repository. PyPI publication is planned but not yet available.
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 binaries if you want to use
uv run rb verible ... - Optional system-level coverage tools:
lcovfor LCOV and HTML coverage export- Coverview for Coverview package generation
See docs/install.md for the full install flow.
Documentation
Full documentation lives in docs/, is built with MkDocs, and is intended to be published on GitHub Pages.
To preview the docs locally while developing:
uv sync --group docs
uv run mkdocs serve
Useful entry points:
Quick Start
Run a test:
uv run rb test basic
Run a regression:
uv run rb regression
For full usage, see docs/quickstart.md.
Known Issues
See docs/known-issues.md.
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-2.1.4.tar.gz.
File metadata
- Download URL: rtl_buddy-2.1.4.tar.gz
- Upload date:
- Size: 113.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1be92597e6219d475dc910cd89475aac1f14ea8577ea9a85060284e42e993b8d
|
|
| MD5 |
fdaa5b788409c857186e3d16f1ece79e
|
|
| BLAKE2b-256 |
b8759ca7fc2a0c74452642ce2ee9cf881bcb11d367d208b264a4d7dd272378bd
|
Provenance
The following attestation bundles were made for rtl_buddy-2.1.4.tar.gz:
Publisher:
publish.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-2.1.4.tar.gz -
Subject digest:
1be92597e6219d475dc910cd89475aac1f14ea8577ea9a85060284e42e993b8d - Sigstore transparency entry: 1305547720
- Sigstore integration time:
-
Permalink:
rtl-buddy/rtl_buddy@ffeedae0c6ed576b2a49886848faf95ac56ce762 -
Branch / Tag:
refs/tags/v2.1.4 - Owner: https://github.com/rtl-buddy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ffeedae0c6ed576b2a49886848faf95ac56ce762 -
Trigger Event:
release
-
Statement type:
File details
Details for the file rtl_buddy-2.1.4-py3-none-any.whl.
File metadata
- Download URL: rtl_buddy-2.1.4-py3-none-any.whl
- Upload date:
- Size: 64.7 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 |
4f4c5320b6cc3b2f975903b3986b605b529ad9bcb99385e63d8513ba22a4b23e
|
|
| MD5 |
a27c5d62902f3f618e79b4ea4a848a4e
|
|
| BLAKE2b-256 |
e902226c63fb190716bbe3fc4917082a165adc98a956a396574a7011b608d42d
|
Provenance
The following attestation bundles were made for rtl_buddy-2.1.4-py3-none-any.whl:
Publisher:
publish.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-2.1.4-py3-none-any.whl -
Subject digest:
4f4c5320b6cc3b2f975903b3986b605b529ad9bcb99385e63d8513ba22a4b23e - Sigstore transparency entry: 1305547790
- Sigstore integration time:
-
Permalink:
rtl-buddy/rtl_buddy@ffeedae0c6ed576b2a49886848faf95ac56ce762 -
Branch / Tag:
refs/tags/v2.1.4 - Owner: https://github.com/rtl-buddy
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ffeedae0c6ed576b2a49886848faf95ac56ce762 -
Trigger Event:
release
-
Statement type: