MultiplierSelectKnob class
A knob for selecting a multiplier to use in a component.
- Inheritance
-
- Object
- ConfigKnob<
String> - GroupOfKnobs
- MultiplierSelectKnob
Constructors
- MultiplierSelectKnob.new({required bool allowSigned, required bool allowPipelining, String name = 'Multiplier Select'})
- Constructor for MultiplierSelectKnob allows for exposing or hiding some of the configuration knobs.
Properties
- adderSelectionKnob → AdderSelectKnob
-
Adder selection control.
final
- allowPipelining ↔ bool
-
Option to allow pipelining selection.
latefinal
- allowSigned ↔ bool
-
Option to allow signed operands.
latefinal
- compressionTreeMultiplierKnob → ToggleConfigKnob
-
Whether to instantiate a CompressionTreeMultiplier (or use a
NativeMultiplier).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- multiplicandWidthKnob → IntConfigKnob
-
Controls the width of the multiplicand.!
final
- multiplierWidthKnob → IntConfigKnob
-
Controls the width of the multiplier.!
final
- name → String
-
The name of this group.
no setterinherited
- pipelinedKnob → ToggleConfigKnob
-
Controls whether the adder is pipelined
final
-
radixKnob
→ ChoiceConfigKnob<
int> -
Controls the Booth encoding radix of the multiplier.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signMultiplicandValueKnob → ChoiceConfigKnob
-
A knob controlling the sign of the multiplicand
final
- signMultiplierValueKnob → ChoiceConfigKnob
-
A knob controlling the sign of the multiplier
final
-
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
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
-
selectedMultiplier(
) → Multiplier Function(Logic term1, Logic term2, {Logic? clk, String? definitionName, Logic? enable, String name, Logic? reset}) - Return the Multiplier Functor selected.
-
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