ReadyValidAtomicCommitEffect<CommitType extends Logic, EffectType extends Logic> class

Adapts a typed ready/valid channel to an atomic commit effect.

requiredWhen may disable the effect for candidates that do not produce that side effect. Disabled effects do not constrain the atomic commit's readiness and remain invalid.

Implemented types

Constructors

ReadyValidAtomicCommitEffect({required ReadyValidInterface<EffectType> downstream, required AtomicCommitEffectEnable<CommitType> requiredWhen, required AtomicCommitEffectWriter<CommitType, EffectType> writeData, required String definitionIdentity, List<Logic> sidebands = const []})
Creates a typed atomic commit effect adapter.

Properties

channel ↔ ReadyValidInterface<EffectType>
Boundary-local downstream channel.
latefinal
definitionIdentity → String
Identity included in the parent definition name.
final
downstream → ReadyValidInterface<EffectType>
Downstream channel driven by this effect.
final
hashCode → int
The hash code for this object.
no setterinherited
ready → Logic
Downstream readiness for this effect.
no setteroverride
requiredWhen → AtomicCommitEffectEnable<CommitType>
Predicate identifying candidates that require this effect.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sidebands → List<Logic>
Signals sampled by the effect writer through the boundary input ports.
final
writeData → AtomicCommitEffectWriter<CommitType, EffectType>
Writer for the retained effect payload.
final

Methods

connect(Module module, CommitType candidate, {required String portPrefix}) → void
Connects the effect channel and drives its retained payload.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
required(CommitType candidate) → Logic
Whether this effect is required by candidate.
override
setValid(Logic valid) → void
Drives the effect valid signal for an atomic commit.
override
toString() → String
A string representation of this object.
inherited

Operators

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