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.1

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.1
File Size Uploaded Provenance Actions
coaxi-1.3.1.tar.gz 197.5 kB With provenance Details for coaxi-1.3.1.tar.gz

Built distribution (wheel)

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

Total release size: 227.1 kB

Release files / coaxi-1.3.1.tar.gz

Download URL coaxi-1.3.1.tar.gz
Size 197.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1948b2eaea3c90152e5d9c11bacf12fbb7a899a88be78b6c806fb2dd44027710
BLAKE2b-256 checksum
How to use checksums
08bbedd9715cd3eb62bb7c67c6379b6607198326f2d5442f9f6d449716c77aba
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.1-py3-none-any.whl

Download URL coaxi-1.3.1-py3-none-any.whl
Size 29.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
579d5a62ab10e3c05152b3d600c3edc655c12ae7f7baa93da24e2573016cc172
BLAKE2b-256 checksum
How to use checksums
02b8df1406d17c3f71b095eb5aa26849c512857ccbb22de6c869837868413a86
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.1

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.1.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