AssociativeMemoryCapabilities class
Static capabilities advertised by an associative-memory implementation.
Constructors
-
AssociativeMemoryCapabilities({required Set<
AssociativeDuplicateKeyPolicy> supportedDuplicateKeyPolicies, required Set<AssociativeMatchSelection> supportedMatchSelections, required Set<AssociativeResultShape> supportedResultShapes, required Set<AssociativeLookupUpdatePolicy> supportedLookupUpdatePolicies, required Set<AssociativeUpdateCollisionPolicy> supportedUpdateCollisionPolicies, required AssociativeMemoryResetBehavior resetBehavior, required AssociativeMemoryImplementationKind implementationKind, required bool sustainsOneLookupPerPortPerCycle, AssociativeMemoryResetTiming resetTiming = AssociativeMemoryResetTiming.synchronous, Set<AssociativeMatchMode> supportedMatchModes = const {AssociativeMatchMode.exact}, int minimumUpdatePorts = 0, int? maximumUpdatePorts, int minimumLookupPorts = 1, int? maximumLookupPorts, int minimumEntryCount = 1, int? maximumEntryCount, int minimumKeyWidth = 1, int? maximumKeyWidth, int minimumLookupLatency = 0, int? maximumLookupLatency, int updateLatency = 0, StateTransactionCapabilities stateTransactions = StateTransactionCapabilities.unsupported, bool supportsIndexedSideRead = false, int? maximumIndexedSideReads = 1, bool supportsValidityMask = false, bool supportsIndexedInvalidation = false, bool supportsInvalidateAll = false, AssociativeBulkOperationCompletion bulkOperationCompletion = AssociativeBulkOperationCompletion.afterAllUpdates}) -
Creates an associative-memory capability declaration.
factory
-
AssociativeMemoryCapabilities.immutable({required Set<
AssociativeDuplicateKeyPolicy> supportedDuplicateKeyPolicies, required Set<AssociativeMatchSelection> supportedMatchSelections, required Set<AssociativeResultShape> supportedResultShapes, required Set<AssociativeLookupUpdatePolicy> supportedLookupUpdatePolicies, required Set<AssociativeUpdateCollisionPolicy> supportedUpdateCollisionPolicies, required AssociativeMemoryResetBehavior resetBehavior, required AssociativeMemoryImplementationKind implementationKind, required bool sustainsOneLookupPerPortPerCycle, AssociativeMemoryResetTiming resetTiming = AssociativeMemoryResetTiming.synchronous, Set<AssociativeMatchMode> supportedMatchModes = const {AssociativeMatchMode.exact}, StateTransactionCapabilities stateTransactions = StateTransactionCapabilities.unsupported, bool supportsIndexedSideRead = false, int? maximumIndexedSideReads = 1, bool supportsValidityMask = false, bool supportsIndexedInvalidation = false, bool supportsInvalidateAll = false, AssociativeBulkOperationCompletion bulkOperationCompletion = AssociativeBulkOperationCompletion.afterAllUpdates, int minimumUpdatePorts = 0, int? maximumUpdatePorts, int minimumLookupPorts = 1, int? maximumLookupPorts, int minimumEntryCount = 1, int? maximumEntryCount, int minimumKeyWidth = 1, int? maximumKeyWidth, int minimumLookupLatency = 0, int? maximumLookupLatency, int updateLatency = 0}) -
Creates capabilities from values already known to be immutable.
const
Properties
- bulkOperationCompletion → AssociativeBulkOperationCompletion
-
Completion semantics for bulk operations.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- implementationKind → AssociativeMemoryImplementationKind
-
How the implementation participates in generated RTL.
final
- maximumEntryCount → int?
-
Largest supported entry count, or
nullwhen unbounded.final - maximumIndexedSideReads → int?
-
Maximum indexed side-read ports, or null if unbounded.
final
- maximumKeyWidth → int?
-
Largest supported key width, or
nullwhen unbounded.final - maximumLookupLatency → int?
-
Largest supported lookup latency, or
nullwhen unbounded.final - maximumLookupPorts → int?
-
Most lookup ports accepted, or
nullwhen unbounded.final - maximumUpdatePorts → int?
-
Most update ports accepted, or
nullwhen unbounded.final - minimumEntryCount → int
-
Smallest supported entry count.
final
- minimumKeyWidth → int
-
Smallest supported key width.
final
- minimumLookupLatency → int
-
Smallest supported lookup latency.
final
- minimumLookupPorts → int
-
Fewest lookup ports accepted by the implementation.
final
- minimumUpdatePorts → int
-
Fewest update ports accepted by the implementation.
final
- resetBehavior → AssociativeMemoryResetBehavior
-
Reset behavior provided by the implementation.
final
- resetTiming → AssociativeMemoryResetTiming
-
Reset timing provided by the implementation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stateTransactions → StateTransactionCapabilities
-
Snapshot and restore behavior provided outside associative data ports.
final
-
supportedDuplicateKeyPolicies
→ Set<
AssociativeDuplicateKeyPolicy> -
Supported duplicate-key policies.
final
-
supportedLookupUpdatePolicies
→ Set<
AssociativeLookupUpdatePolicy> -
Supported simultaneous lookup/update policies.
final
-
supportedMatchModes
→ Set<
AssociativeMatchMode> -
Supported key comparison semantics.
final
-
supportedMatchSelections
→ Set<
AssociativeMatchSelection> -
Supported duplicate-match selectors.
final
-
supportedResultShapes
→ Set<
AssociativeResultShape> -
Supported lookup result shapes.
final
-
supportedUpdateCollisionPolicies
→ Set<
AssociativeUpdateCollisionPolicy> -
Supported simultaneous update collision policies.
final
- supportsIndexedInvalidation → bool
-
Whether selected entries can be invalidated through a state operation.
final
- supportsIndexedSideRead → bool
-
Whether indexed key and validity side reads are exposed.
final
- supportsInvalidateAll → bool
-
Whether all entries can be invalidated without enumerating them.
final
- supportsValidityMask → bool
-
Whether a combinational per-entry validity mask is exposed.
final
- sustainsOneLookupPerPortPerCycle → bool
-
Whether every lookup port accepts a request every cycle.
final
- updateLatency → int
-
Update sampling-edge to commit latency.
final
Methods
-
incompatibilityReason(
AssociativeMemoryRequest request) → String? -
Why
requestis unsupported, ornullwhen it is supported. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
supports(
AssociativeMemoryRequest request) → bool -
Whether
requestcan be implemented exactly as requested. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited