Desktop Operating System - Computer: AND Gate
Desktop Operating System - Computer: AND Gate
Desktop Operating System - Computer: AND Gate
Definition
The control program in a user's machine (desktop or laptop). Also called a "client operating
system," Windows is the overwhelming majority while the Macintosh comes second. There
are also several versions of Linux for the desktop. Contrast with network operating system.
Logic gates
Digital systems are said to be constructed by using logic gates. These gates are the
AND, OR, NOT, NAND, NOR, EXOR and EXNOR gates. The basic operations
are described below with the aid of truth tables.
AND gate
The AND gate is an electronic circuit that gives a high output (1) only
if all its inputs are high. A dot (.) is used to show the AND operation i.e.
A.B. Bear in mind that this dot is sometimes omitted i.e. AB
OR gate
The OR gate is an electronic circuit that gives a high output (1) if one or
more of its inputs are high. A plus (+) is used to show the OR operation.
NOT gate
The NOT gate is an electronic circuit that produces an inverted version of
the input at its output. It is also known as an inverter. If the input variable
is A, the inverted output is known as NOT A. This is also shown as A', or A
with a bar over the top, as shown at the outputs. The diagrams below show
two ways that the NAND logic gate can be configured to produce a NOT
gate. It can also be done using NOR logic gates in the same way.
NAND gate
NOR gate
The symbol is an OR gate with a small circle on the output. The small circle
represents inversion.
EXOR gate
The 'Exclusive-OR' gate is a circuit which will give a high output if either,
but not both, of its two inputs are high. An encircled plus sign ( ) is used
to show the EOR operation.
EXNOR gate
The 'Exclusive-NOR' gate circuit does the opposite to the EOR gate. It will give a
low output if either, but not both, of its two inputs are high. The symbol is an
EXOR gate with a small circle on the output. The small circle represents inversion.
The NAND and NOR gates are called universal functions since with either one the
AND and OR functions and NOT can be generated.
Note:
Example
< Tutorials
Some of the designs are more than two blocks high which is represented here by the layers
being frames in an animated gif or labeled side by side. A full legend is on the Redstone
schematics page.
Logic gates in Minecraft are a way of using redstone circuits in a manner that a certain
combination of inputs, or redstone signals, achieves a certain output. They are similar to
computer logic gates in a way, but are slightly different in their constructs.
Contents
[hide]
1 Basic Info
2 Key for Diagrams
3 Using Logic Gates
4 Examples of Logic Gates
o 4.1 NOT Gate
o 4.2 AND Gate
o 4.3 NAND Gate
o 4.4 OR Gate
o 4.5 NOR Gate
o 4.6 XOR Gate
o 4.7 XNOR Gate
5 Diodes
o 5.1 Repeater
o 5.2 Torch Repeater
o 5.3 Glowstone, Stairs, and Slabs
6 Video
7 See also
Basic Info[edit]
Some basic info about Minecraft needed to understand redstone circuits and gates:
There are several items that can provide an input charge into redstone. These
are levers, pressure plates, redstone torches, redstone blocks, buttons, detector
rails, tripwire hooks and daylight sensors.
Switches are most commonly used with gates because of their ease of use and the fact
that they are easily made.
When redstone torches are powered, they go into an "off" state and stop providing power
themselves.
Any block can have redstone placed on it except leaves and glass, with a few more
exceptions.
Glowstone can have redstone wire placed on it, but not torches or repeaters.
Redstone wire can no longer be placed on Glowstone in the Xbox version as of
Version 1.3 (TU7).
The most basic gate you can have. When the input signal is on, the output signal is on, and vice versa.
Interactive Schematic
One uses gates when they need a different signal pattern than a simple on/off pattern, but a gate
can be as simple as that: an On-On, Off-Off gate. However, other gates are used when one
wants to have a signal go on when a certain combination of events happens. For instance, if you
wanted to have a redstone lamp light only when two switches were both toggled to the "on"
position, you would use an AND gate. If you wanted no signal when a switch is on, but wanted a
signal when a switch is off, you would use a NOT gate. Lighting in modern buildings controlled by
two or more switches (for example: a light in a hallway with a switch at each end) use XOR
gates.
Gates can be used in combinations to create complex signal patterns, and some have even
successfully created redstone computers using logic gates. SeeTutorials/Advanced redstone
circuits for more info.
A NOT gate (¬A), also known as an inverter, is a gate used when you want an opposite output
from the input you give. For instance, when the switch, or input, is set to "on", the output will be
toggled to "off", and when the switch is toggled to "off", the output will be toggled to "on".
Inpu
Output
t
ON off
off ON
AND Gate[edit]
An AND gate (A^B) is used with two or more switches or other inputs. The output is toggled to
"on" ONLY when both switches, or inputs, are toggled to "on". Otherwise, the output will remain
"off".
ON ON ON
ON off off
off ON off
NAND Gate[edit]
A commonly used NAND gate. Note the similarities to the AND gate.
Interactive Schematic
A NAND gate -(A^B) is the opposite to the AND gate. The output is toggled to "off" ONLY when
both switches are toggled to "on". Otherwise, the output is set to "on". This gate also requires two
or more inputs.
ON ON off
ON off ON
off ON ON
off off ON
OR Gate[edit]
Two isolated OR gates. These can have up to 3 normal inputs, or more if inverted inputs are used with redstone
torches above and/or below the yellow block or output dust.
An implicit OR gate. This is the simplest gate available and therefore easily forgotten. This gate is potentially
dangerous as signals may flow back to any circuitry attached to the inputs. This has been solved with diodes in
the circuit on the right. The number of inputs is only limited by the available signal strengths. Using
the transparent block trick, even more inputs can be added.
An OR gate (AVB) uses two or more inputs. Whenever any input is "on", the output is to "on".
The only time the output is "off" is when all inputs are "off".
ON ON ON
ON off ON
off ON ON
NOR Gate[edit]
A NOR gate -(AVB) is the opposite of the OR gate. Whenever at least one switch is toggled to
"on", the output is toggled to "off". The only time the output is "on" is when all inputs are toggled
to "off". This gate also uses two or more inputs.
ON ON off
ON off off
off ON off
off off ON
XOR Gate[edit]
ON ON off
ON off ON
off ON ON
An XOR gate (A⊕B) is a gate that uses two inputs. In this gate, the output is toggled to "on"
when one switch is "on" and one switch is "off". If both switches are in the same position, the
output is toggled to "off". Because of these properties, XOR gates are commonly found in
complex redstone circuits.
An XNOR gate (A⇔B) is the opposite of an XOR gate. It uses two inputs. When both switches
are in the same state (both switches are "on" or both switches are "off"), then the output is
toggled to "on". Otherwise, if the switches differ, the output is toggled to "off".
ON ON ON
ON off off
off ON off
off off ON
Logic Gates
Introduction
Logic gates serve as the building blocks to digital logic circuits using combinational
logic. We're going to consider the following gates: NOT gates (also called
inverters), AND gates, OR gates, NAND gates, NOR gates, XOR gates, and XNOR
gates.
NOT gates
NOT gates or inverters have a single bit input and a single bit of output.
This is a diagram of a NOT gate. It is a triangle with a circle on the right. The
circle indicates "negation".
x z
0 1
1 0
AND2 gates
AND2 gates have two bits of input and a single bit of output. The subscript, 2,
indicates how many inputs this AND gate has. For example, AND3 gates have 3
inputs.
The output of AND2 gate is 1 only if both inputs are 1. Otherwise, the output is 0.
0 0 0
0 1 0
1 0 0
1 1 1
That is, an AND gate with n-inputs is the AND of all the bits. This is not
ambiguous because the AND function is associative (all parenthesization of this
expression are equivalent).
OR2 gates
OR2 gates have two bits of input and a single bit of output. The subscript, 2,
indicates how many inputs this OR gate has. For example, OR 3 gates have 3 inputs.
The output of OR2 gate is 0 only if both inputs are 0. Otherwise, the output is 1.
0 0 0
0 1 1
1 0 1
1 1 1
That is, an AND gate with n-inputs is the AND of all the bits. This is not
ambiguous because the AND function is associative (all parenthesization of this
expression are equivalent).
NAND2 gates
NAND2 gates have two bits of input and a single bit of output. The subscript, 2,
indicates how many inputs this NAND gate has. For example, NAND3 gates have 3
inputs.
In particular
The truth table defines the behavior of this gate. It's the negation of AND2.
0 0 1
0 1 1
1 0 1
1 1 0
0 0 1
0 1 0
1 0 0
1 1 0
If you look carefully at the drawing of the gate, there is a second arc behind the
first one near the inputs. Since this second arc is hard to see, it's usually a good
idea to write the word "XOR" inside the gate.
0 0 0
0 1 1
1 0 1
1 1 0
That is, an XOR gate with n-inputs is the XOR of all the bits. This is not
ambiguous because the XOR function is associative (all parenthesization of this
expression are equivalent).
XNOR2 gates
XNOR2 gates have two bits of input and a single bit of output.
The output of XNOR2 gate is the negation of XOR2 and has 1 when both inputs are
the same.
If you look carefully at the drawing of the gate, there is a second arc behind the
first one near the inputs. Since this second arc is hard to see, it's usually a good
idea to write the word "XNOR" inside the gate.
0 0 0
0 1 1
1 0 1
1 1 0