MemoryModelDescription class
Simulator-independent geometry of an addressed software memory.
- Implemented types
Constructors
-
MemoryModelDescription({required int dataWidth, required int readLatency, required bool asyncReset, required List<
bool> writeMasked, required List<bool> readMasked, int? addrWidth, MemoryModelResetPolicy resetPolicy = MemoryModelResetPolicy.clear, MemoryStorageInvalidWritePolicy invalidWritePolicy = MemoryStorageInvalidWritePolicy.setAffectedBitsToX, bool readBeforeWrites = false, int? synchronousEntryCount, List<bool> ? readValid, List<List< ? writeEnums, List<MemoryModelEnumConstraint> >List< ? readEnums, LogicValue? missingReadValue, RegisterFileModelConfiguration? registerFile, List<MemoryModelEnumConstraint> >bool> dynamicResetValues = const [], @Deprecated('Use addrWidth instead.') int? addressWidth}) - Creates frozen memory geometry.
Properties
- addressWidth → int
-
Former name of addrWidth.
no setter
- addrWidth → int
-
Address width.
final
- asyncReset → bool
-
Whether reset asynchronously clears storage.
final
- dataWidth → int
-
Data width.
final
-
dynamicResetValues
→ List<
bool> -
Entry-indexed dynamic reset ports.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inputPorts
→ Map<
String, int> -
External input names and widths.
no setteroverride
- invalidWritePolicy → MemoryStorageInvalidWritePolicy
-
Policy for invalid or uncertain writes.
final
- kind → String
-
Family identifier, such as
csr; this does not select physical storage.no setteroverride - missingReadValue → LogicValue?
-
Fixed missing-read value, or null for the default warning and X value.
final
-
outputPorts
→ Map<
String, int> -
External output names and widths.
no setteroverride
- readBeforeWrites → bool
-
Whether clocked reads sample storage before writes on the same edge.
final
-
readEnums
→ List<
List< MemoryModelEnumConstraint> > -
Enum constraints for each read payload.
final
- readLatency → int
-
Read latency in sampling edges.
final
-
readMasked
→ List<
bool> -
Whether each read port carries an unused mask input.
final
-
readValid
→ List<
bool> -
Whether each read port carries a latency-aligned valid output.
final
- registerFile → RegisterFileModelConfiguration?
-
Optional finite register-file semantics.
final
- resetPolicy → MemoryModelResetPolicy
-
Policy for stored words when reset is asserted.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- synchronousEntryCount → int?
-
Finite synchronous-memory entry count, or null for general memory
semantics.
final
-
writeEnums
→ List<
List< MemoryModelEnumConstraint> > -
Enum constraints for each write payload.
final
-
writeMasked
→ List<
bool> -
Whether each write port carries a byte mask.
final
Methods
-
generateSystemC(
{required String className, SystemCModelOptions options = const SystemCModelOptions()}) → String - Emits the default sparse-memory implementation.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited