- Main article: Logic circuit/NOT
Logic circuit
A logic gate can be thought of as a simple device that will return a number of outputs, determined by the pattern of inputs and rules that the logic gate follows. For example, if both inputs in an AND gate are in the 'true'/'on'/'powered'/'1' state, then the gate will return 'true'/'on'/'powered'/'1'.
There are many different kinds of logic gate, each of which can be implemented with many different designs. Each design has various advantages and disadvantages, such as size, complexity, speed, maintenance overhead, or cost. The various sections will give many different designs for each gate type.
Contents |
[edit] Concepts
The output of each logic circuit reflects the state of its inputs at all times (though possibly with some delay incurred by the circuit):
| A | B | NOT A | A OR B | A NOR B | A AND B | A NAND B | A XOR B | A XNOR B | A IMPLIES B |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 1 |
| 1 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 0 | 0 |
| 0 | 1 | 1 | 1 | 0 | 0 | 1 | 1 | 0 | 1 |
| 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 1 | 1 |
For most of these gates, you can swap A and B without changing the output (i.e., they are commutative). Swapping the inputs of the IMPLIES gate will affect its output, and the NOT gate has only one input.
The AND, OR, and XOR gates can each be used in arrays to perform their operation on more than two inputs, by taking two inputs for the first gate, combining its output with another input, and continuing this process until a single output results.For these gates, the order in which the inputs are combined doesn't matter (i.e., they are associative). When an XNOR gate is combined in this way, its output is on when an odd number of inputs is on.
[edit] Implementations
[edit] See also
| Redstone circuit | |
|---|---|
| Featured tutorials | |
| Power components | |
| Transmission components | |
| Mechanism components | |
| Miscellaneous | |
