CacheTransactionPort<T extends Logic, M extends Logic, C extends Logic, R extends Logic> class
Request, response, and eviction channels for a transactional cache port.
The caller provides requests and consumes responses and evictions. All three channels require stable offers until transfer. Reset is controlled by the enclosing implementation, not by this port.
- Inheritance
-
- Object
- Interface<
PairDirection> - PairInterface
- CacheTransactionPort
- Available extensions
- Annotations
Constructors
- CacheTransactionPort({required int tokenWidth, required T dataSchema, required int writeMaskWidth, required M lineMetadataSchema, required C contextSchema, required R resultSchema, int? addrWidth, int operationWidth = 2, int evictionCauseWidth = 1, @Deprecated('Use addrWidth instead.') int? addressWidth})
- Creates matching channel schemas.
Properties
- allowRenamedPayloadClones → bool
-
Whether typed ports accept recursively type-preserving parent renames.
no setterinherited
-
evictions
→ IrrevocableReadyValidInterface<
CacheTransactionEviction< T, M, C> > -
Existing blocks reported before they are removed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- ignoreConstantPayloadNames → bool
-
Whether generated constant leaf names can differ from driveable clones.
no setterinherited
- modify ↔ String Function(String original)?
-
A function that modifies all port names during connection.
getter/setter pairinherited
-
ports
→ Map<
String, Logic> -
Maps from the Interface's defined port name to an instance
of a Logic.
no setterinherited
-
requests
→ IrrevocableReadyValidInterface<
CacheTransactionRequest< T, M, C> > -
Operations submitted to the cache.
final
-
responses
→ IrrevocableReadyValidInterface<
CacheTransactionResponse< T, M, C, R> > -
One completion per accepted request, unless reset cancels it.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
subInterfaces
→ Map<
String, PairInterface> -
A mapping from sub-interface names to instances of sub-interfaces.
no setterinherited
- tokenConflict → Logic
-
The offered request's token is still owned by an earlier request.
no setter
-
typedPayloadPorts
→ Map<
String, TypedInterfacePortPolicy> -
Ports that should retain and validate their declared payload schemas.
no setterinherited
Methods
-
addSubInterface<
PairInterfaceType extends PairInterface> (String name, PairInterfaceType subInterface, {bool reverse = false, String uniquify(String original)?}) → PairInterfaceType -
Registers a new
subInterfaceon this PairInterface, enabling a simple way to build hierarchical interface definitions.inherited -
clone(
) → CacheTransactionPort< T, M, C, R> -
Creates a new Interface with the same ports as
this.override -
conditionalDriveOther(
Interface< PairDirection> other, Iterable<PairDirection> tags) → Conditional -
Makes
thisconditionally drive interface signals tagged withtagsonother.inherited -
conditionalReceiveOther(
Interface< PairDirection> other, Iterable<PairDirection> tags) → Conditional -
Makes
thissignals tagged withtagsbe driven conditionally byother.inherited -
connectIO(
Module module, Interface srcInterface, {Iterable< PairDirection> ? inputTags, Iterable<PairDirection> ? outputTags, Iterable<PairDirection> ? inOutTags, String uniquify(String original)?}) → void -
Calls Interface.connectIO for ports of this interface as well as
hierarchically for all subInterfaces.
inherited
-
driveOther(
Interface< PairDirection> other, Iterable<PairDirection> tags) → void -
Makes
thisdrive interface signals tagged withtagsonother.inherited -
getPorts(
[Iterable< PairDirection> ? tags]) → Map<String, Logic> -
Returns all interface ports associated with the provided
tagsas a Map from the port name to the Logic port.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pairConnectIO(
Module module, Interface< PairDirection> srcInterface, PairRole role, {String uniquify(String original)?}) → void -
Connects this pair interface using the directions implied by
role.inherited -
port(
String name) → Logic -
Accesses a port named
name.inherited -
receiveOther(
Interface< PairDirection> other, Iterable<PairDirection> tags) → void -
Makes
thissignals tagged withtagsbe driven byother.inherited -
setPorts(
List< Logic> ports, [Iterable<PairDirection> ? tags]) → void -
Adds a collection of ports to this Interface, each associated with all
of
tags.inherited -
split(
) → (PairProvider< InterfaceType> , PairConsumer<InterfaceType> ) -
Available on InterfaceType, provided by the PairInterfaceSplit extension
Returns typed provider and consumer endpoints for this interface. -
toString(
) → String -
A string representation of this object.
inherited
-
tryPort(
String name) → Logic? -
Provides the port named
nameif it exists, otherwisenull.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited