This application claims priority from European patent application No. 03425171.0 filed Mar. 19, 2003, which is incorporated herein by reference.
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.
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.
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.
In this specific technical field, it is well known that in an information storage unit (
This is the typical condition of storage systems like disk-on-chip, memory card or smart card, as schematized in the here-attached
In a general control unit (
In an ideal system, without errors, the memory receives/sends the data sent/required by the controller without error possibility.
In a real system, however, it is almost impossible to send and store data without errors.
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.
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.
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.
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.
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.
During the information reading, the K original information bits are decoded from the N bits read by the memory.
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.
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.
With reference to
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]
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).
For the decoding step a so-called syndrome “s” must be calculated:
s=r·HT=p⊕+d·P
where
G·HT=0
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.
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”.
To achieve this coding and decoding scheme some solutions are known, which are schematically shown in
In the first solution of
The disadvantages of this solution are:
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.
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.
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.
In this second prior art solution, shown in
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.
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.
On the basis of this solution, the technical problem is solved by a memory system.
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.
a schematically shows a prior-art memory system equipped with devices for the automatic error correction;
b schematically shows a further prior-art memory system equipped with other devices for the automatic error correction;
With reference to the drawings, and particularly to the example of
Such a system can be an independent information storage unit (
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.
Non-volatile memories are electronic devices integrated on a semiconductor and equipped with memory cell matrices, particularly multilevel cells.
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.
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.
The memory system 1 is advantageously equipped with a particular device for the automatic correction of storage errors.
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.
As shown in
Memory 2 comprises, besides respective areas 2a, 2b for data and parity storage:
As illustrated, the memory 2 is coupled to a bus 4 in order to provide the following to the controller 3:
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].
The calculation of the syndrome s uses almost integrally the parity calculation circuit used for the coding COD.
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.
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.
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.
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.
The operating method of the memory system according to an embodiment of the invention will now be described.
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.
These functions are sufficiently simple from a circuit point of view so as to be advantageously performed in the memory 2.
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.
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.
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.
The correction of all double errors, performed by the controller, will now be described.
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.
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.
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.
Other particular cases will now be described:
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.
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.
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.
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.
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.
When required by the memory, through the IRQ signal, the controller provides to:
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.
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.
The memory system 1 may be part of an electronic system, such as a computer system.
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.
Number | Date | Country | Kind |
---|---|---|---|
03425171 | Mar 2003 | EP | regional |
Number | Name | Date | Kind |
---|---|---|---|
5533035 | Saxena et al. | Jul 1996 | A |
5922080 | Olarig | Jul 1999 | A |
6802040 | Ohyama et al. | Oct 2004 | B1 |
6996741 | Pittelkow et al. | Feb 2006 | B1 |
7134069 | Longwell et al. | Nov 2006 | B1 |
20020069317 | Chow et al. | Jun 2002 | A1 |
20020174397 | Furukawa | Nov 2002 | A1 |
20030126513 | Wuidart | Jul 2003 | A1 |
20040015771 | Lasser et al. | Jan 2004 | A1 |
Number | Date | Country |
---|---|---|
2001-175542 | Jun 2001 | JP |
Number | Date | Country | |
---|---|---|---|
20040230869 A1 | Nov 2004 | US |