FifoChecker class

A checker for Fifos that they are being used properly and not reaching any dangerous conditions.

This is not intended to check that the Fifo is functioning properly, but rather that it hasn't been used in an innpropriate way. For example:

  • No error condition hit (underflow/overflow)
  • Empty at the end of the test
Inheritance

Constructors

FifoChecker(Fifo fifo, {String name = 'fifoChecker', Component? parent, bool enableEndOfTestEmptyCheck = true, bool enableUnderflowCheck = true, bool enableOverflowCheck = true})
Builds a checker for a fifo.

Properties

components UnmodifiableListView<Component>
A List of all children Components.
no setterinherited
enableEndOfTestEmptyCheck bool
If true, will check that fifo is empty at the end of the test.
final
enableOverflowCheck bool
If true, will flag an error if there is an overflow in the fifo.
final
enableUnderflowCheck bool
If true, will flag an error if there is an underflow in the fifo.
final
fifo Fifo
The Fifo being checked.
final
hashCode int
The hash code for this object.
no setterinherited
logger Logger
A Logger for messages related to the test or testbench.
latefinalinherited
name String
A name for this instance of the Component.
finalinherited
parent Component?
The Component which constructed and contains this Component.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build() → void
Performs additional build-related activities required before run.
inherited
check() → void
Performs additional checks at the end of the simulation.
override
fullName() String
A descriptive name including the full hierarchical path of this Component.
inherited
hierarchy() List<Component>
Returns a List of Components representing the full hierarchy of this Component, with the top-most parent at index 0 and this as the last element of the List.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
run(Phase phase) Future<void>
Executes this Component's activities related to running the test.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited