ApbTracker constructor

ApbTracker({
  1. required ApbInterface intf,
  2. String name = 'apbTracker',
  3. bool dumpJson = true,
  4. bool dumpTable = true,
  5. String? outputFolder,
  6. int timeColumnWidth = 12,
  7. int selectColumnWidth = 4,
  8. int addrColumnWidth = 12,
  9. int dataColumnWidth = 12,
})

Creates a new tracker for ApbInterface.

If the selectColumnWidth is set to 0, the field will be omitted.

Implementation

ApbTracker({
  required ApbInterface intf,
  String name = 'apbTracker',
  super.dumpJson,
  super.dumpTable,
  super.outputFolder,
  int timeColumnWidth = 12,
  int selectColumnWidth = 4,
  int addrColumnWidth = 12,
  int dataColumnWidth = 12,
}) : super(name, [
        TrackerField(timeField, columnWidth: timeColumnWidth),
        if (selectColumnWidth > 0)
          TrackerField(selectField, columnWidth: selectColumnWidth),
        const TrackerField(typeField, columnWidth: 1),
        TrackerField(addrField, columnWidth: addrColumnWidth),
        TrackerField(dataField, columnWidth: dataColumnWidth),
        const TrackerField(strobeField, columnWidth: 4),
        if (intf.includeSlvErr)
          const TrackerField(slverrField, columnWidth: 1),
      ]);