CountedCreditChannelChecker class
Checks counted debit and return events for independent or shared pools.
Multiple pools may be debited and returned in the same cycle. For an atomic multi-resource transaction, connect the gate's accepted debit counts rather than its unaccepted requirements.
- Inheritance
-
- Object
- ROHDVFObject
- Component
- CountedCreditChannelChecker
Constructors
-
CountedCreditChannelChecker(String name, Component? parent, {required Logic clk, required Logic reset, required List<
Logic> debitCounts, required List<Logic> returnCounts, required CreditChannelCheckConfiguration configuration, CountedCreditSameCyclePolicy sameCyclePolicy = CountedCreditSameCyclePolicy.debitThenReturn, CountedCreditViolationHandling violationHandling = CountedCreditViolationHandling.reject, String endpoint = 'countedCreditChannel', bool reportViolations = true, Iterable<Logic> reinitializationResets = const []}) - Creates a counted credit checker.
Properties
- clk → Logic
-
Clock used to sample accounting events.
final
-
components
→ UnmodifiableListView<
Component> -
A List of all children Components.
no setterinherited
- configuration → CreditChannelCheckConfiguration
-
Pool bounds and reset provisioning.
final
-
credits
→ List<
int> -
Modeled available credits for independent pools.
no setter
-
debitCounts
→ List<
Logic> -
One counted debit signal for every pool.
final
- endpoint → String
-
Boundary name recorded in violations.
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
-
reinitializationResets
→ List<
Logic> -
Additional reset sources that restart externally provisioned credits.
final
- reportViolations → bool
-
Whether observed violations are logged as
SEVERE.final - reset → Logic
-
Active-high reset that restores the configured initial credits.
final
-
returnCounts
→ List<
Logic> -
One counted return signal for every pool.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sameCyclePolicy → CountedCreditSameCyclePolicy
-
Concurrent event ordering.
final
-
Modeled availability for a shared-capacity configuration.
no setter
- violationHandling → CountedCreditViolationHandling
-
Boundary behavior for invalid counts.
final
-
violations
→ List<
CreditChannelViolation> -
Violations observed in sampling order.
no setter
-
violationStream
→ Stream<
CreditChannelViolation> -
Broadcast stream of newly observed violations.
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