This is based on the fact that (NAND(A,B)= OR(NOT(A),(NOT(B)).ĭiagram 9-2: NAND gate for. Design by Nyles Heise. A NAND gate always sends an electron except when both input wires have data. Both diagrams are based on AND(A,B) = AND(A, ANDNOT(NOT (B))).ĭiagram 9-1: NAND gate for. Designs by Nyles Heise (top) and Karl Scherer (bottom). Design by Nyles Heise.ĭiagram 8-5: AND gates for any. Designs by Karl Scherer based on older sub-optimal designs.ĭiagram 8-4: AND gate for any. Design by Nyles Heise.ĭiagram 8-3: AND gates for any. Note that 6-cycle gates have been used here to build the 3-cycle gate.ĭiagram 8-2: AND gate for. The design for 3-tick data presented here uses OR and NOT gates:ĪND (A,B) = NOT (NAND(A,B)) = NOT ((NOT(A) OR NOT(B)) Right: XOR for by Karl Scherer.Īn AND gate sends an electron to the output wire whenever there is an electron arriving at both input wires. Its symmetry allows it to emit the result to BOTH sides.Ĭenter: Well-known XOR for or larger. Left: XOR gates for any, design by Mathieu Walraet. The underscored "V" sign at the top is the sign for the logical "XOR". The XOR shown here is built from other components using the fact that XOR(A,B) = ((A and not B) or (B and not A)).ĭesign by Nyles Heise. XOR stands for "exclusive or", meaning "create output data if either input is active, but not if both are active". The right end of the wire receives an electron if one or both of the two input wires has data. Design by Michael Greene.
īottom: Design by David Moore and Mark Owen. A NOR gate can be constructed from an OR gate followed by a NOT gate. The right end of the wire receives an electron if one or both of the two input wires has data. The right end of the wire receives an electron if the bottom input wire (but not the top input wires) has data.ĭiagram 4-2: ANDNOT gates for. The WireWorld electrons have to be regularly spaced (timed) for the NOT gates to work.ĭiagram 4-1: ANDNOT gate for any. The loops at the left that spit out electrons at regular intervals are called "clocks".ĭiagram 2-1: FREQUENCY DOUBLERS double the clock rate.ĭiagram 2-2: FREQUENCY HALVERS delete every second electron.Ī NOT gate spits out data (here WireWorld electrons) whenever there is NO input. See also the special diagrams on AND gates for more information.
#NAND X WIRE NAMES PLUS#
Note that this is the behavior of a real transistor in electronics.Īlternatively, we could have used a negative transistor plus a NOT gate to create a positive transistor (AND gate), but our construction given here is much simpler. The positive transistor lets the current pass whenever the "base" (control contact) has electrons coming in.
See also the special variant on ANDNOT gates for more information.īottom diagram: "Positive Transistor" : AND gate (Note that this is opposite to the behavior of a real transistor in electronics.) The negative transistor lets the current pass whenever the "base" (control contact) has no electrons coming in. Top diagram: "Negative Transistor" : ANDNOT gate = AND(A, NOT(B)) The "electron guns" or "clocks" on the left emit an electron at regular intervals. If clicked repeatedly, a square of background color will turn yellow, then red, then blue, then back to background color.ĭiagram 1-1: DIODE A diode or "one-way gate" lets the electrons through only in one direction and blocks all electrons moving in the opposite direction.ĭiagram 1-2: TRANSISTORS A "transistor" (as we use the term here) allows on/off control of a current by an external signal.Ĭlick button "6" repeatedly to create several cycles. You can click the board anywhere to modify the presented diagram.