CsrExampleRegisterKnob constructor
- int index, {
- IntConfigKnob? frontdoorWidth,
Creates the default register settings for index.
Implementation
CsrExampleRegisterKnob(int index, {IntConfigKnob? frontdoorWidth})
: nameKnob = StringConfigKnob(value: 'reg$index'),
addressKnob = NonNegativeIntConfigKnob(value: index),
widthKnob = IntOptionalConfigKnob(
value: null, minValue: 1, inheritedKnob: frontdoorWidth),
resetValueKnob = NonNegativeIntConfigKnob(value: index == 1 ? 1 : 0),
super({}, name: 'Register');