RedstoneChips

and gate

An AND gate. When used with 1 output, the output is on only when all inputs are on. When the chip has more than 1 output its inputs are grouped into bit sets. The size of each bit set is equal to the number of outputs. The chip will AND each input with the corresponding inputs in all bit sets.

For ex. to AND 3 numbers of 4 bits each together, build the chip with 12 inputs and 4 outputs. Inputs 0-3 represent the 1st number, inputs 4-7 represent the 2nd number and inputs 8-11 represent the 3rd number. The chip will AND the corresponding bits of each one of the inputs and output the result to the corresponding output pin. i.e. The chip will AND inputs 0,4 and 8 and set output pin 0 accordingly it will then and inputs 1,5 and 9 and set output pin 1 and so forth.

on Wikipedia

source code


I/O setup

Sign text

  1. and

Version history: Added to BasicCircuits 0.1

Fork me on GitHub