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?
- A. 9 and 28
- B. 8 and 24
- C. 9 and 24
- 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.
Practise more Computer Organization and Architecture questionsComputer Organization and Architecture: notes and key points
More Computer Organization and Architecture questions
- A virtually indexed, physically tagged cache is 32 KB, 4-way set-associative with 32-byte blocks, and pages are 4 KB. To avoid synonyms…
- A loop reads a[i] and then b[i] for i = 0..1023, where a and b are int arrays (4 bytes) starting at byte addresses 0 and 4096. The data…
- On a 5-stage pipeline with forwarding, 30% of instructions are loads. Half of them are followed immediately by a dependent instruction…
- After a section of a program was made 10 times faster, measurements on the improved program show that the improved section accounts for…
- A fully associative cache of 3 lines (block = one word) sees the block reference string [2, 4, 4, 0, 4, 5, 5, 2, 0, 2, 2, 2, 3, 5, 2, 1]…
- A 16-bit instruction has 5-bit address fields. Two-address instructions use a 6-bit opcode; further opcodes are obtained by expanding into…