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, user guide, and API reference. Sources are in docs/.

The runnable vector and VHDL-record example is included directly in the tutorial. 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. DUT reset is caller-controlled. Healthy pin-only resets recover automatically after release. 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.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 coaxi 1.1.0
File Size Uploaded Provenance Actions
coaxi-1.1.0.tar.gz 184.3 kB With provenance Details for coaxi-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 212.4 kB

Release files / coaxi-1.1.0.tar.gz

Download URL coaxi-1.1.0.tar.gz
Size 184.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b6a503f05551ff41d15793a600c4a0443a6ad463240875a6a5df5d1d4e7b063a
BLAKE2b-256 checksum
How to use checksums
3f0054de9b82af6c5910e30270b98785ead5eec230b9cf1acbc44fcfb40195f0
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 17, 2026.

Transparency log

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

Download URL coaxi-1.1.0-py3-none-any.whl
Size 28.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f8f0fbd02c4c92dfb484218b706e71c255ff2eaae8e6072a913e4d669817d1b
BLAKE2b-256 checksum
How to use checksums
a9783ed0eafa213c63a27ff62e9b629ebaf9a9355929ba217bf0f31df60b65b0
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 17, 2026.

Transparency log

Security for coaxi 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 coaxi-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 17, 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