Skip to main content

dau-driver

Host I/O for DAU devices: discovery, registers, DMA, and job execution over XDMA

Build Status codecov License PyPI

dau-driver is the host side of a DAU device. It discovers DAU-compatible XDMA endpoints, reads the canonical register block, decodes the device's capability advertisement, moves data over H2C/C2H DMA, allocates device storage, and runs the register-contract jobs the shells expose. All device semantics (register offsets, stream framing, capability words, record layouts) come from dau-core; this package owns transport and execution only.

  • Linux hosts use the Xilinx XDMA character devices under /dev.
  • macOS hosts use a DriverKit-based XDMA system extension through IOKit user-client calls, for register access and full H2C/C2H DMA.
from pathlib import Path

from dau_driver import discover_devices
from dau_driver.testing import FakeTransport, fake_device

devices = discover_devices(memory_bytes=None)      # the XDMA devices under /dev, read-only; pass the board's memory size to write
device = devices[0] if devices else fake_device(Path("."), FakeTransport())
device.check_bar_health()                          # all-ones reads fail here, not later
print(device.name, device.backend)                 # xdma0 linux-xdma
print(device.capabilities.dma)                     # alignment / max-transfer constraints
print(device.read_register_block_snapshot())       # the whole identity block
print(device.read_status())                        # the status word and last error

The Python execution paths (discovery, registers, transfers, storage, the scan, pipeline and fleet runners) also run against the in-memory fake transport above, and that is how the test suite exercises them. The kernel driver, the DriverKit extension and the native extension are tested on hardware.

Documentation

The full documentation is at dau-dev.github.io/dau-driver.

The examples directory holds end-to-end host flows (record-batch round trip, stream aggregation, the OHLCV pipeline job) that run against real hardware.

Installation

Requires Python 3.12 or newer.

pip install dau-driver

Wheels are published for CPython 3.12 and 3.13 on Linux (x86_64 and aarch64) and macOS (arm64). Elsewhere pip builds the small native extension from source, which needs a C++ toolchain.

On a host with a board, load the Linux XDMA module from kernel/linux-xdma/ or the macOS DriverKit extension from kernel/macos-xdma/; each has its own build and load instructions. Without one, the package still imports and runs against its fake transport. Whoever can open the character devices (Linux) or the user client (macOS) can read and write the card's memory and registers, so the operating system's device permissions are the access control.

License

Apache-2.0, except kernel/linux-xdma/, which is Xilinx's XDMA reference driver under its own Dual BSD/GPL terms. See kernel/README.md.

Metadata

Release files for dau-driver 0.4.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 dau-driver 0.4.0
File Size Uploaded Provenance Actions
dau_driver-0.4.0.tar.gz 254.5 kB Without provenance Details for dau_driver-0.4.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for dau-driver 0.4.0
File Actions
dau_driver-0.4.0-cp313-abi3-win_amd64.whl CPython 3.13 abi3 Windows x86-64 Details for dau_driver-0.4.0-cp313-abi3-win_amd64.whl
dau_driver-0.4.0-cp313-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.13 abi3 Linux glibc 2.27+ x86-64, Linux glibc 2.28+ x86-64 Details for dau_driver-0.4.0-cp313-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
dau_driver-0.4.0-cp313-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.13 abi3 Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details for dau_driver-0.4.0-cp313-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
dau_driver-0.4.0-cp313-abi3-macosx_11_0_arm64.whl CPython 3.13 abi3 macOS 11.0+ ARM64 Details for dau_driver-0.4.0-cp313-abi3-macosx_11_0_arm64.whl
dau_driver-0.4.0-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for dau_driver-0.4.0-cp312-abi3-win_amd64.whl
dau_driver-0.4.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64, Linux glibc 2.27+ x86-64 Details for dau_driver-0.4.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
dau_driver-0.4.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl CPython 3.12 abi3 Linux glibc 2.28+ ARM64, Linux glibc 2.26+ ARM64 Details for dau_driver-0.4.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
dau_driver-0.4.0-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for dau_driver-0.4.0-cp312-abi3-macosx_11_0_arm64.whl

