SynchronousMemoryFunctor class

A callable backing-store implementation for a synchronous memory.

capabilities and resolve support compatibility checks before hardware is instantiated. Calling the functor is shorthand for resolving an exact contract and instantiating it on the supplied ports; callers that can adapt to an implementation-selected latency should resolve first and instantiate the returned SynchronousMemoryBinding after composing their timing.

Constructors

SynchronousMemoryFunctor({required String identity, required SynchronousMemoryCapabilities capabilities, required SynchronousMemoryBuilder build, SynchronousMemoryContractResolver? resolve})
Creates a synchronous-memory implementation descriptor.
const

Properties

capabilities → SynchronousMemoryCapabilities
Static implementation capabilities available before elaboration.
final
hashCode → int
The hash code for this object.
no setterinherited
identity → String
Stable SystemVerilog-safe implementation identity.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

call({required Logic clk, required Logic reset, required List<DataPortInterface<Logic>> writePorts, required List<SynchronousReadDataPortInterface<Logic>> readPorts, required int entryCount, required int readLatency, required SynchronousRamReadUnderWrite readUnderWrite, required String name, int writeLatency = 0, SynchronousMemoryResetBehavior requiredResetBehavior = SynchronousMemoryResetBehavior.none, SynchronousMemoryBankConflictPolicy bankConflictPolicy = SynchronousMemoryBankConflictPolicy.disallow, int bankCount = 1, SynchronousMemoryBankMapping bankMapping = SynchronousMemoryBankMapping.lowAddressBits, ProtectedPartialWritePolicy protectedPartialWritePolicy = ProtectedPartialWritePolicy.none}) → SynchronousMemoryBinding
Creates storage for the requested ports or throws if unsupported.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(SynchronousMemoryRequest request) → SynchronousMemoryBinding
Resolves request without instantiating hardware.
toString() → String
A string representation of this object.
inherited

Operators

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