GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A ROM converts a two-digit BCD number (tens digit T and units digit U, 8 input bits, value 0-99) into a 7-bit binary number. Any output bit that equals an input bit is wired directly, inputs that do not affect the stored outputs are not used as address lines, and the ROM has 2ⁿ words. What is the minimum ROM size in bits?

  1. A. 128 × 6 = 768
  2. B. 256 × 7 = 1792
  3. C. 128 × 7 = 896
  4. D. 64 × 6 = 384

Correct answer: A. 128 × 6 = 768

The binary LSB equals the LSB of U (10T is even), so it is wired directly. The remaining bits are (10T + U) >> 1 = 5T + (U >> 1), which depends on the 4 bits of T and the upper 3 bits of U: 7 address lines, 128 words. 5T + ⌊U/2⌋ ≤ 49 needs 6 output bits: 768 bits.

More Digital Logic questions

Exams that ask this topic