Integrated memory system

Information

  • Patent Application
  • 20040230869
  • Publication Number
    20040230869
  • Date Filed
    March 19, 2004
    20 years ago
  • Date Published
    November 18, 2004
    19 years ago
Abstract
An embodiment of the present invention relates to an integrated memory system comprising at least a non-volatile memory and an automatic storage error corrector, and wherein the memory is connected to a controller by means of an interface bus. Advantageously, the system comprises in the memory circuit means, functionally independent, each being responsible for the correction of a predetermined storage error; at least one of said means generating a signal to ask a correction being external to the memory.
Description


PRIORITY CLAIM

[0001] This application claims priority from European patent application No. 03425171.0 filed Mar. 19, 2003, which is incorporated herein by reference.



TECHNICAL FIELD

[0002] In its more general aspect, an embodiment of the present invention relates to the field of memory systems comprising at least a non-volatile memory and a controller.


[0003] Such a system can be an independent information storage unit or it can be used as a control or processing unit for a general application.


[0004] More particularly, an embodiment of the invention relates to an integrated memory system comprising at least a non-volatile memory and an automatic error corrector.



BACKGROUND OF THE INVENTION

[0005] In this specific technical field, it is well known that in an information storage unit (FIG. 2) the controller functions to provide an interface for the user, according to a predetermined convention, by using an interface and some services made available by the memory.


[0006] This is the typical condition of storage systems like disk-on-chip, memory card or smart card, as schematized in the here-attached FIG. 2.


[0007] In a general control unit (FIG. 3) a predetermined software level attends to providing interface functions to overhanging software levels by using said interface and services made available by the memory.


[0008] In an ideal system, without errors, the memory receives/sends the data sent/required by the controller without error possibility.


[0009] In a real system, however, it is almost impossible to send and store data without errors.


[0010] Data-storage flash memories use the most developed technologies to integrate the most information per area unit. For these applications NAND, Multilevel NAND and Multilevel NOR memories are commonly used. Error probability of these memories increases as the memory ages because of well-known physical phenomena.


[0011] For example, in a floating gate memory cell, the information storage capacity is influenced by several mechanisms, such as: the ability to maintain charge, the “read disturb” mechanism, the “program disturb” mechanism, the SILC phenomenon, each having a different influence as the memory ages.


[0012] In substance, the error tolerance which must be offered by the memory system is determined by the kind of application required by the user and it is usually lower than the error tolerance offered by flash memories during their life span.


[0013] A convenient memory system must provide some devices and functions to show externally, or at overhanging levels, an error tolerance being lower or equal to the one required by the application. This is commonly achieved by using error correction techniques.


[0014] These error correction techniques provide that the information is split in words of K bits and that these words are conveniently coded with N bits, where R redundancy bits are added to the K information bits. Only at this point are words written in the memory.


[0015] During the information reading, the K original information bits are decoded from the N bits read by the memory.


[0016] The presence of R redundancy bits allows the original information to be recovered if the error number is lower than W. Different codings for the K information bit protection from W errors by coding on N bits are known in the prior art.


[0017] For convenience of illustration, a practical case of a linear and systematic coding (144, 128) for correcting two errors (N=144 bits, K=128 bits, W=2 bits) will be considered hereinafter.


[0018] With reference to FIG. 6, the coding and decoding of such a code can be summarised as follows:


[0019] The vector “c” to be stored, composed of 144 bits, is obtained as a vector product of “i”, a 128-bit data vector, with the binary generating matrix “G” composed of 128 rows by 144 columns. In the particular linear and systematic coding case G is composed of an identity matrix I and a parity matrix P. The vector “c” being obtained thus comprises the repetition of the data vector “i” and the parity vector is obtained as vector product iP. Formally expressed:




c=i·G=i·[I,P]=[i, iP]




[0020] The matrix P is a binary matrix of size 128×16 being conveniently chosen (a method for obtaining this matrix is known in the art).


[0021] For the decoding step a so-called syndrome “s” must be calculated:




s=r·H


T


=p⊕+d·P




where




G·H


T
=0



[0022] The syndrome “s”, a 16-bit vector, is obtained as a vector product between the vector “r”, a data vector of 144 bits read by the memory and composed of a 128-bit data part “d” and a 16-bit parity part “p”, and the transpose of the matrix H. It can be shown that the syndrome is equivalent to the sum in GF(2) of the parity vector “p” with the vector product of the vector d with the parity matrix P.


[0023] The syndrome s is void if the data vector “r” is correct; while, according to the way the matrix P is defined, “s” has a sole value for each possible configuration of one or two errors affecting “r”.


[0024] To achieve this coding and decoding scheme some solutions are known, which are schematically shown in FIGS. 4a and b.


