ROM verification by checksum — what does it tell you? When using the checksum method to test a ROM image, what information does a checksum failure actually provide?
-
Aindicates if the data in more than one memory location is incorrect.
-
Bprovides a means for locating and correcting data errors in specific memory locations.
-
Callows data errors to be pinpointed to a specific memory location.
-
Dsimply indicates that the contents of the ROM are incorrect.
Answer
Correct Answer: simply indicates that the contents of the ROM are incorrect.
Explanation
Introduction / Context:Checksums and hashes are common techniques for verifying firmware integrity in ROM/Flash. A checksum provides a quick integrity check but conveys limited diagnostic information when it fails.
Given Data / Assumptions:
- A checksum is typically a simple arithmetic or logical summary of all ROM bytes.
- A mismatch indicates at least one bit/byte differs from the expected image.
- No location-specific error correction information is inherent in a basic checksum.
Concept / Approach:
Because a checksum compresses the entire contents into a short value, many different error patterns can produce the same failure indication. Therefore, a failing checksum only signals that the image is not identical; it does not tell you where or how many bytes are wrong, nor does it correct them.
Step-by-Step Solution:
Compute checksum of ROM contents and compare with expected value.If mismatch → integrity failure detected.Conclusion: contents incorrect; no pinpointing or correction provided by the checksum itself.Verification / Alternative check:
Contrast with error-correcting codes (ECC) or cryptographic hashes with chunking—those can help locate or correct errors; a simple checksum does not.
Why Other Options Are Wrong:
- Options A and C imply location or count information—basic checksums do not provide this.
- Option B suggests correction capability, which requires ECC, not a simple checksum.
Common Pitfalls:
- Over-relying on checksums for diagnostics; they are detection tools, not repair tools.
Final Answer:
simply indicates that the contents of the ROM are incorrect.