Information
-
Patent Application
-
20030023927
-
Publication Number
20030023927
-
Date Filed
March 08, 200222 years ago
-
Date Published
January 30, 200321 years ago
-
CPC
-
US Classifications
-
International Classifications
Abstract
A magnetoresistive solid-state storage device (MRAM) employs error correction coding (ECC) to form ECC encoded stored data. In a read operation, a set of test cells 160 in a test row 120 are used to predict failures 163 amongst a set of cells of interest storing a block of ECC encoded data. Erasure information is formed from these predictions which identifies potentially unreliable symbols 206 in the block of ECC encoded data, and the ability of a decoder 22 to perform ECC decoding is substantially enhanced.
Description
[0001] The present invention relates in general to a magnetoresistive solid-state storage device employing error correction coding (ECC), and in particular relates to a method for error correction decoding of ECC encoded data stored in the device.
[0002] A typical solid-state storage device comprises one or more arrays of storage cells for storing data. Existing semiconductor technologies provide volatile solid-state storage devices suitable for relatively short term storage of data, such as dynamic random access memory (DRAM), or devices for relatively longer term storage of data such as static random access memory (SRAM) or non-volatile flash and EEPROM devices. However, many other technologies are known or are being developed.
[0003] Recently, a magnetoresistive storage device has been developed as a new type of non-volatile solid-state storage device (see, for example, EP-A-0918334 Hewlett-Packard). The magnetoresistive solid-state storage device is also known as a magnetic random access memory (MRAM) device. MRAM devices have relatively low power consumption and relatively fast access times, particularly for data write operations, which renders MRAM devices ideally suitable for both short term and long term storage applications.
[0004] A problem arises in that MRAM devices are subject to physical failure, which can result in an unacceptable loss of stored data. In particular, currently available manufacturing techniques for MRAM devices are subject to limitations and as a result manufacturing yields of acceptable MRAM devices are relatively low. Although better manufacturing techniques are being developed, these tend to increase manufacturing complexity and cost. Hence, it is desired to apply lower cost manufacturing techniques whilst increasing device yield. Further, it is desired to increase cell density formed on a substrate such as silicon, but as the density increases manufacturing tolerances become increasingly difficult to control leading to higher failure rates and lower device yields. Since the MRAM devices are at a relatively early stage in development, it is desired to allow large scale manufacturing of commercially acceptable devices, whilst tolerating the limitations of current manufacturing techniques.
[0005] An aim of the present invention is to provide a method for error correction decoding of ECC encoded data stored in an MRAM device, wherein effectiveness of an ECC scheme is maximised, and/or where overhead associated with error correction coding can be reduced. A preferred aim is to provide such a method whereby a relatively large number of physical failures can be tolerated.
[0006] According to a first aspect of the present invention there is provided a method for error correction decoding of ECC encoded data stored in a magnetoresistive solid-state storage device having a plurality of magnetoresistive storage cells, comprising the steps of reading a set of the storage cells of interest, relating to at least one block of ECC encoded data; examining a set of test cells corresponding to the cells of interest, to generate erasure information for the at least one block of ECC encoded data; and error correction decoding the at least one block of ECC encoded data with reference to the erasure information.
[0007] The method preferably comprises providing the plurality of storage cells in at least one array having rows and columns. Preferably, the test cells are provided in a test row, wherein the test cells in the test row share columns with the set of cells of interest in the read operation of the block of ECC encoded data. Preferably, a row of “good” storage cells are selected to be the test row of test cells. Here, the test cells are susceptible to being affected by failures in other rows, but there are no cells in the test row which themselves cause a grouped-type failure affecting the test row.
[0008] The step of examining the test cells preferably comprises reading the test cells and comparing the read values against expected values. The expected values are suitably written to the test cells in advance of examining the test cells. Preferably, the test cells corresponding to the cells of interest are selected and examined, in co-operation with reading of the storage cells of interest. In one embodiment, the examining step is performed contemporaneously with the reading step. In another embodiment, the reading step is performed one or more times relating to more than one block of ECC encoded data, and examining step is performed once to generate erasure information for the more than one block of ECC encoded data.
[0009] The step of error correction decoding the block of stored ECC encoded data with reference to the erasure information allows correct values for the ECC encoded data to be calculated, and allows original information to be recovered correctly from the stored ECC encoded data. Suitably, the ECC encoded data comprises symbols, and the erasure information identifies the location of zero or more symbol errors in the block of ECC encoded data, which improves ease of calculation of corrected symbol values.
[0010] Optionally, the method includes the step of writing back corrected encoded data to the storage device, suitably using the same set of storage cells. Preferably, this write-back operation is performed selectively, such that corrected encoded data is written back to the storage cells with reference to the erasure information. Preferably, the write-back step comprises selectively not writing back corrected data to storage cells which are determined as affected by physical failures.
[0011] The method preferably includes the initial steps of receiving a logical unit of original information which it is desired to store in the device, encoding the original information to form a block of ECC encoded data, and storing the block of ECC encoded data in the array of storage cells. Each logical unit of original information preferably corresponds to a sector such as 512 bytes. Encoding the original information sector forms an encoded sector, which preferably comprises four codewords. Here, each codeword is preferably treated as a separate block of ECC encoded data.
[0012] According to a second aspect of the present invention there is provided a method for error correction decoding of ECC encoded data stored in a magnetoresistive solid-state storage device having a plurality of magnetoresistive storage cells arranged in at least one array, the method comprising the steps of: selecting a row from an array of the at least one array to provide a test row of test cells; selecting a set of storage cells arranged to store at least one block of ECC encoded data; reading the at least one block of ECC encoded data from the selected set of storage cells; performing a write-read-compare operation on a selected set of the test cells to predict columns in the array that are affected by a physical failure; forming erasure information for the at least one block of ECC encoded data, the erasure information identifying symbols within the block of ECC encoded data predicted to be affected by physical failures as determined by the test cells; and decoding the at least one block of ECC encoded data with reference to the erasure information.
[0013] According to a third aspect of the present invention there is provided a magnetoresistive solid state storage device, comprising: at least one array of magnetoresistive storage cells; a controller arranged to examine a set of test cells to form erasure information for at least one block of ECC encoded data stored in a set of the storage cells; and an ECC decoding unit arranged to decode the at least one block of stored ECC encoded data with reference to the erasure information.
[0014] According to a fourth aspect of the present invention there is provided a magnetoresistive solid-state storage device, comprising: at least one array of magnetoresistive storage cells; an ECC coding unit arranged to receive original information and to form at least one block of ECC encoded data; a controller arranged to store the at least one block of ECC encoded data in a set of storage cells, and to read the stored at least one block of ECC encoded data from the set of storage cells, the controller arranged to examine a set of test cells corresponding to the set of storage cells to form erasure information for the at least one block of ECC encoded data; and an ECC decoding unit for decoding the at least one block of stored ECC encoded data with reference to the erasure information.
[0015] The invention also extends to apparatus incorporating a magnetoresistive storage device as defined herein.
[0016] For a better understanding of the invention, and to show how embodiments of the same may be carried into effect, reference will now be made, by way of example, to the accompanying diagrammatic drawings in which:
[0017]
FIG. 1 is a schematic diagram showing a preferred MRAM device including an array of storage cells;
[0018]
FIG. 2 shows a preferred MRAM device in more detail;
[0019]
FIG. 3 shows a preferred logical data structure;
[0020]
FIG. 4 shows a portion of an array including a test row; and
[0021]
FIG. 5 shows a preferred method for decoding ECC encoded data stored in the device.
[0022] To assist a complete understanding of the present invention, an example MRAM device will first be described with reference to FIGS. 1 and 2, including a description of the failure mechanisms found in MRAM devices. The error correction decoding arrangements adopted in the preferred embodiments of the present invention aim to minimise the adverse effects of such physical failures and are described with reference to FIGS. 3 to 5.
[0023]
FIG. 1 shows a simplified magnetoresistive solid-state storage device 1 comprising an array 10 of storage cells 16. The array 10 is coupled to a controller 20 which, amongst other control elements, includes an ECC coding and decoding unit 22. The controller 20 and the array 10 can be formed on a single substrate, or can be arranged separately. EP-A-0 918 334 (Hewlett-Packard) discloses one example of a magnetoresistive solid-state storage device which is suitable for use in preferred embodiments of the present invention.
[0024] In the preferred embodiment, the array 10 comprises of the order of 1024 by 1024 storage cells, just a few of which are illustrated. The storage cells 16 are each formed at an intersection between control lines 12 and 14. In this example control lines 12 are arranged in rows, and control lines 14 are arranged in columns. The control lines 12 and 14 are generally orthogonal, but other more complicated lattice structures are also possible. Suitably, the row and column lines 12,14 are coupled to control circuits 18, which include a plurality of read/write control circuits. Depending upon the implementation, one read/write control circuit is provided per column, or read/write control circuits are multiplexed or shared between columns.
[0025] In a device access such as a write operation or a read operation, one row 12 and one or more columns 14 are selected by the control circuits 18 to access the required storage cell or cells 16 (or conversely one column and several rows, depending upon the orientation of the array) The selected cells 16, the selected row line 12, and the selected column lines 14, are each represented by bold lines in FIG. 1. The preferred MRAM device requires a minimum distance m, such as sixty-four cells, between the selected column lines 14 to minimise cross-cell interference. Given that each array 10 has rows of length l, such as 1024 storage cells, it is possible to access substantially simultaneously up to l/m=1024/64=16 cells from the array 10.
[0026] Each storage cell 16 stores one bit of data suitably representing a numerical value and preferably a binary value, i.e. one or zero. Suitably, each storage cell includes two films which assume one of two stable magnetisation orientations, known as parallel and anti-parallel. The magnetisation orientation affects the resistance of the storage cell. When the storage cell 16 is in the anti-parallel state, the resistance is at its highest, and when the magnetic storage cell is in the parallel state, the resistance is at its lowest. Suitably, the high resistance anti-parallel state defines a “0” logic state, and the low resistance parallel state defines a “1” logic state, or vice versa. In the preferred device, the resistance of each storage cell 16 is determined according to a phenomenon known as spin tunnelling and the cells are referred to as magnetic tunnel junction storage cells. The condition of the storage cell is determined by measuring the sense current (proportional to resistance) or a related parameter such as response time to discharge a known capacitance, which gives one or more parametric values for each storage cell. A logical value can then be derived from the obtained parametric value or values. Depending upon the nature and construction of the MRAM device, the read operation may comprise multiple steps or require combined read and rewrite actions.
[0027]
FIG. 2 shows the preferred MRAM device in more detail. A macro-array 2 is formed comprising a large plurality of individual arrays 10, each of which is formed as discussed above for FIG. 1. The use of plural arrays advantageously allows an MRAM device to be obtained of a desired overall data storage capacity, without the individual arrays 10 in themselves becoming so large that they are difficult to manufacture or control. For simplicity, FIG. 2 shows only a portion of the macro-array.
[0028] Many design choices are available to the skilled person when laying out the arrays 10 on a suitable substrate during manufacture of the device, but, amongst other concerns, it is commonly desired to reduce substrate area for each device. Conveniently, it has been found that the arrays 10 can be manufactured in layers. In the example of FIG. 2, four arrays 10 are layered to form a stack. In an example practical device having a storage capacity of the order of 128 Mbytes, 1024 arrays are arranged in a macro-array of 16 arrays wide, by 16 arrays high, with four stack layers. In other preferred devices, ECC encoded data is stored in 1152 arrays arranged 16 wide by 18 high with 4 stack layers, giving a total capacity of 144 Mbytes, or 1280 arrays arranged 16 wide by 20 high by 4 stack layers giving 160 Mbytes. Optionally, the MRAM device comprises more than one such macro-array.
[0029] As illustrated in FIG. 2, the preferred method for accessing the MRAM device 1 comprises selecting one row 12 in each of a plurality of arrays 10, and selecting plural columns 14 from each of the plurality of arrays to thereby select a plurality of storage cells 16. The accessed cells within each of the plurality of arrays correspond to a small portion of a unit of data. Together, the accessed cells provide a whole unit of data, such as a whole sector unit, or at least a substantial portion of the unit. Advantageously, each of the plurality of arrays are accessible substantially simultaneously. Therefore, device access speed for a read operation or a write operation is increased. This device access is conveniently termed a slice through the macro-array.
[0030] As shown in FIG. 2, it is convenient for the same row address and the same column addresses to be selected in each of the plurality of arrays. That is, a unit of data is stored across a plurality of arrays, using the same row and column addresses within each of the plurality of arrays.
[0031] As also shown in FIG. 2, in the preferred construction the arrays 10 are layered to form stacks. Only one array within each stack can be accessed at any one time. Therefore, it is convenient that the plurality of arrays used to store a sector unit of data are each in different stacks (i.e. none of the selected plurality of arrays are in the same stack). Also, it is convenient to select arrays which are all in the same layer. Ideally, one array is selected from each stack, the arrays each being in the same layer within each stack. In the example of FIG. 2, the topmost array within each stack has been selected.
[0032] Most conveniently, the number of arrays available in the macro-array 2 is matched to the size of a sector unit of data to be stored in the device. Here, it is convenient to provide the total number of arrays such that, given the number of cells which can be substantially simultaneously accessed in an array, a sector unit is stored using cells within all of the arrays of a single layer of the device, to store a whole sector unit of data. In other preferred embodiments, it is convenient for a reciprocal integer fraction of a sector unit of data (e.g. one half or one third or one quarter of a sector unit) to be accessible substantially simultaneously.
[0033] Although generally reliable, it has been found that failures can occur which affect the ability of the device to store data reliably in the storage cells 16. Physical failures within a MRAM device can result from many causes including manufacturing imperfections, internal effects such as noise in a read process, environmental effects such as temperature and surrounding electro-magnetic noise, or ageing of the device in use. In general, failures can be classified as either systematic failures or random failures. Systematic failures consistently affect a particular storage cell or a particular group of storage cells. Random failures occur transiently and are not consistently repeatable. Typically, systematic failures arise as a result of manufacturing imperfections and ageing, whilst random failures occur in response to internal effects and to external environmental effects.
[0034] Failures are highly undesirable and mean that at least some storage cells in the device cannot be written to or read from reliably. A cell affected by a failure can become unreadable, in which case no logical value can be read from the cell, or can become unreliable, in which case the logical value read from the cell is not necessarily the same as the value written to the cell (e.g. a “1” is written but a “0” is read). The storage capacity and reliability of the device can be severely affected and in the worst case the entire device becomes unusable.
[0035] Failure mechanisms take many forms, and the following examples are amongst those identified:
[0036] 1. Shorted bits—where the resistance of the storage cell is much lower than expected. Shorted bits tend to affect all storage cells lying in the same row and the same column.
[0037] 2. Open bits—where the resistance of the storage cell is much higher than expected. Open bit failures can, but do not always, affect all storage cells lying in the same row or column, or both.
[0038] 3. Half-select bits—where writing to a storage cell in a particular row or column causes another storage cell in the same row or column to change state. A cell which is vulnerable to half select will therefore possibly change state in response to a write access to any storage cell in the same row or column, resulting in unreliable stored data.
[0039] 4. Single failed bits—where a particular storage cell fails (e.g. is stuck always as a “0”), but does not affect other storage cells and is not affected by activity in other storage cells.
[0040] These four example failure mechanisms are each systematic, in that the same storage cell or cells are consistently affected. Where the failure mechanism affects only one cell, this can be termed an isolated failure. Where the failure mechanism affects a group of cells, this can be termed a grouped failure.
[0041] Whilst the storage cells of the MRAM device can be used to store data according to any suitable logical layout, data is preferably organised into basic sub-units (e.g. bytes) which in turn are grouped into larger logical data units (e.g. sectors). A physical failure, and in particular a grouped failure affecting many cells, can affect many bytes and possibly many sectors. It has been found that keeping information about each small logical sub-unit (e.g. bytes) affected by physical failures is not efficient, due to the quantity of data involved. That is, attempts to produce a list of all such logical units rendered unusable due to at least one physical failure, tend to generate a quantity of management data which is too large to handle efficiently. Further, depending on how the data is organised on the device, a single physical failure can potentially affect a large number of logical data units, such that avoiding use of all bytes, sectors or other units affected by a failure substantially reduces the storage capacity of the device. For example, a grouped failure such as a shorted bit failure in just one storage cell affects many other storage cells, which lie in the same row or the same column. Thus, a single shorted bit failure can affect 1023 other cells lying in the same row, and 1023 cells lying in the same column—a total of 2027 affected cells. These 2027 affected cells may form part of many bytes, and many sectors, each of which would be rendered unusable by the single grouped failure.
[0042] Some improvements have been made in manufacturing processes and device construction to reduce the number of manufacturing failures and improve device longevity, but this usually involves increased manufacturing costs and complexity, and reduced device yields.
[0043] The preferred embodiments of the present invention employ error correction coding to provide a magnetoresistive solid-state storage device which is error tolerant, preferably to tolerate and recover from both random failures and systematic failures. Typically, error correction coding involves receiving original information which it is desired to store and forming encoded data which allows errors to be identified and ideally corrected. The encoded data is stored in the solid-state storage device. At read time, the original information is recovered by error correction decoding the encoded stored data. A wide range of error correction coding (ECC) schemes are available and can be employed alone or in combination. Suitable ECC schemes include both schemes with single-bit symbols (e.g. BCH) and schemes with multiple-bit symbols (e.g. Reed-Solomon).
[0044] As general background information concerning error correction coding, reference is made to the following publication: W. W. Peterson and E. J. Weldon, Jr., “Error-Correcting Codes”, 2nd edition, 12th printing, 1994, MIT Press, Cambridge Mass.
[0045] A more specific reference concerning Reed-Solomon codes used in the preferred embodiments of the present invention is: “Reed-Solomon Codes and their Applications”, ED. S. B. Wicker and V. K. Bhargava, IEEE Press, New York, 1994.
[0046]
FIG. 3 shows an example logical data structure used when storing data in the MRAM device 10. original information 200 is received in predetermined units such as a sector comprising 512 bytes. Error correction coding is performed to produce ECC encoded data, in this case an encoded sector 202. The encoded sector 202 comprises a plurality of symbols 206 which can be a single bit (e.g. a BCH code with single-bit symbols) or can comprise multiple bits (e.g. a Reed-Solomon code using multi-bit symbols). In the preferred Reed-Solomon encoding scheme, each symbol 206 conveniently comprises eight bits and, as shown in FIG. 3, each encoded sector 202 comprises four codewords 204, each comprising of the order of 144 to 160 symbols. The eight bits corresponding to each symbol are conveniently stored in eight storage cells 16, which can be termed a symbol group. A physical failure which directly or indirectly affects any of these eight storage cells in a symbol group can result in one or more of the bits being unreliable (i.e. the wrong value is read) or unreadable (i.e. no value can be obtained), giving a failed symbol.
[0047] In the current MRAM devices, grouped failures tend to affect a large group of storage cells, sharing the same row or column. This provides an environment which is unlike prior storage devices. The preferred embodiments of the present invention employ an ECC scheme with multi-bit symbols. Where manufacturing processes and device design change over time, it may become more appropriate to organise storage locations expecting bit-based errors and then apply an ECC scheme using single-bit symbols, and at least some of the following embodiments can be applied to single-bit symbols.
[0048] Error correction decoding each block of stored ECC encoded data allows failed symbols 206 to be identified and corrected. Conveniently, decoding is performed independently for each block of ECC encoded data, such as an ECC encoded sector 202 or, in the preferred embodiment, for each codeword 204. Hence, the encoded sector 202, or preferably each ECC codeword 204, forms the unit of data to be stored in the device.
[0049] The preferred Reed-Solomon scheme is an example of a linear error correcting code, which mathematically identifies and corrects completely up to a predetermined maximum number of failed symbols 206 within each independently decodeable block of ECC encoded data, depending upon the power of the code. For example, a [160,128,33] Reed-Solomon code producing codewords having one hundred and sixty 8-bit symbols corresponding to one hundred and twenty-eight original information bytes and a minimum distance of thirty-three symbols can locate and correct up to sixteen symbol errors.
[0050] Suitably, the ECC scheme employed is selected with a power sufficient to recover original information 200 from the encoded data in substantially all cases. Pictorially, each perfect block of ECC encoded data represents a point in space, and a reliably correctable form of that block of ECC encoded data lies within a “ball” having a radius corresponding to the maximum power of the ECC encoding scheme. Very rarely, a block of encoded data is encountered which is affected by so many failures that the original information 200 is unrecoverable. Here, the ECC decoding unit 22 is presented with a block of ECC encoded data which is so severely affected by physical failures that it lies outside the ball of all reliably correctable blocks of ECC encoded data. Also, even more rarely, the failures result in a mis-correct, where information recovered from the encoded data 202 is not equivalent to the original information 200. Even though the recovered information does not correspond to the original information, a mis-correct is not readily determined. Pictorially, the ECC decoding unit 22 is presented with a block of ECC encoded data which is so severely affected by physical failures that it lies inside an incorrect ball, i.e. not the ball corresponding to the perfect form of that block of ECC encoded data. Ideally, the ECC scheme is selected such that the probability of encountering an unrecoverable or mis-corrected block of ECC encoded data is extremely small, suitably of the order of 10−15 to 10−20.
[0051] It is desired to minimise the probability that original information is unrecoverable from a block of stored encoded data or that a mis-correct occurs. Therefore, the preferred embodiments of the invention aim to improve effective use of an error correction coding scheme, as will be described below.
[0052]
FIG. 4 shows schematically a portion of an array 10, similar to the array described above with reference to FIG. 1. In FIG. 4, the array 10 includes a row 120 of test cells 160. Conveniently, the test cells 160 are configured substantially identically to the storage cells 16 of the remainder of the array. The test row 120 can be provided at any convenient location, such as at the top or at the bottom or within the array 10. Most conveniently, a row of storage cells 16 from the array 10 is selected to function as the test row 120. The test row is suitably selected to be a row which itself does not contain failed cells, but is positioned to be affected by failed cells in other rows. The test row is preferably determined at manufacture of the device. If desired, the test row 120 can be reselected or moved from time to time.
[0053] Conveniently, it has been found that examining the condition of the test cells 160 in the test row 120 allows accurate predictions to be made about the condition of storage cells 16 in other parts of the array. As an illustrative example, FIG. 4 shows a portion of the array 10 where a cell 161 suffers a shorted-bit failure. Due to the nature of this failure in the preferred MRAM devices, the shorted-bit cell 161 affects all of the cells lying in the same row and in the same column, including a test cell 162 amongst the test cells 160 in the test row 120. Therefore, the test cell 162 indicates that a shorted-bit failure has occurred affecting the column in which that test cell 162 lies.
[0054] During a read operation, a row line 12 and one or more column lines 14 are activated to select a set of storage cells 16 within the array 10, shown in bold lines in FIG. 4. A failed cell 163 which has been affected by the shorted-bit cell 161 is amongst these selected cells. By examining the condition of the test cell 162, it can be predicted that the selected cell 163 has been affected by a failure. This prediction then allows enhancements to be made in the subsequent stages of the read operation concerning the selected cells.
[0055] In one simple mode of operation, the test cells are examined once, in order to determine columns 14 within the array 10 which are affected by failures, particularly shorted-bit or open-bit failures. This information is then retained, and employed as each read access is made. However, a relatively large amount of information must be stored and retained. In another simple mode of operation, the test row 120 is examined for each read operation and the test information discarded at the completion of that read operation. Here, there is a balance between the overhead of retaining a large amount of test information, compared with an overhead of examining the test cells 160 in the test row 120. In a preferred embodiment, the test cells relating to a first read operation are examined and the test information then retained if a second or subsequent read operation relates to the examined test cells, i.e. the test information is retained and used again when a subsequent read operation will refer to the same test cells. The test information is discarded only when a subsequent read operation relates to a different set of test cells. Conveniently, a data storage layout is employed such that units of data (e.g. sectors) which are likely to be accessed successively in use are arranged to use storage cells relating to a consistent set of test cells, i.e. arranged to use sets of storage cells arranged in consecutive rows and a consistent set of columns. For example, data from a large source file is stored across several consecutive sectors arranged with shared columns and so these sectors will be read in a sequence to recover the stored source file.
[0056] Examination of the test cells 160 may take any suitable form. In the preferred embodiment, each test cell 160 is written with a known value, such as a logical “1”. The test cells 160 are then examined by reading logical values. If any of the test cells show a logical value of “0” then it can be predicted that a failure, such as a shorted-bit failure, has occurred which affects the column 14 in which that test cell 160 lies. Similarly, writing a “0” to the test cells and reading a “1” would indicate an open-bit failure. Optionally, two test rows are provided, with the first arranged to indicate a shorted-bit failure, and the second arranged to indicate an open-bit failure. The test cells can be written once and read repeatedly, or can be rewritten after each read, as required to maintain integrity of the cells. The location and nature of the test cells 160 and the method for examination of the test cells 160 is readily adapted according to the specific nature of a particular MRAM device.
[0057] Advantageously, predicting failed cells 163 amongst a set of cells of interest in a read operation allows error correction decoding of ECC encoded data stored in the MRAM device to be significantly enhanced. The predicted failures allow erasure information to be formed for a block of ECC encoded data read from the MRAM device 1.
[0058]
FIG. 5 shows a preferred method for decoding of ECC encoded data stored in a MRAM device. Preferably, the MRAM device 1 is configured as discussed above in FIGS. 1, 2 and 4, and the stored data is error correction encoded into a format as shown in FIG. 3.
[0059] Step 501 comprises selecting a set of storage cells 16 of interest in a read operation. Conveniently, the selected set of storage cells correspond to at least one block of ECC encoded data, such as a codeword 204 or a complete encoded sector 202.
[0060] Step 502 comprises examining a corresponding set of test cells 160 in a test row 120. The corresponding set of test cells lie in the same columns as the selected cells of interest.
[0061] Step 503 comprises forming erasure information by predicting failures amongst the cells of interest, from the examination of the set of test cells 160. The examination suitably comprises reading logical values from the test cells, and comparing the read values against expected values.
[0062] Step 504 comprises reading logical values from the set of storage cells 16 of interest in the read operation. The read process conveniently comprises obtaining parametric values relating to the selected set of storage cells 16, such as one or more parametric values obtained from a sense current and representing cell resistance or response time. In one embodiment, the sensed parametric values are compared against a simple threshold, and a logical value is derived such as a binary 1 or 0 depending on whether the sensed parametric values are above or below the threshold, respectively. Optionally, this read process is repeated, in the hope of avoiding a transient or random error. However, particularly with currently available MRAM devices, a small number of systematic failures are to be expected when accessing any significant number of storage cells, such as the set of storage cells corresponding to an ECC codeword 204 or an encoded sector 202.
[0063] The logical values and erasure information can be presented in any suitable form. In one example, the logical bit values are determined with hard decisions as to the value of each bit, or else the bit is determined as a failure and erasure information is generated accordingly. In a second example, soft decisions are made as to the relative certainty with which erasure information is generated. For example, the examined test cells are ranked in order of quality, and only the n most severely affected cells amongst the cells of interest lead to erasures. Ideally, the logical symbol values and the erasure information are arranged to form an input (or inputs) to the ECC decoder 22.
[0064] It is convenient to prepare the erasure information in parallel with generating the logical bit values. In the currently preferred embodiments, each storage cell 16 stores a single logical bit value representing a binary 1 or 0, and multiple bits are gathered together to form a symbol 206. Preferably, the erasure information is prepared on the basis that a symbol 206 is declared as an erasure where any one or more of the cells in a symbol group storing that symbol are predicted to be a failed storage cell 163.
[0065] Step 505 comprises error correction decoding the block of stored ECC encoded data, using the symbol logical values and taking account of the erasure information. In the preferred ECC coding scheme, each codeword 204 is decoded in isolation, and the results from ECC decoding plural codewords (in this case four codewords) provides ECC decoded data corresponding to the original information sector 200. As will be familiar to those skilled in the field of ECC, available error correction codes allow a predetermined number of full errors to be corrected (i.e. where the location of a symbol error is unknown and the symbol value is unknown), and twice that predetermined number of erasures (i.e. where the location of a symbol error is known and just the symbol value remains unknown) or a combination of the two. For example, the preferred [160,128,33] Reed-Solomon code is mathematically able to correct up to sixteen full errors or up to thirty-two erasures (or a combination, such as twenty erasures and six full errors). Advantageously, the error correction decoding is able to correct a greater number of errors using the generated erasure information, compared with a situation where this erasure information is not available.
[0066] Step 506 comprises providing an output from the decoding step 505 as recovered information. In the preferred embodiment, the power of the error correction coding scheme is chosen to balance an overhead of the ECC scheme against the probability of encountering failed symbols. In substantially all practical cases the number of failures is within the power of the decoder to correct, and the original information 200 is recovered and output at step 506. The loss of original information due to an unrecoverable or mis-corrected block of stored encoded data is very rare.
[0067] The method optionally comprises the additional step 507 of writing back corrected data to the MRAM storage array. In order to avoid error propagation, corrected data obtained by performing ECC decoding is written back to the storage cells of interest in that read operation. However, this write-back operation incurs a delay and slows overall operation of the MRAM device. To reduce the overhead of this write-back operation, suitably the encoded data as input to the decoder is compared with an output of the decoder, and only any symbols which have been changed (i.e. corrected) by the decoder are written back to the array. Further, corrected data is only written back to good storage cells, and corrected data is not written back to failed storage cells. In the present example, some symbol groups of storage cells are predicted to be affected by a systematic failure, from the erasure information. Therefore, writing back corrected data to these storage cells is wasteful, because the next read operation using these storage cells will almost certainly encounter the same failure. Preferably, writing back corrected data is performed on the basis of the erasure information obtained in step 503. That is, any symbol group identified as an erasure in step 503 is not used in the write-back of corrected data.
[0068] The method discussed above is particularly useful in determining some forms of failures, such as grouped-type shorted-bit failures and open-bit failures in MRAM devices. By contrast, an isolated systematic failure such as a half-select bit is not so easily detectable using the test rows, but the effects of such a failure are easily discovered by performing error correction decoding. Therefore, combining the use of test cells with error correction coding provides a practical device which is able to take advantage of the considerable benefits offered by the new MRAM technology whilst minimising the limitations of current manufacturing techniques.
[0069] The MRAM device described herein is ideally suited for use in place of any prior solid-state storage device. In particular, the MRAM device is ideally suited both for use as a short-term storage device (e.g. cache memory) or a longer-term storage device (e.g. a solid-state hard disk). An MRAM device can be employed for both short term storage and longer term storage within a single apparatus, such as a computing platform.
[0070] A magnetoresistive solid-state storage device and a method for decoding data stored in such a device have been described. Advantageously, the storage device is able to tolerate a relatively large number of errors, including both systematic failures and transient failures, whilst successfully remaining in operation with no loss of original data, through the use of error correction coding. Simpler and lower cost manufacturing techniques are employed and/or device yield and device density are increased. Error correction coding and decoding allows blocks of data, e.g. sectors or codewords, to remain in use, where otherwise the whole block must be discarded if only one failure occurs. Advantageously, generating erasure information allows significantly improved error correction decoding. Error correction overhead in the stored encoded data can be reduced and/or more powerful error correction can be obtained for the same overhead.
Claims
- 1. A method for error correction decoding of ECC encoded data stored in a magnetoresistive solid-state storage device having a plurality of magnetoresistive storage cells, comprising the steps of:
reading a set of the storage cells of interest, relating to at least one block of ECC encoded data; examining a set of test cells corresponding to the cells of interest, to generate erasure information for the at least one block of ECC encoded data; and error correction decoding the at least one block of ECC encoded data with reference to the erasure information.
- 2. The method of claim 1, comprising providing the plurality of storage cells in an array of rows and columns, wherein the test cells are provided in a test row and the test cells share columns with the cells of interest.
- 3. The method of claim 2, comprising selecting a row of storage cells from the array to form the test row of test cells.
- 4. The method of claim 3, wherein the test cells in the test row are affectable by failures in other rows, but are not affected by failures within the test row.
- 5. The method of claim 1, wherein the examining step comprises reading the test cells and comparing the read values against expected values.
- 6. The method of claim 5, comprising writing the expected values to the test cells.
- 7. The method of claim 1, wherein the examining step is performed contemporaneously with the reading step.
- 8. The method of claim 1, wherein the reading step is performed one or more times relating to more than one block of ECC encoded data, and examining step is performed once to generate erasure information for the more than one block of ECC encoded data.
- 9. The method of claim 1, wherein the reading step comprises generating logical values for a plurality of symbols of the at least one block of ECC encoded data, and the examining step comprises identifying zero or more of the symbols as an erasure.
- 10. The method of claim 1, wherein the erasure information identifies one or more symbols in the at least one block of encoded data where a logical value is predicted to be unreliable.
- 11. The method of claim 1, wherein the decoding step comprises identifying the location of zero or more errors in the at least one block of ECC encoded data, with reference to the erasure information, and replacing each identified error with a calculated correct value.
- 12. The method of claim 1, comprising the step of selectively writing back corrected encoded data to the storage cells, with reference to the erasure information.
- 13. The method of claim 1, further comprising the steps of:
encoding a logical unit of original information to form at least one block of ECC encoded data; and storing the block or blocks of ECC encoded data in the array of storage cells; wherein the decoding step attempts to recover the logical unit of original information from the stored block or blocks of ECC encoded data.
- 14. A method for error correction decoding of ECC encoded data stored in a magnetoresistive solid-state storage device having a plurality of magnetoresistive storage cells arranged in at least one array, the method comprising the steps of:
selecting a row from an array of the at least one array to provide a test row of test cells; selecting a set of storage cells arranged to store at least one block of ECC encoded data; reading the at least one block of ECC encoded data from the selected set of storage cells; performing a write-read-compare operation on a selected set of the test cells to predict columns in the array that are affected by a physical failure; forming erasure information for the at least one block of ECC encoded data, the erasure information identifying symbols within the block of ECC encoded data predicted to be affected by physical failures as determined by the test cells; and decoding the at least one block of ECC encoded data with reference to the erasure information.
- 15. A magnetoresistive solid state storage device, comprising:
at least one array of magnetoresistive storage cells; a controller arranged to examine a set of test cells to form erasure information for at least one block of ECC encoded data stored in a set of the storage cells; and an ECC decoding unit arranged to decode the at least one block of stored ECC encoded data with reference to the erasure information.
- 16. An apparatus incorporating a magnetoresistive storage device according to claim 15.
- 17. A magnetoresistive solid-state storage device, comprising:
at least one array of magnetoresistive storage cells; an ECC coding unit arranged to receive original information and to form at least one block of ECC encoded data; a controller arranged to store the at least one block of ECC encoded data in a set of storage cells, and to read the stored at least one block of ECC encoded data from the set of storage cells, the controller arranged to examine a set of test cells corresponding to the set of storage cells to form erasure information for the at least one block of ECC encoded data; and an ECC decoding unit for decoding the at least one block of stored ECC encoded data with reference to the erasure information.
- 18. An apparatus incorporating a magnetoresistive storage device according to claim 17.
Continuation in Parts (1)
|
Number |
Date |
Country |
Parent |
09915194 |
Jul 2001 |
US |
Child |
10093841 |
Mar 2002 |
US |