MemoryConfiguration class
Selects a memory backing without changing the logical component.
Synchronous and combinational-read components resolve this policy through their respective functors and reject incompatible SRAM bindings.
Constructors
- MemoryConfiguration({MemoryBacking backing = MemoryBacking.automatic, SynchronousMemoryFunctor? sramFunctor, MemoryBindingIdentity? binding})
-
Creates a memory configuration.
const
Properties
- backing → MemoryBacking
-
The requested physical or simulation backing.
final
- binding → MemoryBindingIdentity?
-
Optional physical technology and banking identity.
final
- configurationIdentity → String
-
Stable identity combining the selected implementation and binding.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- implementationIdentity → String
-
Stable identity of the selected implementation when known.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sramFunctor → SynchronousMemoryFunctor?
-
Optional external SRAM boundary used when backing is
MemoryBacking.sram.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
SynchronousMemoryRequest request) → SynchronousMemoryBinding - Resolves this policy to an implementation after capability checking.
-
selectFunctor(
SynchronousMemoryRequest request) → SynchronousMemoryFunctor -
Selects the implementation for
requestafter capability checking. -
selectRegisterFileArray<
T extends Logic> () → MemoryArrayFunctor< T> - Selects the corresponding typed, combinational-read array factory.
-
selectRegisterFileFunctor(
) → RegisterFileFunctor - Selects a combinational-read register-file implementation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- defaultConfiguration → const MemoryConfiguration
- Default configuration, resolved to flop-backed storage.