GATE Computer ScienceHardGATE CS (PYQ pattern)

A ROM looks up the square of a 4-bit unsigned input (0 to 15), whose result has 8 bits. Some output bits are constant or are simply copies of an input bit and need no ROM storage. What is the minimum ROM size in bits for the remaining outputs?

  1. A. 96
  2. B. 128
  3. C. 64
  4. D. 112

Correct answer: A. 96

Output bit 0 of x² equals input bit 0 and output bit 1 is always 0, so only bits 2 to 7 (6 outputs) need storing: 16 words × 6 bits = 96 bits. The full table would be 16 × 8 = 128 bits.

More Digital Logic questions

Exams that ask this topic