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.1.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.1-py3-none-any.whl (172.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: axion_hdl-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f7254272840d0e33b1140b4cc7503f5ccf5f04541190d4c61c01252203361109
MD5 846062b448c76bcc2f53df15a00541c3
BLAKE2b-256 e3924cad9a93f27f86c5cd250d243c5abcdf59874801f6b09fd400e76ee70641

See more details on using hashes here.

Provenance

The following attestation bundles were made for axion_hdl-1.0.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: axion_hdl-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 172.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f81cacdc7ffeb89f154c6bf8afdf79242fdd1423ab8b95fa70c1bdf8ee76f73d
MD5 b622033a71fae53f0297a5751ac7e3bd
BLAKE2b-256 fcf6fab5228d8a248ebd5c2da886af805d4a0142b465f76789d30541a4ddbdd4

See more details on using hashes here.

Provenance

The following attestation bundles were made for axion_hdl-1.0.1-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