Total release size: 2.6 MB

Release files / dau_driver-0.4.0.tar.gz

Download URL dau_driver-0.4.0.tar.gz
Size 254.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ad3463692ca6dc0a2daa7a6bfc52b0e279b5523991c155e7f5e5c9f07e83303f
BLAKE2b-256 checksum
How to use checksums
8c01dd7e35958f0cd9f29188a406a34009cb30432ea6c371a969c8083da1a572
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / dau_driver-0.4.0-cp313-abi3-win_amd64.whl

Download URL dau_driver-0.4.0-cp313-abi3-win_amd64.whl
Size 347.6 kB
Tags CPython 3.13 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
51cedee77681d8f5f52af6e7da42e76678988da36503047a0b9b33e402a5e7d5
BLAKE2b-256 checksum
How to use checksums
0bd1fca68560665b90949514ab09a7c1af1ec0dc6f7574043d8ecd55250b1524
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / dau_driver-0.4.0-cp313-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL dau_driver-0.4.0-cp313-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 274.2 kB
Tags CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
56166a0860329cb0ecec9b36efa886f9d035a96418ebf64466753bca8d4f6421
BLAKE2b-256 checksum
How to use checksums
21b672b91c080f74eb3625b768afef64f0e6409aa4838bd6d30a908b9a2f99e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / dau_driver-0.4.0-cp313-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL dau_driver-0.4.0-cp313-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 273.1 kB
Tags CPython 3.13 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
a5258fd97324723bc96ef66cd0588b2eaa12f53b44c78e824139872127e9f588
BLAKE2b-256 checksum
How to use checksums
f7b809eb3189893004efaf7d12c4540108ff073ebfcf5ebd5de759426c5f753e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / dau_driver-0.4.0-cp313-abi3-macosx_11_0_arm64.whl

Download URL dau_driver-0.4.0-cp313-abi3-macosx_11_0_arm64.whl
Size 267.8 kB
Tags CPython 3.13 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
07010c84482a45ce228bfd13dce73204928829ea5ae312b060ab49e3e231f5d6
BLAKE2b-256 checksum
How to use checksums
7815eb13c134a4f69759577e3fb8af0a0794daa52c1300f59817b37b87c189e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / dau_driver-0.4.0-cp312-abi3-win_amd64.whl

Download URL dau_driver-0.4.0-cp312-abi3-win_amd64.whl
Size 347.7 kB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
e2c72441f6fdd42efcca58d8dad0fe042188af00f579309c30e0d47d2c455a6c
BLAKE2b-256 checksum
How to use checksums
47c743a23fa4ec066156d763b5905143efc8ae5522f019f3cb610e3806b8f3ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / dau_driver-0.4.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl

Download URL dau_driver-0.4.0-cp312-abi3-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
Size 274.2 kB
Tags CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
d919ce4f86354ef6035c0a93926f38df0833f3cead0952b8b19f9c98f099844e
BLAKE2b-256 checksum
How to use checksums
280ebdc66928e048e9c0eed6e1563e2c209db7428d497e4cb64243bb662ca27c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / dau_driver-0.4.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl

Download URL dau_driver-0.4.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
Size 273.1 kB
Tags CPython 3.12 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
38cb81bc72604ce6ef743e91a7ef9d3903bd6febc5cae8c689eb1a411f4d9ede
BLAKE2b-256 checksum
How to use checksums
f8d97a0cb8f271baeb4f510db38ff3192e4ecf19611e58d753f2639f7a729ff6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / dau_driver-0.4.0-cp312-abi3-macosx_11_0_arm64.whl

Download URL dau_driver-0.4.0-cp312-abi3-macosx_11_0_arm64.whl
Size 267.8 kB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
795dd40e551c5f1ffe99b39dd6f973b8722ad0f58c7d2449365c35d0e8885fb7
BLAKE2b-256 checksum
How to use checksums
b00cb939d974cdb1aca1b37a5908067f36d783c14e01bad824df6eb45a27add9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for dau-driver 0.4.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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