Into The Weeds
Integrated Circuits (IC)
The main wrapper object for all of the circuit components is the IntegratedCircuit object. This object connects the chip/gate/other logic to the breadboard component. The IC has arrays for the input and output values. It also contains references to the nodes/wires that it is connected to. This allows the IC to update it's inputs on on demand and propagate the output values to other ICs and nodes. This object can be created with any number of pins allowing for more customization.
The IC object does not care about how it's outputs are changed based on its inputs. The IC is only aware the output values that change after it calls it's InternalUpdate method. This InternalUpdate value can be tied to anything from a Chip object, Gate object or even a Unity GameObject reference.
This object also has a few other features such as dedicated Positive and Ground booleans to allow for resetting all internal/child states. These components are versatile and can be used fro everything from Chips to LEDs, and even wires.
The following code is an example of the mapping for a Quad Xor Gates Integrated Circuit.