[0025] In the first solution of FIG. 4a a general memory is used. This memory stores data “i” and parity bits “iP”, calculated by the controller. The coding and decoding task for correcting errors is entrusted to the controller.


[0026] The disadvantages of this solution are:


[0027] high latency time between the data request and the availability thereof.


[0028] In fact standard flash memories use a limited-size interface bus to communicate with the controller. Although the memory internal reading is commonly performed for pages having several bits (for example 144 bits), the communication towards the controller is bound to a word sequence on the data bus. Since for calculating the syndrome, and thus for detecting and correcting the error, all the page bits are necessary, data are available for the user only after transferring all K bits of the page (data+parity) in the controller and after calculating the parity.


[0029] a memory overhead in the controller.


[0030] In fact the K bits of the page (data+parity) must be loaded in the controller memory with subsequent occupation of a controller memory area.


[0031] an overhead in the controller processing resources.


[0032] In fact the controller must, for each data page, read all K bits of the page (data+parity). For each page it must therefore calculate the parity and, if the latter indicates an error, activate the correction.


[0033] For performing these operations the controller requires a calculation power overhead so as not to influence the memory system overall performances; moreover a part of the transmission band between the memory and the controller is used for transmitting parity bits being not strictly necessary for the user application.


[0034] In this second prior art solution, shown in FIG. 4b, the coding and decoding task is entrusted to the memory. The syndrome decoding for correcting two errors is generally too onerous in terms of area to be advantageously implemented in the memory.


[0035] The technical problem underlying an embodiment of the present invention is to provide an integrated memory system, having such structural and functional characteristics as to ensure an automatic error correction in data storage overcoming the drawbacks mentioned with reference to the prior art.



SUMMARY

[0036] A solution underlying an embodiment of the present invention provides the possibility and opportunity to split the correction in different processes to be performed directly in the memory or in the controller.


[0037] On the basis of this solution, the technical problem is solved by a memory system.







DESCRIPTION OF THE DRAWINGS

[0038] The features and advantages of the system according to the invention will be apparent from the following description of at least one embodiment thereof given by way of non-limiting example with reference to the attached drawings.


[0039]
FIG. 1 is a schematic block view of a prior-art memory system incorporating at least a non-volatile memory and a controller;


[0040]
FIG. 2 is a schematic block view of the system of FIG. 1 used as an information storage unit;


[0041]
FIG. 3 is a schematic block view of the system of FIG. 1 used as a control or processing unit;


[0042]
FIG. 4

a
schematically shows a prior-art memory system equipped with devices for the automatic error correction;


[0043]
FIG. 4

b
schematically shows a further prior-art memory system equipped with other devices for the automatic error correction;


[0044]
FIG. 5 schematically shows a memory system according to an embodiment of the invention incorporating devices for the automatic error correction;


[0045]
FIG. 6 is a schematic block view of a non-volatile memory portion incorporated in the system of FIG. 5 according to an embodiment of the invention;


[0046] FIGS. 7 to 10 are respective schematic block views of components of the memory of FIG. 6 according to an embodiment of the invention.







DETAILED DESCRIPTION

[0047] With reference to the drawings, and particularly to the example of FIG. 5, a memory system in accordance with an embodiment of the present invention to store data and information in binary logic is globally and schematically indicated with 1.


[0048] Such a system can be an independent information storage unit (FIG. 2) or it can be used as a control or processing unit for a general application (FIG. 3).


[0049] The system 1 comprises at least a non-volatile memory 2, for example of the Flash type, and a controller 3 associated to the memory 2 by means of an interface bus 4.


[0050] Non-volatile memories are electronic devices integrated on a semiconductor and equipped with memory cell matrices, particularly multilevel cells.


[0051] More particularly, memory device means any monolithic electronic system incorporating a memory cell matrix, organized into rows, referred to as word lines, and columns, referred to as bit lines, as well as circuit portions associated to the cell matrix and responsible for addressing, decoding, reading, writing and erasing the memory cell content.


[0052] Such a device can be for example a memory chip integrated on a semiconductor and of the non-volatile EEPROM flash type split in sectors and electrically erasable. Each memory cell comprises a floating gate transistor with source, drain and control gate terminals.


[0053] The memory system 1 is advantageously equipped with a particular device for the automatic correction of storage errors.


[0054] In particular, the system 1 provides the possibility and opportunity to split the correction in different processes to be performed directly in the memory 2 or in the controller 3.


[0055] As shown in FIG. 6, the structure of the memory system 1 is illustrated as a set of functional blocks located between an input terminal In and an output terminal Out.


[0056] Memory 2 comprises, besides respective areas 2a, 2b for data and parity storage:


