synchronousAssociativeMemoryModelFunctor top-level constant

AssociativeMemoryFunctor const synchronousAssociativeMemoryModelFunctor

Simulation-only, positive-latency associative storage over the generic software model, with SystemC and Verilog exports.

Implementation

const synchronousAssociativeMemoryModelFunctor = AssociativeMemoryFunctor(
  identity: 'synchronousModel',
  capabilities: AssociativeMemoryCapabilities.immutable(
    minimumLookupLatency: 1,
    supportedDuplicateKeyPolicies: {
      AssociativeDuplicateKeyPolicy.disallow,
      AssociativeDuplicateKeyPolicy.allow
    },
    supportedMatchSelections: {
      AssociativeMatchSelection.lowestIndex,
      AssociativeMatchSelection.highestIndex
    },
    supportedResultShapes: {
      AssociativeResultShape.selectedIndex,
      AssociativeResultShape.matchVectorAndSelectedIndex
    },
    supportedLookupUpdatePolicies: {
      AssociativeLookupUpdatePolicy.lookupBeforeUpdate,
      AssociativeLookupUpdatePolicy.lookupAfterUpdate
    },
    supportedUpdateCollisionPolicies: {
      AssociativeUpdateCollisionPolicy.disallow,
      AssociativeUpdateCollisionPolicy.lowestPortWins,
      AssociativeUpdateCollisionPolicy.highestPortWins
    },
    resetBehavior: AssociativeMemoryResetBehavior.clearValidity,
    implementationKind: AssociativeMemoryImplementationKind.simulationOnly,
    sustainsOneLookupPerPortPerCycle: true,
  ),
  build: _buildBehavioralSynchronous,
);