Skip to main content

AXI4 Driver

AXI4 Driver

Full AXI4 master BFM for cocotb testbenches. Supports burst reads and writes with configurable data width, burst length, and burst type.

Quick Start

from routertl.sim import Tb from rr_cocotb_tb.drivers.axi4 import Axi4Master @cocotb.test() async def test_axi4(dut): tb = Tb(dut) await tb.start_clock() await tb.reset() master = Axi4Master(tb, prefix="M_AXI") await master.write(0x1000, [0xAA, 0xBB, 0xCC, 0xDD]) data = await master.read(0x1000, length=4) assert data == [0xAA, 0xBB, 0xCC, 0xDD]

API

::: rr_cocotb_tb.drivers.axi4 options: show_root_heading: true show_source: true show_if_no_docstring: false