Logic circuit

From Minecraft Wiki
(Redirected from Redstone Circuits/Logic)
Jump to: navigation, search

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):

Output Values for Logic Gates
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

[Schematic Help]

NOT Gate

[edit]

Main article: Logic circuit/NOT

OR Gate

[edit]

Main article: Logic circuit/OR

NOR Gate

[edit]

Main article: Logic circuit/NOR

AND Gate

[edit]

Main article: Logic circuit/AND

NAND Gate

[edit]

Main article: Logic circuit/NAND

XOR Gate

[edit]

Main article: Logic circuit/XOR

XNOR Gate

[edit]

Main article: Logic circuit/XNOR

IMPLIES Gate

[edit]

Main article: Logic circuit/IMPLIES

[edit] See also

Wikipedia:Logic gates

Personal tools
Namespaces
Variants
Actions
Minecraft Wiki
Minecraft
Useful pages
Toolbox
In other languages

Recent Community Articles

Mojang Tweets

    Getting your tweets...
Become a Premium Member!