XORing X with 1 gives X', i.e., NOT(X). If we are able to construct a NAND (AND) using XOR, we can also obtain AND (NAND) from it, which makes XOR a universal gate since inverted inputs to a NAND (AND) will give OR (NOR). However XOR is not a universal gate! Therefore we cannot obtain NAND (AND) using XOR. :-)
By,
Tirtha Sarathi Ghosh
Class 10
IIT Kanpur Aspirant
As such an OR gate should do the job...but if the question is of using gates other than the simple OR, it should be a combo of NOR and NOT gates; where-in, the NOT gate comes after the NOR gate. Factfully speaking: The output of a NOR gate when fed to a NOT gate shall give you an OR gate. cheers :) Anish Murthy Airpula, RF Design Engineer (F.A.E) Ceramic & Microwave Products Group, Dover Corporation Inc, United States of America
You can't make XOR out of NOT alone. Mathematically, NOT takes only a single argument, and its gate, an inverter, takes a single input. There's no way to combine two inputs giving a single output with one input gates. You need some two input gates to do the job. They can be AND, OR, NAND, NOR, or some combination, but you need something. That said, they don't have to be IC gates; you can combine two inputs with diodes to make an OR gate, so you could make XOR with only inverters and diodes, i.e. no other gate symbols on your schematic, but it would mot be making XOR out of NOT.
First of all, NAND and NOR gates have been proven to be logically complete. That means you can create every other logical gate with just NANDs or just NORs. Other gate functions are XOR, AND, OR, NOT, etc.To clarify: The notation I am using is [NAND] represents the NAND gate. Having A,B means the two inputs are A and B. If there is just one input, then that input gets mapped to both inputs. The '|' is supposed to show a junction between two lines. '-' is a single line and '=' is a double line. The '. . .' is just empty space, trying to keep the diagram intact.Some NAND designs we will need are:AND: A,B--[NAND]==[NAND]-->outOR: A--[NAND]--|==[NAND]--out. . . .B--[NAND]--|first NAND connects to top and bottom NANDslast NAND has inputs taken from output of the middle two NANDs. . . . . . . . . . . . . . . A--|[NAND]---|XOR: A,B--[NAND]------| . . . . . . . |===[NAND]--out. . . . . . . . . . . . . . . B--|[NAND]---|Sorry if the diagram is difficult to follow.The second part is what a full adder is. A full adder is a system that takes in three signals and outputs two. The three input signals are A, B, and Cin. The two outputs are S and Cout. The point of a full adder is that you can cascade them. The Cout of the first becomes the Cin of the second. That way you have a general one bit adder, but can make an N bit adder by stringing cascading them. So the first step in creating a full adder is writing out the truth table, a table where inputs get mapped to specific outputs. I am going to use '-' in place of spaces so the spacing stays the same after I post.Input- - - - - - - - - - - - - - - -OutputA - - B - - Cin - - - - - - - - - S - - Cout0 - - 0 - - 0 - - - - - - - - - - -0 - - 00 - - 0 - - 1 - - - - - - - - - - -1 - - 00 - - 1 - - 0 - - - - - - - - - - -1 - - 00 - - 1 - - 1 - - - - - - - - - - -0 - - 11 - - 0 - - 0 - - - - - - - - - - -1 - - 01 - - 0 - - 1 - - - - - - - - - - -0 - - 11 - - 1 - - 0 - - - - - - - - - - -0 - - 11 - - 1 - - 1 - - - - - - - - - - -1 - - 1It can be seen that S = [A XOR B XOR Cin]It can be seen that C = [(A AND B) OR (A AND Cin) or (B AND Cin)]or equivelently (and more efficiently) C = [(A AND B) or (C AND (A XOR B))]Its probably not completely obvious at first, but using Karnaugh maps or other techniques you get this result.So now it is just a matter of replacing each gate (XOR AND OR) with its correspdonding NAND system. Although I am sure it would be quite a feat to put that diagram up on here using text symbols, I feel that I am not up for that rather large task, haha. Hope this answered your question or helps lead you in direction you are looking for.
A universal gate is a gate which can implement any Boolean function without need touse any other gate type.The NAND and NOR gates are universal gates.In practice, this is advantageous since NAND and NOR gates are economical andeasier to fabricate and are the basic gates used in all IC digital logic families.In fact, an AND gate is typically implemented as a NAND gate followed by aninverter not the other way around!!Likewise, an OR gate is typically implemented as a NOR gate followed by an inverternot the other way around!!A universal gate is a gate which can implement any Boolean function without need touse any other gate type.The NAND and NOR gates are universal gates.In practice, this is advantageous since NAND and NOR gates are economical andeasier to fabricate and are the basic gates used in all IC digital logic families.In fact, an AND gate is typically implemented as a NAND gate followed by aninverter not the other way around!!Likewise, an OR gate is typically implemented as a NOR gate followed by an inverternot the other way around!!can be combined to produce AND, OR,NOT,XORand XNOR gates
If you're allowed to prove this the easy way (by showing you can use XOR and AND to create the set of AND, OR, and NOT), this is pretty straightforward. x AND y = x AND y (of course) x OR y = (x XOR y) XOR (x AND y) NOT x = x XOR 1 Also, (x AND y) XOR 1 is equivalent to x NAND y, which is a universal gate.
To make a full subtractor, you need an XOR and a NAND gate.
No, XOR gate is a not a universal gate. There are basically two universal gates NAND and NOR.
All other logic gates can be made using XOR and XNOR, but to get NOT, you need to do (input) XOR 1 or (input) XNOR 0, but with NAND, you don't need 1: (input) NAND (input).
The XOR operation can be implemented using only NAND gates by combining multiple NAND gates in a specific arrangement to achieve the desired XOR functionality.
Its possible to design a 4-i/p xor gate using only 2-i/p nand gates Although the design turns out to be quite complex and comprises of 21 NAND gates : F = (A'B+AB')(C'D'+CD) + (A'B'+AB)(C'D+CD') Above given equation is the o/p equation for the circuit .
As such an OR gate should do the job...but if the question is of using gates other than the simple OR, it should be a combo of NOR and NOT gates; where-in, the NOT gate comes after the NOR gate. Factfully speaking: The output of a NOR gate when fed to a NOT gate shall give you an OR gate. cheers :) Anish Murthy Airpula, RF Design Engineer (F.A.E) Ceramic & Microwave Products Group, Dover Corporation Inc, United States of America
Seven gates, they are: not, and, or, nor, nand, xor, xnor.
You can't make XOR out of NOT alone. Mathematically, NOT takes only a single argument, and its gate, an inverter, takes a single input. There's no way to combine two inputs giving a single output with one input gates. You need some two input gates to do the job. They can be AND, OR, NAND, NOR, or some combination, but you need something. That said, they don't have to be IC gates; you can combine two inputs with diodes to make an OR gate, so you could make XOR with only inverters and diodes, i.e. no other gate symbols on your schematic, but it would mot be making XOR out of NOT.
xor and xnor gates are derived from not gate
No. OR is not functionally complete, so you can not use it to derive any other logical expression. The reason for this is because you can only construct the following expressions out of only OR gates: A OR B A OR A Because of the Idempotency theorem, A OR A simply reduces to A, so we are left with A OR B, which we can not use to derive any other logical circuits. At the very least, we would also need a NOT gate. This is why NOR and NAND are functionally complete: you can derive a NOT gate by using A NAND A or A NOR A.
No. OR is not functionally complete, so you can not use it to derive any other logical expression. The reason for this is because you can only construct the following expressions out of only OR gates: A OR B A OR A Because of the Idempotency theorem, A OR A simply reduces to A, so we are left with A OR B, which we can not use to derive any other logical circuits. At the very least, we would also need a NOT gate. This is why NOR and NAND are functionally complete: you can derive a NOT gate by using A NAND A or A NOR A.
NAND AND NOR gates are called universal gates , becaus with a combination NAND and NOR gates alone, it's possible to create all other logic gates like AND, OR, XOR etc and you can design any logic circuit. eg: inverter-- nand with inputs shorted. and ------ nand followed by a inverter(using nand). or--------- giving inverted inputs to nand gate.