CsrModelDescription class final
Portable CSR metadata shared by ROHD and SystemC execution.
Construction uses architectural configuration only. It allocates no Logic, Module, simulator callback, or mutable register state.
- Implemented types
- Available extensions
Constructors
-
CsrModelDescription.fromBlock(CsrBlockConfig config, {required String instanceName, MemoryPortGeometry? frontRead, MemoryPortGeometry? frontWrite, Set<
String> ? hardwareRegisters = const {}, int logicalRegisterIncrement = 1, BigInt? wideLogicalRegisterIncrement, bool allowLargerRegisters = false, BigInt? addressExtent, bool asyncReset = false}) -
Elaborates one block using register offsets relative to the block.
factory
-
CsrModelDescription.fromConfig(CsrTopConfig config, {required String instanceName, MemoryPortGeometry? frontRead, MemoryPortGeometry? frontWrite, Set<
String> ? hardwareRegisters = const {}, int logicalRegisterIncrement = 1, BigInt? wideLogicalRegisterIncrement, bool allowLargerRegisters = false}) -
Elaborates configuration without constructing a ROHD top or runtime.
factory
Properties
- asyncReset → bool
-
Reset mode, frozen at description construction.
final
- frontRead → MemoryPortGeometry?
-
Frontdoor geometry, or null for an omitted frontdoor.
final
- frontWrite → MemoryPortGeometry?
-
Write-frontdoor geometry, independent of the read geometry.
final
-
hardware
→ Map<
BigInt, CsrModelHardwarePorts> -
Only requested and architecturally accessible hardware ports.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inputPorts
→ Map<
String, int> -
External input names and widths.
final
- kind → String
-
Family identifier, such as
csr; this does not select physical storage.no setteroverride - logicalRegisterIncrement → BigInt
-
Address step between chunks of a wide register.
final
- maximumValueWidth → int
-
Largest stored or transferred value width.
no setter
-
names
→ Map<
String, BigInt> -
Name lookup without allocating register signals.
final
-
outputPorts
→ Map<
String, int> -
External output names and widths.
final
- portableExecutionIdentity → String
-
Complete behavioral configuration identity for portable execution images.
no setter
-
reads
→ Map<
BigInt, (CsrModelRegisterDescription, int)> -
Indexed frontdoor chunks: register and bit offset.
final
-
registers
→ Map<
BigInt, CsrModelRegisterDescription> -
Register descriptions keyed by the model's logical address.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
writes
→ Map<
BigInt, (CsrModelRegisterDescription, int)> -
Indexed write chunks, honoring architectural accessibility.
final
Methods
-
generateModelSystemVerilog(
{required String moduleName}) → String -
Available on CsrModelDescription, provided by the CsrModelVerilog extension
Emits a standalone simulation model, not synthesizable CSR RTL. -
generateSystemC(
{required String className, SystemCModelOptions options = const SystemCModelOptions()}) → String -
Available on CsrModelDescription, provided by the CsrModelSystemC extension
Emits a standalone SystemC header with the CSR top's ROHD port names. -
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