CsrConfig class

Configuration for an architectural register.

Any architecturally fixed fields can be added directly to this class, but any fields with implementation specific config should be left until the instantiation of the register.

Annotations

Constructors

CsrConfig.new({required String name, required CsrAccess access, required List<CsrFieldConfig> fields, int? resetValue, bool isFrontdoorReadable = true, bool isFrontdoorWritable = true, bool isBackdoorReadable = true, bool isBackdoorWritable = true})
Construct a new register configuration.

Properties

access CsrAccess
Access rule for the register.
final
fields List<CsrFieldConfig>
Fields in this register.
latefinal
hashCode int
The hash code for this object.
no setteroverride
isBackdoorReadable bool
Architectural property in which the register can be backdoor read.
final
isBackdoorWritable bool
Architectural property in which the register can be backdoor written.
final
isFrontdoorReadable bool
Architectural property in which the register can be frontdoor read.
final
isFrontdoorWritable bool
Architectural property in which the register can be frontdoor written.
final
name String
Name for the register.
final
resetValue int
Architectural reset value for the register.
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clone({String? name, CsrAccess? access, int? resetValue, List<CsrFieldConfig>? fields, bool? isFrontdoorReadable, bool? isFrontdoorWritable, bool? isBackdoorReadable, bool? isBackdoorWritable}) CsrConfig
Clones this configuration with the provided 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