Skip to main content

Automated AXI4-Lite Register Interface Generator for VHDL modules

Project description

Axion-HDL

AXI4-Lite register interfaces from VHDL, YAML, XML, or JSON. One command.

PyPI Tests Docs License: MIT


Install

For users:

pip install axion-hdl

For development:

git clone https://github.com/bugratufan/axion-hdl.git
cd axion-hdl
python3 -m venv venv
source venv/bin/activate
pip install -e ".[dev]"  # Includes pytest, cocotb, etc.

Use

# From VHDL with @axion annotations
axion-hdl -s my_module.vhd -o output/

# From YAML/XML/JSON
axion-hdl -s registers.yaml -o output/

Output: VHDL module, C header, documentation, XML/YAML/JSON exports.

Define Registers

VHDL — embed in your code:

-- @axion_def BASE_ADDR=0x1000 CDC_EN
signal status  : std_logic_vector(31 downto 0); -- @axion RO
signal control : std_logic_vector(31 downto 0); -- @axion RW W_STROBE

YAML — standalone file:

module: my_module
base_addr: "0x1000"
config:
  cdc_en: true
registers:
  - name: status
    access: RO
  - name: control
    access: RW
    w_strobe: true

Features

  • Multi-format input — VHDL annotations, YAML, XML, JSON
  • CDC support — built-in clock domain crossing synchronizers
  • Subregisters — pack multiple fields into one address
  • Wide signals — auto-split 64-bit+ signals across addresses
  • Tested — 230+ tests, GHDL simulation verified

Documentation

📖 axion-hdl.readthedocs.io

Development & Testing

Quick start:

git clone https://github.com/bugratufan/axion-hdl.git
cd axion-hdl
make test  # Auto-installs dependencies and runs all tests

The make test command automatically:

  • Creates a virtual environment if needed
  • Installs all test dependencies
  • Runs 200+ tests (Python + VHDL + cocotb)

Manual setup (optional):

make setup-dev  # Create venv + install dependencies
source venv/bin/activate

CI/Automated environments:

AXION_AUTO_INSTALL=1 make test  # Skip prompt, auto-install

Contributing:

git checkout develop
git checkout -b feature/your-feature
# Make changes
make test  # Dependencies auto-installed on first run
# Submit PR to develop branch

License

MIT — Bugra Tufan

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

axion_hdl-1.0.0.tar.gz (258.2 kB view details)

Uploaded Source

Built Distribution

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

axion_hdl-1.0.0-py3-none-any.whl (172.8 kB view details)

Uploaded Python 3

File details

Details for the file axion_hdl-1.0.0.tar.gz.

File metadata

  • Download URL: axion_hdl-1.0.0.tar.gz
  • Upload date:
  • Size: 258.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for axion_hdl-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d50b189afd8a02a7766fdbdeb5851e321f60ea0d417a7a67717ac98205cd4bce
MD5 ab91757cbcec410527171239809f15a3
BLAKE2b-256 74ad88d659769a5e34ba2023035989f4c28093c4f4a3d9331622876f4918502c

See more details on using hashes here.

Provenance

The following attestation bundles were made for axion_hdl-1.0.0.tar.gz:

Publisher: publish.yml on bugratufan/axion-hdl

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

File details

Details for the file axion_hdl-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: axion_hdl-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 172.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for axion_hdl-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4df10e743439953078f47a4f6d17e99af338e7baa3d8eb2b6438b4721e3f54f9
MD5 bd5829c551558a22685ecbb61e63192c
BLAKE2b-256 819f8fd0225bbd1b065b4d5831ae8fd69ab01e2a18087f127609c74756d86605

See more details on using hashes here.

Provenance

The following attestation bundles were made for axion_hdl-1.0.0-py3-none-any.whl:

Publisher: publish.yml on bugratufan/axion-hdl

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