GATE Computer ScienceHardGATE CS (PYQ pattern)

Segment g of a BCD-to-seven-segment decoder (inputs A B C D, codes 10-15 don't-care) is on for digits 2, 3, 4, 5, 6, 8, 9, and is implemented from its minimal sum-of-products B'C + CD' + BC' + A using NAND gates of any fan-in (inputs true and complemented are all available). What is the minimum number of NAND gates?

  1. A. 5
  2. B. 3
  3. C. 7
  4. D. 4

Correct answer: D. 4

Each two-literal product needs one NAND (3 gates), and the single-literal term A needs no gate because the output NAND can take A' directly. The output NAND combines the four terms: 3 + 1 = 4 gates. Counting a gate for A gives 5.

More Digital Logic questions

Exams that ask this topic