CsrExampleRegisterKnob class

Settings for one register in the CSR example.

Inheritance

Constructors

CsrExampleRegisterKnob(int index, {IntConfigKnob? frontdoorWidth})
Creates the default register settings for index.

Properties

accessKnob → ChoiceConfigKnob<CsrAccess>
Frontdoor write access rule.
final
addressKnob → IntConfigKnob
The register address relative to the block.
final
backdoorReadKnob → ToggleConfigKnob
Whether hardware can read the register.
final
backdoorWriteKnob → ToggleConfigKnob
Whether hardware can write the register.
final
frontdoorReadKnob → ToggleConfigKnob
Whether frontdoor reads are enabled.
final
frontdoorWriteKnob → ToggleConfigKnob
Whether frontdoor writes are enabled.
final
hashCode → int
The hash code for this object.
no setterinherited
name → String
The name of this group.
no setterinherited
nameKnob → StringConfigKnob
The register name.
final
resetValueKnob → IntConfigKnob
Initial value on reset.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
subKnobs → Map<String, ConfigKnob>
A mapping from a sub-knob name to a corresponding sub-ConfigKnob.
no setteroverride
value ↔ String
The primary value being stored in this knob.
getter/setter pairinherited
widthKnob → IntOptionalConfigKnob
Optional register width; otherwise the frontdoor width is used.
final

Methods

loadJson(Map<String, dynamic> decodedJson) → void
Reconfigures this knob based on the provided deserialized JSON.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Serializes this knob into a JSON-compatible map.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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