The present disclosure herein relates to a memory device, and more particularly, to an error location search circuit used in a memory device, and an error check and correction circuit and a memory device including the same.
NAND flash memory is one example of electrically erasable and programmable read only memory (EEPROM), there is a. A NAND flash memory may store large amounts of information in a small chip area by using NAND cell units where a plurality of memory cells are connected in series to each other.
In the case of a large capacity memory such as a NAND flash memory, a memory cell may lose its storage characteristics due to the deterioration of a tunnel oxide layer after several program operations. For example, while data is stored in a NAND flash memory, stored data may be damaged due to various causes. Therefore, an error rate may increase. Especially, as memory capacity is increased drastically and manufacturing processes become more complex, an error rate may increase. In order to solve the above issues and improve the performance of a flash memory, an error correction code (ECC) circuit is being used. If an ECC system is mounted in a chip, highly-reliable memory may be obtained. Furthermore, after redundant data of error correction code are added to data to be stored, the data are programmed as data strings. Additionally, when data is read, erroneous data is corrected with the redundant data of the error correction code.
Meanwhile, since data cannot be outputted to the outside of a memory until a correction operation of an ECC system is completed, it is necessary to reduce a time for completing the correction operation. For this, the use of the Hamming code which is capable of fast processing is studied. Also, a way for making the BCH (Bose-Chaudhuri-Hocquenghem) code which is capable of performing corrections of high orders be fast is being studied. The BCH code is one of block codes using a Galois Field operation. According to a block code such as the BCH code and the Reed-Solomon code, an error location may be calculated by using an error locator polynomial. For example, error location search is performed by calculating the roots of the polynomial after subsequently substituting each element, which is not 0, of the Galois Field into the error locator polynomial. This root search process is called Chien search. There are related art methods for increasing the speed of the Chien search, and related art methods for forming a NAND flash memory including an ECC circuit.
According to related art methods for increasing the speed of the Chien search, a configuration of a Chien search circuit indicating an error locator polynomial may use flip-flops, registers, and Galois field multiplication circuits. According to related art methods for increasing the speed of the Chien search, signals indicating bit positions are provided to the Chien search circuit and it is determined whether there is an error in a corresponding bit. In this case, a plurality of Chien search circuits may be equipped to determine whether there are errors in a plurality of bits in parallel.
According to related art methods for increasing the speed of the Chien search, as the number of bits processed in parallel is increased, the number of Chien search circuits is increased. Also, as the number of Chien search circuits is increased, the number of lines for providing signals that represents bit positions to the Chien search circuit is increased. Accordingly, as the number of bits processed in parallel is increased, scale of a Chien search unit including Chien search circuits and peripheral circuits is increased.
According to related art methods for forming a NAND flash memory including an ECC circuit, the ECC circuit substitutes bit positions of data strings into the error locator polynomial by a Chien Search unit and detects whether there is an error in a corresponding bit. When a data string is outputted, an address is substituted, from the lowest bit to the highest bit, into the Chien Search unit. Moreover, the ECC circuit corrects the data having error bits to output the corrected data, or outputs the data having no error bit as they are.
According to related art methods for forming a NAND flash memory including an ECC circuit, in order to read a bit of an arbitrary position in a data string, a bit outputted from the ECC circuit is stored in a buffer memory first, and then an address of a bit to be read is provided to the buffer memory. For example, until the ECC circuit corrects all data having error bits with respect to all bits of a data string including a bit to be read, it may be impossible to read the corrected data at high speed.
In order to output the corrected data to the outside of a memory at high speed, data having error bits in all bits of a data string including a bit to be read need to be corrected at high speed. In order to correct the data having an error bit at high speed, a method of simultaneously substituting address values from the lowest bit to the highest bit into the Chien search unit may be used. In order to use this method, the Chien search unit of the ECC circuit may need to include a position search circuit substituting bit positions into the error locator polynomial. In this case, the position search circuit may need to be equipped to correspond to each bit.
Example embodiments of the inventive concepts may solve the issue of the increasing scale of the Chien search unit. Example embodiments of the inventive concepts provide an error correction code (ECC) circuit and a memory device detecting and correcting errors in a plurality of bits in parallel and having small scale.
Although described later in detail, when 511-bit are simultaneously corrected through the Chien search unit 339 of
Example embodiments of the inventive concepts may provide an error correction code (ECC) circuit comprising a Chien search unit that uses an arbitrary element of Galois Field GF(2n) as a substitution value of an error locator polynomial and determines whether there is an error in each bit of a data string. The Chien search unit may comprise a calculator circuit calculating a first bit string by multiplying a plurality of predetermined elements of the Galois Field GF(2n) and a predetermined value of (n-k)-bit, and calculating a second bit string by multiplying the plurality of predetermined elements of the Galois Field GF(2n) and a predetermined value of k-bit; and a plurality of Chien search circuits combining the first bit string and the second bit string to calculate the arbitrary element, and substituting the calculated arbitrary element into the error locator polynomial. The plurality of Chien search circuits may be arranged in a matrix along a row direction and a column direction. The first bit string may be provided in the row direction or the column direction, and the second bit string may be provided in a direction different from a direction in which the first bit string is provided among the row direction and the column direction. A used bit used as an element of the Galois Field GF(2n) and an unused bit not used as an element of the Galois Field GF(2n) may be rearranged in a bit space configured with the matrix of the first bit string and the second bit string.
Example embodiments of the inventive concepts may provide an error location search circuit substituting (2m−1) elements expressed as an m-bit vector on Galois Field GF(2m) into an error locator polynomial, and generating an error detection signal indicating whether there is an error in a bit in a position corresponding to each of the elements among data. The error location search circuit may comprise a plurality of position search circuits receiving each of the elements, substituting the received element into each term of the error locator polynomial, and multiplying a coefficient of the error locator polynomial and the received element to calculate an output value. An exclusive-or operation corresponding to each of the elements may be performed on a plurality of the output values calculated by the plurality of position search circuits. The error detection signal is generated based on a result of the exclusive-or operation.
Example embodiments of the inventive concepts may provide a memory device including a memory cell array, which may be, for example, a nonvolatile memory cell array; a page buffer including one or more page buffer circuits, the page buffer being configured to read data stored in the nonvolatile memory cell array during a read operation; and an error correction code (ECC) circuit, the ECC circuit being configured such that, during the data read operation, the ECC circuit receives the read data from the page buffer in the form of a first code data unit including a first information data string and first parity data, generates, by adding bits to the information data string, an extended data unit including a first extended data string and the first parity data, generates coefficients of an error locator polynomial based on the extended data unit, locates an error in the first information data string using a Galois Field operation based on the generated coefficients, corrects the located error in the first information data string, and outputs the corrected first information data string.
The above and other features and advantages of example embodiments will become more apparent by describing in detail example embodiments with reference to the attached drawings. The accompanying drawings are intended to depict example embodiments and should not be interpreted to limit the intended scope of the claims. The accompanying drawings are not to be considered as drawn to scale unless explicitly noted.
Detailed example embodiments are disclosed herein. However, specific structural and functional details disclosed herein are merely representative for purposes of describing example embodiments. Example embodiments may, however, be embodied in many alternate forms and should not be construed as limited to only the embodiments set forth herein.
Accordingly, while example embodiments are capable of various modifications and alternative forms, embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that there is no intent to limit example embodiments to the particular forms disclosed, but to the contrary, example embodiments are to cover all modifications, equivalents, and alternatives falling within the scope of example embodiments Like numbers refer to like elements throughout the description of the figures.
It will be understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of example embodiments. As used herein, the term “and/or” includes any and all combinations of one or more of the associated listed items.
It will be understood that when an element is referred to as being “connected” or “coupled” to another element, it may be directly connected or coupled to the other element or intervening elements may be present. In contrast, when an element is referred to as being “directly connected” or “directly coupled” to another element, there are no intervening elements present. Other words used to describe the relationship between elements should be interpreted in a like fashion (e.g., “between” versus “directly between”, “adjacent” versus “directly adjacent”, etc.). The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments. As used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms “comprises”, “comprising,”, “includes” and/or “including”, when used herein, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be noted that in some alternative implementations, the functions/acts noted may occur out of the order noted in the figures. For example, two figures shown in succession may in fact be executed substantially concurrently or may sometimes be executed in the reverse order, depending upon the functionality/acts involved.
The memory cell array 11 may include a plurality of transistors of a stack gate structure. The memory cell array 11 may include a block where electrically rewritable nonvolatile memory cells are connected in series along a column direction so that NAND cell strings disposed at each bit line are arranged along a row direction. A plurality of the blocks may be disposed along a direction in which a bit line is extended. Additionally, the block may be configured as an erase unit of a memory cell. A word line lying at right angles to a bit line may be commonly connected to a gate of each nonvolatile memory cell disposed at the same row of each block. Nonvolatile memory cells selected by one word line may form a page which is a program/read unit.
The page buffer 12 may include one or more page buffer circuits. The one or more page buffer circuits may program or read data by a page unit. Each of the page buffer circuit may be connected to a bit line. The one or more page buffer circuits may each include a latch used as a sense amplifier that amplifies a voltage of a connected bit line and determine a logic value of the voltage. During a read operation of the nonvolatile semiconductor memory device 10, cell data including data stored in a memory cell of one page of the memory cell array 11 may be provided to the page buffer 12. The page buffer 12 may amplify the cell data and may provide the cell data to the ECC circuit 13.
Meanwhile, during a program operation of the nonvolatile semiconductor memory device 10, the page buffer 12 may store data provided from the ECC circuit 13 in the latch therein. The page buffer 12 may store all data as code data in a memory cell of one page while verifying the stored data. The code data may include parity data that the ECC circuit 13 generates.
The ECC circuit 13 may extend an information data string of 256-bit to an extended information data string of 448-bit by using Galois Field GF(29). According to example embodiments of the inventive concepts, it is assumed that the extended information data string forms a correction unit. Additionally, it is assumed that one correction unit has the BCH code that is capable of correcting errors of 4-bit. It is assumed that the length of parity data in one correction unit is 36-bit. According to example embodiments of the inventive concepts, not only the BCH code, but also other block codes using the Galois Field operation can be used. According to example embodiments of the inventive concepts, a code data string of 320-bit including the information data of 256-bit and the parity data may be stored in the memory cell array 11 or may be read from the memory cell array 11.
Furthermore, according to example embodiments of the inventive concepts, during detecting and correcting errors in the code data of 320-bit, the correction unit is formed of the extended information data extended to 448-bit virtually, not being formed of the information data string of 256-bit included in the code data of 320-bit. For describing the data extension in more detail,
Furthermore, FIG. 2(2) illustrates a configuration of extended code data D2. The length of the extended code data D2 processed when a syndrome is calculated by the ECC circuit 13 and a position of an error bit is searched is 512-bit. The extended code data D2 may include extended information data D21 of 448-bit and added data D 12 of 64-bitincluding parity data of 36-bit. The added data D12 in the code data D1 and the added data D12 in the extended code data D2 may have the same configuration. However, the contents of fixed data that are not the parity data in the added data D12 may vary. The added data D12 may be placed at the front or, alternatively, the back of the extended information data D21.
FIG. 2(3) illustrates a configuration of the extended information data D21. The extended information data D21 may include split information data D23a, D23b, . . . , in which the information data D11 is divided by a predetermined bit unit. Also, the extended information data D21 may include additional data D24a, D24b, . . . including at least one bit having logic 0 as a fixed value.
The split information data D23a, D23b, . . . may be obtained by splitting the information data D11 according to the bit order. Instead, the split information data D23a, D23b, . . . may be obtained by changing the bit order of the information data D11 (i.e., rearranging the bit order) and splitting the information data D11. The additional data D24a, D24b, . . . is a total of 192-bit. The position of each bit of the information data D11 is one of 0 to 255. Meanwhile, the position of each bit of the split information data D23a, D23b, . . . is one of 0 to 447. Moreover, the position of each bit of the additional data D24a, D24b, . . . is one of 0 to 447. However, the position of each bit of the split information data D23a, D23b, . . . is different from that of the additional data D24a, D24b, . . . .
The position of each bit of the extended information data D21 (or the position after the bit order is rearranged) may be preset in advance of an error correction operation. Furthermore, a configuration such as a logical structure and line connection of the ECC circuit 13 may be designed to fit the preset position of each bit. Moreover, parity data of 36-bit included in the added data D12 is generated based on the extended information data D21 of 448-bit. According to example embodiments of the inventive concepts, since the ECC circuit 13 uses the extended code data D2 that is virtually extended, the scale of a Chien search circuit may be reduced.
Here, the term “virtual” or “virtually” means that a circuit for processing a bit that is not included in the information data D11 and included only in the extended information data D21 is not actually added to a processing unit for the extended information data D21. For instance, addition of elements of the Galois Field may correspond to an exclusive-or operation, and combining an added bit with predetermined data may be omitted when the added bit is always logic 0. The reason is the reason why an additional configuration or an additional line may not be necessary even when a bit is added.
Again, the nonvolatile semiconductor memory device 10 of
Additionally, the ECC circuit 13 may receive information data provided from the I/O pad 15 through the buffer 14 during a program operation of the nonvolatile semiconductor memory device 10. The ECC circuit 13 may generate the extended information data D21 that is virtually extended on the basis of the received information data D11 and generate parity data on the basis of the extended information data D21. The ECC circuit 13 may provide the information data 11 and the parity data to the page buffer 12. The page buffer 12 may store the received data as the code data D1 in a memory cell of a selected page.
The controller 16 may receive various control signals and control program, read, and erase operations and validation on a nonvolatile memory cell. For example, the control signals may include an external clock signal, a chip enable signal /CE, a read enable signal /RE, a program enable signal /WE, a command latch enable signal CLE, an address latch enable signal ALE, and a program prohibit signal /WP. The controller 16 may generate internal control signals according to an operation mode that the control signals and command data inputted to the I/O pad 15 indicate. For example, at the rising edge of the program enable signal /WE, since the voltage of the command latch enable signal CLE changes from a low level into a high level, the controller 16 receives command data from the I/O pad 15 and then stores the received data in a register therein.
The address decoder 17 may store an address (e.g., a row address or a block address) inputted from the I/O pad 15 in response to the internal control signals provided from the controller 16. Moreover, the address decoder 17 may provide the stored address to the row/block decoder 18, the page buffer 12, and the ECC circuit 13 in response to the internal control signals provided from the controller 16. For example, at the rising edge of the program enable signal /WE, since the voltage of the address latch enable signal ALE changes from a low level into a high level, the controller 16 receives the address from the I/O pad 15 and then stores the received address in an internal register of the address decoder 17.
The row/block decoder 18 may select a memory cell in a page by selecting a block and a word line of the memory cell array 11 according to a row address and a block address stored in the address decoder 17. Furthermore, the address decoder 17 may select a bit line of the memory cell array 11 and the page buffer 12 according to a column address.
During a read operation according to example embodiments of the inventive concepts, the cell data (e.g., the code data D1) of the page buffer 12 are read by the ECC circuit 13, and the extended information data D21 virtually extended are generated, and the coefficients of the error locator polynomial are calculated by each correction unit. Also, according to the coefficients calculated by each correction unit and a signal indicating the position of an error bit (i.e., a data signal corresponding to each element of the Galois Field GF(29)), it is detected whether there is an error in the data of a bit that is indicated to have an error. If there is an error, the error may be corrected and the corrected data may be provided to the I/O pad 15.
During a program operation, the cell data of the page buffer 12 may be read by the buffer 14. For example, the buffer 14 may configured with Static Random Access Memory (SRAM). The data of a bit whose position is marked by a column address among the cell data read by the buffer 14 may be replaced with information data of the I/O pad 15. Additionally, the ECC circuit 13 may calculate parity data corresponding to the data of the correction unit including the corrected data. Then, the data including the calculated parity data may be stored as code data in a page selected by the page buffer 12.
The encoder 22 may include a parity generator 41. The parity generator 41 may extend the information data stored in the buffer 14 to the extended information data D21. The parity generator 41 may divide the extended information data D21 by a generation or, alternatively, generator polynomial to generate parity data. Additionally, the parity generator 41 may add the generated parity data to the information data and provide the information data including the parity data to the page buffer 12. Data provided to the page buffer 12 become the code data that are stored in a selected page during a program operation of the nonvolatile semiconductor memory device 10. According to example embodiments of the inventive concepts, the layout scale of the ECC circuit 13 may be reduced, and data may be corrected by the efficiently configured ECC circuit 13.
The decoder 21 may include a syndrome calculator 31, an error coefficient calculator 32, a Chien search unit 33, and an error corrector 34. The syndrome calculator 31 may receive a code data string Code Data Y by each correction unit. The syndrome calculator 31 may extend the code data string Code Data Y to generate the extended code data D2 virtually. Additionally, the syndrome calculator 31 may divide the extended code data D2 by independent minimal polynomials to calculate a plurality of syndromes. According to example embodiments of the inventive concepts, it is assumed that the BCH which is capable of correcting an error of 4-bit data is used. Accordingly, the independent minimal polynomial is four, and the syndrome calculator 31 calculates four syndromes S 1, S3, S5, and S7.
The error coefficient calculator 32 may calculate coefficients e4, e3, e2, e1, and e0 of an error locator polynomial Λ(x) by each correction unit (i.e., a unit of the extended code data D2) by using the calculated syndromes. The coefficients e4, e3, e2, e1, and e0 are coefficients of the error locator polynomial Λ(x)=e4x4+e3x3+e2x2+e1x1+e0 shown in
The Chien search unit 33 may detect an error of each correction unit by using the coefficients e4, e3, e2, e1, and e0 provided from the error coefficient calculator 32. Once the error is detected, the Chien search unit 33 may output a signal Z[319:0] indicating a bit position of data having the error. The outputted signal Z[319:0] may include data of 320-bit indicating values of the error locator polynomial corresponding to a position of each bit of the code data D1. Each of bits z[0], z[1], . . . , z[319] of the outputted signal Z[319:0]) may indicate whether there is an error in the 0th, 1st, . . . , 319th bits (it is assumed that the 0th bit is the least significant bit) of the data, respectively. According to example embodiments of the inventive concepts, it is assumed that there is an error in the ith bit of the data where a value of z[i] is logic 1 and there is not an error in the ith bit of the data where a value of z[i] is logic 0.
The error corrector 34 may invert a value of a bit in the position where an error is detected among the code data string Code Data Y when bits having an error are less than 4 bits (i.e., i where z[i]=lis an integer less than 4).
First, referring to
The error locator polynomial calculation unit 72 may calculate a value of the error locator polynomial Λ(x) by substituting the element αi into x of the error locator polynomial Λ(x). The value of the error locator polynomial Λ(x) is calculated based on the element αi provided from the substitution value calculation unit 71 and the coefficients e4, e3, e2, e1, and e0 of the error locator polynomial provided from the S calculator 51. For example, an output L[i] of the error locator polynomial calculation unit 72 may be set to have a value of logic 1 when Λ(αi)=0, and set to have a value of logic 0 when Λ(αi)≠0.
Then, referring to
Referring to
Now, the signals S0, S1, S2, S3, S4, S5, S6, S7, and S8 that the S calculator 51 outputs are described with reference to
For example, the element α9 corresponding to the 9th bit that is to be substituted into the error locator polynomial Λ(x) may be generated by an equation α9=1+α4. α10, . . . , α510 may be also obtained by combining the 9 elements of α0, α1, α2, . . . , α8.
The Chien search circuit 57 according to example embodiments of the inventive concepts may calculate a value of the error locator polynomial Λ(x). The value of the error locator polynomial Λ(x) may be calculated when error locator polynomial calculation unit 72 uses αi calculated by the substitution value calculation unit 71 as a substitution value. Each Chien search circuit 57 may receive the signals indicating the 9 elements of α0, α1, α2, . . . , α8 and obtain an arbitrary element αi among the all elements α0, α1, . . . , α510. Then, each Chien search circuit 57 may calculate the value of the error locator polynomial Λ(x) with respect to the arbitrary element a′. For this, the signals indicating the 9 elements of α0, α1, α2, . . . , α8 need to be provided to the Chien search circuit 57. However, not all the Chien search circuits 57 use all the signals indicating the 9 elements of α0, α1, α2, . . . , α8. Providing unnecessary signals may cause increase the number of unnecessary lines.
The 9 elements of α0, α1, α2, . . . , α8 may be called the basis. In order to reduce the number of unnecessary lines, the bases are divided into two signal groups (i.e., a P group and a Q group) according to the embodiment of
The Chien search unit 33 of
The signals dp0, dp1, dp2, . . . , dp31 calculated by the P calculator 52 may be provided to the P latch 53. In order to adjust clock skew, the P latch 53 may output latched signals dp0, dp1, dp2, . . . , dp31 in synchronization with a predetermined clock signal. The signals dp0, dp1, dp2, . . . , dp31 outputted from the P latch 53 may be provided to the plurality of Chien search circuits 57 through signal lines arranged along a column direction. The signal lines arranged along the column direction may include signal lines for 9 bits of each of 32 divisions.
The Q calculator 54 may generate bit string signals dq0, dq1, dq2, . . . , dq15 of 9-bit on the basis of the 9-bit signals S0, S1, S2, and S3 by using the expressions of FIG. 8(3). For example, the signal dq1 may be obtained by addition of a result of multiplication of the 3rd bit of the semi-basis q1 and each bit of the signal S3, a result of multiplication of the 2nd bit of the semi-basis q1 and each bit of the signal S2, a result of multiplication of the 1st bit of the semi-basis q1 and each bit of the signal S1, and a result of multiplication of the 0th bit of the semi-basis q1 and each bit of the signal S0. Furthermore, the signal dq2 may be obtained by addition of a result of multiplication of the 3rd bit of the semi-basis q2 and each bit of the signal S3, a result of multiplication of the 2nd bit of the semi-basis q2 and each bit of the signal S2, a result of multiplication of the 1st bit of the semi-basis q2 and each bit of the signal S1, and a result of multiplication of the 0th bit of the semi-basis q2 and each bit of the signal S0.
The signals dq0, dq1, dq2, . . . , dq15 calculated by the Q calculator 54 may be provided to the Q latch 55. In order to adjust clock skew, the Q latch 55 may output latched signals dq0, dq1, dq2, . . . , dq15 in synchronization with a predetermined clock signal. The signals dq0, dq1, dq2, . . . , dq15 outputted from the Q latch 55 may be provided to the plurality of Chien search circuits 57 through signal lines arranged along a row direction. The signal lines arranged along the row direction may include signal lines for 9 bits of each of 16 divisions.
However, the configurations of the bit string signals dpj and dqk are not limited to the above embodiments. For example, directions that the bit string signals dpj are provided along and directions that the bit string signals dqk are provided along may be interchangeable with respect to the rows and the columns. Moreover, the number of lines for providing the bit string signals dpj or the bit string signals dqk may vary. According to an embodiment of inventive concepts, the plurality of Chien search circuits 57 may be arranged in a matrix along a row direction and a column direction. Additionally, the bit string signal dpj may be provided in a row direction or a column direction, and the bit string signal dqk may be provided in a direction different from the direction in which the bit string signal dpj is provided among the row direction and the column direction.
The bit position transform circuit 58 may receive a signal L[i] outputted from each of the plurality of Chien search circuits 57. The bit position transform circuit 58 may transform a value of i indicating a bit position to generate an output signal Z[319:0]. As mentioned above, the signal L[i] indicates whether there is an error in the ith bit of the extended code data D2 of 512-bit. Moreover, each bit of the signal Z[319:0] indicates whether there is an error in each bit position of the code data D1 of 320-bit. The bit position transform circuit 58 may transform each signal L[i] to the signal Z[319:0] on the basis of a correspondence relationship between each bit of the split information data D23a, D23b, . . . in the extended code data D2 and each bit of the information data D11 in the code data D1.
A circuit for correcting n errors by using Galois Field GF(2m) substitutes each element αi (i=0, 1, 2, . . . , 2m−2) of the Galois Field GF(2m) for a variable x of an error locator polynomial Λ(x)=enxn+ . . . +e2x2+e1x+e0 during a Chien search process, and determines whether Λ(x)=0. A value of the error locator polynomial Λ(x) may be calculated by substituting each of the elements α0, α1, α2, . . . . αt-2 (t=2m)) of the Galois Field GF(2m) into the error locator polynomial Λ(x).
According to the related art, each element αi (i=0, 1, 2, . . . , 2m−2) of the Galois Field GF(2m) is sequentially substituted into one circuit for calculating the value of the error locator polynomial Λ(x). Accordingly, during one period of a clock signal, one value of the error locator polynomial Λ(x) with respect to one element is calculated. However, according to related art methods for increasing the speed of the Chien search, the values of the error locator polynomial Λ(x) with respect to a plurality of elements are simultaneously calculated in parallel since Chien search is performed in parallel.
Furthermore, according to example embodiments of the inventive concepts, each element αi (i=0, 1, 2, . . . , 2m−2) of the Galois Field GF(2m) is provided to one of the plurality of Chien search circuits 57. For example, according to example embodiments of the inventive concepts, the plurality of Chien search circuits 57 may calculate the values of the error locator polynomial Λ(x) with respect to all elements of the Galois Field GF(2m) simultaneously.
According to an embodiment of inventive concepts, the plurality of Chien search circuits 57 may be arranged in a matrix. Also, according to example embodiments of the inventive concepts, bases are divided into two groups, and values included in each group may be provided in two intersecting directions of a row direction and a column direction. Therefore, according to example embodiments of the inventive concepts, lines for providing values substituted to the error locator polynomial Λ(x) may be connected along the shortest path by appropriately arranging the plurality of Chien search circuits 57 and dividing groups.
Referring to
When fixed bits are included, it is important that there is no error in the fixed bits. Referring to
For example, it is known that syndromes for input X1 to input X7 of the encoder may be calculated by exclusive-or(XOR, symbol A) operation, for example, S1=X1̂X3̂X4̂X7. However, when the term X4 is the fixed bit set to logic 0, the term X4 can be deleted from the expression and the syndrome is expressed as S1=X1̂X3̂X7. Accordingly, if there is a fixed bit, some logical circuits in the syndrome calculator may be omitted. However, parity data are generated based on the information data and bits included in the parity data cannot be set to the fixed bits. Accordingly, the parity data are excluded from the discussion.
As mentioned above, when unused bits are appropriately selected from a matrix of 2n and the selected bits are set as the fixed bits, the scale of the Chien search circuit may be minimized.
When the code data D1 extend to the extended code data D2, the information data D11 of 256-bit is rearranged at a predetermined position on the extended information data D21 of 448-bit. Simultaneously, bits having a fixed logic value are added to empty 192 bits in the extended code data D2. Additionally, equations for calculating syndromes are changed to fit rearranged bits in order to maintain mathematical equivalence. For example, if the positions of the 35th bit and the 36th bit shown in the table of
Referring to
According to example embodiments of the inventive concepts, rearrangement is performed to allow used bits or unused bits in the data including bits of more than 2n and less than 2+1−1 to be uniformly converged. Additionally, in order to maintain logical consistency, a logical structure of the parity generator or the syndrome calculator may be rearranged also. Especially, when additional bits have a fixed value of logic 0, costs for rearrangement are not increased.
The inventive concepts are not limited to the above configurations. The number of bits in the information data or the parity data may vary, a configuration of each block in block diagrams may be further divided, and a plurality of blocks may be integrated. Additionally, the ECC circuit of the inventive concepts may be applied when information is recorded on various recording media and information is read from various recording media.
Hereinafter, example embodiments of the inventive concepts are described. First, multiplication performed in a system adopting the Galois Field GF(29) is described. In more detail, a process of multiplying two vectors X[8:0] and Y[8:0] to obtain a multiplication result Z[8:0] is described. For example, according to example embodiments of the inventive concepts, it is assumed that Galois Field GF(29) uses 256-bit information data as a correction unit, and uses the BCH code for correcting a 4-bit error in the correction unit. It is assumed that the two vectors X[8:0] and Y[8:0] are expressed as follows.
X[8:0]=(x8,x7,x6,x5,x4,x3,x2,x1,x0)
Y[8:0]=(y8,y7,y6,y5,y4,y3,y2,y1,y0)
The two vectors are expressed as follows by polynomial expression.
X[8:0]=x8×X8+x7×X7+x6×X6+x5×X5+x4×X4+x3×X3+x2×X2+x1×X1+x0
Y[8:0]=y8×X8+y7×X7+y6×X6+y5×X5+y4×X4+y3×X3+y2×X2+y1×X1+y0
Each of the above X, x0 to x8, and y0 to y8 has a value of logic 0 or logic 1.
The multiplication result Z[8:0] obtained by multiplying the two vectors X[8:0] and Y[8:0] may be expressed as follows. A multiplication sign is omitted in the following expression.
Referring to FIG. 19(1), when multiplications of the components of the vector X[8:0] and the components of the vector Y[8:0] are added along a vertical direction, coefficients of each term in polynomial expression of Z[8:0] are obtained. a0 to a16 refer to the coefficients respectively corresponding to the X0 term to the X16 term in polynomial expression of Z[8:0]. For example, each of the following equations is satisfied.
a16=x8y8,
a15=x8y7+x7y8,
a14=x8y6+x7y7+x7y8,
a13=x8y5+x7y6+x6y7+x5y8,
a12=x8y4+x7y5+x6y6+x5y7+x4y8,
a11=x8y3+x7y4+x6y5+x5y6+x4y7+x3y8,
a10=x8y2+x7y3+x6y4+x5y5+x4y6+x3y7+x2y8,
a9=x8y1+x7y2+x6y3+x5y4+x4y5+x3y6+x2y7+x1y8,
a8=x8y0+x7y1+x6y2+x5y3+x4y4+x3y5+x2y6+x1y7+x0y8,
a7=x7y0+x6y1+x5y2+x4y3+x3y4+x2y5+x1y6+x0y7,
a6=x6y0+x5y1+x4y2+x3y3+x2y4+x1y5+x0y6,
a5=x5y0+x4y1+x3y2+x2y3+x1y4+x0y5,
a4=x4y0+x3y1+x2y2+x1y3+x0y4,
a3=x3y0+x2y1+x1y2+x0y3,
a2=x2y0+x1y1+x0y2,
a1=x1y0+x0y1,
a0=x0y0
Accordingly, Z[8:0] may be expressed in the following polynomial using a0 to a16.
Z[8:0]=a16×X16+a15×X15+a14×X14+a13×X13+a12×X12+a11×X11+a10×X10+a9×X9+a8×X8+a7×X7+a6×X6+a5×X5+a4×X4+a3×X3+a2×X2+a1×X1+a0
For example, when X9+X4+1 is employed as the irreducible polynomial (i.e., the primitive polynomial) of the Galois Field GF(29), high order terms of more than X9 may be expressed using terms having an order of less than X8 as follows.
X
9
=X
4+1,
X
10
=X×X
9
=X
5
+X,
X
11
=X×X
10
=X
6
+X
2,
X
12
=X×X
11
=X
7
+X
3,
X
13
=X×X
12
=X
8
+X
4,
X
14
=X×X
13
=X
9
+X
5
=X
5
+X
4+1,
X
15
=X×X
14
=X
6
+X
5
+X,
X
16
=X×X
15
=X
7
+X
6
+X
2
After the above high order terms are substituted to the polynomial of Z[8:0] expressed using a0 to a16 and the expression is simplified, the following polynomial is obtained.
While, Z[8:0] may be expressed as Z[8:0]=(z8, z7, z6, z5, z4, z3, z2, z1, z0) according to vector expression. By using the vector expression of Z[8:0], Z[8:0] may be expressed in the following polynomial.
Z[8:0]=z8×X8+z7×X7+z6×X6+z5×X5+z4×X4+z3×X3+z2×X2+z1×X1+z0
Accordingly, each of bits z[8] to z[0] of Z[8:0] is expressed as follows.
z8=a8+a13,
z7=a7+a12+a16,
z6=a6+a11+a15+a16,
z5=a5+a10+a14+a15,
z4=a4+a9+a13+a14,
z3=a3+a12,
z2=a2+a11+a16,
z1=a1+a10+a15,
z0=a0+a9+a14
For example, multiplication of two vectors may be performed as follows: (A) Perform exclusive-or operations on each bit in the most significant bits other than the m least significant bits (m=8 in the above example) of a multiplication result. (B) Convert a result of the exclusive-or operations to the vector expression of the m least significant bits on the basis of a given primitive polynomial. (C) Perform exclusive-or operations by using each element of them least significant bits converted to the vector expression and each element of the result obtained by performing the exclusive-or operations on each bit in the m least significant bits of the multiplication result.
When the steps (A), (B), and (C) are performed, each of the bits z[0] to z[8] of Z[8:0] is expressed as a result obtained by addition of the combinations of the sum (any one of a0 to a16) of a multiplication result of each bit of X[8:0] and each bit of Y[8:0].
In order to multiply each bit of X[8:0] and each bit of Y[8:0], 81(=9×9) AND circuits are required. In order to obtain the sum of the multiplication result of each bit of X[8:0] and each bit of Y[8:0] (i.e., any one of a0 to a16), exclusive-or circuits may be used. In order to obtain all of a0 to a16, 64 (=the number of AND circuits−17) exclusive-or circuits are required.
Additionally, in order to obtain each bit of Z[8:0] from a0 to a16, exclusive-or circuits may be used. FIG. 19(2) represents logical expressions to obtain each bit of Z[8:0] by performing exclusive-or operations on a0 to a16. In FIG. 19(2), a symbol ̂ means an exclusive-or operation. Additionally, in FIG. 19(2), each bit of Z[8:0] is expressed as z[0] to z[8], and a0 to a16 corresponding to the coefficients of the polynomial expression of Z[8:0] are expressed as a[0] to a[16]. In order to calculate the expressions shown in FIG. 19(2), 19 exclusive-or circuits are required.
According to the above description, each bit of Z[8:0] is obtained by 82 AND circuits for calculating multiplication of each bit of X[8:0] and each bit of Y[8:0], 64 exclusive-or circuits for calculating addition of the multiplication results (i.e., any one of a0 to a16), and 19 exclusive-or circuits for performing calculations according to logical expressions shown in FIG. 19(2). For example, each bit of Z[8:0] may be obtained by a total of 164 (=81+64+19) logical circuits.
Meanwhile, when corrections for 511 bits are simultaneously performed in order to correct data fast, each of position search circuits 339_0 to 339_510 of
Example embodiments of the inventive concepts may include a plurality of position search circuits substituting elements of Galois Field GF(29) to an error locator polynomial. According to example embodiments of the inventive concepts, an element in which only one bit has a value of logic 1 is substituted to each of the plurality of position search circuits. According to example embodiments of the inventive concepts, exclusive-or operations are performed on results obtained from each position search circuit.
Next, the elements (i.e., the above-mentioned X[8:0]) of the Galois Field GF(29) in the case that the Galois Field GF(29) and the BCH code for correcting a 4-bit error are used will be described. For description, the table of
Referring to
α0=(0,0,0,0,0,0,0,0,1)=9′b000000001,
α1=(0,0,0,0,0,0,0,1,0)=9′b000000010,
α2=(0,0,0,0,0,0,1,0,0)=9′b000000100,
α3=(0,0,0,0,0,1,0,0,0)=9′b000001000,
α4=(0,0,0,0,1,0,0,0,0)=9′b000010000,
α5=(0,0,0,1,0,0,0,0,0)=9′b000100000,
α6=(0,0,1,0,0,0,0,0,0)=9′b001000000,
α7=(0,1,0,0,0,0,0,0,0)=9′b010000000,
α8=(1,0,0,0,0,0,0,0,0)=9′b100000000
α0 to α8 are linearly independent elements that cannot be expressed by the other elements.
Additionally, by using the primitive polynomial α9=α4+1, the other 502 elements of α9 to α510 except for α0 to α8 are expressed as the following expressions.
α9=α41,
α10=α9α1=(α4+1)α=α5+α,
α11=α10α1=(α5+1)α=α6+α2,
α12=α11α1=(α6+α2)α=α7+α3,
α13=α12α1=(α7+α3)α=α8+α4,
α14=α13α1=(α8+α4)α=α9+α5+α4+1,
α15=α14α1=(α5+α4+1)α=α6+α5+α,
α16=α15α1=(α6+α5+α)α=α7+α6+α2,
α17=α16α1=(α7+α6+α2)α=α8+α7+α3,
α18=α17α1=(α8+α7α3)α=α9+α8α4=α4+1+α8+α4=α8+1,
α19=α18α1=(α8+1)α=α9+α=α4α+1,
. . .
α510=α509α1=(α7+α2)α=α8+α3,
For example, each of the elements of α9 to α510 may be obtained by adding at least two of the 9 elements of α0 to α8.
Then, a method of generating elements in which only one bit has a value of logic 1 will be described. This method may be used for a process of obtaining Z[8:0] by multiplying X[8:0] and Y[8:0], for example, a process of calculating multiplication of a coefficient and the element. For example, X[8:0] may correspond to the elements of α0 to α510 of the Galois Field GF(29). Additionally, Y[8:0] may correspond to the coefficients of the error locator polynomial (one of e1, e2, e3, and e4 according to an order). Moreover, Z[8:0] may correspond to a multiplication result of the coefficient and the element (e1x, e2x2, e3x3, and e4x4 according to an order).
For example, a process of obtaining e1x (i.e., multiplication of the coefficient and the element) will be described. As mentioned above, z[0] in Z[8:0] may be expressed as z[0]=a0+a9+a14. When the elements of X[8:0] and Y[8:0] are used, z[0] is expressed as follows.
z[0]=y0x0+y8x1+y7x2+y6x3+y5x4+y4x5+(y3+y8)x6+(y2+y7)x7+(y1+y6)x8
In the above expression, when y3+y8 is replaced with p0, y2+y7 is replaced with p1, and y1+y6 is replaced with p2, z[0] is expressed as follows.
z[0]=y0x0+y8x1+y7x2+y6x3+y5x4+y4x5+p0x6+p1x7+p2x8
Also, z[1] in Z[8:0] may be expressed as z[1]=a1+a10+a15. When the elements of X[8:0] and Y[8:0] are used, z[1] is expressed as follows.
z[1]=y1x0+y0x1+y8x2+y7x3+y6x4+y5x5+y4x6+(y3+y8)x7+(y2+y7)x8
In the above expression, when y3+y8 is replaced with p0 and y2+y7 is replaced with p1, z[1] is expressed as follows.
z[1]=y1x0+y0x1+y8x2+y7x3+y6x4+y5x5+y4x6+p0x7+p1x8
Also, z[2] in Z[8:0] may be expressed as z[2]=a2+a11+a16. When the elements of X[8:0] and Y[8:0] are used, z[2] is expressed as follows.
z[2]=y2x0+y1x1+y0x2+y8x3+y7x4+y6x5+y5x6+y4x7+(y3+y8)x8
In the above expression, when y3+y8 is replaced with p0, z[2] is expressed as follows.
z[2]=y2x0+y1x1+y0x2+y8x3+y7x4+y6x5+y5x6+y4x7+p0x8
Also, z[3] in Z[8:0] may be expressed as z[3]=a3+a12. When the elements of X[8:0] and Y[8:0] are used, z[3] is expressed as follows.
z[3]=y3x0+y2x1+y1x2+y0x3+y8x4+y7x5+y6x6+y5x7+y4x8
Also, z[4] in Z[8:0] may be expressed as z[4]=a4+a9+a13+a14. When the elements of X[8:0] and Y[8:0] are used, z[4] is expressed as follows.
z[4]=y4x0+(y3+y8)x1+(y2+y7)x2+(y1+y6)x3+(y0+y5)x4+(y4+y8)x5+(y3+y7+y8)x6+(y2+y6+y7)x7+(y1+y5+y6)x8
In the above expression, when y3+y8 is replaced with p0, y2+y7 is replaced with p1, y1+y6 is replaced with p2, y0+y5 is replaced with p3, y4+y8 is replaced with p4, y3+y7+y8 is replaced with p5, y2+y6+y7 is replaced with p6, and y1+y5+y6 is replaced with p′7, z[4] is expressed as follows.
z[4]=y4x0+p0x1+p1x2+p2x3+p3x4+p4x5+p5x6+p6x7+p7x8
Also, z[5] in Z[8:0] may be expressed as z[5]=a5+a10+a14+a15. When the elements of X[8:0] and Y[8:0] are used, z[5] is expressed as follows.
z[5]=y5x0+y4x1+(y3+y8)x2+(y2+y7)x3+(y1+y6)x4+(y0+y5)x5+(y4+y8)x6+(y3+y7+y8)x7+(y2+y6+y7)x8
In the above expression, when y3+y8 is replaced with p0, y2+y7 is replaced with p1, y1+y6 is replaced with p2, y0+y5 is replaced with p3, y4+y8 is replaced with p4, y3+y7+y8 is replaced with p5, and y2+y6+y7 is replaced with p6, z[5] is expressed as follows.
z[5]=y5x0+y4x1+p0x2+p1x3+p2x4+p3x5+p4x6+p5x7+p6x8
Also, z[6] in Z[8:0] may be expressed as z[6]=a6+a11+a15+a16. When the elements of X[8:0] and Y[8:0] are used, z[6] is expressed as follows.
z[6]=y6x0+y5x1+y4x2+(y3+y8)x3+(y2+y7)x4+(y1+y6)x5+(y0+y5)x6+(y4+y8)x7+(y3+y7+y8)x8
In the above expression, when y3+y8 is replaced with p0, y2+y7 is replaced with p1, y1+y6 is replaced with p2, y0+y5 is replaced with p3, y4+y8 is replaced with p4, and y3+y7+y8 is replaced with p5, z[6] is expressed as follows.
z[6]=y6x0+y5x1+y4x2+p0x3+p1x4+p2x5+p3x6+p4x7+p5x8
Also, z[7] in Z[8:0] may be expressed as z[7]=a7+a12+a16. When the elements of X[8:0] and Y[8:0] are used, z[7] is expressed as follows.
z[7]=y7x0+y6x1+y5x2+y4x3+(y3+y8)x4]+(y2+y7)x5+(y1+y6)x6+(y0+y5)x7+(y4+y8)x8
In the above expression, when y3+y8 is replaced with p0, y2+y7 is replaced with p1, y1+y6 is replaced with p2, y0+y5 is replaced with p3, and y4+y8 is replaced with p4, z[7] is expressed as follows.
z[7]=y7x0+y6x1+y5x2+y4x3+p0x4+p1x5+p2x6+p3x7+p4x8
Also, z[8] in Z[8:0] may be expressed as z[8]=a8+a13. When the elements of X[8:0] and Y[8:0] are used, z[8] is expressed as follows.
z[8]=y8x0+y7x1+y6x2+y5x3+y4x4+(y3+y8)x5+(y2+y7)x6+(y1+y6)x7+(y0+y5)x8
In the above expression, when y3+y8 is replaced with p0, y2+y7 is replaced with p1, y1+y6 is replaced with p2, and y0+y5 is replaced with p3, z[8] is expressed as follows.
z[8]=y8x0+y7x1+y6x2+y5x3+y4x4+p0x5+p1x6+p2x7+p3x8
In order to calculate the above expressions, exclusive-or operations may be performed on y[8] to y[0], and a combination of each bit of Y[8:0] may be obtained. Each of the bits z[0] to z[8] of Z[8:0] is obtained by performing AND operations on each bit of X[8:0] and each bit of Y[8:0] or a combination of each bit and performing an exclusive-or operation on the ADD operation results. A calculation process for obtaining z[0] to z[8] is summarized in
The p generator 20 may include exclusive-or circuits 20_0 to 20_7. The exclusive- or circuit 20_0 may receive y[3] in Y[8:0] through a first input, and receive y[8] in Y[8:0] through a second input. The exclusive-or circuit 20_0 may perform an exclusive-or operation on the received two signals to generate y3+y8, i.e., p0. The exclusive-or circuit 20_1 may receive y[2] in Y[8:0] through a first input, and receive y[7] in Y[8:0] through a second input. The exclusive-or circuit 20_1 may perform an exclusive-or operation on the received two signals to generate y2+y7, i.e., p1. The exclusive-or circuit 20_2 may receive y[1] in Y[8:0] through a first input, and receive y[6] in Y[8:0] through a second input. The exclusive-or circuit 20_2 may perform an exclusive-or operation on the received two signals to generate y1+y6, i.e., p2. The exclusive-or circuit 20_3 may receive y[0] in Y[8:0] through a first input, and receive y[5] in Y[8:0] through a second input. The exclusive-or circuit 20_3 may perform an exclusive-or operation on the received two signals to generate y0+y5, i.e., p3. The exclusive-or circuit 20_4 may receive y[4] in Y[8:0] through a first input, and receive y[8] in Y[8:0] through a second input. The exclusive-or circuit 20_4 may perform an exclusive-or operation on the received two signals to generate y4+y8, i.e., p4.
The exclusive-or circuit 20_5 may receive p0 generated by the exclusive-or circuit 20_0 through a first input, and receive y[7] in Y[8:0] through a second input. The exclusive- or circuit 20_5 may perform an exclusive-or operation on the received two signals to generate y3+y7+y8, i.e., p5. The exclusive-or circuit 20_6 may receive p1 generated by the exclusive- or circuit 20_1 through a first input, and receive y[6] in Y[8:0] through a second input. The exclusive-or circuit 20_6 may perform an exclusive-or operation on the received two signals to generate y2+y6+y7, i.e., p6. The exclusive-or circuit 20_7 may receive p2 generated by the exclusive-or circuit 20_2 through a first input, and receive y[5] in Y[8:0] through a second input. The exclusive-or circuit 20_7 may perform an exclusive-or operation on the received two signals to generate y1+y5+y6, i.e., p7. For example, the p generator 20 may generate p[0] to p[8] by the combinations of y[0] to y[8] of Y[8:0].
Accordingly, each bit of Z[8:0] is obtained based on each of the bits x[0] to x[8] of X[8:0] and each of the bits y[0] to y[8] of Y[8:0] or p[0] to p[8] which are combinations of y[0] to y[8]. In example embodiments of the inventive concepts, the vector X[8:0] is a 9-bit vector. Additionally, the vector Y[8:0] is configured with a 9-bit vector where some bits of the 9 bits in Y[8:0] and some combined bits of the 9 bits in Y[8:0] are unified.
For example, it is assumed that X[8:0] corresponds to the 9 elements of α0 to α8 whose only one bit has a value of logic 1. Additionally, it is assumed that Y[8:0] corresponds to the coefficient vector e1=(e18, e17, e16, e15, e14, e13, e12, en, e10) of the coefficients of the error locator polynomial. Under the above assumptions, multiplication of one of the 9 elements of α0 to α8 and the coefficient vector e1 is expressed as follows.
e
1α0=(e18,e17,e16,e15,e14,e13,e12,e11,e10)
e
1α1=(e17,e16,e15,e14,(e13+e18),e12,e11,e10,e18)
e
1α2=(e16,e15,e14,(e13+e18),(e12+e17),e11,e10,e18,e17)
e
1α3=(e15,e14,(e13+e18),(e12+e17),(e11+e16),e10,e18,e17,e16)
e
1α4=(e14,(e13+e18),(e12+e17),(e11+e16),(e10+e15),e18,e17,e16,e15)
e
1α5=((e13+e18),(e12+e17),(e11+e16),(e10+e15),(e14+e18),e17,e16,e15,e14)
e
1α6=((e12+e17),(e11+e16),(e10+e15),(e14+e18),(e13+e17+e18),e16,e15,e14,(e13+e18))
e
1α7=((e11+e16),(e10+e15),(e14+e18),(e13+e17+e18),(e12+e16+e17),e15,e14,(e13+e18),(e12e17))
e
1α8=((e10+e15),(e14+e18),(e13+e17+e18),(e12+e16+e17),(e11+e15+e16),e14,(e13+e18),(e12+e17),(e11+e16))
For example, multiplication of an element whose only one bit has a value of logic 1 and the coefficient vector e1 may be obtained by using each bit of the coefficient vector e1 or combining each bit of the coefficient vector e1. Each bit of a coefficient vector may be calculated by an error coefficient calculator 32 described later. Accordingly, a position search circuit may require exclusive-or circuits for calculating combinations of each bit of the coefficient vector e1. The exclusive-or circuits in the position search circuit may be used to calculate expressions in FIG. 21(1) and may have the same configurations as the p generator 20 of FIG. 21(2). The p generator 20 may include 8 exclusive-or circuits. Multiplication of each of the other 502 elements of α9 to α510 except for the elements whose only one bit has a value of logic 1 and the coefficient vector e1 may be calculated by the position search circuit.
X[8:0]=(1, 0, 1, 0, 1, 0, 1, 0, 1) may be expressed as α8+α6+α4+α2+α0. Accordingly, multiplication of X[8:0]=(1, 0, 1, 0, 1, 0, 1, 0, 1) and the coefficient vector e1 may be expressed as the following logical expression on the basis of the elements whose only one bit has a value of logic 1 and the coefficient vector e1.
For example, each of the 502 elements of α9 to α510 may be expressed by using the elements whose only one bit has a value of logic 1 and the coefficient vector e1. Therefore, each of the 502 elements of α9 to α510 may be also expressed by each bit of the coefficient vector e1 or the combination of each bit of the coefficient vector e1.
According to the form of the expression, it looks that four exclusive-or circuits are needed to calculate X[8:0]×e1. However, addition of one element whose three bits have a value of logic 1 among α9 to α510 and one element whose two bits have a value of logic 1 among α9 to α510 or addition of one element whose only one bit has a value of logic 1 and one element whose four bits have a value of logic 1 among α9 to α510 may be required. Accordingly, a position search circuit includes nine exclusive-or circuits.
For example, multiplication of each of the elements α14, α15, and α16 whose three bits have a value of logic 1 and e1 may be expressed as follows.
e
1α14=e1(α5+α4+1)=e1(α5+α9)
e
1α15=e1(α6+α5+α)=e1(α6+α10)
e
1α16=e1(α7+α6+α2)=e1(α7+α11)
The above calculations may be performed by adding the multiplication results of one of the 511 elements of α0 to α510 and the coefficient vector e1. Multiplication of each of the other elements except for α14, α15, α16 and e1 also may be calculated by adding the multiplication results of one of the 511 elements of α0 to α510 and the coefficient vector e1. Accordingly, 9 exclusive-or circuits for calculating addition of 9-bit may be required.
As mentioned above, the multiplication of the 9 elements whose only one bit has a value of logic 1 and the coefficient vector e1 may be calculated by 8 exclusive-or circuits. Also, the multiplication of the 502 elements except for the 9 elements whose only one bit has a value of logic 1 and the coefficient vector e1 may be calculated by 9×502 exclusive-or circuits. As a result, 4526 (=8+9×502) exclusive-or circuits may be required. Additionally, each position search circuit for obtaining the multiplication of each of the 511 elements of α0 to α510 and other coefficient vectors e2, e3, e4 may require 4526 exclusive-or circuits. Accordingly, 4 position search circuits may be configured with 18104 (=4526×4) logical circuits.
A Chien search unit may perform operations for adding outputs (9 bits×511) of each of four position search circuits. Therefore, in order to generate error detection signals, 18396 (=4×9×511) exclusive-or circuits may be required. Accordingly, the Chien search unit may require 36824(=18428+18396) logical circuits. Compared to the Chien search unit of the related art requiring 353612 logical circuits, the Chien search unit according to example embodiments of the inventive concepts may require logical circuits whose number is reduced to 1/10.
The multiplication performed by adopting the Galois Field GF(29) according to example embodiments of the inventive concepts are described. Next, a configuration of a circuit performing error detection and error correction according to an example embodiments of the inventive concepts will be described.
Example embodiments of the inventive concepts are described with reference to
As was discussed above with reference to
As was discussed above with reference to
Meanwhile, during a program operation of the nonvolatile semiconductor memory device 10, the page buffer 12 may store data provided from the ECC circuit 13 in the latch therein. The page buffer 12 may store all data as code data in a memory cell of one page while verifying the stored data.
The code data may include parity data that the ECC circuit 13 generates. For example, it is assumed that an error correction system for correcting a 4-bit error in information data of 32-byte by using the BCH code is used. One page may include memory cells for storing typical data of 16 k(=16384) bits and memory cells for storing parity data of 2304 bits, i.e., a total of 2K(=2048) bytes. For example, the cell data and the code data may be configured with (16384+2304) bits. Additionally, one page may be divided into sectors as a correction unit of the ECC circuit 13. For example, it is assumed that one page is divided into 64 sectors. Data corresponding to one sector may include typical data of 32 bytes (=256 bits) and parity data of 36 bits.
According to example embodiments of the inventive concepts, typical data stored in a memory may be accessed by an external device according to an input of a column address. However, since parity data are internal data added to correct typical data, they may not be directly accessed by the external device.
The ECC circuit 13 may process data read from the page buffer 12 by each sector during a read operation of the nonvolatile semiconductor memory device 10. The ECC circuit 13 may calculate coefficients of an error locator polynomial and stores the calculated coefficients in a latch therein. Additionally, the ECC circuit 13 may correct an error of data of a bit whose position is indicated by a column address and may store the corrected data in the buffer 14 during a read operation. The ECC circuit 13 may output the corrected data to the outside of the device through the I/O pad 15. For instance, by disposing an I/O circuit between the I/O pad 15 and the ECC circuit 13, data may be outputted to the outside of the device.
Additionally, the ECC circuit 13 may receive information data provided from the I/O pad 15 through the buffer 14 during a program operation of the nonvolatile semiconductor memory device 10. The ECC circuit 13 may generate parity data on the basis of the information data. The ECC circuit 13 may provide the information data and the parity data to the page buffer 12. The page buffer 12 may store the received data as the code data in a memory cell of a selected page.
The controller 16 may receive various control signals and control program, read, and erase operations and validation on a nonvolatile memory cell. For example, the control signals may include an external clock signal, a chip enable signal /CE, a read enable signal /RE, a program enable signal /WE, a command latch enable signal CLE, an address latch enable signal ALE, and a program prohibit signal /WP. The controller 16 may generate internal control signals according to an operation mode that the control signals and command data inputted to the I/O pad 15 indicate. For example, at the rising edge of the program enable signal /WE, since the voltage of the command latch enable signal CLE changes from a low level into a high level, the controller 16 receives command data from the I/O pad 15 and then stores the received data in a register therein.
The address decoder 17 may store an address (e.g., a row address or a block address) inputted from the I/O pad 15 in response to the internal control signals provided from the controller 16. Moreover, the address decoder 17 may provide the stored address to the row/block decoder 18, the page buffer 12, and the ECC circuit 13 in response to the internal control signals provided from the controller 16. For example, at the rising edge of the program enable signal /WE, since the voltage of the address latch enable signal ALE changes from a low level into a high level, the controller 16 receives the address from the I/O pad 15 and then stores the received address in an internal register of the address decoder 17.
The row/block decoder 18 may select a memory cell in a page by selecting a block and a word line of the memory cell array 11 according to a row address and a block address stored in the address decoder 17. Furthermore, the address decoder 17 may select a bit line of the memory cell array 11 and the page buffer 12 according to a column address.
During a read operation according to example embodiments of the inventive concepts, the cell data of the page buffer 12 are read by the ECC circuit 13, and the coefficients of the error locator polynomial are calculated by each sector unit. Also, according to the coefficients calculated by each sector unit and the column address signal including the position of an error bit, it is detected whether there is an error in the data of a bit that is indicated to have an error in typical data of 16 k bits. If there is an error, the error may be corrected and the corrected data may be stored in the buffer 14. The corrected data may be provided to the I/O pad 15.
During a program operation, the cell data of the page buffer 12 may be ready by the buffer 14. For example, the buffer 14 may configured with Static Random Access Memory (SRAM). The data of a bit whose position is marked by a column address among the cell data read by the buffer 14 may be replaced with information data of the I/O pad 15. Additionally, the ECC circuit 13 may calculate parity data corresponding to the data of one sector including the corrected data. Then, the data of 64sectors including the calculated parity data may be stored as code data in a page selected by the page buffer 12.
The ECC circuit 13 may include a decoder 21 and an encoder 22. The encoder 22 may include a parity generator 41. The parity generator 41 may divide the information data stored in the buffer 14 by a generation or, alternatively, generator polynomial to generate parity data. Additionally, the parity generator 41 may combine the generated parity data and the information data. The parity generator 41 may provide the information data including the parity data to the page buffer 12. Data provided to the page buffer 12 become code data that are stored in a selected page during a program operation of the nonvolatile semiconductor memory device 10. According to example embodiments of the inventive concepts, the ECC circuit 13 may correct data at high speed when data are read from the nonvolatile semiconductor memory device 10.
The decoder 21 may include a syndrome calculation circuit 31, an error coefficient calculator 32, a Chien search unit 33, and an error corrector 34. The cell data may be provided to the page buffer 12 during a read operation of the nonvolatile semiconductor memory device 10. Especially, the call data may be provided to each sector. The cell data provided to each sector may become code data. The syndrome calculation circuit 31 may divide the code data by independent minimal polynomials to calculate syndromes. When the BCH code capable of correcting a 4-bit error is used, the number of independent minimal polynomials is four. The syndrome calculation circuit 31 may include four syndrome calculators 31_1 to 31_4 corresponding to the four independent minimal polynomials, respectively. Each of the four syndrome calculators 31_1 to 31_4 may calculate the syndromes S1, S3, S5, and S7, respectively.
The error coefficient calculator 32 may calculate the coefficients e4, e3, e2, e1, and e0 of the error locator polynomial with respect to each sector by using the calculated syndromes S1, S3, S5, and S7. The coefficients e4, e3, e2, e1, and e0 are coefficients of the error locator polynomial Λ(x)=e4x4+e3x3+e2x2+e1x+eo. The error locator polynomial Λ(x) may be used by the Chien search unit 33 that determines whether there is an error in the data of a bit read by each sector of the page buffer 12.
Referring to
The four error location search circuits 33_1 to 33_4 may calculate e1x, e2x2, e3x3, and e4x4, respectively. x of e1x, e2x2, e3x3, and e4x4 is a value indicating the position of a bit included in code data (i.e., cell data stored in the page buffer 12). x may have one of 5119-bit elements of α0 to α510. Additionally, each of the coefficients e1, e2, e3, and e4 is a 9-bit vector provided from the error coefficient calculator 32.
The position search circuit 33_1 may receive the coefficient e1 and multiply the coefficient e1 and each of α0 to α510 to calculate i0 to i510. The position search circuit 33_2 may receive the coefficient e2 and multiply the coefficient e2 and each of α0 to α510 to calculate j0 to j510. The position search circuit 33_3 may receive the coefficient e3 and multiply the coefficient e3 and each of α0 to α510 to calculate k0 to k510. The position search circuit 33_4 may receive the coefficient e4 and multiply the coefficient e4 and each of α0 to α510 to calculate l0 to l510.
The exclusive-or operation unit 33_11 may perform exclusive-or operations on the coefficient e0 and the calculation results of the four position search circuits 33_1, 33_2, 33_3, and 33_4. The exclusive-or operations may be performed on each of α0 to α510. For example, (i0+j0+k0+e0) may be calculated with respect to the element α0. The exclusive-or operation unit 33_11 may generate an error detection signal bch[510:0]) on the basis of the calculation result, and provide the generated error detection signal bch[510:0] to the error corrector 34. The exclusive-or operation unit 33_11 may substitute each of α0 to α510 to x of the error locator polynomial Λ(x)=e4x4+e3x3+e2x2+e1x1+e0. For example, when a value of Λ(x) is 0, the error detection signal bch[x] may have a value of logic 1. Also, when a value of Λ(x) is not 0, the error detection signal bch[x] may have a value of logic 0.
According to example embodiments of the inventive concepts, the error corrector 34 may include 511 exclusive-or circuits 34—s (s is one of 0 to 510). When the error detection signal bch[s] has a value of logic 1, the exclusive-or circuit 34—s may invert a logic value of a bit at the position that the element αs of the Galois Field GF(29) indicates. Then, the exclusive-or circuit 34—s may store the inverted logic value in the buffer 14. The inverted logic value stored in the buffer 14 may correspond to one bit included in the corrected data.
However, when the error detect signal bch[s] has a value of logic 0, the exclusive-or circuit 34—s may not invert a logic value of a bit at the position that the element αs of the Galois Field GF(29) indicates, and may store the logic value in the buffer 14 as it is. The logic value stored in the buffer 14 may correspond to one bit included in the corrected data.
The p generator 20 may receive a coefficient vector e1 expressed as (ei8, ei7, ei6, ei5, ei4, ei3, ei2, ei1, and ei0) from the error coefficient calculator 32 to generate p0 to p7. p0 to p7 may be obtained by using the values of y[0] to y[8] and the logical expressions of FIG. 21(1). y[0] to y[8] may correspond to ei0 to ei8, respectively. The p generator 20 may provide the received ei0 to ei8 and the generated p0 to p7 to the selection circuits 80_0 to 80_8.
Each of the selection circuits 80_0 to 80_8 may select 9 values from ei0 to ei8 and p0 to p7, and output eiα0 to eiα8 according to binary values 9′b000000001, 9′b000000010, 9′b000000100, 9′b000001000, 9′b000010000, 9′b000100000, 9′b001000000, 9′b010000000, and 9′b100000000 that are preset to allow only one bit to have a value of logic 1. eiα0 to eiα8 may correspond to each bit of Z[8:0] in the case that y[0] to y[8] in the logical expressions of
Each of the selection circuits 80_0 to 80_8 may select 9 values from ei0 to ei8 provided from the error coefficient calculator 32 and p0 to p7 provided from the p generator 20, according to the values that are preset to allow only one bit to have a value of logic 1. Accordingly, the selection circuits 80_0 to 80_8 do not require logical circuits such as exclusive-or circuits.
eiα0 to eiα8, each having 9 bits, may be provided to exclusive-or circuits of the exclusive-or operation unit 33_11 and exclusive-or circuits of the second vector generating circuit 33b. Accordingly, if lines are connected to allow output signals of the p generator 20 and output signals of the error coefficient calculator 32 to be inputted to predetermined exclusive-or circuits instead of using the selection circuits 80_0 to 80_8, the same result as the selection circuits 80_0 to 80_8 are used may be obtained.
The second vector generating circuit 33b may calculate multiplication of the coefficient ei and each of α0 to α510 which are the elements of the Galois Field GF(29). The second vector generating circuit 33b may include 502(=511−9) exclusive-or circuits 85—i. Each exclusive-or circuits 85—i may calculate the sum of two values eiαp and eiαq among the multiplication of the coefficient ei of the error locator polynomial and each of 511 elements of α0 to α510. Each of eiαp and eiαq is a 9-bit value.
For example, multiplication of the coefficient e2 of the error locator polynomial and each of 511 elements of α0 to α510 may be expressed as follows.
e
2(α0)2=e2(α0),
e
2(a1)2=e2(α2),
e
2(α2)2=e2(α4),
e
2(α3)2=e2(α6),
e
2(α4)2=e2(α8),
e
2(α5)2=e2(α10)=e2(α5+α),
e
2(α6)2=e2(α12)=e2(α7+α3),
e
2(α7)2=e2(α14)=e2(α5+α4+1)=e2(α5+α9),
e
2(α8)2=e2(α16)=e2(α7+α6+α2)=e2(α7+α11),
. . .
The multiplication of the coefficient e2 of error locator polynomial and each of 511 elements of α0 to α510 may be performed by the first vector generating circuit 33a or the second vector generating circuit 33b. Especially, e2(α0)2, e2(α1)2, e2(α2)2, e2(α3)2, and e2(α4)2 may be calculated by the first vector generating circuit 33a. The first vector generating circuit 33a may provide the calculation results of e2(α0)2, e2(α1)2, e2(α2)2, e2(α3)2, and e2(α4)2 to the second vector generating circuit 33b and the exclusive-or operation unit 33_11. e2(α0)2, e2(α1)2, e2(α2)2, e2(α3)2, and e2(α4)2 provided to the exclusive-or operation unit 33_11 correspond to j0, j1, j2, j3, and j4, respectively.
The second vector generating circuit 33b may calculate the sum of 9-bit values obtained by multiplying one of α9 to α510 which are the elements of the Galois Field GF(29) and e2. For example, in order to obtain e2(α5)2, e2α5+e2α may be calculated. For example, e2(α5)2, e2(α6)2, e2(α7)2, and e2(α8)2 may be calculated by the second vector generating circuit 33b. The second vector generating circuit 33b may provide the calculation results of e2(α5)2, e2(α6)2, e2(α7)2, and e2(α8)2 to the second vector generating circuit 33b and the exclusive-or operation unit 33_11. e2(α5)2, e2(α6)2, e2(α7)2, and e2(α8)2 provided to the exclusive-or operation unit 33_11 correspond to j5, j6, j7, and j8, respectively.
The second vector generating circuit 33b may output 9-bit values obtained by multiplying at least two of α9 to α510 which are the elements of the Galois Field GF(29) and the coefficient ei. However, a value obtained by multiplying each of 502 elements except for the elements whose only one bit has a value of logic 1 and the coefficient ei of the error locator polynomial may be obtained by adding two values among the multiplication results of each of 511 elements including elements whose only one bit has a value of a logic 1 and the coefficient ei of the error locator polynomial. Therefore, the second vector generating circuit may perform calculations by using 4518(=502×9 bits) exclusive-or circuits.
According to example embodiments of the inventive concepts, (2m−1) elements expressed as m-bit vectors on the Galois Field GF(2m) may be substituted to the error locator polynomial. According to example embodiments of the inventive concepts, the Chien search unit 33 may generate an error detection signal indicating whether there is an error in data of a bit in a position corresponding to each element of the Galois Field GF(2m). Each of the position search circuits 33_1 to 33_4 included in the Chien search unit 33 may substitute the elements of the Galois Field GF(2m) to each term of the error locator polynomial. In this case, the elements whose only one bit has a value of logic 1 may be provided to each of the position search circuits 33_1 to 33_4. Exclusive-or operations may be performed on i0 to i510, j0 to j510, k0 to k510, and 10 to 1510, which are the calculation results of the position search circuits 33_1 to 33_4. The exclusive-or operation unit 33_11 may generate the error detection signal bch[510:0] by using exclusive-or operations.
Each of the position search circuits 33_1 to 33_4 may include the first vector generating circuit 33a and the second vector generating circuit 33b. The first vector generating circuit 33a may calculate multiplication of m-bit coefficients vectors e1 to e4 of the error locator polynomial and vectors 9′b000000001 to 9′b100000000 representing m-bit elements whose only one bit has a value of logic 1. On the basis of the multiplication results, the first vector generating circuit 33a may generate m first vectors. The first vector generating circuit 33a may include m bit determination units (e.g., the selection circuits 80_0 to 80_8 or direct line connections) for generating the first vectors in parallel from each bit of the coefficient vector or combination of the each bit. The first vectors may be generated based on the position of a bit having a value of logic 1 in the vector representing an element whose only one bit has a value of logic 1.
The second vector generating circuit 33b may generate (2m−1−m) second vectors expressed as the sum of at least two of the first vectors. The second vector generating circuit 33b may include exclusive-or circuits for generating the second vectors obtained by the sum of two of the first vectors and the second vectors.
According to example embodiments of the inventive concepts, multiplication of the 9 elements whose only one bit has a value of logic 1 and the coefficient vectors of the error locator polynomial may be calculated by 8 exclusive-or circuits of the first vector generating circuit 33a. Moreover, multiplication of the 502 elements except for the elements whose only one bit has a value of logic 1 and the coefficient vectors of the error locator polynomial may be calculated by 9×502 exclusive-or circuits of the second vector generating circuit 33b. For example, each of the position search circuits 33_1 to 33_4 may be configured with 4526(=8+9×502) exclusive-or circuits. Accordingly, the four position search circuits may be configured with 18104 (=4526×4) logical circuits.
Additionally, the exclusive-or operation unit 33_11 in the Chien search unit 33 may calculate the sum of outputs (9 bits×511) of each of the four position search circuits 33_1 to 33_4 to generate the error detection signal. Therefore, the exclusive-or operation unit 33_11 may require 18396 (=4×9×511) exclusive-or circuits. Accordingly, the Chien search unit 33 may require 36824(=18428+18396) logical circuits.
Compared to the Chien search unit 339 of the related art requiring 353612 logical circuits, the Chien search unit according to example embodiments of the inventive concepts may require logical circuits whose number is reduced to 1/10. Therefore, according to other embodiments of the inventive concepts, the scale of the error location search circuit may be reduced, and the ECC circuit and the memory device including the error location search circuit of which scale is reduced may be obtained.
According to example embodiments of the inventive concepts, a bit string may be commonly provided to each of a plurality of Chien search circuits disposed in a matrix along a column direction and a row direction. Accordingly, lines for providing a signal that represents a bit position need not be connected to each of the plurality of Chien search circuits. As a result, the number of lines for providing a signal that represents a bit position to each of the plurality of Chien search circuit may be reduced, and also the scale of a Chien search circuit may be reduced. Additionally, since the plurality of Chien search circuits may be disposed appropriately and integrally, the entire circuit scale may be effectively reduced.
According to example embodiments of the inventive concepts, by using elements whose only one bit has a value of logic 1 among elements of the Galois Field, the other elements of the Galois Field are expressed. According to example embodiments of the inventive concepts, the number of logic circuits in an error location search circuit may be drastically reduced. Therefore, according to example embodiments of the inventive concepts, the scale of the error location search circuit may be reduced, and an ECC circuit and a memory device including the error location search circuit having reduced scale may be obtained.
Example embodiments having thus been described, it will be obvious that the same may be varied in many ways. Such variations are not to be regarded as a departure from the intended spirit and scope of example embodiments, and all such modifications as would be obvious to one skilled in the art are intended to be included within the scope of the following claims.
Number | Date | Country | Kind |
---|---|---|---|
2012-209529 | Sep 2012 | JP | national |
2012-209772 | Sep 2012 | JP | national |
10-2013-0096080 | Aug 2013 | KR | national |
This U.S. non-provisional patent application claims priority under 35 U.S.C. §119 of Japanese Patent Application No. 2012-209529, filed on Sep. 24, 2012, Japanese Patent Application No. 2012-209772, filed on Sep. 24, 2012, and Korean Patent Application 10-2013-0096080, filed on Aug. 13, 2013, the entire contents of each which are hereby incorporated by reference.