ApbCompleterAgent constructor

ApbCompleterAgent({
  1. required ApbInterface intf,
  2. required Component parent,
  3. MemoryStorage? storage,
  4. int selectIndex = 0,
  5. int responseDelay(
    1. ApbPacket request
    )?,
  6. bool respondWithError(
    1. ApbPacket request
    )?,
  7. bool invalidReadDataOnError = true,
  8. bool dropWriteDataOnError = true,
  9. String name = 'apbCompleter',
})

Creates a new model ApbCompleterAgent.

If no storage is provided, it will use a default SparseMemoryStorage.

Implementation

ApbCompleterAgent(
    {required this.intf,
    required Component parent,
    MemoryStorage? storage,
    this.selectIndex = 0,
    this.responseDelay,
    this.respondWithError,
    this.invalidReadDataOnError = true,
    this.dropWriteDataOnError = true,
    String name = 'apbCompleter'})
    : storage = storage ??
          SparseMemoryStorage(
            addrWidth: intf.addrWidth,
            dataWidth: intf.dataWidth,
          ),
      super(name, parent);