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.

Constructors

CsrConfig({required String name, required CsrAccess access, 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.
final
hashCode int
The hash code for this object.
no setterinherited
isBackdoorReadable bool
Architectural property in which the register can be backdoor read.
getter/setter pair
isBackdoorWritable bool
Architectural property in which the register can be backdoor written.
getter/setter pair
isFrontdoorReadable bool
Architectural property in which the register can be frontdoor read.
getter/setter pair
isFrontdoorWritable bool
Architectural property in which the register can be frontdoor written.
getter/setter pair
name String
Name for the register.
final
resetValue int?
Architectural reset value for the register.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clone() CsrConfig
Deep clone method.
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
validate() → void
Method to validate the configuration of a single register.

Operators

operator ==(Object other) bool
The equality operator.
inherited