Axi4WriteAgent constructor

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

Constructs a new Axi4WriteAgent.

Implementation

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

  sequencer =
      Sequencer<Axi4WriteRequestPacket>('${name}_axiRdSequencer', this);
  driver = Axi4WriteMainDriver(
    parent: this,
    sIntf: sIntf,
    wIntf: channel.wIntf!,
    sequencer: sequencer,
    timeoutCycles: timeoutCycles,
    dropDelayCycles: dropDelayCycles,
    name: '${name}_axiWrDriver',
  );
  monitor = Axi4WriteMonitor(
      sIntf: sIntf,
      wIntf: channel.wIntf!,
      parent: parent,
      name: '${name}_axiWrMonitor');
}