cocotb_wrapper.axi.AxiStreamSink#

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

A Wrapper around cocotbext-axi AXI-Stream sink.

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 sink.

enable()

Enable the AXI-Stream sink.

read()

Read an AXI-Stream frame.

set_pause_generator(generator)

Toggle pauses on the bus given a generator function.

setup(dut)

Setup the AXI-Stream sink.