Figure-1 shows the XOR gate schematic diagram and figure-2 shows the symbol of XOR gate. Here we have designed XOR logic circuit by using basic logic gates i.e. Also, XOR logic circuit can be designed by using only NAND gates or only NOR gates which are discussed later. One can draw the circuit diagram for a XOR gate in many ways by using the different combinations of NAND, NOR, NOT, AND, OR gates. Circuit diagram of XOR logic gate using basic logic gates For the three input XOR logic gate, the XOR gate Boolean expression is Y=A\oplus B\oplus C, where A, B and C are the inputs. If Y be the output of the gate then Boolean expression relating the inputs and the output is, Y=A\overlineB We consider a two-input XOR gate with inputs A and B. In most of the cases two-input or three-input XOR gates are used. It can have infinite number of inputs and only one output. This can be understand in the Truth Table. Logic gates and nand and nor univarsal gates. in the next tutorial, we shall prove the nor gate as a universal gate by designing and, or, not, nand, and xnor gates using only nor gate. That means we can design all other gates using only the nand gate, so the nand gate is a universal gate. It gives the output 1 (High) if odd number of inputs are high. My Electronics Using Universal Gates To Form Logic Gates. XOR gate is also known as the Exclusive OR gate or Ex-OR gate. XOR gate can be constructed by using only basic logic gates, NAND gates and NOR gates separately. In this article, we are going to discuss the XOR logic gate, its Boolean expression, Truth table and circuit diagram. We have discussed basic logic gates like OR gate, AND gate and NOT gate earlier in another article. It is one of the logic gates which is available in IC form. Taking a circuit described using AND and OR gates in either a sum-of-products or a product-of-sums format and converting it into an alternative representation using only NAND gates, only NOR gates, or a mixture of NAND and NOR gates is a great way to make sure you understand how the various gates work. So we first find mid = NAND (a, b), left = NAND (a, mid) and right = NAND (b, mid), finally XOR = NAND (left, right).XOR gate or Exclusive OR gate is a widely used logic gate in digital electronics. NAND (b, not a) = NAND (b, not b or not a) = NAND (b, NAND (a, b)). NAND (a, not b) = NAND (a, not a or not b) = NAND (a, NAND (a, b)) This is true for NAND just as it's true for AND. And the best way to do that is to just simulate it. Whenever I see a new component I like to simulate it just to see how it behaves. So lets explore the NAND gate a little bit. If x is true then (not x or y) = (false or y) = y. CircuitLab has a digital mux component you can use, but that's not the point here, instead I'm going to be building my own entirely out of NAND gates. Now we observe that (x and y) = x and (not x or y): If x is false then both sides are false. Not a or b = not (a and not b) = NAND (a, not b)Ī or not b = not (not a and b) = NAND (not a, b) So we used one NAND gate, and have to calculate (not a or b) and (a or not b) using three NANDs. Not (not (a and not b) and not (not a and b)) = Remember that not (a or b) = not a and not b, and therefore (a or b) = not (not a and not b). Thats' not what you want, you want a formula that is a NAND. The formula: XOR = (a and not b) or (not a and b). Hence we can compose these four gates to get the desired result, i.e., Identical to yours, it should be easy for you to find the formula byĮxtracting it from that diagram. Wikipedia by typing you question title in Google, as a. Since you already have the diagram answer, easily awailable from