FifoSafetyChecker class
Checks FIFO control and status signals for common safety violations.
The checker is deliberately signal based and can verify any FIFO-like implementation without importing a component-library-specific FIFO type.
- Inheritance
-
- Object
- ROHDVFObject
- Component
- FifoSafetyChecker
Constructors
- FifoSafetyChecker(String name, Component? parent, {required Logic clk, required Logic reset, required Logic writeEnable, required Logic readEnable, required Logic empty, required Logic full, Logic? error, bool allowReadWhenEmptyWithWrite = false, bool enableEndOfTestEmptyCheck = true, bool enableUnderflowCheck = true, bool enableOverflowCheck = true, bool enableErrorCheck = true})
- Creates a signal-level FIFO safety checker.
Properties
- allowReadWhenEmptyWithWrite → bool
-
Whether a same-cycle write makes an empty FIFO read legal.
final
- clk → Logic
-
Clock used to sample FIFO controls and status.
final
-
components
→ UnmodifiableListView<
Component> -
A List of all children Components.
no setterinherited
- empty → Logic
-
High when no entries are retained.
final
- enableEndOfTestEmptyCheck → bool
-
Whether to require empty at test completion.
final
- enableErrorCheck → bool
-
Whether to report an asserted error signal.
final
- enableOverflowCheck → bool
-
Whether to report writes to a full FIFO.
final
- enableUnderflowCheck → bool
-
Whether to report reads from an empty FIFO.
final
- error → Logic?
-
Optional FIFO error indication.
final
- full → Logic
-
High when no additional entries can be retained.
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
- readEnable → Logic
-
Read request sampled at clk rising edges.
final
- reset → Logic
-
Active-high reset that suppresses checks while asserted.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- writeEnable → Logic
-
Write request sampled at clk rising edges.
final
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