Registry / testing / cocotb-bus

cocotb-bus

JSON →
library0.3.0pypypiunverified

cocotb-bus provides bus interface components for cocotb, including AXI, Avalon, and Wishbone protocols. Current version 0.3.0 supports cocotb 2.0. Release cadence is low, with major updates tied to cocotb versions.

pip install cocotb-bus
INSTALL
IMPORT
SIG · COCOTB-BUS
C
cocotb-bus
testingpythonv0.3.0
Install
3.2s avg
Import
Disk
52MB
Pass rate
5/ 10
Env Coverage5 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.3.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
build_error
glibc
py 3.103.95 runs
installs and imports cleanly · install 3.2s · import 0.000s · 52MB
52MB installed
● package 52MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AXIMaster
from cocotb_bus.drivers import AXIMaster
from cocotb_bus.drivers import AXIMaster

Basic cocotb test using cocotb-bus AXI master and monitor.

import cocotb from cocotb.clock import Clock from cocotb.triggers import ClockCycles from cocotb_bus.drivers import AXIMaster from cocotb_bus.monitors import AXIMonitor @cocotb.test() async def test_axi(dut): cocotb.start_soon(Clock(dut.clk, 10, units='ns').start()) # Reset dut.rstn.value = 0 await ClockCycles(dut.clk, 5) dut.rstn.value = 1 # Create AXI master axi_master = AXIMaster(dut, "axi", dut.clk) # Write example await axi_master.write(0x100, 0xDEADBEEF) # Read back data = await axi_master.read(0x100, 4) dut._log.info("Read data: %s", data)
Debug
Known issues
breakingcocotb-bus 0.3.0 only supports cocotb 2.0. Do not use with cocotb 1.x.
fix
Upgrade cocotb to 2.0 or use cocotb-bus <=0.2.1 for cocotb 1.x.
affects: >=0.3.0,<0.4.0
gotchaImport paths changed in cocotb 2.0. Bus drivers are no longer in cocotb proper; they moved to cocotb-bus.
fix
Import from cocotb_bus.drivers, not cocotb.drivers.
affects: all
deprecatedcocotb-bus 0.2.x is deprecated; not compatible with cocotb 2.0.
fix
Upgrade to cocotb-bus 0.3.0 and cocotb 2.0.
affects: >=0.2.0,<0.3.0
Upgrade
Version history
0.3.0latest on PyPI · released Jan 15, 2026
Audit
Dependencies
cocotbrequiredRuntime dependency; cocotb-bus is a companion library for cocotb.
Agent activity
23 hits · last 30 days
node
20
OpenAI (training)
1
Resources
cocotb-bus — pip install cocotb-bus · libregistry