SetAssociativeCacheSidecarModel<DataType extends Object> class
Independent logical model of set-associative tag/data/valid sidecars.
To model SetAssociativeCacheSidecars on one clock edge, apply an update
before same-edge invalidations: invalidation wins the validity of the slot
while the tag and payload are still written.
- Mixed-in types
Constructors
- SetAssociativeCacheSidecarModel({required int setCount, required int wayCount})
- Creates an empty sidecar model.
Properties
- capabilities → StateTransactionCapabilities
-
Static software transaction behavior.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
image
→ SetAssociativeCacheSidecarImage<
DataType> -
Current atomic tag/payload/validity image.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- setCount → int
-
Number of cache sets.
final
-
stateTransactions
→ StateTransactionEndpoint<
SetAssociativeCacheSidecarImage< DataType> > -
This model's software transaction endpoint.
no setterinherited
- wayCount → int
-
Number of ways per set.
final
Methods
-
invalidate(
{required int set, required int way}) → void - Invalidates one sidecar slot.
-
invalidateAll(
) → void - Invalidates all sidecar slots.
-
load(
covariant SetAssociativeCacheSidecarImage< DataType> image) → void -
Restores an image with matching cache geometry.
override
-
lookup(
{required int set, required int tag}) → ({DataType? data, bool hit, int way}) -
Finds the lowest valid way of
setwhose tag istag. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void - Clears all logical slots.
-
toString(
) → String -
A string representation of this object.
inherited
-
transact(
StateTransactionRequest< SetAssociativeCacheSidecarImage< request, {bool quiescent = false}) → StateTransactionCompletion<DataType> >SetAssociativeCacheSidecarImage< DataType> > -
Accepts a request and returns its completion.
inherited
-
update(
{required int set, required int way, required int tag, required DataType data, required bool valid}) → void - Updates one sidecar slot.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited