GATE Computer ScienceHardGATE CS (PYQ pattern)

An 8-to-256 line decoder is to be built only from 3-to-8 decoders, each with one active-high enable input (no other gates, no inverters; unused inputs may be tied to 0 or 1). What is the minimum number of 3-to-8 decoders?

  1. A. 36
  2. B. 33
  3. C. 37
  4. D. 40

Correct answer: C. 37

The 256 outputs need 256 / 8 = 32 leaf decoders (address bits 2-0). Their 32 enables come from 4 decoders (bits 5-3). Those 4 enables must be selected by bits 7-6, which needs one more decoder with its third select input tied to 0 (only 4 of its outputs used). Total 32 + 4 + 1 = 37. Stopping at 36 assumes the top two bits can enable the 4 decoders directly, which needs gates.

More Digital Logic questions

Exams that ask this topic