GB2550929A - An apparatus and method for generating an error code for a block comprising a plurality of data bits and a plurality of address bits - Google Patents

An apparatus and method for generating an error code for a block comprising a plurality of data bits and a plurality of address bits Download PDF

Info

Publication number
GB2550929A
GB2550929A GB1609538.2A GB201609538A GB2550929A GB 2550929 A GB2550929 A GB 2550929A GB 201609538 A GB201609538 A GB 201609538A GB 2550929 A GB2550929 A GB 2550929A
Authority
GB
United Kingdom
Prior art keywords
mask
bits
error code
block
bit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
GB1609538.2A
Other versions
GB201609538D0 (en
Inventor
Yakub Johar Kauser
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ARM Ltd
Original Assignee
ARM Ltd
Advanced Risc Machines Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ARM Ltd, Advanced Risc Machines Ltd filed Critical ARM Ltd
Priority to GB1609538.2A priority Critical patent/GB2550929A/en
Publication of GB201609538D0 publication Critical patent/GB201609538D0/en
Priority to EP17169702.2A priority patent/EP3260980B1/en
Priority to US15/587,429 priority patent/US10084478B2/en
Priority to KR1020170063255A priority patent/KR102292212B1/en
Priority to JP2017102013A priority patent/JP6982982B2/en
Priority to CN201710374844.6A priority patent/CN107436821B/en
Publication of GB2550929A publication Critical patent/GB2550929A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1008Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • H03M13/03Error detection or forward error correction by redundancy in data representation, i.e. code words containing more digits than the source words
    • H03M13/05Error detection or forward error correction by redundancy in data representation, i.e. code words containing more digits than the source words using block codes, i.e. a predetermined number of check bits joined to a predetermined number of information bits
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1008Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
    • G06F11/1012Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices using codes or arrangements adapted for a specific type of error
    • G06F11/1016Error in accessing a memory location, i.e. addressing error
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1008Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
    • G06F11/1012Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices using codes or arrangements adapted for a specific type of error
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/073Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a memory management context, e.g. virtual memory or cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1008Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
    • G06F11/1048Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices using arrangements adapted for a specific error detection or correction feature
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • H03M13/29Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes combining two or more codes or code structures, e.g. product codes, generalised product codes, concatenated codes, inner and outer codes
    • H03M13/2906Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes combining two or more codes or code structures, e.g. product codes, generalised product codes, concatenated codes, inner and outer codes using block codes
    • H03M13/2909Product codes
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • H03M13/61Aspects and characteristics of methods and arrangements for error correction or error detection, not provided for otherwise
    • H03M13/615Use of computational or mathematical techniques
    • H03M13/616Matrix operations, especially for generator matrices or check matrices, e.g. column or row permutations
    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M13/00Coding, decoding or code conversion, for error detection or error correction; Coding theory basic assumptions; Coding bounds; Error probability evaluation methods; Channel models; Simulation or testing of codes
    • H03M13/03Error detection or forward error correction by redundancy in data representation, i.e. code words containing more digits than the source words
    • H03M13/05Error detection or forward error correction by redundancy in data representation, i.e. code words containing more digits than the source words using block codes, i.e. a predetermined number of check bits joined to a predetermined number of information bits
    • H03M13/13Linear codes
    • H03M13/19Single error correction without using particular properties of the cyclic codes, e.g. Hamming codes, extended or generalised Hamming codes

Abstract

This application aims to overcome the problem of detecting and correcting a stuck at zero or one error when data is read from memory. It works by first determining the size of the mask array that is to be used to generate the error correction code, or ECC. This is based on the ECC scheme that is to be used, the size of the chunk, which is the data bits and the address bits, and the hamming distance 50. After this it will determine a number of rows that are to be constrained and subject to special rules 55. These rules are such that when all of the data bits of a given block have the same value, i.e. are stuck at one or zero, then the error code will be generated using a mask array with at least one check bit with a different value to the data bits regardless of the value of the address bits.

Description

AN APPARATUS AND METHOD FOR GENERATING AN ERROR CODE FOR A BLOCK COMPRISING A PLURALITY OF DATA BITS AND A PLURALITY OF ADDRESS BITS
The present technique relates to mechanisms for generating an error code that can be stored with associated data in memory to enable later detection and/or correction of errors. For example, such an error code can be used to detect situations where the associated data has been corrupted, due for example to a soft or a hard error.
Dependent on the error code scheme employed, such error codes may only allow errors in a certain number of bits to be detected, but not corrected, or alternatively may allow errors in a certain number of bits to be detected, but also enable errors in a reduced number of bits to be corrected. Generally, whether the error codes solely provide for detection of errors, or also provide for correction of errors, those error codes are referred to as error correction codes (ECCs).
In modern data processing systems there may be a number of requirements for the types of errors that need to be detected and/or corrected. For instance, considering a data value to be stored within memory (herein such a data value also being referred to as a datum), the error code generated for storing in association with that datum may not only be required to enable errors in the datum to be detected and/or corrected. For example, it may also be desired to use the error code to detect situations where the memory output obtained during a read operation is stuck at all zeros or stuck at all ones.
However, in addition, it may be desirable to use the error code to seek to detect faults in the memory address decoding operation, which may result in the contents returned from the memory having the correct integrity, but the wrong address having been accessed. To achieve such memory address decoding protection, it is possible to use both the datum and the address when generating the error code stored in memory. Then, when the datum is read from memory, the read address and datum are used to generate another error code that can be checked against the error code read from memory in association with the datum.
Whilst such an approach can provide an effective mechanism for detecting faults in the memory address decoding, it compromises the ability to detect situations where the memory output is stuck at all zeros or stuck at all ones, due to the fact that the address is used in combination with the datum when generating the code, and the address can have any arbitrary value relative to the datum.
Accordingly, it would be desirable to provide an improved mechanism for generating an error code for a block (also referred to herein as a chunk) comprising a plurality of data bits and a plurality of address bits, that allows memory address decode faults to be detected whilst also allowing detection of stuck at zero or stuck at one faults in a memory’s output.
In a first example configuration, there is provided an apparatus, comprising: block generation circuitry to generate a block comprising a plurality of data bits and a plurality of address bits; and error code generation circuitry to receive said block and a mask array comprising a plurality of mask rows, and to apply an error code generation algorithm to generate an error code for said block, said error code comprising a plurality of check bits where each check bit is determined using said block and a corresponding mask row of said mask array; wherein each mask row comprises a plurality of mask bits, each mask bit being associated with a corresponding bit of said block, and at least one mask row has its mask bit values constrained so as to ensure that when all of the data bits of the block have the same value, the error code generated by the error code generation circuitry has at least one check bit having a different value to the value of the data bits irrespective of the value of the address bits.
In another example configuration, there is provided write protection circuitry to generate an error code to be stored in association with write data at a specified memory address of a storage device, comprising an apparatus as per the first example configuration to generate the error code from the write data and the specified memory address, wherein the plurality of data bits of the block are formed from the write data and the plurality of address bits of the block are formed from the specified memory address.
In a further example configuration, there is provided read protection circuitry to perform an error check process on read data obtained from a specified memory address in a storage device, comprising: an apparatus as per the first example configuration to generate an error code from the read data and the specified memory address, wherein the plurality of data bits of the block are formed from the read data and the plurality of address bits of the block are formed from the specified memory address; and check circuitry to compare the generated error code with an error code stored in the storage device in association with the read data in order to detect an error condition when the generated error code differs from the stored error code.
In a still further example configuration, there is provided a computer-implemented method of generating a mask array comprising: determining a number of mask rows of the mask array so that one mask row is provided for each check bit of an error code to be generated using said mask array; determining a number of mask bits in each mask row dependent on a number of bits in a block for which the error code is to be generated, the block comprising a plurality of data bits and a plurality of address bits; and for at least one of the mask rows, executing on processing circuitry a mask bit generating process to constrain the mask bit values of that mask row so as to ensure that when all of the data bits of the block have the same value, the error code generated for that block using the mask array has at least one check bit having a different value to the value of the data bits irrespective of the value of the address bits.
In an additional example configuration, there is provided a storage medium containing a mask array generated in accordance with the computer-implemented method of the above example configuration.
The present technique will be described further, by way of example only, with reference to embodiments thereof as illustrated in the accompanying drawings, in which:
Figure 1 illustrates an ECC mask array generated in accordance with a known scheme;
Figure 2 is a flow diagram illustrating a method of generating an ECC mask array in accordance with one embodiment;
Figure 3 illustrates an ECC mask array generated in accordance with the technique of one embodiment;
Figure 4 is a flow diagram illustrating an ECC computation algorithm performed by ECC generation circuitry in accordance with one embodiment in order to generate an error code;
Figures 5A and 5B illustrate further examples of mask arrays that may be generated using the technique of the described embodiments;
Figure 6 is a table illustrating the minimum number of rows within the mask array that need to be subjected to the specific row generation rules of the described embodiments, for a number of different types of error code scheme that may be employed;
Figure 7 is a block diagram of an ECC generator circuitry in accordance with one embodiment;
Figure 8 is a block diagram schematically illustrating both write protection circuitry and read protection circuitry in accordance with one embodiment; and
Figure 9 schematically illustrates a general purpose computer of the type that can be used to implement the mask generation technique of the described embodiments.
Before discussing the embodiments with reference to the accompanying figures, the following description of embodiments is provided.
In one embodiment, an apparatus is provided that has block generation circuitry to generate a block comprising a plurality of data bits and a plurality of address bits, and error code generation circuitry to generate an error code for that block. In particular, the error code generation circuitry has access to a mask array comprising a plurality of mask rows and, using both the mask array and the block, then applies an error code generation algorithm to generate an error code for the block. The error code comprises a plurality of check bits where each check bit is determined using the block and a corresponding mask row of the mask array.
Each mask row comprises a plurality of mask bits, where each mask bit is associated with a corresponding bit of the block. At least one mask row has its mask bit values constrained so as to ensure that when all of the data bits of the block have the same value, the error code generated by the error code generation circuitry has at least one check bit having a different value to the value of the data bits irrespective of the value of the address bits.
In accordance with the described technique, the error code is generated for a block that comprises both data bits and address bits, and as a result the error code can be used to allow memory address decode faults to be detected. However, in addition, by constraining the mask bit values in at least one of the mask rows in the manner set out above, it is possible to ensure that the data bits and the check bits of the associated error code will not all have the same value, hence ensuring that stuck at zero and stuck at one faults can be reliably detected. In particular, by the above mechanism, an error code of all zeros will not be generated when the data bits are all zeros, irrespective of the values of the address bits used when generating the error code. Similarly, an error code of all ones will not be generated when the data bits are all ones. As a result, if when performing a read operation from memory, the read data bits and associated error code check bits are either all ones or all zeros, this will indicate a stuck at one or stuck at zero error.
There are a number of ways in which the mask bit values in at least one of the mask rows can be constrained so as to ensure that the generated error code has at least one check bit with a different value to the value of the data bits irrespective of the address bits, when all of the data bits have the same value. In one embodiment, this is achieved by each mask row in said at least one mask row having its mask bit values arranged so as to cause none of the address bits of the block to be selected for use in generating the corresponding check bit. Hence, in such mask rows the address bit values are masked out so that they are not used when generating the corresponding check bit. Conversely, at least some of the address bits may be used in the other mask rows that are not subjected to the above mentioned constraints.
In one embodiment, the number of mask rows forming said at least one mask row is dependent on an error code scheme employed by the apparatus, and whether the plurality of data bits in said block is even or odd. Generally, the larger the number of data bits that are to be correctable by the error code scheme, the larger the number of mask rows that will need to be subjected to the above mentioned constraints. Further, in the described embodiments, for any particular error code scheme, one additional mask row may need to be included within the set of mask rows subjected to the above mentioned constraints, dependent on whether there are an even number or an odd number of data bits in the block.
The above described techniques can be applied to a variety of different error code schemes. However, in one embodiment the error code schemes employed are based on Hamming codes. When employing such Hamming codes, the number of mask rows forming said at least one mask row is dependent on the Hamming distance of the particular Hamming code, as well as being dependent on whether the plurality of data bits in the block is even or odd. As will be understood by those skilled in the art, the Hamming distance represents the minimal number of bit changes needed to go from any one valid code word to any other valid code word. The Hamming distance increases when increasing the number of bits to be correctable by the error code scheme.
In one embodiment, the number of mask rows NO forming said at least one mask row is given by the equation: NO = 1 + C + [[((1+C)%2) != (Dt%2)] & (C!=0)] where C is the number of bits correctable by the error code scheme, Dt is the number of data bits in said plurality of data bits, and % denotes a modulo operator.
In one embodiment, each mask row in said at least one mask row has its mask bit values arranged so as to cause an odd number of data bits within the block to be selected for use in generating the corresponding check bit. This requirement may be used in combination with the error code generation algorithm to ensure that when the data bits are all the same, the check bit produced has a value different to those data bits.
Further, in one embodiment, when said at least one mask row comprises multiple mask rows, the mask bit values in said multiple mask rows are arranged to ensure that different data bits within the block are selected by each of those multiple mask rows for use in generating the corresponding check bit.
Furthermore, in one embodiment, when said at least one mask row comprises multiple mask rows, the mask bit values in said multiple mask rows are arranged to further ensure that each data bit within said block is selected by one of the multiple mask rows for use in generating the corresponding check bit.
In one embodiment, there will be multiple mask rows whenever the error code scheme allows not only for detection of errors, but also correction of at least one error. As will be discussed in more detail later with reference to Figure 2, the above constraints on the multiple mask rows ensure that a stuck at zero or stuck at one error is not incorrectly interpreted as a single bit correctable error.
In one embodiment, the error code generation algorithm used by the error code generation circuitry is adapted to take into account the form of the mask array as discussed above. In particular, in one embodiment the error code generation algorithm comprises a main process to generate a first check bit from the block and a corresponding mask row, and an additional process selectively applied to invert the first check bit to produce a second check bit. The error code generated by the error code generation circuitry then comprises the second check bit generated using any mask rows forming said at least one mask row, and the first check bit generated using each of the remaining mask rows. Hence, by such an approach, when generating the check bit associated with any of the mask rows that have been subjected to the above-mentioned mask bit value constraints, a final flipping of the value of the check bit is performed prior to it being used within the error code.
In particular, as mentioned earlier, each mask row in said at least one mask row has its mask bit values arranged so as to cause an odd number of the data bits within the block to be selected for use in generating the corresponding check bit. By ensuring that an odd number of the data bits are used, and given that the address bits are not used when generating the check bit for any such mask row, this can be used to ensure in one embodiment that when all of those data bits have the same value, the initial check bit produced by the main process will also be of the same value as those data bits, and then the additional process will invert that check bit prior to it being used in the error code. This ensure that at least that finally produced check bit for the error code will have a different value to the data bits. Hence, this ensures that when the data is all zeros, at least one check bit will be non-zero, and similarly if the data is all ones at least one check bit will be zero.
The main process can take a variety of forms, but in one embodiment comprises using a mask row to select a subset of the bits forming the block, and then performing an XOR reduce operation on the selected subset of the bits to produce an associated first check bit. Furthermore, in one embodiment the additional process comprises an XOR operation to invert the value of the first check bit.
The above described apparatus can be used in a variety of situations. For example, in one embodiment write protection circuitry is provided to generate an error code to be stored in association with write data at a specified memory address of a storage device. That write protection circuitry may be arranged to include the above described apparatus in order to generate the error code from the write data and the specified memory address. In such an embodiment, the plurality of data bits of the block are formed from the write data and the plurality of address bits of the block are formed from the specified memory address. In one embodiment, all bits of the write data and all bits of the memory address are used when constructing the block.
In another example, the above described apparatus can be used in read protection circuitry that is employed to perform an error check process on read data obtained from a specified memory address in a storage device. The read protection circuitry will include the above-mentioned apparatus in order to generate an error code from the read data and the specified memory address. The plurality of data bits of the block are formed from the read data and the plurality of address bits of the block are formed from the specified memory address. Further, the read protection circuitry has check circuitry to compare the generated error code with an error code stored in the storage device in association with the read data, in order to detect an error condition when the generated error code differs from the stored error code.
In another example embodiment, a computer-implemented method of generating a mask array is provided, that comprises determining a number of mask rows of the mask array so that one mask row is provided for each check bit of an error code to be generated using said mask array, and determining a number of mask bits in each mask row dependent on a number of bits in a block for which the error code is to be generated. The block comprises a plurality of data bits and a plurality of address bits. For at least one of the mask rows, the method comprises executing on processing circuitry a mask bit generating process to constrain the mask bit values of that mask row so as to ensure that when all of the data bits of the block have the same value, the error code generated for that block using the mask array has at least one check bit having a different value to the value of the data bits irrespective of the value of the address bits.
In one embodiment, for all remaining mask rows other than said at least one mask row, the mask bit generating process employs default mask generation rules to determine the mask bits values. Hence, whilst the earlier-mentioned constraints are used when determining the mask bit values for a certain number of the mask rows of the mask array, the mask bit values for all of the remaining parts of the mask array are completed using default rules. There are a number of known techniques for calculating mask bit values for a mask array that can be used as the default mask generation rules for populating the remaining portions of the mask array that are not subjected to the specific constraints mentioned earlier. In one example, the default mask generation rules comprise column-based Hamming rules.
Particular embodiments will now be described with reference to the Figures.
Figure 1 is a table showing an ECC mask array 10 that may be produced in accordance with a known technique for a double error detection (DED) error code scheme, for which the Hamming distance is three. In this example, it is assumed that the address consists of four bits and the data consists of eight bits, and that the data and address bits are concatenated in order to form a block (also referred to herein as a chunk) which is then used as an input to an error code generation algorithm. Given the fact that there are hence 12 bits within the chunk to be protected, and given the use of the DED scheme with a Hamming distance of three, this requires five check bits CO to C4 to form the error code. As shown in Figure 1, each mask row within the mask array is associated with one of those check bits.
In accordance with one error code generation technique, for each check bit to be generated, the associated mask row is used as a mask so as to select the data and address bits associated with a logic one value in the mask, and to discard the data and address bits associated with a logic zero value in the mask (it will be appreciated that in an alternative embodiment the meaning of the logic one and logic zero values in the mask could be reversed). The data and address bits that are selected based on the mask row values are then subjected to an XOR reduce operation in order to produce the check bit value.
Once the check code has been generated using the above approach, then that check code may be stored in memory in association with the data bits (the data bits also being referred to herein as the datum). When data is later read from the memory, a check is performed by first re-generating a check code from the read datum and the address presented to the memory, using the same mask array as was used to generate the original check code. The generated check code is then compared with the original check code as read from memory, for example by performing an XOR operation. If the two check codes differ, then this provide an indication of an error.
As mentioned earlier, such error codes can be used not only to detect and/or correct errors in the datum when the datum is read from memory, but also to detect address decode faults where the contents returned from memory have the correct integrity but the wrong address has been accessed. This is possible due to the factoring of the address bits into the error code generation mechanism. It is also desirable to be able to detect situations where the complete memory output is stuck at zero or stuck at one, and this can be problematic when using the ECC scheme to also detect address decode errors, as will be illustrated by way of example below. In particular, it is possible for an all zeros check code to be legitimately generated using the mask array of Figure 1 when the datum bits are all zero, dependent on the address bits. Similarly, an all ones check code may be generated when the datum bits are all ones. In that scenario, it is not possible to detect a stuck at zeros or stuck at ones fault, since it could legitimately be expected that the contents read from memory would be all zeros or all ones. Consider for example a situation where the address is 4’bl111 (i.e. all ones) and the data is 8’b0000_0000 (i.e. all zeros). When using the mask array of Figure 1, the check code generated for the above combination of address and data is 5’bOOOOO (even though the data is all zeros). Hence, when using the mask array of Figure 1, it is not possible to detect a stuck at zeros fault when reading the datum and check code back from memory.
It might be considered that one way to address this problem would be to selectively include XNOR functions on some of the rows of the mask array, which could be used to basically flip a zero to a one. However, when supporting address decoder protection by using the address bits, the address can take any value (with any possible value of data) and it has been found that some combinations of address and data can cancel out the XNOR functionality (or XOR in some rows), again resulting in an all zeros check code.
The embodiments described with reference to the remaining figures aim to alleviate this problem so that an ECC scheme can be used to simultaneously support both address decode fault detection and stuck at zeros or stuck at ones detection.
Figure 2 is a flow diagram illustrating an ECC mask generation method that may be performed in accordance with one embodiment in order to generate a mask array.
At step 50, the required size of the mask array is determined. From the earlier discussion of Figure 1, it will be appreciated that the size of the mask array is dependent on the chunk size (consisting of the data bits and the address bits) and the ECC scheme employed, and hence the applicable Hamming distance. In particular, the chunk size will affect the number of columns in the mask array, and the chunk size in combination with the Hamming distance will determine the number of check bits required in the ECC code, and hence the number of mask rows required within the mask array.
Following step 50, then at step 55 the number of mask rows that are to be subjected to special row generation rules (to be described in more detail below) are determined. The number of mask rows required to be subjected to the special row generation rules will be dependent on the ECC scheme with which the mask array is to be used, and whether the datum has an even number or an odd number of bits. In particular, in one embodiment the number of mask rows can be determined by the equation:
where C is the number of bits correctable by the error code scheme, Dt is the number of data bits in said plurality of data bits, and % denotes a modulo operator.
As will be apparent from the above equation, if the error code scheme only supports detection of errors in a number of bits, but does not support any form of correction of those errors, then the variable “C” will be equal to zero. As a result, the above equation indicates that the number of mask rows to be subjected to the special row generation rules will be one in instances where only error detection is supported. However, if error correction is supported, then at least two mask rows will need to be subjected to the special row generation rules. Furthermore, an additional row may be required dependent on whether the number of bits in the datum is even or odd. For example, if one bit is correctable by the error code scheme, the above equation indicates that the number of mask rows that need to be subjected to the special row generation rules is two provided that the number of datum bits is even, or is three if the number of datum bits is odd.
Further, the same equation indicates that when the number of bits that are correctable is two, then three mask rows will need to be subjected to the special row generation rules if the number of datum bits is odd, but otherwise four mask rows will need to be subjected to those rules.
Following the determination performed at step 55, then for each of those mask rows that are to be subjected to the special row generation rules, at step 60 the bits of each such mask row associated with the address bits of the chunk are set to a value which prevents those address bits from influencing the corresponding check bit of the ECC code. Using the earlier discussed example where a logic one value in a mask row causes the corresponding data or address bit to be selected and a logic zero value causes the corresponding data bit or address bit to be masked, it will be appreciated that this requirement can be met by setting to a logic zero value all of the mask row bits that are associated with the address bits. This ensures that, irrespective of the address bit values, those address bits are not selected for any of the mask rows determined at step 55, and hence those address bits will not influence the value of the associated check bit. This hence prevents the address bit values from potentially interfering with any steps taken to ensure that an all zeros datum will not result in an all zeros check code (and similarly an all ones datum will not result in an all ones check code).
At step 65, for each of the mask rows to be subjected to the row generation rules, the bits of the mask row associated with the datum have their values arranged so that an odd number of data bits will be selected when that mask row is used. As will be discussed in more detail later with reference to the ECC computation algorithm used, this requirement can be used in combination with the ECC computation algorithm to ensure that when the datum bits are all zero, a check bit of one is produced, or when the datum bits are all one a check bit of zero is produced.
In situations where the error code scheme allows correction of at least one bit when an error is detected, then as mentioned earlier there will be multiple mask rows that are subjected to the special row generation rules. In such situations, additional steps need to be taken to ensure that the error correction scheme will not accidentally try to correct a stuck at zero or stuck at one fault. Considering the stuck at zero fault issue, if the datum had a single bit at a logic one value and all of the other bits at a logic zero value, it needs to be ensured that an all zeros error code cannot be generated, since in that instance if the datum and ECC code as subsequently read back from memory was all zeros, this could be detected as a single bit correctable error rather than a stuck at zero fault. To ensure that this does not occur, in one embodiment additional constraints are placed on the multiple mask rows that are subjected to the special row generation rules to ensure that an all zeros check code cannot be generated in situations where a single bit of the datum is non-zero. Similarly, the same constraints will ensure that an all ones check code cannot be produced when only a single bit of the datum is zero.
In particular, as identified in step 65, if multiple mask rows are subjected to the row generation rules, then it is ensured that the mask bits that cause the datum bits to be selected are complementary for the multiple mask rows. This hence ensures that different data bits within the block are selected by each of those multiple mask rows for use in generating the corresponding check bit. Considering by way of example the earlier case where the datum had a single bit set to one and all of the other bits were zero, the single bit set to one will only be selected by one of the multiple mask rows and not by the others. This will ensure that those multiple mask rows do not produce the same check bit, and hence will ensure that the error code has at least one bit set to one. As a result, this will cause the combination of the datum and error code that is then written to memory to have at least two logic one values in it. Accordingly, if when that datum and error code is read back from memory, it is all zeros, this can be reliably interpreted as a stuck at zeros fault.
Furthermore, when multiple of the mask rows are subjected to the row generation rules discussed above, it is also ensured that all of the data bits of the datum are covered by the selecting mask bits specified by the multiple mask rows. Hence, each data bit within the block is selected by one of the multiple mask rows for use in generating the corresponding check bit, thus ensuring that all of the data bits are taken into account by the combination of the multiple mask rows that have their mask bit values constrained using the above identified rules.
Following step 65, at step 70 the remaining mask bits of the mask array are computed. These remaining mask bits are not constrained using the above described techniques, and accordingly can be set using any pre-existing mask generation rules. Hence, for example, column-based Hamming rules may be used to complete these remaining bits of the mask array.
Figure 3 shows an ECC mask array 100 that may be generated using the technique of Figure 2 for a chunk identical to the chunk discussed earlier with reference to Figure 1. Hence, again, the chunk has eight data bits and four address bits, and it is assumed that the DED error code scheme is used, hence resulting in the requirement for five check bits in the check code. In this example, the first mask row 105 of the mask array 100 is subjected to the special row generation rules discussed with reference to Figure 2. In particular, since the error code scheme only supports error detection, and no error correction, only a single mask row needs to be subjected to those rules. As can be seen, for the mask row 105, all of the mask bits associated with the address bits have their values set to zero, so that the address bits have no influence on the generation of the check bit CO. As also shown, the mask row 105 has its mask bits set so as to select an odd number of bits from the datum, hence meeting the requirement of step 65. As will be discussed in more detail with reference to Figure 4 when describing the ECC computation algorithm, a computation selectively performed by the ECC computation algorithm effectively adds an extra column 110 to the ECC mask, where that column has a logic one value for each mask row that is subjected to the special row generation rules, and a logic zero value for all of the other mask rows.
Figure 4 is a flow diagram illustrating an ECC computation algorithm that may be performed within ECC computation circuitry of an ECC generator in accordance with one embodiment. The equation of the ECC computation algorithm is shown at the top of Figure 4. As will be apparent from that equation, for each check bit, the corresponding mask row is used to select a subset of the data and address bits, which are then subjected to an XOR reduce operation. The resultant value is then selectively subjected to a further XOR reduce operation with a logic one value dependent on the check bit (and hence mask row) being processed. This is discussed further with reference to the flow diagram of Figure 4.
At step 150, a parameter i is set equal to zero, whereafter at step 155 the mask row i is used to select the data and address bits that are then to be used for the check bit generation. Hence, using the earlier example, for every mask row bit that is set to a logic one value, the corresponding data or address bit is selected for use in the check bit generation process.
At step 160, an XOR reduce operation is then performed on the selected data and address bits in order to produce a check bit value. However, another check is performed before deciding whether to use that check bit directly within the check code, or whether to subject that check bit to a further manipulation before producing the final check bit. In particular, at step 165 it is determined whether the mask row i is one of the special rows, i.e. one of the rows that has been subjected to the row generation rules discussed with reference to steps 60 and 65 of Figure 2. If so, then the process proceeds to step 170, where a final XOR reduce operation is performed using the check bit output at step 160, and a logic one value. It will be appreciated that this hence causes the value of the check bit output from step 160 to be flipped. The resultant check bit is then buffered at step 175, or the check bit output from step 160 is directly buffered at step 175 if the mask row under consideration is not one of the special rows.
Thereafter, at step 180, it is determined whether the parameter i is less than a maximum value, and if so the parameter i is incremented, and the process returns to step 155. However, once at step 180 it is determined that all of the mask rows have been processed, and hence the parameter i is equal to i max, then the process proceeds to step 190 where all of the check bits are output as the ECC code. It will be appreciated that whilst the process of Figure 4 has been shown as an iterative process, in an alternative embodiment each of the check bits could be generated in parallel.
Returning to Figure 3, it will hence be seen that the performance of steps 165,170 in Figure 4 effectively adds the extra column 110 to the mask array of Figure 3 by causing a further XOR operation with a logic one value to be performed for the mask row 105 in order to flip the check bit produced at step 160 that mask row, but causing no such flipping to be performed for the check bits produced using all of the other mask rows. In one embodiment, the prevention of a flip for the check bits produced by the other mask rows can be achieved by implementing an XOR operation with a logic zero value, hence causing no change in the state, or alternatively the final XOR operation can be bypassed altogether as per the flow shown in Figure 4.
Considering the application of the ECC computation algorithm of Figure 4 when using the mask array of Figure 3, the following properties are observed. Firstly, consider the case when all of the data bits of the datum are zero. When considering the first row 105 of the mask array, this will result in a logic zero value being output as a result of the XOR reduction operation of the address (as the mask for the address is zero, so regardless of the address input, the output is zero). The first mask row 105 will also cause a logic zero to be output on the XOR reduce of the data (as the data inputs are all zeros, so regardless of the mask, the XOR reduce will output zero).
The final XOR with a logic one value resulting from performance of the step 170 will then provide a check bit that is one, so that at least one of the check bits is non-zero. This hence enables reliable detection of a stuck at zeros fault, since when the datum is all zeros a check code of all zeros is not a valid check code. Hence, if the datum and check code read back from memory are all zeros, this indicates a stuck at zeros fault.
As a second scenario, consider a situation where all of the data inputs are at a logic one value. Again, due to the logic zero values within the mask row 105 corresponding to all of the address bits, the XOR reduce of the address will result in a logic zero value. The first row 105 will output a logic one value on the XOR reduce of the data (due to the fact that the odd number of ones will result in a final reduction of one). As a result, the final XOR operation performed at step 170 will flip the logic one value in order to produce a check bit of zero, so that at least one of the check bits in the resultant check code is zero. This will hence enable a reliable detection of a stuck at one fault, since if the datum and associated error code read back from memory are all ones, this indicates a stuck at one fault (an error code of all ones not being a valid error code for a datum of all ones).
Figure 5A illustrates an ECC mask that may be generated using the mask generation method of Figure 2 for a single error correction double error detection (SECDED) scheme, for which the Hamming distance is four. Again it is assumed that the chunk is the same as before, and hence consists of eight data bits and four address bits. Based on that chunk size and the Hamming distance of four, the error code requires six check bits, and hence the mask array has six rows as shown in Figure 5A. Using the process discussed earlier with reference to Figure 2, it will be determined that two of the mask rows 205, 210 need to be subjected to the special row generation rules. Whilst these are shown as being the first two mask rows within the array, it will be appreciated that it does not matter which two mask rows are chosen. As shown in Figure 5A, each of the mask rows 205, 210 has its mask bits associated with the address bits set equal to zero, so that the address bits cannot influence the value of the check bits CO and Cl. Further, each of the mask rows 205, 210 has an odd number of mask row bits set to one in the locations corresponding to the datum bits, so as to cause an odd number of datum bits to be selected. Further, the mask bits that are set to one are complementary between the two mask rows 205, 210, hence ensuring that any particular datum bit is only used in the calculation of either check bit CO or check bit Cl. Further, it will be seen that the combination of the two mask rows 205, 210 ensures that all of the datum bits are selected for use in generating either the check bit CO or the check bit Cl. These two mask rows 205, 210 hence conform to the rules set out in steps 60 and 65 of Figure 2.
When performing the process of Figure 4, steps 165, 170 provide an effective extra column of the form shown by the reference numeral 215 in Figure 5 A, containing logic one values associated with the mask rows 205, 210 and logic zero values for the remaining mask rows.
Due to the fact that the number of datum bits is even, the earlier discussed equation used at step 55 of Figure 2 to determine the number of mask rows required to be subjected to the special row generation rules will identify that only two mask rows need to be subjected to those rules. However, if the number of datum bits were odd, then a third mask row would need to be subjected to the special row generation rules.
Figure 5B illustrates another example of an ECC mask array that may be produced using the earlier described technique of Figure 2, assuming the error code scheme is a double error correction triple error detection (DECTED) scheme, hence having a Hamming distance of six. In this example, it is assumed that the chunk is comprised of four address bits and nine data bits. Taking into account the chunk size, and the Hamming distance of six, this requires nine check bits within the check code, as illustrated in Figure 5B. In accordance with the equation discussed earlier with reference to step 55 of Figure 2, it will be determined that three mask rows need to be subjected to the row generation rules of steps 60 and 65 of Figure 2. If the number of datum bits had been even, a fourth mask row would also need to be subjected to those rules.
As shown in Figure 5B, for the mask array 250, the three mask rows subjected to the special row generation rules are the mask rows 255, 260, 265. As clearly shown, each of those mask rows has its mask bits set to zero in the bit positions corresponding to the address bits. Further, each of those mask rows causes an odd number of the data bits to be selected, and each mask row selects different data bits to each of the other of those three mask rows. Further, across the three mask rows 255, 260, 265, each data bit is selected once. Hence it can be seen that the rules of steps 60 and 65 of Figure 2 are met. The column 270 shows the effective extra column resulting from performance of steps 165, 170 of Figure 4, with logic one values in each of the row positions associated with the special mask rows 255, 260, 265 and logic zero values associated with all of the other mask rows.
Figure 6 is a table shown the Hamming distances and the minimum number of rows that are needed with zeros in the address position, for a variety of different error code schemes, when adopting the mask generation scheme of Figure 2. As will be apparent from the equation discussed earlier with reference to step 55 of Figure 2, for any of the schemes that support one or more bits being corrected, the actual number of rows may need to be increased by one, dependent on whether the datum has an even number of bits or an odd number of bits. Further, it will be appreciated that Figure 6 merely illustrates four example error code schemes, but the above described techniques are applicable to other error code schemes as well, with the number of rows required in each case being determined by the equation discussed earlier with reference to step 55 of Figure 2.
Figure 7 is a block diagram of an ECC generator circuit that may be used in accordance with one embodiment to generate an ECC code using the earlier discussed mask array. In particular, the datum and the address bits are input to a chunk generator 305 which generates a chunk by appending the address bits to the data bits. The ECC computation circuitry 310 then receives the chunk, and also has access to the mask array stored within the storage 315. The ECC computation circuitry 310 then performs the process discussed earlier with reference to Figure 4 in order to generate the ECC code bits which are output over path 320. From the earlier discussions, it will be appreciated that the ECC computation circuitry will generate an ECC code which will have at least one check bit set to a logic one value when the datum is all zeros, or will have at least one check bit set to a logic zero value when the datum bits are all ones. Further, by use of the multiple mask rows that are subjected to the special row generation scheme for situations where the error code scheme allows correction of a certain number of bits of error, the ECC computation circuitry will ensure that the error code generated for storing with the datum will be sufficient to reliably detect stuck at zero or stuck at one faults (rather than incorrectly interpreting them as correctable errors).
Figure 8 is a diagram illustrating both write protection circuitry 350 and read protection circuitry 380 that may be used in association with a memory 375. When write data is to be written into the memory 375, the write address and the write data are provided to the ECC generator 355 within the write protection circuitry 350. The ECC generator 355 may take the form of the ECC generator 300 discussed earlier with reference to Figure 7. Hence, the ECC generator will have access to the mask array within the storage 365, that mask array having been generated using the above described techniques. The ECC generator 355 will generate an ECC code that is forwarded to the appending circuitry 360, which then appends the ECC code to the write data, with both that write data and ECC code then being output over path 370 for storage within the memory 375 at the write address specified in association with the write data.
When that datum and associated ECC code is subsequently read from memory over path 377 as a result of a specified read address, the datum read from the memory at the read address is forwarded to the ECC generator 385 along with the specified read address. The ECC generator 385 also takes the form of the ECC generator 300 shown in Figure 7, and has access to the mask array within the storage 365. Accordingly, it will generate an ECC code using the mask array, the read address and the read datum, and that will be forwarded to the checking circuitry 387 which can determine whether the calculated ECC code matches the ECC code that was read from the memory address. The check circuitry 387 produces syndrome information as a result of the check which is passed to the error detect/correct circuitry 390 along with the datum read from memory. The syndrome information will identify whether the ECC code generated by the ECC generator 385 matches the ECC code read from memory, and in the event that it does not, can also provide additional information about the type of error. This information can then be used by the circuitry 390 to determine the appropriate output from the read protection circuitry 380.
For example, if it is determined that the two ECC codes match and hence there are no errors, then the read data may be output. Similarly, if the syndrome information identifies that there is a correctable data error, then the circuitry 390 may correct that data and output the corrected data. If the syndrome information identifies that there is a data fault that is not correctable, then the circuitry 390 will identify as its output that there is a data fault. Similarly, the syndrome information may identify that there is a fault in the address rather than in the data, and accordingly an address decode fault error can be output from the circuitry 390. Finally, if the datum as read from memory is all zeros (or all ones), and the ECC read from memory is all zeros (or all ones), then this will indicate the presence of a stuck at zero or stuck at one fault, and accordingly that can also be output from the circuitry 390. Alternatively, address decode errors and stuck at zero/one errors may not be explicitly identified separately to any other type of uncorrectable error, and instead may just cause an indication of an uncorrectable error to be output from the circuitry 390.
Figure 9 schematically illustrates a general purpose computer 400 of the type that may be used to implement the above described techniques, and in particular the generation of a mask array for use in generating an error code for a block comprising a plurality of data bits and a plurality of address bits. The general purpose computer 400 includes a central processing unit 402, a random access memory 404, a read-only memory 406, a network interface card 408, a hard disk drive 410, a display driver 412 and monitor 414, and a user input/output circuit 416 with a keyboard 418 and mouse 420 all connected via a common bus 422. In operation the central processing unit 402 will execute computer program instructions that may be stored in one or more of the random access memory 404, the read-only memory 406 and the hard disk drive 410, or dynamically downloaded via the network interface card 408. The results of the processing performed may be displayed to a user via the display driver 412 and the monitor 414. User inputs for controlling the operation of the general purpose computer 400 may be received via the user input/output circuit 416 from the keyboard 418 or the mouse 420. It will be appreciated that the computer program could be written in a variety of different computer languages. The computer program may be stored and distributed on a recording medium or dynamically downloaded to the general purpose computer 400. When operating under control of an appropriate computer program, the general purpose computer 400 can perform the above described mask array generation techniques and can be considered to form an apparatus for performing the above described techniques. The architecture of the general purpose computer could vary considerably, and Figure 9 is only one example.
From the above described embodiments, it will be appreciated that the described techniques enable a mask array to be generated that can not only enable detection and/or correction of data bit errors in a datum stored in memory, but can also allow for address decoding errors to be identified whilst additionally providing support for detection of stuck at zero or stuck at one faults in the memory output. This is achieved whilst still providing an error code whose number of check bits is dictated by the size of the chunk being protected, and the type of error code scheme being employed, and hence without needing to add any additional redundant bits that would have area implications on the size of the memory.
In the present application, the words “configured to...” are used to mean that an element of an apparatus has a configuration able to carry out the defined operation. In this context, a “configuration” means an arrangement or manner of interconnection of hardware or software. For example, the apparatus may have dedicated hardware which provides the defined operation, or a processor or other processing device may be programmed to perform the function. “Configured to” does not imply that the apparatus element needs to be changed in any way in order to provide the defined operation.
Although illustrative embodiments of the invention have been described in detail herein with reference to the accompanying drawings, it is to be understood that the invention is not limited to those precise embodiments, and that various changes, additions and modifications can be effected therein by one skilled in the art without departing from the scope and spirit of the invention as defined by the appended claims. For example, various combinations of the features of the dependent claims could be made with the features of the independent claims without departing from the scope of the present invention.

Claims (24)

1. An apparatus, comprising: block generation circuitry to generate a block comprising a plurality of data bits and a plurality of address bits; and error code generation circuitry to receive said block and a mask array comprising a plurality of mask rows, and to apply an error code generation algorithm to generate an error code for said block, said error code comprising a plurality of check bits where each check bit is determined using said block and a corresponding mask row of said mask array; wherein each mask row comprises a plurality of mask bits, each mask bit being associated with a corresponding bit of said block, and at least one mask row has its mask bit values constrained so as to ensure that when all of the data bits of the block have the same value, the error code generated by the error code generation circuitry has at least one check bit having a different value to the value of the data bits irrespective of the value of the address bits.
2. An apparatus as claimed in Claim 1, wherein each mask row in said at least one mask row has its mask bit values arranged so as to cause none of the address bits of the block to be selected for use in generating the corresponding check bit.
3. An apparatus as claimed in Claim 1 or Claim 2, wherein the number of mask rows forming said at least one mask row is dependent on an error code scheme employed by the apparatus, and whether the plurality of data bits in said block is even or odd.
4. An apparatus as claimed in Claim 3, wherein the number of mask rows NO forming said at least one mask row is given by the equation:
where C is the number of bits correctable by the error code scheme, Dt is the number of data bits in said plurality of data bits, and % denotes a modulo operator.
5. An apparatus as claimed in any preceding claim, wherein each mask row in said at least one mask row has its mask bit values arranged so as to cause an odd number of data bits within the block to be selected for use in generating the corresponding check bit.
6. An apparatus as claimed in Claim 5, wherein when said at least one mask row comprises multiple mask rows, the mask bit values in said multiple mask rows are arranged to ensure that different data bits within the block are selected by each of those multiple mask rows for use in generating the corresponding check bit.
7. An apparatus as claimed in Claim 6, wherein when said at least one mask row comprises multiple mask rows, the mask bit values in said multiple mask rows are arranged to further ensure that each data bit within said block is selected by one of the multiple mask rows for use in generating the corresponding check bit.
8. An apparatus as claimed in any preceding claim, wherein: the error code generation algorithm comprises a main process to generate a first check bit from the block and a corresponding mask row, and an additional process selectively applied to invert the first check bit to produce a second check bit; and the error code generated by the error code generation circuitry comprises the second check bit generated using any mask rows forming said at least one mask row and the first check bit generated using each of the remaining mask rows.
9. An apparatus as claimed in Claim 8, wherein said main process comprises using a mask row to select a subset of the bits forming said block, and then performing an XOR reduce operation on the selected subset of the bits to produce an associated first check bit.
10. An apparatus as claimed in Claim 9, wherein said additional process comprises an XOR operation to invert the value of the first check bit.
11. Write protection circuitry to generate an error code to be stored in association with write data at a specified memory address of a storage device, comprising an apparatus as claimed in any preceding claim to generate the error code from the write data and the specified memory address, wherein the plurality of data bits of the block are formed from the write data and the plurality of address bits of the block are formed from the specified memory address.
12. Read protection circuitry to perform an error check process on read data obtained from a specified memory address in a storage device, comprising: an apparatus as claimed in any of claims 1 to 10, to generate an error code from the read data and the specified memory address, wherein the plurality of data bits of the block are formed from the read data and the plurality of address bits of the block are formed from the specified memory address; and check circuitry to compare the generated error code with an error code stored in the storage device in association with the read data in order to detect an error condition when the generated error code differs from the stored error code.
13. A computer-implemented method of generating a mask array comprising: determining a number of mask rows of the mask array so that one mask row is provided for each check bit of an error code to be generated using said mask array; determining a number of mask bits in each mask row dependent on a number of bits in a block for which the error code is to be generated, the block comprising a plurality of data bits and a plurality of address bits; and for at least one of the mask rows, executing on processing circuitry a mask bit generating process to constrain the mask bit values of that mask row so as to ensure that when all of the data bits of the block have the same value, the error code generated for that block using the mask array has at least one check bit having a different value to the value of the data bits irrespective of the value of the address bits.
14. A computer-implemented method as claimed in Claim 13, wherein for all remaining mask rows other than said at least one mask row, the mask bit generating process employs default mask generation mles to determine the mask bits values.
15. A computer-implemented method as claimed in Claim 14, wherein said default mask generation rules comprise column-based Hamming rules.
16. A computer-implemented method as claimed in any of claims 13 to 15, wherein, for each mask row in said at least one mask row, the mask bit generating process determines the mask bit values so as to cause none of the address bits of the block to be selected for use when generating the corresponding check bit.
17. A computer-implemented method as claimed in any of claims 13 to 16, further comprising determining the number of mask rows to form said at least one mask row dependent on an error code scheme to be employed, and dependent on whether the plurality of data bits in said block is even or odd.
18. A computer-implemented method as claimed in Claim 17, wherein the number of mask rows NO forming said at least one mask row is given by the equation:
where C is the number of bits correctable by the error code scheme, Dt is the number of data bits in said plurality of data bits, and % denotes a modulo operator.
19. A computer-implemented method as claimed in any of claims 13 to 18, wherein for each mask row in said at least one mask row, the mask bit generating process determines the mask bit values so as to cause an odd number of data bits within the block to be selected for use when generating the corresponding check bit.
20. A computer-implemented method as claimed in Claim 19, wherein when said at least one mask row comprises multiple mask rows, the mask bit generating process determines the mask bit values in said multiple mask rows to ensure that different data bits within the block are selected by each of those multiple mask rows for use when generating the corresponding check bit.
21. A computer-implemented method as claimed in Claim 20, wherein when said at least one mask row comprises multiple mask rows, the mask bit generating process determines the mask bit values in said multiple mask rows to further ensure that each data bit within said block is selected by one of the multiple mask rows for use when generating the corresponding check bit.
22. A storage medium containing a mask array generated in accordance with the computer-implemented method of any of claims 13 to 21.
23. An apparatus for generating an error code for a block comprising a plurality of data bits and a plurality of address bits, substantially as hereinbefore described with reference to the accompanying figures 2 to 9.
24. A method of generating a mask array for use in generating an error code for a block comprising a plurality of data bits and a plurality of address bits, substantially as hereinbefore described with reference to the accompanying figures 2 to 9.
GB1609538.2A 2016-05-31 2016-05-31 An apparatus and method for generating an error code for a block comprising a plurality of data bits and a plurality of address bits Withdrawn GB2550929A (en)

Priority Applications (6)

Application Number Priority Date Filing Date Title
GB1609538.2A GB2550929A (en) 2016-05-31 2016-05-31 An apparatus and method for generating an error code for a block comprising a plurality of data bits and a plurality of address bits
EP17169702.2A EP3260980B1 (en) 2016-05-31 2017-05-05 An apparatus and method for generating an error code for a block comprising a plurality of data bits and a plurality of address bits
US15/587,429 US10084478B2 (en) 2016-05-31 2017-05-05 Apparatus and method for generating an error code for a block comprising a plurality of data bits and a plurality of address bits
KR1020170063255A KR102292212B1 (en) 2016-05-31 2017-05-23 An apparatus and method for generating an error code for a block comprising a plurality of data bits and a plurality of address bits
JP2017102013A JP6982982B2 (en) 2016-05-31 2017-05-23 Error code generator and method for blocks with multiple data bits and multiple address bits
CN201710374844.6A CN107436821B (en) 2016-05-31 2017-05-24 Apparatus and method for generating error codes for blocks comprising a plurality of data bits and address bits

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
GB1609538.2A GB2550929A (en) 2016-05-31 2016-05-31 An apparatus and method for generating an error code for a block comprising a plurality of data bits and a plurality of address bits

Publications (2)

Publication Number Publication Date
GB201609538D0 GB201609538D0 (en) 2016-07-13
GB2550929A true GB2550929A (en) 2017-12-06

Family

ID=56410795

Family Applications (1)

Application Number Title Priority Date Filing Date
GB1609538.2A Withdrawn GB2550929A (en) 2016-05-31 2016-05-31 An apparatus and method for generating an error code for a block comprising a plurality of data bits and a plurality of address bits

Country Status (6)

Country Link
US (1) US10084478B2 (en)
EP (1) EP3260980B1 (en)
JP (1) JP6982982B2 (en)
KR (1) KR102292212B1 (en)
CN (1) CN107436821B (en)
GB (1) GB2550929A (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10908995B2 (en) 2017-09-29 2021-02-02 Nvidia Corporation Securing against errors in an error correcting code (ECC) implemented in an automotive system
JP2019109806A (en) * 2017-12-20 2019-07-04 ルネサスエレクトロニクス株式会社 Data processing device and data processing method
CN109669669B (en) * 2018-12-06 2022-06-24 镕铭微电子(济南)有限公司 Error code generation method and error code generator
CN109872754B (en) * 2019-02-15 2021-02-26 长江存储科技有限责任公司 Data programming method and device, memory and storage medium
CN112289366B (en) * 2019-07-25 2024-03-26 华邦电子股份有限公司 Memory storage device and data access method
CN113055259B (en) * 2021-02-08 2022-05-13 西安电子科技大学 Function safety protection method based on AXI bus protocol
CN114153648B (en) * 2021-12-03 2022-09-16 海光信息技术股份有限公司 Data reading and writing method and device and soft error processing system
US11947409B2 (en) * 2022-01-12 2024-04-02 Xilinx, Inc. Parity protection of control registers based on register bit positions
CN116959540B (en) * 2023-08-16 2024-03-01 沐曦集成电路(上海)有限公司 Data verification system with writemask

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013006222A1 (en) * 2011-07-05 2013-01-10 International Business Machines Corporation Adaptive multi-bit error correction in endurance limited memories

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE3319710A1 (en) * 1983-05-31 1984-12-06 Siemens AG, 1000 Berlin und 8000 München MEMORY CONTROL ARRANGEMENT, ESPECIALLY FOR AN ERROR-TOLERANT TELEPHONE MEDIATION SYSTEM
US6757862B1 (en) * 2000-08-21 2004-06-29 Handspring, Inc. Method and apparatus for digital data error correction coding
US6700827B2 (en) * 2001-02-08 2004-03-02 Integrated Device Technology, Inc. Cam circuit with error correction
US6978343B1 (en) * 2002-08-05 2005-12-20 Netlogic Microsystems, Inc. Error-correcting content addressable memory
US7350044B2 (en) * 2004-01-30 2008-03-25 Micron Technology, Inc. Data move method and apparatus
US7509541B2 (en) * 2004-06-24 2009-03-24 Intel Corporation Detection mechanism
JP4498295B2 (en) * 2005-11-30 2010-07-07 株式会社東芝 Access control device, access control system, processor, and access control method
CN100507878C (en) * 2005-11-30 2009-07-01 株式会社东芝 Access control apparatus, access control method, memory access control device, and memory access control method
KR100746225B1 (en) * 2006-02-13 2007-08-03 삼성전자주식회사 Semiconductor memory device and memory system comprising the same
JP4643479B2 (en) * 2006-03-22 2011-03-02 株式会社東芝 ACCESS CONTROL DEVICE, ACCESS CONTROL SYSTEM, PROCESSOR, ACCESS CONTROL METHOD, AND MEMORY ACCESS CONTROL METHOD
US7702978B2 (en) * 2006-04-21 2010-04-20 Altera Corporation Soft error location and sensitivity detection for programmable devices
US7945840B2 (en) * 2007-02-12 2011-05-17 Micron Technology, Inc. Memory array error correction apparatus, systems, and methods
US9582354B2 (en) * 2014-01-28 2017-02-28 Infineon Technologies Ag Apparatus and method for improving data storage by data inversion
JPWO2015133095A1 (en) * 2014-03-04 2017-04-06 日本電気株式会社 Parity check code generation apparatus, encoding method, encoding apparatus, and control program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013006222A1 (en) * 2011-07-05 2013-01-10 International Business Machines Corporation Adaptive multi-bit error correction in endurance limited memories

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
43rd Annual IEEE/ACM International Symposium on Microarchitecture, IEEE, 4th December 2010 SEONG ET AL, "SAFER: Stuck-At-Fault Error Recovery for Memories, pg 115-124 *

Also Published As

Publication number Publication date
KR20170135691A (en) 2017-12-08
EP3260980A1 (en) 2017-12-27
CN107436821A (en) 2017-12-05
US20170346504A1 (en) 2017-11-30
KR102292212B1 (en) 2021-08-23
US10084478B2 (en) 2018-09-25
CN107436821B (en) 2022-08-19
EP3260980B1 (en) 2019-02-13
JP2017215958A (en) 2017-12-07
GB201609538D0 (en) 2016-07-13
JP6982982B2 (en) 2021-12-17

Similar Documents

Publication Publication Date Title
US10084478B2 (en) Apparatus and method for generating an error code for a block comprising a plurality of data bits and a plurality of address bits
US6044483A (en) Error propagation operating mode for error correcting code retrofit apparatus
US6397365B1 (en) Memory error correction using redundant sliced memory and standard ECC mechanisms
JP4071940B2 (en) Shared error correction for memory design
US6973613B2 (en) Error detection/correction code which detects and corrects component failure and which provides single bit error correction subsequent to component failure
US8671250B2 (en) Data storage device generating redundancy for data path protection of a parity sector
US7797609B2 (en) Apparatus and method for merging data blocks with error correction code protection
US20150378826A1 (en) Circuits, apparatuses, and methods for correcting data errors
US20070047344A1 (en) Hierarchical memory correction system and method
US20100037091A1 (en) Logical drive bad block management of redundant array of independent disks
US8255741B2 (en) Facilitating error detection and correction after a memory component failure
US20090006899A1 (en) Error correcting code with chip kill capability and power saving enhancement
US8621290B2 (en) Memory system that supports probalistic component-failure correction with partial-component sparing
TW201515000A (en) ECC method for double pattern flash memory
US9696923B2 (en) Reliability-aware memory partitioning mechanisms for future memory technologies
JPH03248251A (en) Information processor
US7293221B1 (en) Methods and systems for detecting memory address transfer errors in an address bus
US9690649B2 (en) Memory device error history bit
US20160139988A1 (en) Memory unit
US8103934B2 (en) High speed memory error detection and correction using interleaved (8,4) LBCs
WO2015016879A1 (en) Operating a memory unit
US7360132B1 (en) System and method for memory chip kill
US10250279B2 (en) Circuits and methods for writing and reading data
JP2007257628A (en) Method for error correction and error detection for reading out stored information data and storage control unit therefor
CN106104491A (en) There is calculating system and the operational approach thereof of data protection schemes

Legal Events

Date Code Title Description
WAP Application withdrawn, taken to be withdrawn or refused ** after publication under section 16(1)