ReplacementPolicyModelDescription class
Immutable configuration for a portable replacement policy.
- Implemented types
Constructors
- ReplacementPolicyModelDescription({required ReplacementPolicyModelKind replacementKind, required int entryCount, required int accessCount, required int commitCount, required int allocationCount})
- Creates a replacement description.
Properties
- accessCount → int
-
Number of ordered access ports.
final
- allocationCount → int
-
Number of ordered allocation ports.
final
- commitCount → int
-
Number of ordered deferred commit ports.
final
- entryCount → int
-
Number of managed entries.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- indexWidth → int
-
Width of an entry index.
no setter
-
inputPorts
→ Map<
String, int> -
External input names and widths.
no setteroverride
- kind → String
-
Family identifier, such as
csr; this does not select physical storage.no setteroverride -
outputPorts
→ Map<
String, int> -
External output names and widths.
no setteroverride
- replacementKind → ReplacementPolicyModelKind
-
Replacement algorithm.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stateWidth → int
-
Width of the internal policy state.
no setter
Methods
-
generateModelSystemVerilog(
{required String moduleName}) → String -
Emits a behavioral definition with the requested module name.
override
-
generateSystemC(
{required String className, SystemCModelOptions options = const SystemCModelOptions()}) → String - Generates an independently executable behavioral SystemC policy.
-
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