ReadyValidTransmitterAgent constructor

ReadyValidTransmitterAgent({
  1. required Logic clk,
  2. required Logic reset,
  3. required Logic ready,
  4. required Logic valid,
  5. required Logic data,
  6. required Component? parent,
  7. double blockRate = 0,
  8. String name = 'readyValidTransmitterAgent',
})

Creates an Agent for transmitting over a ready/valid protocol.

The blockRate is the probability (from 0 to 1) of blocking a valid from being driven.

Implementation

ReadyValidTransmitterAgent({
  required super.clk,
  required super.reset,
  required super.ready,
  required super.valid,
  required super.data,
  required super.parent,
  double blockRate = 0,
  super.name = 'readyValidTransmitterAgent',
}) {
  sequencer = Sequencer<ReadyValidPacket>('sequencer', this);

  ReadyValidTransmitterDriver(
    clk: clk,
    reset: reset,
    ready: ready,
    valid: valid,
    data: data,
    sequencer: sequencer,
    blockRate: blockRate,
    parent: this,
  );
}