CsrInstanceConfig class

Configuration for a register instance.

Apply implementation specific information to an architectural register. This includes instantiation of fields that require runtime configuration. Such runtime configuration might also apply for conditional instantiation of fields within the register

Annotations

Constructors

CsrInstanceConfig.new({required CsrConfig arch, required int addr, required int width, int? resetValue, bool? isFrontdoorReadable, bool? isFrontdoorWritable, bool? isBackdoorReadable, bool? isBackdoorWritable})
Construct a new register configuration.

Properties

access CsrAccess
Accessor to the architectural access rule of the register.
no setter
addr int
Register's address within its block
final
arch CsrConfig
Underlying architectural configuration.
final
backdoorAccessible bool
Helper for determining if the register is frontdoor accessible.
no setter
fields List<CsrFieldConfig>
Accessor to the fields of the register.
no setter
frontdoorAccessible bool
Helper for determining if the register is frontdoor accessible.
no setter
hashCode int
The hash code for this object.
no setteroverride
isBackdoorReadable bool
Backdoor readability of the register.
final
isBackdoorWritable bool
Backdoor writability of the register.
final
isFrontdoorReadable bool
Frontdoor readability of the register.
final
isFrontdoorWritable bool
Frontdoor writability of the register.
final
name String
Accessor to the name of the architectural register.
no setter
resetValue int
Reset value of the register.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
Number of bits in the register.
final

Methods

clone({CsrConfig? arch, int? addr, int? width, int? resetValue, bool? isFrontdoorReadable, bool? isFrontdoorWritable, bool? isBackdoorReadable, bool? isBackdoorWritable}) CsrInstanceConfig
Clone the register configuration with optional overrides.
getFieldByName(String name) CsrFieldConfig
Accessor to the config of a particular field within the register by name name.
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.
override