This is a generic library that provides logic gates for use by other libraries. It is possible to use the output value of one gate as an input value to another, and thus nesting the gates indefinitely.
Currently supported gates:
If the number of input values for the XOR gate is greater than 2, it behaves as a cascade of 2-input gates and performs an odd-parity function. In effect that means that the output of the XOR gate is true
if the number of true
input values is odd, otherwise the output is false
.