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< writePorts, required List<Logic> >SynchronousReadDataPortInterface< 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}) → SynchronousMemoryBindingLogic> > - 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
requestwithout instantiating hardware. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited