TWO BIT PER SYMBOL SEC/DED CODE

Abstract: A modularized error correction apparatus for correcting package errors is provided by expanding an N bit single error correction, double error detection code to cover N packages of M bits each, so that the Exclusive-OR of all M bit single bit error syndromes in any given package results in a composite syndrome which is unique for each package. See Fig. 2 for the parity matrix H and the matching matrix M for the error correction code.

Description: TWO BIT PER SYMBOL SEC/DED CODE Background of the Invention The present invention relates to error correcting codes (ECC's) for the correction of packaging errors in memory arrays. More particularly, the present inven¬ tion relates to ECCs for the correction of all failures of a single monolithic memory chip and the detection of all failures of two such chips in a memory where each of the monolithic chips contains 2 bits from a single word. From an error correction standpoint, it is highly desirable that semiconductor memory systems be organized on a bit per chip basis. In a memory with this type of organization 72 chips would be required to store a 72 bit codeword with each bit of the word on a different chip. The advantage of using one bit per chip memory organization is that a single error correction/double error detection (SEC/DED) error correcting code (ECC) can be used to correct errors when there is a total failure of a chip. A disadvantage of the one bit per chip organi¬ zation is that it consumes more electrical power than a multibit per chip organization since there are more chips needed to form an ECC codeword and each of the chips must be powered up when the memory is accessed. Therefore, ECC codes that correct single errors and detect double errors caused by both bit and package failures in a memory organized on a multibit per chip basis are highly desirable. Single error correction/double error detection (SEC/DED) codes for detecting package errors are shown in patent 4,077,028. The problem with these codes is that they do not correct for package errors. A b-adjacent code of the type described in Bossen ϋ. S. Patent No. 3,634,821 assigned to the assignee of the present invention can be adapted to correct the failure of a single multibit package and detect failure of two multibit packages by the addition of an addi- tional check symbol. The problem with using a fa- adjacent code is the large number of check bits re¬ quired to do the detecting and correcting. Three ECC check bit bytes as necessary in order to correct a one byte error and detect a two byte error u ~ ;ing such a b- adjacent code. The number of bytes n correctable by the code is equal to n = 2 + 2. Thus, for a two bit byte n = 6. Since three of the six bytes are ECC check bit bytes only three of the bytes would be data bit bytes. Another way to correct all single package errors and detect all double package errors, would be to adopt Reed-Solomon codes. Such a technique is described in an article by Kaneda and Fujiwara entitled "Single Byte Error Correcting - Double Byte Error Detecting Codes for Memory Systems" on pages 41 to 46 of the Proceedings of the 10th Fault Tolerant Computing Symposium held on October 1-3, 1980. While here an existing Reed-Solomon packaged error correcting code was expanded to generate a longer code length package error correcting code which makes efficient use of check bits. While the general catagory of this generalized code makes of efficient use of check bits, those described as being modularized are no so efficient. Therefore, it would be desirable to provide a new modularized code that makes efficient use of the number of correction bits needed to correct single package errors and detect double package errors where the package errors can be one or more bits in error. The Invention In accordance with the present invention, encoding means is provided for encoding data words into code words in which the exclusive OR of all single bit error syndromes in any convenient package results in a composite syndrome which is unique in each package. This code is a single error detection double error correction code which has been expanded to cover m bits where m is equal to the number of bits in the package. Therefore, it is an object of the present inven¬ tion to provide a new code to correct single and double bit errors and at the same time correct single package ' errors and detect double package errors. It is another object of the present invention to correct single package errors and detect double package errors with less check bits than required previously. It is a further object of the invention to provide a modularized code to correct all single and detect all double package errors. The Drawings These and other objects of the invention can best be understood by reference to the embodiment of the invention illustrated in the accompanying drawings of which: Fig. 1 is a schematic representation of a memory employing the present invention; Fig. 2 are tables showing the parity matrix H and the matching matrix M of an ECC for the memory shown in Fig. 1; Fig. 3 is a schematic representation of an ECC encoder for the memory shown in Fig. 1; Fig. 4 is a schematic for an ECC decoder for the memory shown in Fig. 1. The Preferred Embodiment In Fig. 1, a 24-bit codeword is stored in a memory on twelve monolithic chips 10 with two bits on each chip. For reasons that will be apparent hereafter, eight are check bits and sixteen are data bits. If the data bits on each chip 10 are considered to be a single symbol the codeword is made up of 12 symbols. In accordance with the present invention each symbol as assumed to be a single bit and a SEC/DED error cor¬ recting code is generated based on that assumption. Consider the arrangement of putting three iden¬ tical objects into R pockets. There are K/2 possible arrangements where = R» (R-l) • (R-2)/3 data symbols. For each of such arrangement, we.form an R-component column vector V according to the following rules: V contains A r s at positions corresponding to empty pockets and V contains B's at positions corresponding to pockets that contain the objects. For example, R=4, K=8, we have the following four column vectors: A B B B B A B B B B A B B B B A Thus, we can form K/2 R-component vectors that contain A's and B's. Some of the vectors are cyclic shifts of other vectors. We can group these vectors into equivalent classes so that vectors in each class are cyclic shifts of a class representative. Let VI be a representative of an equivalent class. We form a vector V2 by substituting the three B's of VI in sequential order by B, C and D. Now we generate a set of vectors by cyclic shifting V2 as many times as the number of vectors in the equivalent class that contains VI. There are K/2 vectors that can be generated from this procedure. Combing the set of vectors with A and B components only and the derived set of vectors with A, B, C and D components, we have K column vectors. Let us call the matrix formed P. For R=4 we have P = A A B D B C B B B B A A B D B C B C B B A A B D B D B C B B A A We now substitute the letters A, B, C and D in P with the following matrices: ^Λ'ΛTl The matrix P becomes 8 x 16 binary matrix. Concatenating the binary matrix P with an identity matrix of order 2R, we have the parity check matrix H of Fig. 2. It can be proved that the code constructed has a minimum distance of 4 over GF(4), and thus it can correct single symbol errors and detect double symbol errors, where a symbol consists of 2 bits. In the parity matrix H of Fig. 2, each column represents one bit of the code word. The vertical lines between each two columns represent a package or chip boundary. That is, each two bits in the 24 bit code word are on a different chip as shown in Fig. 1. The binary ones in each of the eight rows in the matrix M show which bits are exclusive ORed together by an encoder to generate one of the eight check bits stored with the 16 data bits. For instance, it can be seen from the top row of the matrix that data bits 1, 3, 9, 11, 12, 13 and 16 in the word are exclusive ORed together to generate the first check bit. The matching matrix M in Fig. 2 shows the syn¬ dromes generated during decoding. If there is no error the syndrome will be a string of eight 0's shown in the first column of the matrix. If there are correctable or uncorrectable errors one or more of the syndromes will be one. Each column containing l's in the matching matrix M is a syndrome pattern for a single error in one of the bit positions or is a syndrome pattern for a single package failure. For instance, the first of the three columns between the first two vertical lines of the matching matrix M shows the syndromes when a single error has occurred in the first bit of the word, the second column is the syndrome for a single error located in the second bit of the word and the third column which is the exclusive OR of the syndromes of -" rϊE i OMPI wiFO the first two columns is the syndrome pattern for the failure of the package containing the first two bits in the word. As shown in Fig. 3 a correctional exclusive OR encoding tree 12 is used to generate the parity bits stored in the memory of Fig. 1. The encoding tree is configured in accordance with the parity matrix H of Fig. 2. For instance, the data in the first bit of chip 9 is the exclusive-OR of the data in the first bits of chips 1, 2, 5, 6, 7 and the second bit of chips 6 and 8. If 2-way exclusive-OR gates are used, each check bit is generated using 6 exclusive-OR gates and 3 levels of logic delay. In Fig. 4, the eight bit output of the syndrome generator 14 is logically the exclusive-OR of the 24 data and check bits read out of the memory 10 shown in Fig. 1. The syndrome decoder 16 is similar to the one shown in Bossen U. S. Patent application Serial No. 103,633,- filed on December 14, 1979 and entitled "Double Error Correction Using a Single Error Cor¬ recting Code". The decoder 16 is a 37 word associative storage with each of the syndrome bit patterns for a single bit or package error plus the syndrome bit pattern of an errorless word stored at a different word location. Stored along with each syndrome is a bit number identifying the position of the bit or bits in error in binary sequence. When an interrogation of the table 16 results in a match condition the stored syndrome and the 6 bit binary number identifying the bit position in error are read from the associative store. OMPI Assume that the syndrome generator 16 produces a syndrome of all zeros, or in other words, a syndrome which indicates no bits in the accessed word are in error. Stored along with the syndrome in the asso- ciative store with the all zero syndrome would be a string of 6 additional zeros indicating that there is no error. This string of 6 zeros is fed to decoder 18 which then sends a no error signal (NE) to the gate control circuitry 20. This control circuitry 20 - generates a gate signal for gate 22 allowing the error free data word stored in register 22 to be transmitted. Again, assume that the syndrome generator generates a syndrome S. that would indicate that a single bit error has occurred at bit location i. Since all the syn- dromes identifying single bit errors are stored in the table 16, interrogating with the syndrome S. results in the location of the bit i in 6 bit binary notation being read out of the associative store 16. The 6 bit binary location of the bit in error is fed to the decoder 18 which decodes it into the one of the 24 locations of the bit inverter 24 for inverting bit i in the word stored in the output register 22. After bit i has been inverted, the controller generates the signal for gate 21 to transmit the corrected word to the processor. If the syndrome generator 14 generates a package error syndrome Spi, interogating the asso¬ ciative store results in the location of the package pi in 6 bit binary notation being read out of the asso¬ ciative store 16. The six bit binary location of the bit in error is fed to decoder 18 which decodes into the two of the 24 locations of the bit inverter 24 for inverting bits i and i + 1 making up the package in error. The inverter inverts these two bits and the corrected data word is transmitted to the processor. Finally, assume now that a syndrome generator 18 generates a syndrome S that does not match with any of the 36 syndromes stored in the associative store 16. Associative store 16 then transmits a 6 bit no compare signal to decoder 18 which transmits an uncorrectable error signal UE to the gate control circuitry 20. Upon receipt of a no compare signal the gate controls flag the appropriate processor that the UE condition exists. Described above is one embodiment of my invention. Changes can be made in the embodiment. For instance, other codes can be developed using the described techniques with different values of R and K. The following is a table of the parameters of some of the possible codes: No. of Data Bits No. of Check Bits 16 8 40 10 80 12 It can be seen that for 2R check bits, a code in this family can have up to 2K data bits where K = R» (R-l) ■*- (R-2)/3. For applications where the number of data bits is less than 2K, the code can always be shortened. This is done by deleting as many column vectors in P as required to yield the exact number of data bits. For example, to construct a code with 32 data bits and 10 check bits, 8 binary columns out of 40 possible columns can be detected from the original parity check matrix. OMPI Therefore, it should be understood that many modifications and changes can be made in the illus¬ trated embodiment without departing from the spirit and scope of the invention as represented in the attached claims. OMPI V IPO

Claims: Claims Having thus described my invention, what I claim as new, and desire to secure by Letters Patent is: 1. In an error correction system having a single bit error correction code and double error de¬ tection code for a memory in which bits of memory data words are divided into N packages of M bits per package, modularized error correction apparatus for correcting package errors including: encoder means for encoding data words into code words in accordance with an N bit single error correction double error detection code that was expanded to cover N packages of M bits each so that the Exclusive-OR of all M single bit error syndromes in any given package N results in a composite syndrome which is unique for each package, decoder means including means comparing each single bit error syndrome with all possible single bit error syndromes and all possible composite syndromes to determine the location of any single bit error any single package failure and detect all double bit errors and all double package failures. OMPI 2. The error correction apparatus of Claim 1 with MR correction bits protecting MK data bits where: N = K + R K = R-(R-l). (R-2)/3. 3. The error correction apparatus of Claim 2 where M — 2.

Inventors: CHEN CHIN-LONG, CHEN, CHIN-LONG
Applicants: IBM, INTERNATIONAL BUSINESS MACHINES CORPORATION
Application year: 1981
Main classification: G06F11
IPC codes: G06F11, G11C29