Skip to main content

bust: single source of truth

Tests VHDL simulation Docs PyPI Python License

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

Features

  • Six buses: AXI4-Lite, IPBus, SBI (the UVVM simple bus interface), Avalon-MM, Wishbone and APB.
  • 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.
  • A self-checking UVVM testbench for every module, on every bus.
  • The base address is a VHDL generic, so one module can sit at any or even multiple addresses.
  • C, C++ and Python headers, an IPBus address table for uHAL and documentation from the same file.

Installation

bust needs Python 3.9 or newer.

pip install bust

Usage

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

A minimal register map with one control register with two fields:

{
  "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 documentation in doc/, as HTML, Markdown and LaTeX, plus a PDF when pdflatex is installed. 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.
  • 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.
  • Hand-written reference VHDL and testbenches for all six buses run against the generated VHDL.

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 is mainly a hand-written tool. Some of the code is 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.1.0

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.1.0
File Size Uploaded Provenance Actions
bust-1.1.0.tar.gz 171.2 kB With provenance Details for bust-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 325.6 kB

Release files / bust-1.1.0.tar.gz

Download URL bust-1.1.0.tar.gz
Size 171.2 kB
Tags Source
SHA-256 checksum
How to use checksums
951b49cb32996f7b29142fe083f12dbed8ce76eb166cfc3ce631192de5dbc774
BLAKE2b-256 checksum
How to use checksums
eb926562d26a83b324a817645be86b6a86fe6e44a080102f820bdee40da7e3cc
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 Nov 3, 2026.

Transparency log

Release files / bust-1.1.0-py3-none-any.whl

Download URL bust-1.1.0-py3-none-any.whl
Size 154.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
47ed0f337d41cec0add85e45d79c7aa33d5abb5f1ce0c4ece4592934ca190880
BLAKE2b-256 checksum
How to use checksums
3f3a252386283702752f14aa31f03f121045380280d9951966a7e236fc1f4831
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 Nov 3, 2026.

Transparency log

Security for bust 1.1.0

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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bust-1.1.0.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 Nov 3, 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