Question
Question: To get an \(OR\) gate from a \(NAND\) gate, we need: A) Only two \(NAND\) gates. B) Two \(NOT\) ...
To get an OR gate from a NAND gate, we need:
A) Only two NAND gates.
B) Two NOT gates obtained from NAND gates and one NAND gate.
C) Four NAND gates and two AND gates obtained from NAND gates.
D) None of the above.
Solution
Boolean algebra needed:
- Involution law: (X′)′=X
- Idempotency law:
X+X=X X.X=X - De-Morgan’s law:
(X+Y)′=X′.Y′ (X.Y)′=X′+Y′
Complete step by step answer:
Construct a NOT gate using NAND gate. For this, you will need to use idempotency law.
Connect NOT gates to two terminals and connect a NAND gate. Then, by using idempotency law, arrive at the result that you can also get simply by using OR gate.
Complete step by step answer:
We will be using three laws of Boolean algebra. These are:
- Involution law: (X′)′=X
- Idempotency law:
X+X=X X.X=X - De-Morgan’s law:
(X+Y)′=X′.Y′ (X.Y)′=X′+Y′
Our first step will be to make a NOT gate using NAND gate.
The symbol and result of NOT gate is :$$
NOT gate using NAND gate is:
We will explain this construction using Idempotency law ( X.X=X )
A can be written as A.A and vice versa. (A.A)′=(A)′ because we are using NAND gate.
Our, desired gate is OR gate, which is represented as
Our desired result is A+B. First using Involution law ( (X′)′=X ), we get
A+B=[(A+B)′]′ and then using De-Morgan’s law, we get [(A+B)′]′=[A′.B′]′
So, we have [(A+B)′]′=[A′.B′]′. Now, using Idempotency law ( X.X=X ), we have
[A′.B′]′=[(A.A)′.(B.B)′]′
So, we have the entire expression as
A+B=[(A.A)′.(B.B)′]′
From this expression, we can conclude that we need two NOT gates using NAND gates and then combine then using NAND gate to get the desired results.
So, option C is correct.
Note: You can match your answers by comparing the truth tables. To construct different gates easily, one should be familiar and comfortable in any Boolean algebra laws. Do not get confused with symbols for different gates.