Axi4ReadAgent constructor

Axi4ReadAgent({
  1. required Axi4SystemInterface sIntf,
  2. required Axi4Channel channel,
  3. required Component parent,
  4. String name = 'axiReadAgent',
  5. int timeoutCycles = 500,
  6. int dropDelayCycles = 30,
})

Constructs a new Axi4ReadAgent.

Implementation

Axi4ReadAgent({
  required this.sIntf,
  required this.channel,
  required Component parent,
  String name = 'axiReadAgent',
  this.timeoutCycles = 500,
  this.dropDelayCycles = 30,
}) : super(name, parent) {
  if (!channel.hasRead) {
    throw RohdHclException('A read agent must be associated with a channel '
        'that can send read requests.');
  }

  sequencer =
      Sequencer<Axi4ReadRequestPacket>('${name}_axiRdSequencer', this);
  driver = Axi4ReadMainDriver(
    parent: this,
    sIntf: sIntf,
    rIntf: channel.rIntf!,
    sequencer: sequencer,
    timeoutCycles: timeoutCycles,
    dropDelayCycles: dropDelayCycles,
    name: '${name}_axiRdDriver',
  );
  monitor = Axi4ReadMonitor(
      sIntf: sIntf,
      rIntf: channel.rIntf!,
      parent: parent,
      name: '${name}_axiRdMonitor');
}