CreditConservationChecker class

Checks end-to-end credit conservation in a common unit.

For every configured pool this checker enforces:

available + forwardInFlight + receiverOccupied + returnsInFlight == provisioned.

Use one-element lists for a shared aggregate capacity.

Inheritance

Constructors

CreditConservationChecker(String name, Component? parent, {required Logic clk, required Logic reset, required List<Logic> available, required List<Logic> forwardInFlight, required List<Logic> receiverOccupied, required List<Logic> returnsInFlight, required List<int> provisioned, String endpoint = 'creditPath', bool reportViolations = true})
Creates an end-to-end conservation checker.

Properties

available → List<Logic>
Sender-side available balances.
final
clk → Logic
Clock used to sample each term.
final
components → UnmodifiableListView<Component>
A List of all children Components.
no setterinherited
endpoint → String
Boundary name recorded in violations.
final
forwardInFlight → List<Logic>
Debited items or units traveling toward the receiver.
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
provisioned → List<int>
Provisioned capacity in the same units as every sampled term.
final
receiverOccupied → List<Logic>
Receiver-side occupied resources.
final
reportViolations → bool
Whether observed violations are logged as SEVERE.
final
reset → Logic
Active-high reset that suppresses checks.
final
returnsInFlight → List<Logic>
Freed resources traveling back toward the sender.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
violations → List<CreditChannelViolation>
Violations observed in sampling order.
no setter

Methods

build() → void
Performs additional build-related activities required before run.
inherited
check() → void
Performs additional checks at the end of the simulation.
inherited
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.
override
toString() → String
A string representation of this object.
inherited

Operators

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