FifoSoftwareModel<T> class
A software model of a Fifo without bypass.
Matches pointer wrap, full tracking, stale read data when empty, and the pointer movement that the hardware performs on overflow and underflow.
Constructors
-
FifoSoftwareModel(int depth, {required T resetFill, List<
T> initialValues = const []}) - Creates a FIFO model.
Properties
- depth → int
-
Number of entries.
final
- empty → bool
-
Whether no entries are stored.
no setter
- full → bool
-
Whether every entry is stored.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
initialValues
→ List<
T> -
Values loaded into the first entries on reset.
final
- occupancy → int
-
Number of stored entries.
no setter
- readData → T
-
The value presented at the read pointer.
no setter
- resetFill → T
-
Value loaded into the remaining entries on reset.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
commit(
{required bool write, required bool read, T? writeData}) → void - Applies one clock edge.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void - Resets storage and pointers as the hardware does.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited