cocotb_wrapper.axi.AxiStreamSource#

class cocotb_wrapper.axi.AxiStreamSource(bus_prefix, tdata_width_bits, clk, rst, reset_active_level)[source]#

A wrapper class around cocotbext-axi AXI-Stream source.

Todo

Add a usage example.

Parameters:
  • bus_prefix (str) –

  • tdata_width_bits (int) –

  • clk (str) –

  • rst (str) –

  • reset_active_level (int) –

__init__(bus_prefix, tdata_width_bits, clk, rst, reset_active_level)[source]#

Initialize an instance.

Parameters:
  • bus_prefix (str) – The prefix of signals belonging to the source bus

  • tdata_width_bits (int) – The width of tdata in bits

  • clk (str) – The name of the clock

  • rst (str) – The name of the reset

  • reset_active_level (int) – 1 if active high 0 if active low

Methods

disable()

Disable the AXI-Stream source.

enable()

Enable the AXI-Stream source.

set_pause_generator(generator)

Toggle pauses on the bus given a generator function.

setup(dut)

Setup the AXI-Stream source.

write(frame_data[, event])

Write an AXI-Stream frame.