[0057] circuits COD for the coding required to correct two errors;


[0058] a logic SYND for calculating the syndrome s;


[0059] a circuit COR for correcting a single error; and


[0060] a logic Ext COR for detecting more than one error.


[0061] As illustrated, the memory 2 is coupled to a bus 4 in order to provide the following to the controller 3:


[0062] a one-or-no-error-corrected data;


[0063] the uncorrected error;


[0064] the calculated syndrome s;


[0065] a signal IRQ activated to request the external correction.


[0066] FIGS. 7 to 10 show in schematic blocks the different blocks composing the memory 2 for a linear and systematic coding.


[0067]
FIG. 7 shows the coding block COD located immediately downstream of the input terminal.


[0068] The vector product iP, performed by the block P, has a limited circuit complexity, proportional to the number of parity bits, and it is obtained through the synthesis of the corresponding logic function: c=[i, iP].


[0069]
FIG. 8 shows the block SYND for calculating the syndrome s=p+dP.


[0070] The calculation of the syndrome s uses almost integrally the parity calculation circuit used for the coding COD.


[0071]
FIG. 9 shows the block COR for correcting one error and the block for requiring the external correction Ext COR with o=d+e.


[0072] The block for decoding a single error includes a decoding circuit E, of limited complexity, proportional to the number of single errors to be corrected.


[0073] This block is obtained through synthesis of the functional description thereof. In practise, the block E recognises each one of the 128 syndromes associated with a single error and it activates, through the vector “e”, the correction of the corresponding bit.


[0074] If there are no errors to be corrected (s=0) or the syndrome value does not belong to the set of single errors, the vector “e” is void and the original data d is output.


[0075]
FIG. 10 shows a simple activation block of a signal q being simultaneously activated when the intervention of the external correction is required.


[0076] The memory system 1 according to an embodiment of the invention, incorporating the previously mentioned correction blocks, uses the high parallelism available on the reading path. In fact, the parallel reading of a 144-bit data page and the writing, i.e., the parallel programming of a 144-bit data page, are only available for memory-integrated coding, decoding and correction solutions.


[0077] The operating method of the memory system according to an embodiment of the invention will now be described.


[0078] A first error-correction process relates to the determination of the syndrome “s” and to the correction of single errors, performed in the memory 2.


[0079] These functions are sufficiently simple from a circuit point of view so as to be advantageously performed in the memory 2.


[0080] Since memory 2 simultaneously comprises all K bits of the read page (data+parity), the calculation of the syndrome s and the single-error correction can be immediately performed.


[0081] This allows the corrected data to be transferred to the controller 3, immediately and with minimal latency, with no need to also transfer the parity. Therefore the bus band for the parity transfer is not occupied.


[0082] If several errors occur, the memory 2 immediately indicates to the controller 3, through the dedicated IRQ line, the need to perform an external correction, in this case any alteration is applied on read data.


[0083] The correction of all double errors, performed by the controller, will now be described.


[0084] When, after a data request, the controller 3 receives from the memory 2 the indication that two or more errors occurred, the normal data transfer is interrupted.


[0085] The syndrome s calculated in the memory 2 is read. If the syndrome is associated to a double error, the locations of the error-producing bits are detected, data are then read by the memory 2 and corrected where they must be corrected.


[0086] This operation is not very frequent and more complex than the single error correction; in fact it requires more memory or calculation capacity, and can be advantageously performed by the controller without endangering system performances.


[0087] Other particular cases will now be described:


[0088] 1) The correction of more than two errors indicated by the syndrome s (Controller or user SW)


[0089] If the syndrome calculated in the memory is not associated to any error, neither single nor double, it serves as a detector of three or more errors.


[0090] The capacity of detecting all or a part of higher-order errors (3, 4, . . . ) exclusively depends on the chosen parity matrix. The detection of a higher-order error (i.e., higher than 2) allows the controller 3 to use this information to activate the decoding of a correction code at a higher software level, on the same set of data or on a larger size set.


[0091] The single errors being already corrected inside the memory and double errors being already corrected through the parity calculated in the memory, the events with three or more errors are extremely rare and, although the correction thereof is complex, they do not significantly affect system performances.


[0092] The controller 3 overhead is limited to the correction of two errors, when explicitly required by the indication from the memory and it is limited to the reading of the syndrome s, calculated in the memory, and to the correction of double errors.


[0093] If the probability to have an error in a 128-bit page is for example 10−5, the probability to have two errors is about 10−10, the number of interventions by the controller 3 is therefore reduced by five quantities. The probability to have more than two errors is about 10−15 and thus extremely improbable.


[0094] When required by the memory, through the IRQ signal, the controller provides to:


[0095] read the syndrome s


