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

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.2
File Size Uploaded Provenance Actions
coaxi-1.3.2.tar.gz 206.1 kB With provenance Details for coaxi-1.3.2.tar.gz

Built distribution (wheel)

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

Total release size: 236.8 kB

Release files / coaxi-1.3.2.tar.gz

Download URL coaxi-1.3.2.tar.gz
Size 206.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e7f5470d6f9c776eb6e2d05fa0961e3b158e0e1603109c834045b3f8c4cbd90b
BLAKE2b-256 checksum
How to use checksums
139b8286df724d085932a9454c5b60f55c679928ad271da17140cca355def912
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 23, 2026.

Transparency log

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

Download URL coaxi-1.3.2-py3-none-any.whl
Size 30.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0ecbe5a0d07f64477f7c9d16c0d1f44d6fb4cdb6f093349e17ecd3bb031f5574
BLAKE2b-256 checksum
How to use checksums
5feeda432f8f22f776fe39eb094fecb441595ef3e8be96e9dd4d4486dc96161c
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 23, 2026.

Transparency log

Security for coaxi 1.3.2

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.2.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 23, 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