Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
AxiMaster
✓ from cocotbext.axi import AxiMaster
AxiLiteMaster
✓ from cocotbext.axi import AxiLiteMaster
AxiStreamMaster
✓ from cocotbext.axi import AxiStreamMaster
Basic test using AXI Lite master to write to an address.
import cocotb
from cocotb.triggers import ClockCycles
from cocotbext.axi import AxiLiteMaster
@cocotb.test()
async def test_axilite(dut):
cocotb.start_soon(Clock(dut.clk, 10, units='ns').start())
axi_master = AxiLiteMaster(dut, "s_axilite", dut.clk)
await axi_master.write(0x00, 0xDEADBEEF)
await ClockCycles(dut.clk, 10)
Errors
Common errors & fixes
AttributeError: module 'cocotbext' has no attribute 'axi'
Cocotb extension package not installed or import path wrong (using old style).
fixInstall cocotbext-axi and use `from cocotbext.axi import ...`
ImportError: cannot import name 'AxiLiteMaster' from 'cocotbext'
Using incorrect import path (e.g., `from cocotbext import AxiLiteMaster`).
fixUse `from cocotbext.axi import AxiLiteMaster`
TypeError: a bytes-like object is required, not 'int'
Passing integer where bytes expected (e.g., in AXI stream).
fixUse `bytes(data)` or `data.to_bytes(length, 'big')`.
Upgrade
Version history
0.1.28latest on PyPI · released Mar 12, 2026
Audit
Dependencies
cocotbrequiredRequired; AXI modules depend on cocotb