[0096] calculate the two bits to be redounded through one of the following two methods:


[0097] searching, on an ordered table, the syndromes of two errors. This method requires an ordered table of the N(N−1) syndromes associated to two error-producing bits and a number of operations equal to O(Nlog N).


[0098] 2) Comparing all the syndromes obtainable as sum of two rows of the parity P matrix.


[0099] If the search detects the couple of error-producing bits, then the data reading, the correction thereof and the transmission to the user are performed.


[0100] If the search does not detect the couple of error-producing bits, this means that the syndrome indicates the presence of three or more errors. The controller or driver SW asks the higher SW levels to correct these errors.


[0101] The memory system 1 may be part of an electronic system, such as a computer system.


[0102] It will be evident to the expert in the art how to apply the error-correction devices according to an embodiment of the present invention also to other circuit solutions allowing a split of the single error correction functions. For example the principles of an embodiment of the present invention can be applied also when the error-correction system is taken from the memory and integrated in a coprocessor or in an accelerator in the control unit.


Claims
  • 1. An integrated memory system, comprising at least a non-volatile memory and an automatic storage error corrector, characterized in that the memory system comprises circuit means, functionally independent, each of them being responsible for the correction of a predetermined storage error; at least one of said means generating a signal to ask a correction being external to the memory.
  • 2. A system according to claim 1, characterized in that said memory is connected to a controller by means of an interface bus and said means are incorporated both in the memory and in the controller.
  • 3. A system according to claim 1, characterized in that in the memory said means comprise: circuits for the coding required to correct two errors; a logic for calculating the syndrome; a circuit for correcting a single error; a logic for detecting more than one error.
  • 4. A system according to claim 3, characterized in that said means also comprise: a logic for bringing to the controller: a one-or-no-error-corrected data the uncorrected error; and the calculated syndrome.
  • 5. A system according to claim 2, characterized in that said means comprise a circuit for generating a signal activated to request the external correction of an error by said controller.
  • 6. A system according to claim 3, characterized in that said coding block is located immediately downstream of the input terminal of said memory and performs a vector product proportional to the number of parity bits and obtained through the synthesis of a corresponding logic function.
  • 7. A system according to claim 6, characterized in that said logic for calculating the syndrome uses again the parity calculation circuit of the coding block.
  • 8. A system according to claim 3, characterized in that said circuit for correcting a single error comprises a block for decoding a single error effective to recognise each of the several syndromes associated to a single error to activate, through a corresponding vector, the correction of the corresponding bit.
  • 9. A system, comprising: a first circuit operable to store data having associated therewith at least one storage error of a plurality of storage-error types, the first circuit operable to correct a first-type error of the plurality of storage-error types; and a second circuit coupled to the first circuit, the second circuit operable to correct a second-type error of the plurality of storage-error types.
  • 10. The system of claim 9 wherein the second circuit is operable to generate a signal requesting correction of a third-type error of the plurality of storage-error types.
  • 11. The system of claim 9 wherein the first circuit is further operable to determine at least one syndrome associated with the at least one storage error.
  • 12. The system of claim 9 wherein the first circuit is further operable to detect the second-type error.
  • 13. The system of claim 9 wherein the second circuit corrects the second-type error in response to a signal generated by the first circuit.
  • 14. The system of claim 9 wherein the first circuit comprises a non-volatile memory.
  • 15. The system of claim 9 wherein: the first circuit is disposed on a first integrated circuit; and the second circuit is disposed on a second integrated circuit.
  • 16. The system of claim 9 wherein the first and second circuits are disposed on an integrated circuit.
  • 17. A memory device, comprising: a storage portion operable to store data having associated therewith at least one storage error of a plurality of storage-error types; a first circuit operable to correct a first-type error of the plurality of storage-error types; and a second circuit operable to generate a signal indicating detection of a second-type error of the plurality of storage-error types.
  • 18. The device of claim 17, further comprising a third circuit operable to determine at least one syndrome associated with the at least one storage error.
  • 19. A method, comprising: storing, in a memory location of a device, data having associated therewith at least one storage error of a plurality of storage-error types; and correcting, at the memory location, a first-type error of the plurality of storage-error types.
  • 20. The method of claim 19, further comprising generating, at the memory location, an interrupt-request signal indicating detection of a second-type error of the plurality of storage-error types.
  • 21. An electronic system, comprising: a first integrated circuit having a memory operable to store data having associated therewith at least one storage error of a plurality of storage-error types, the memory operable to correct a first-type error of the plurality of storage-error types; and a second integrated circuit coupled to the first circuit, the second integrated circuit having processor operable to correct a second-type error of the plurality of storage-error types.
Priority Claims (1)
Number Date Country Kind
03425171.0 Mar 2003 EP