Claims
- 1. A method of checking for errors in an ECC protected mechanism of a data processing system, comprising the steps of:
applying data with a number of bits N to an error correction code (ECC) matrix to yield an error detection syndrome, the ECC matrix having a plurality of rows and columns wherein a given column corresponds to a respective one of the data bits, selected bits being set in the ECC matrix along each column and each row such that encoding for the ECC matrix allows N-bit error correction and (N−1)-bit error detection; and resolving the error detection syndrome to detect at least one error in data as read from a location of the data processing system.
- 2. The method of claim 1, further comprising the step of selectively setting the bits in the ECC matrix such that an odd number of bits are set in each row thereof.
- 3. The method of claim 1 wherein the encoding for the ECC matrix further allows single-bit error detection, and said resolving step detects one and only one error in the data.
- 4. The method of claim 1 wherein said resolving step detects multiple uncorrectable errors.
- 5. The method of claim 1, further comprising the steps of:
using the error detecting syndrome to yield corrected data; inverting the corrected data as it is written back to the location of the data processing system; and setting an inversion bit to indicate that the data as currently stored is inverted.
- 6. The method of claim 5 wherein the inversion bit is part of the data and one of the columns in the ECC matrix corresponds to the inversion bit, and further comprising the step of setting each bit in the column of the ECC matrix which corresponds to the inversion bit.
- 7. The method of claim 6 wherein said resolving step detects a correctable error on the inversion bit.
- 8. An error correction code checker comprising:
an electronic error correction code (ECC) matrix adapted to check data having a number of bits N and yield an error detection syndrome for the data, said ECC matrix having a plurality of rows and columns wherein a given column corresponds to a respective one of the data bits, selected bits being set in said ECC matrix along each column and each row such that encoding for said ECC matrix allows N-bit error correction and (N−1)-bit error detection.
- 9. The error correction code checker of claim 8 further comprising a syndrome decoder which resolves the error detection syndrome to determine whether the data contains any errors.
- 10. The error correction code checker of claim 9 wherein the syndrome decoder further corrects any single error found in the data.
- 11. The error correction code checker of claim 8 wherein said bits in said ECC matrix are set such that an odd number of bits are set in each row thereof.
- 12. The error correction code checker of claim 8 wherein the encoding for said ECC matrix further allows single-bit error detection.
- 13. The error correction code checker of claim 8 wherein one of said columns of said ECC matrix corresponds to an inversion bit which indicates a polarity of the data.
- 14. The error correction code checker of claim 13 wherein each bit in said column corresponding to the inversion bit is set.
- 15. A computer system comprising:
means for processing program instructions; and a memory device connected to said processing means, said memory device including an error correction code checker having an error correction code (ECC) matrix adapted to check data having a number of bits N, to yield an error detection syndrome for the data, said ECC matrix having a plurality of rows and columns wherein a given column corresponds to a respective one of the data bits, selected bits being set in said ECC matrix along each column and each row such that encoding for said ECC matrix allows N-bit error correction and (N−1)-bit error detection.
- 16. The computer system of claim 15 wherein said memory device further includes a syndrome decoder which resolves the error detection syndrome to determine whether the data contains any errors.
- 17. The computer system of claim 16 wherein the syndrome decoder further corrects any single error found in the data.
- 18. The computer system of claim 15 wherein said bits in said ECC matrix are set such that an odd number of bits are set in each row thereof.
- 19. The computer system of claim 15 wherein the encoding for said ECC matrix further allows single-bit error detection.
- 20. The computer system of claim 15 wherein one of said columns of said ECC matrix corresponds to an inversion bit which indicates a polarity of the data.
- 21. The computer system of claim 20 wherein each bit in said column corresponding to the inversion bit is set.
CROSS-REFERENCE TO RELATED APPLICATION
[0001] The present application is related to copending U.S. patent application Ser. No. ______ entitled “CACHE DIRECTORY ARRAY RECOVERY MECHANISM TO SUPPORT SPECIAL ECC STUCK BIT MATRIX” filed contemporaneously herewith on or about Apr. 8, 2003, attorney docket number AUS920030121US1.