1. Field
Subject matter disclosed herein relates to error correction codes.
2. Information
In the last decade, for example, memory devices have continued to become denser. However, as memory cells become smaller, they tend to also become more prone to errors. Such may be the case for a number of nonvolatile memory technologies like NAND Flash Memories, NOR Flash Memories, and Phase Change Memories. In addition, error probability may increase for memories utilizing multi-level architecture to store information in a memory cell. Here, a voltage (or current) window may remain the same but the read margin may decrease because distribution levels may be relatively close together. Errors occurring during reading of a nonvolatile memory may result from storage charge loss, random telegraph signal effects, coupling effects, detrapping mechanisms, read disturb phenomena, and/or cosmic rays, just to name a few examples.
Non-limiting and non-exhaustive embodiments will be described with reference to the following figures, wherein like reference numerals refer to like parts throughout the various figures unless otherwise specified.
Reference throughout this specification to “one embodiment” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of claimed subject matter. Thus, the appearances of the phrase “in one embodiment” or “an embodiment” in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in one or more embodiments.
Embodiments described herein include processes and/or electronic architecture involving an error correction code (ECC) to correct one or more errors while satisfying particular constraints that may be imposed by various applications. For example, applications involving execution-in-place (XiP) memories may use such an ECC process to reliably correct up to two errors in less than 10.0 ns. In addition to such a time constraint, a portion of an area of a memory device to implement such an ECC process may be maintained at a relatively low value. For example, such an area occupancy of circuitry related to an ECC process may be smaller than 5% of total die area of a memory device.
An ECC process may supplement user data with parity bits to store enough extra information for the user data to be reconstructed if one or more bits of the user data become corrupted. In a particular implementation, an ECC process may be based, at least in part, on parallel encoding and decoding techniques. Such techniques may involve a 2-bit error correcting binary Bose-Chaudhuri-Hocquenghem (BCH) code. A process using such a BCH code may include a BCH decoder that need not involve division operations in a Galois Field (GF), thus avoiding relatively lengthy electronic operations.
Herein, a string of user data supplemented with parity bits is called an ECC codeword. An ECC with codewords of length n, with k data bits, and which is able to correct t errors is denoted by a triplet (n, k, 2t+1). An ECC process may be configured based, at least in part, on a particular application being used. For example, an application may be characterized by an error correction capability (t), a data page dimension (k), a correction time (T), a silicon area occupation (A), and types of errors (e.g., random or burst). To describe a particular example, k may be 4 or 8 kilobits, T may be in the order of tens of microseconds, and t may range from 4 to 24 (i.e., based at least in part on k and on the number of stored bits per memory cell). To describe another particular example, for an XiP application k may be 128, 256, or 512 bits, and T may be in the order of several nanoseconds. Of course, such parameters are merely examples, and claimed subject matter is not so limited.
In an embodiment, latency may be a primary concern. Here, latency refers to a time lag between “reading” and “correcting” a string of user data. Operations described herein are configured to improve latency by reducing execution time. In the following, TX, TA, and T3O refer to operation time lengths for AND, XOR, and 3-input OR logic gates, respectively. Such logic gates may be used, for example, in an electronic circuit to implement processes and/or operations described herein.
A string of user data may comprise 256 bits, though such a number of bits is merely an example used herein to illustrate a particular embodiment. In this particular embodiment, operations involving a GF(29) will be described. A BCH code may be shortened after being configured in the finite field GF(512), generated by p(x)=x9+x4+1. Elements αj of the field may be represented in polynomial form, which may lead to relatively simple implementations of sums and more challenging implementations of multiplication operations.
Multiplication of a variable a by a constant αj may be evaluated as a linear combination of the bits of a. Complexity may depend on j. With j=0, 1 . . . 8, for example, there may be three addends for each bit of the result, hence the operation may take 2TX.
Multiplication of two variables, say c=ab, may be implemented by a technique that exploits different latencies for the two factors a and b. In an evaluation process, if a is available before b, then terms aαj (j=0, 1 . . . 8) may be evaluated. Next, the following summations from j=0 to j=m−1 may be carried out, multiplied by bits bj:
c=ab=a*Σb
j
α
j
=Σb
j(aαj).
Since operations involving multiplication by aj may take a relatively long time, b may be available at a time later than a. Final sums involving nine addends may take a time 4TX if such addends were synchronous. As some are available in advance, a time 3TX may be sufficient to complete the summation operation in a time TA+5TX after a is available. An additional TX delay for b may then be tolerated with little or no time penalty.
As a result of asynchronism of different addends, a third variable d may be added to the product ab without additional delay and, moreover, at least some processing on variable d may be performed in parallel. For example, evaluating c=ab+d4 may take TA+5TX after a is available, including additional delays for b and d of up to TX and 2TX, respectively. Further, the square-multiplication a2b and a2b+d may have the same latency. Accordingly, products atαj may involve different combinations of the bits of α, but without a time penalty.
A special case of the operation a2b may include a3, which may take a relatively short duration TA+4TX. Such a result may be achieved by separating linear and nonlinear parts of the following operation:
a
3
=Σa
iα3i+ΣiΣjaiaj(α2i+j+αi+2j).
The “ΣiΣj aiaj(α2i+jαi+2j)” term may present a bottleneck, which may be at least partially alleviated by collecting partial sums before products. Such a separation may then allow addition of a second variable b without additional latency. Similar considerations and latency may hold for nonlinear powers such as a6, while a2 comprises a simple linear combination of the bits of a that may be processed in a time of TX.
In an embodiment, a double error correcting BCH code in GF(512) may comprise the triplet BCH(511,493,5) associated with a generator polynomial:
g(x)=x18+x15+x12+x10+x8+x7+x6+x3+1.
Such a BCH code may be shortened to (274,256,5) in such a way that survived positions of the information bits minimize latency of syndrome evaluations and the number of operations involved in the syndrome evaluation:
S1=Σnyinαin,
S3=Σnyinα3in.
The number of addends yin for bits of S1 and S3 may be kept below 128 (e.g., 27), thus reducing the latency of the syndrome evaluation process to a time 7TX.
A monic locator polynomial (e.g., having a leading term with a coefficient of 1) may involve a division operation as follows:
Γ(x)=1+S1x+(S13+S3)*x2/S1
Such a division may present relatively high demands in terms of latency. Regarding a process for finding roots of such a monic locator polynomial, the polynomial
Γ(x)=S1+S12x+(S13+S3)x2 may be equivalent as long as S1is not 0. The condition S1=0 may denote either an absence of errors (if also S3=0) or an error pattern that may not be correctable (if S3#0). Also, in the case of a single error, (S13+S3=0) may be evaluated using Γ(x)=S1+S12x+(S13+S3)x2, for example. If a codeword includes a correctable error in position i, multiplying such an equation by α2i, results in:
S
1α2i+S12αi+S13S3=0.
Such an expression may be particularly useful because S13+S3 may be a relatively critical evaluation in terms of latency, and is the last term to become available during a process to evaluate such a monic locator polynomial. Nine bits of S1α2i+S12αi may comprise linear combinations of the bits of S1, which may depend, at least in part, on the specific position i. In a particular implementation, there may be 256 different positions and nine (possibly) different linear combinations for each such position. Accordingly, there may be 511 non-null distinct linear combinations to be evaluated. Such a linear combination may also include a linear part of S13. To optimize the speed of operations, the 256 terms may be evaluated in parallel. Bits that are determined to be errors may be flipped (e.g., “1” flips to “0” or “0” flips to “1”). Of course, such details of an ECC process are merely examples, and claimed subject matter is not so limited.
S
1α2i+S12αi+S13+S30.
An ECC codeword comprising bits y0, y1, y2 . . . y273 may be provided to syndrome generator 210. Such a codeword may include user bit portion y18, y19 . . . y273 and parity bit portion y0, y1 . . . y17, for example (in other embodiments there may be no need to distinguish between user and parity data). Using such bits values, syndrome generator 210 may determine S1 and S3, using S1=Σnyinαin and S3=Σnyinαin, as described above. S1 may then be provided to a nonlinear computing block comprising nonlinear cube operator 230, which may result in evaluation of a nonlinear portion of S13. Also, S1 may be provided to a linear computing block comprising linear combination branch 220 to evaluate S1α2i+S12αi and a linear portion of S13. Such an evaluation may be performed by parallel circuit branches 225. As explained above for a particular implementation, there may be 256 different positions and nine different linear combinations of S1 for each such position. Accordingly, there may be 511 non-null distinct linear combinations to be evaluated. Such a linear combination may also include a linear part of S13. Accordingly, the number of parallel circuit branches 225 account for such combinations, which may then be evaluated concurrently.
In a particular embodiment, syndrome generator 210 may provide S1 and S3 to logic block 240, which may comprise one or more logic operators and/or logic circuit elements, such as AND, XOR, and/or 3-input OR logic gates, just to name a few examples. In turn, logic block 240 may provide a result to logic block 250, which may logically combine such a result with a nonlinear portion of S13 evaluated by nonlinear cube operator 230. Subsequently, results from logic block 250 and parallel circuit branches 225 may be logically combined at logic blocks 260, which may comprise one or more XOR and/or NOR logic gates, for example. Output 270 from logic blocks 260 may then be respectively combined, via logic blocks 280, with bits y18, y19, y20 . . . y273 of the original ECC codeword. Such a combination may result in an error corrected output ŷ18, ŷ19 . . . y273 of the user bits y18, y19 . . . y273.
Decoder 300 may follow an error-correcting process such as process 200 shown in
Continuing with
As to area occupancy of decoder 300, the most demanding process stages may be the syndrome evaluations performed by syndrome generators 310 and 320 (approximately one thousand gates each), the linear combination operations of S1 performed by linear combination branch 330 (approximately two thousand gates), and the final correction stage (approximately three or four thousand gates), for a total area estimate of 0.09 mm2. Such a relatively low area value for area occupancy may be achieved by designing an error correction decoder according to embodiments described above. Of course, such numbers are merely intended to be illustrative, and claimed subject matter is not so limited.
It is recognized that all or part of the various devices shown in system 400, and the processes and methods as further described herein, may be implemented using or otherwise including hardware, firmware, software, or any combination thereof. Thus, by way of example but not limitation, computing device 404 may include at least one processing unit 420 that is operatively coupled to memory 422 through a bus 440 and a host or memory controller 415. Processing unit 420 is representative of one or more circuits configurable to perform at least a portion of a data computing procedure or process. By way of example but not limitation, processing unit 420 may include one or more processors, controllers, microprocessors, microcontrollers, application specific integrated circuits, digital signal processors, programmable logic devices, field programmable gate arrays, and the like, or any combination thereof. Processing unit 420 may include an operating system configured to communicate with memory controller 415. Such an operating system may, for example, generate commands to be sent to memory controller 415 over bus 440. Such commands may include instructions to partition at least a portion of memory 422, to associate one or more attributes to particular partitions, and to program a particular partition based at least in part on the type of data to be programmed and stored, for example.
Memory 422 is representative of any data storage mechanism. Memory 422 may include, for example, a primary memory 424 and/or a secondary memory 426. Primary memory 424 may include, for example, a random access memory, read only memory, etc. While illustrated in this example as being separate from processing unit 420, it should be understood that all or part of primary memory 424 may be provided within or otherwise co-located/coupled with processing unit 420.
Secondary memory 426 may include, for example, the same or similar type of memory as primary memory and/or one or more data storage devices or systems, such as, for example, a disk drive, an optical disc drive, a tape drive, a solid state memory drive, etc. In certain implementations, secondary memory 426 may be operatively receptive of, or otherwise configurable to couple to, a computer-readable medium 428. Computer-readable medium 428 may include, for example, any medium that can carry and/or make accessible data, code, and/or instructions for one or more of the devices in system 400.
Computing device 404 may include, for example, an input/output 432. Input/output 432 is representative of one or more devices or features that may be configurable to accept or otherwise introduce human and/or machine inputs, and/or one or more devices or features that may be configurable to deliver or otherwise provide for human and/or machine outputs. By way of example but not limitation, input/output device 432 may include an operatively configured display, speaker, keyboard, mouse, trackball, touch screen, data port, etc.
In the above detailed description, numerous specific details are set forth to provide a thorough understanding of claimed subject matter. However, it will be understood by those skilled in the art that claimed subject matter may be practiced without these specific details. In other instances, methods, apparatuses, or systems that would be known by one of ordinary skill have not been described in detail so as not to obscure claimed subject matter.
Some portions of the detailed description above are presented in terms of algorithms or symbolic representations of operations on binary digital signals stored within a memory of a specific apparatus or special purpose computing device or platform. In the context of this particular specification, the term specific apparatus or the like includes a general purpose computer once it is programmed to perform particular operations pursuant to instructions from program software. Algorithmic descriptions or symbolic representations are examples of techniques used by those of ordinary skill in the signal processing or related arts to convey the substance of their work to others skilled in the art. An algorithm is here, and generally, is considered to be a self-consistent sequence of operations or similar signal processing leading to a desired result. In this context, operations or processing involve physical manipulation of physical quantities. Typically, although not necessarily, such quantities may take the form of electrical or magnetic signals capable of being stored, transferred, combined, compared or otherwise manipulated. It has proven convenient at times, principally for reasons of common usage, to refer to such signals as bits, data, values, elements, symbols, characters, terms, numbers, numerals, or the like. It should be understood, however, that all of these or similar terms are to be associated with appropriate physical quantities and are merely convenient labels. Unless specifically stated otherwise, as apparent from the following discussion, it is appreciated that throughout this specification discussions utilizing terms such as “processing,” “computing,” “calculating,” “determining” or the like refer to actions or processes of a specific apparatus, such as a special purpose computer or a similar special purpose electronic computing device. In one example, such a special purpose computer or special purpose electronic computing device may comprise a general purpose computer programmed with instructions to perform one or more specific functions. In the context of this specification, therefore, a special purpose computer or a similar special purpose electronic computing device is capable of manipulating or transforming signals, typically represented as physical electronic or magnetic quantities within memories, registers, or other information storage devices, transmission devices, or display devices of the special purpose computer or similar special purpose electronic computing device.
The terms, “and,” “and/or,” and “or” as used herein may include a variety of meanings that will depend at least in part upon the context in which it is used. Typically, “and/or” as well as “or” if used to associate a list, such as A, B or C, is intended to mean A, B, and C, here used in the inclusive sense, as well as A, B or C, here used in the exclusive sense. Reference throughout this specification to “one embodiment” or “an embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment is included in at least one embodiment of claimed subject matter. Thus, the appearances of the phrase “in one embodiment” or “an embodiment” in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in one or more embodiments. Embodiments described herein may include machines, devices, engines, or apparatuses that operate using digital signals. Such signals may comprise electronic signals, optical signals, electromagnetic signals, or any form of energy that provides information between locations.
While there has been illustrated and described what are presently considered to be example embodiments, it will be understood by those skilled in the art that various other modifications may be made, and equivalents may be substituted, without departing from claimed subject matter. Additionally, many modifications may be made to adapt a particular situation to the teachings of claimed subject matter without departing from the central concept described herein. Therefore, it is intended that claimed subject matter not be limited to the particular embodiments disclosed, but that such claimed subject matter may also include all embodiments falling within the scope of the appended claims, and equivalents thereof.
This application is a continuation application of U.S. application Ser. No. 12/612,935, filed Nov. 5, 2009, issued as U.S. Pat. No. 8,332,731 on Dec. 11, 2012, the entirety of which is incorporated by reference herein.
Number | Date | Country | |
---|---|---|---|
Parent | 12612935 | Nov 2009 | US |
Child | 13710067 | US |