AXI-Lite Drivers
Native AXI-Lite Master and Slave BFMs for cocotb testbenches. Pure-Python implementation with proper valid/ready handshaking per the AMBA AXI4-Lite spec.
Usage
from routertl.sim import Tb
@cocotb.test()
async def test_axi_lite(dut):
tb = Tb(dut)
await tb.start_clock()
await tb.reset()
master = AxiLiteMaster(tb, prefix="S_AXI")
await master.write(0x00, 0xDEADBEEF)
val, resp = await master.read(0x00)
assert val == 0xDEADBEEF
Classes
::: sim.cocotb.tb.drivers.axi_lite.AxiResp options: show_root_heading: true
::: sim.cocotb.tb.drivers.axi_lite.AxiLiteBus options: show_root_heading: true members: - from_prefix
::: sim.cocotb.tb.drivers.axi_lite.AxiLiteMaster options: show_root_heading: true show_source: true members: - init - write - read - get_stats - protocol_violations
::: sim.cocotb.tb.drivers.axi_lite.AxiLiteSlave options: show_root_heading: true show_source: true