GATE Computer ScienceModerateGATE CS (PYQ pattern)

A memory protects data with a SECDED Hamming code (single-error correction plus one overall parity bit for double-error detection). How many check bits are needed in total to protect 128 data bits as one 128-bit word, and as four separate 32-bit words?

  1. A. 9 and 28
  2. B. 8 and 24
  3. C. 9 and 24
  4. D. 10 and 28

Correct answer: A. 9 and 28

SEC needs the smallest r with 2^r ≥ m + r + 1: m = 128 → r = 8 (256 ≥ 137); m = 32 → r = 6 (64 ≥ 39). Adding the overall parity bit: 9 for one wide word versus 4 × 7 = 28 for four narrow words. Wider words amortise ECC better.

More Computer Organization and Architecture questions

Exams that ask this topic