Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

bust: single source of truth

Tests VHDL simulation Docs PyPI Python License

bust generates the register file of an FPGA or ASIC module from a JSON register map. From one file it writes the VHDL register file with its bus endpoint, a self-checking UVVM testbench, C, C++ and Python headers, an IPBus address table and LaTeX documentation.

Features

  • Six buses: AXI4-Lite, IPBus, SBI (the UVVM simple bus interface), Avalon-MM, Wishbone and APB. Each is a thin endpoint in front of the same register file.
  • Your design reaches every field by name through the to_hw and from_hw VHDL records, and enumerated fields become VHDL enumeration types.
  • Separate software and hardware access per field, with SystemRDL-style side effects: clear or set on read, set, clear or toggle on write, single-cycle pulses, hardware set and clear, write enables and access strobes.
  • The base address is a VHDL generic, so one module can sit at any address.
  • A self-checking UVVM testbench for every module, on every bus.
  • C, C++ and Python headers, an IPBus address table for uHAL and LaTeX/PDF documentation from the same file.

Installation

bust needs Python 3.9 or newer.

pip install bust

Usage

bust FILE [-o DIR] [[[-F | -f] [-d | -p] [-i]] | [-a] | [-c | -e]]
bust --version
bust -h | --help

A minimal register map with one control register:

{
  "bus": { "type": "axi", "addr_width": 32, "data_width": 32 },
  "module": {
    "name": "blinky",
    "version": "1.0",
    "description": "LED control.",
    "register": [
      {
        "name": "ctrl", "address": "0x0", "sw": "rw", "hw": "r", "type": "fields",
        "description": "LED control.",
        "fields": [
          { "name": "enable", "type": "bit", "description": "Turn the LED on." },
          { "name": "rate", "type": "vector", "width": 4, "description": "Blink rate." }
        ]
      }
    ]
  }
}
bust blinky.json -o out -p

This writes out/blinky/ with the VHDL in hdl/, the testbench in tb/, the headers in header/ and the LaTeX documentation in doc/. hdl/blinky.vhd is a starter top level that is yours to edit: bust writes it once and leaves it alone after that. Your logic reads to_hw.ctrl.enable and to_hw.ctrl.rate from blinky_axi_endpoint, which bust regenerates on every run.

How bust is tested

  • The generated files for the example register maps are kept in the repository. Every change is compared with them byte for byte, on Python 3.9 to 3.14.
  • Every change to the generated VHDL is simulated with nvc and UVVM. This runs the generated testbench on all six buses, a register map with every class of access mode combination, and two modules compiled into one library.
  • Hand-written reference VHDL and testbenches for all six buses run against the generated VHDL. They are the one check that does not come from the generator itself.

Documentation

The full documentation is at bust.readthedocs.io:

Release notes are in the changelog. Report bugs and ideas as GitHub issues.

License

Licensed under the Apache License 2.0. See LICENSE and NOTICE.

Author

Ola Groettvik - GitHub

AI assistance

bust started as a hand-written tool. Most of the code for 1.0 was written with AI assistance. The author reviewed every change, and no change is merged before it passes the checks under How bust is tested above.

Metadata

Release files for bust 1.0.0a4

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

Source distribution (sdist)

Source distribution for bust 1.0.0a4
File Size Uploaded Provenance
bust-1.0.0a4.tar.gz 135.2 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for bust 1.0.0a4
File Interpreter ABI Platform
bust-1.0.0a4-py3-none-any.whl Python 3 none any Details

Total release size: 259.9 kB

Release files / bust-1.0.0a4.tar.gz

Download URL bust-1.0.0a4.tar.gz
Size 135.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e4675e36fc424c8e3294832629c651a49b1ec9d839c669ee32dd0ba6aaf82c71
BLAKE2b-256 checksum
How to use checksums
d60c0de8df720216f3ab9059b6a5074ea20e1660aff141bda803cf8c6c14ddf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Release files / bust-1.0.0a4-py3-none-any.whl

Download URL bust-1.0.0a4-py3-none-any.whl
Size 124.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
889fac271b89536c3fad66678d29e8b2b96a9ba24b12b69def6655a06acf366a
BLAKE2b-256 checksum
How to use checksums
0978170002666189f76f661fbef1803f37e3748ab66a1deb6dda9d9fb537a283
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

Security for bust 1.0.0a4

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bust-1.0.0a4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.

Transparency log

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.

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