AssociativeMemoryFunctor class

A callable implementation for raw associative memory.

Calling the functor requires an exact semantic and timing match. Consumers that can adapt to an implementation-selected contract should call resolve and compose around the returned binding before invoking AssociativeMemoryBinding.instantiate.

Constructors

AssociativeMemoryFunctor({required String identity, required AssociativeMemoryCapabilities capabilities, required AssociativeMemoryBuilder build, AssociativeMultiSideReadBuilder? buildMultipleSideReads, AssociativeMemoryContractResolver? resolve, AssociativeMemoryFunctor? modelImplementation})
Creates an associative-memory implementation functor.
const

Properties

capabilities → AssociativeMemoryCapabilities
Static implementation capabilities.
final
hashCode → int
The hash code for this object.
no setterinherited
identity → String
Stable SystemVerilog-safe implementation identity.
final
modelImplementation → AssociativeMemoryFunctor?
Behavioral implementation selected in place of this one while the active MemoryConfigurationScope requests MemoryBacking.model and the request is within its capabilities.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

call({required Logic clk, required Logic reset, required List<AssociativeUpdatePortInterface> updatePorts, required List<AssociativeLookupPortInterface> lookupPorts, required int entryCount, required int lookupLatency, required AssociativeDuplicateKeyPolicy duplicateKeyPolicy, required AssociativeMatchSelection matchSelection, required AssociativeResultShape resultShape, required AssociativeLookupUpdatePolicy lookupUpdatePolicy, required AssociativeUpdateCollisionPolicy updateCollisionPolicy, required String name, AssociativeIndexedSideReadRequest? sideReadRequest, List<AssociativeIndexedSideReadRequest>? sideReadRequests, bool requiresValidityMask = false, int updateLatency = 0, AssociativeMemoryResetBehavior requiredResetBehavior = AssociativeMemoryResetBehavior.none}) → AssociativeMemoryBinding
Resolves and instantiates an exact associative-memory request.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(AssociativeMemoryRequest request) → AssociativeMemoryBinding
Resolves request without instantiating hardware.
toString() → String
A string representation of this object.
inherited

Operators

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