Skip to main content

coaxi

AXI4-Stream helpers for cocotb testbenches, targeting Python 3.13 and later. The distribution and import package are named coaxi.

uv add coaxi

cocotb 2.1.0 or later is a runtime dependency. Running a testbench also needs a simulator and cocotb's simulator integration.

Documentation

Getting started, examples, and API reference. Sources are in docs/.

The runnable vector and VHDL-record example uses NVC. From a source checkout with NVC on PATH:

uv sync --locked
uv run pytest -q tests/test_simulation.py -k example

Scope

Sources and sinks support individual transfers and frames, optional AXI4-Stream sidebands, optional data and ready, interleaved packet assembly, and monitored reset pins with configurable polarity. Signal names can be unrelated; each role accepts a name or a cocotb handle. Payload access is separate from handshake and framing logic.

Signed and Unsigned provide immutable VHDL-2008 numeric_std values, with VHDL-width arithmetic, explicit integer conversion, and cocotb LogicArray interoperation. See Numeric values.

AXI4 memory-mapped, AXI4-Lite, and AXI5-Stream extensions are not implemented. Tests cover Python 3.13.5, cocotb 2.1.0, and NVC 1.21.1 on Linux.

Await initialise() before traffic and for explicit recovery from faults or caller cancellation. With a reset pin, setup can finish while reset is asserted. Release DUT reset before calling wait_available() to wait for the endpoint to resume. Healthy pin-only resets recover automatically. Clocks must contain literal 0 and 1 from before the first initialisation onwards; endpoints do not monitor this precondition. See Lifecycle and recovery before interrupting traffic.

Development

uv sync --locked --group docs
uv run pytest -q
uv run pyrefly check
uv run ruff format --check .
uv run ruff check .
uv run --locked --group docs sphinx-build -M html docs docs/_build -n -W --keep-going
uv run --locked --group docs sphinx-build -M doctest docs docs/_build -n -W --keep-going

Simulation tests use NVC and VHDL-2008. The HTML output is docs/_build/html/index.html. See Development for distribution, coverage, and reliability checks, ARCHITECTURE.md for implementation decisions, and AGENTS.md for repository rules.

Releases

Pushing a matching v* version tag starts production PyPI publishing after validation and any configured environment approval. Manual runs support PyPI and TestPyPI. RELEASING.md describes configuration and recovery.

Licence

CC0-1.0. LICENSE.txt contains the unmodified CC0 1.0 Universal legal code and is included in the source and wheel distributions.

Metadata

Release files for coaxi 1.3.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 coaxi 1.3.0
File Size Uploaded Provenance Actions
coaxi-1.3.0.tar.gz 194.8 kB With provenance Details for coaxi-1.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 224.1 kB

Release files / coaxi-1.3.0.tar.gz

Download URL coaxi-1.3.0.tar.gz
Size 194.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e124ae5eaa8c8abc1051bd1241eea26d1654e41387efd2d3ccaa355b386b0a96
BLAKE2b-256 checksum
How to use checksums
76501d4ad8a5298abe2e375e475d681d1856eb9dd640c13bbb7ec2c08d34f9bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Release files / coaxi-1.3.0-py3-none-any.whl

Download URL coaxi-1.3.0-py3-none-any.whl
Size 29.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a0a66824c182ebb3d263600ceeafe27a7cc44f29cfa5b46d99507db33f777516
BLAKE2b-256 checksum
How to use checksums
2a7e066a112095ef7fcc9c82fae2f48cca0b8f7065821e20c9693aa5757b8ae5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 19, 2026.

Transparency log

Security for coaxi 1.3.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 coaxi-1.3.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 19, 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