avl_axi_stream._rdriver module

class avl_axi_stream._rdriver.RecDriver(*args, **kwargs)[source]
Parameters:
__init__(name, parent)[source]

Initialize the Receiver Driver for the AMBA agent.

Parameters:
  • name (str) – Name of the agent instance

  • parent (Component) – Parent component

Return type:

None

async reset()[source]

Reset the driver by setting all signals to their default values. This method is called when the driver is reset.

By default 0’s all signals - can be overridden in subclasses to add randomization or other behavior.

Return type:

None

async drive(item)[source]

Drive the signals based on the provided sequence item. This method is called to drive the signals of the AMBA interface.

Parameters:

item (SequenceItem) – The sequence item containing the values to drive

Return type:

None

async get_next_item(item=None)[source]

Get the next sequence item.

The implementation ensures items are driven on the rising edge of pclk, when not in reset, while allowing for back-to-back requests if the sequencer provides them.

Parameters:

item (SequenceItem, optional) – The sequence item to retrieve, defaults to None

Returns:

The next sequence item

Return type:

SequenceItem

Raises:

NotImplementedError – If the method is not implemented in subclasses