(a) What is a NAND gate? Write its truth table.
(b) Show with the help of a diagram, how you will obtain an AND gate using only NAND gate.
Confirming your payment
Sign up now and get 250 free tokens.
Digital Electronics - Logic Gates · Question 46 of 56
(a) What is a NAND gate? Write its truth table.
(b) Show with the help of a diagram, how you will obtain an AND gate using only NAND gate.
Solution:
Concept: A NAND gate gives . A NAND gate with both inputs joined is a NOT gate, and inverting a NAND output gives AND back.
Step 1 — Define the NAND gate (part a). A NAND gate is an AND gate followed by a NOT gate, so its output is the inverse of the AND output, .
Step 2 — Write its truth table (part a). The AND output is inverted to give :
| 0 | 0 | 0 | 1 |
| 0 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 0 |
Step 3 — Draw the AND gate made from NAND gates (part b). The output of a NAND gate is fed to a second NAND gate whose two inputs are joined together:

Step 4 — Show that it is an AND gate (part b). The first gate gives . The second gate, with both inputs equal to , acts as a NOT gate:
Step 5 — Check with the truth table (part b). Working gate by gate:
| 0 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
The column is the AND truth table.
Therefore, (a) a NAND gate is an AND gate followed by NOT, giving 0 only when both inputs are 1; (b) a NAND gate followed by a NAND gate with joined inputs gives an AND gate, .