AdderSelectKnob class

A knob for selecting an adder to use in a component.

Inheritance

Constructors

AdderSelectKnob.new({String name = 'Adder Select'})
Creates a new knob for selecting an adder.

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The name of this group.
no setterinherited
parallelPrefixAdderKnob ToggleConfigKnob
Whether to instantiate a ParallelPrefixAdder (or use a NativeAdder).
final
parallelPrefixTypeKnob ChoiceConfigKnob<Type>
Controls the type of ParallelPrefixAdder used for internal adders.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subKnobs Map<String, ConfigKnob>
Create the knobs for adder selection.
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
selectedAdder() Adder Function(Logic, Logic, {Logic? carryIn, String name})
Final value of the Adder Function that is 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

Static Properties

adderGeneratorMap Map<Type, ParallelPrefixAdder Function(Logic, Logic, {Logic? carryIn, String name})>
Map from ParallelPrefix Tree Type to Function for ParallelPrefixAdder generator.
getter/setter pair