Solveeit Logo

Question

Question: To get an \(OR\) gate from a \(NAND\) gate, we need: A) Only two \(NAND\) gates. B) Two \(NOT\) ...

To get an OROR gate from a NANDNAND gate, we need:
A) Only two NANDNAND gates.
B) Two NOTNOT gates obtained from NANDNAND gates and one NANDNAND gate.
C) Four NANDNAND gates and two ANDAND gates obtained from NANDNAND gates.
D) None of the above.

Explanation

Solution

Boolean algebra needed:

  1. Involution law: (X)=X\left( {X'} \right)' = X
  2. Idempotency law:
    X+X=X X.X=X  X + X = X \\\ X.X = X \\\
  3. De-Morgan’s law:
    (X+Y)=X.Y (X.Y)=X+Y  \left( {X + Y} \right)' = X'.Y' \\\ \left( {X.Y} \right)' = X' + Y' \\\

Complete step by step answer:
Construct a NOTNOT gate using NANDNAND gate. For this, you will need to use idempotency law.
Connect NOTNOT gates to two terminals and connect a NANDNAND gate. Then, by using idempotency law, arrive at the result that you can also get simply by using OROR gate.
Complete step by step answer:
We will be using three laws of Boolean algebra. These are:

  1. Involution law: (X)=X\left( {X'} \right)' = X
  2. Idempotency law:
    X+X=X X.X=X  X + X = X \\\ X.X = X \\\
  3. De-Morgan’s law:
    (X+Y)=X.Y (X.Y)=X+Y  \left( {X + Y} \right)' = X'.Y' \\\ \left( {X.Y} \right)' = X' + Y' \\\
    Our first step will be to make a NOTNOT gate using NANDNAND gate.
    The symbol and result of NOTNOT gate is :$$

NOTNOT gate using NANDNAND gate is:

We will explain this construction using Idempotency law ( X.X=XX.X = X )
AA can be written as A.AA.A and vice versa. (A.A)=(A)\left( {A.A} \right)' = \left( A \right)' because we are using NANDNAND gate.
Our, desired gate is OROR gate, which is represented as

Our desired result is A+BA + B. First using Involution law ( (X)=X\left( {X'} \right)' = X ), we get
A+B=[(A+B)]A + B = \left[ {\left( {A + B} \right)'} \right]' and then using De-Morgan’s law, we get [(A+B)]=[A.B]\left[ {\left( {A + B} \right)'} \right]' = \left[ {A'.B'} \right]'
So, we have [(A+B)]=[A.B]\left[ {\left( {A + B} \right)'} \right]' = \left[ {A'.B'} \right]'. Now, using Idempotency law ( X.X=XX.X = X ), we have
[A.B]=[(A.A).(B.B)]\left[ {A'.B'} \right]' = \left[ {\left( {A.A} \right)'.\left( {B.B} \right)'} \right]'
So, we have the entire expression as
A+B=[(A.A).(B.B)]A + B = \left[ {\left( {A.A} \right)'.\left( {B.B} \right)'} \right]'
From this expression, we can conclude that we need two NOTNOT gates using NANDNAND gates and then combine then using NANDNAND 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.