check method

  1. @override
void check()
override

Performs additional checks at the end of the simulation.

This is a good place to search for any incomplete flows or compare final states with expected states.

Implementation

@override
void check() {
  super.check();
  if (requireDrained &&
      (_snoops.isNotEmpty ||
          _dataResponses.isNotEmpty ||
          _earlyData.isNotEmpty ||
          _dataStart != null ||
          _readAcks.isNotEmpty ||
          _writeAcks.isNotEmpty)) {
    _report('Undrained ACE traffic: ${_snoops.length} awaiting CR, '
        '${_dataResponses.length} awaiting CD, '
        '${_earlyData.length} unmatched CD bursts, '
        'partial CD ${_dataStart != null}, '
        'RACK ${_readAcks.length}, WACK ${_writeAcks.length}.');
  }
}