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() {
  if (!enableEndOfTestEmptyCheck) {
    return;
  }
  if (!empty.value.isValid) {
    logger.severe('FIFO empty signal has an invalid value at end of test.');
  } else if (!empty.value.toBool()) {
    logger.severe('FIFO is not empty at the end of the test.');
  }
}