Skip to main content

RTL Buddy is a build-system with testplan, regression, workflow support for Verilog RTL codebases.

Reason this release was yanked:

pre-release

Project description

rtl_buddy

PyPI Python License Docs

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 available on PyPI and installed into your project environment with uv:

uv add rtl_buddy

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:
    • lcov for 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rtl_buddy-3.2.2.tar.gz (152.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rtl_buddy-3.2.2-py3-none-any.whl (116.4 kB view details)

Uploaded Python 3

File details

Details for the file rtl_buddy-3.2.2.tar.gz.

File metadata

  • Download URL: rtl_buddy-3.2.2.tar.gz
  • Upload date:
  • Size: 152.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rtl_buddy-3.2.2.tar.gz
Algorithm Hash digest
SHA256 8fd6d6fe86650b43d3daacaad3940e7b809ada092b3aff2903047d0a7dc6eb0e
MD5 1216b43f3b682e466f1ed000563c256d
BLAKE2b-256 de4ecc892e12a8c1f29062b617bfc600ce72aa86b56fafee66d94f7fd17e931d

See more details on using hashes here.

Provenance

The following attestation bundles were made for rtl_buddy-3.2.2.tar.gz:

Publisher: release.yml on rtl-buddy/rtl_buddy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file rtl_buddy-3.2.2-py3-none-any.whl.

File metadata

  • Download URL: rtl_buddy-3.2.2-py3-none-any.whl
  • Upload date:
  • Size: 116.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for rtl_buddy-3.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5963cf05f7db5d49959c1406e6ce9baed6c1c07b10db1cc6928af1840058cc8e
MD5 e716b69270a5bcfb6ac57d172c8dd89c
BLAKE2b-256 19a2d7002e81827540128c9c0ec6111e4309a69b85c3a1163ee342f9df7d9741

See more details on using hashes here.

Provenance

The following attestation bundles were made for rtl_buddy-3.2.2-py3-none-any.whl:

Publisher: release.yml on rtl-buddy/rtl_buddy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page