Arithmetic circuit, memory system, and control method
The arithmetic circuit reduces power consumption in error correction decoding by assigning input values to error locator polynomials and updating them using complete symmetric equations, effectively minimizing power usage in memory systems.
Patent Information
- Application Number
- JP2023031129
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-01
- Publication Date
- 2024-09-12
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing memory systems consume excessive power during error correction decoding processes, particularly in operations like Chien search for error locator polynomials.
An arithmetic circuit that assigns p input values to an error locator polynomial, calculates error position information, and updates the polynomial using complete symmetric equations to reduce the degree, thereby reducing power consumption.
The proposed method suppresses power consumption in decoding operations by creating inactive regions in the circuit, thus optimizing power usage during error correction.
Smart Images

Figure 2024123586000001
Abstract
Description
[Technical field]
[0001] 1. Field of the Invention The present invention relates to an arithmetic circuit, a memory system, and a control method. [Background technology]
[0002] In a memory system, in order to protect data stored in a memory such as a NAND flash memory, error correction coded data is stored in the memory. Therefore, when reading data stored in the memory, the error correction coded data (also called a received word) read from the memory is decoded to restore the data before being error correction coded.
[0003] For error-correcting codes, a decoding technique using an error locator polynomial is known. For example, Chien search is known as a method for calculating the error location using an error locator polynomial. Chien search is a method in which values are sequentially substituted into the error locator polynomial, and the error location is searched for based on the value that makes the output value of the error locator polynomial 0. In the decoding process, the process of searching for the root of the error locator polynomial, such as Chien search, tends to take up a large proportion of power consumption. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] U.S. Pat. No. 4,868,828 [Patent Document 2] U.S. Patent No. 6,209,115 [Patent Document 3] U.S. Pat. No. 4,099,160 Summary of the Invention [Problem to be solved by the invention]
[0005] An object of the embodiment of the present invention is to provide an arithmetic circuit capable of suppressing power consumption in arithmetic operations such as decoding processing.
Means for Solving the Problem
[0006] The arithmetic circuit of the embodiment executes a substitution process of calculating p pieces of error position information indicating whether it is an error position by substituting p input values (p is an integer satisfying 1 ≦ p < n) into the error position polynomial for an error correction code with a code length of n bits (n is an integer of 2 or more). Based on the error position information, one or more variables based on the roots of the error position polynomial are extracted, the first complete symmetric polynomial of the extracted variables is calculated, the error position polynomial is updated by multiplying the error position polynomial by the first complete symmetric polynomial, and the substitution process is executed again using the updated error position polynomial.
Brief Description of the Drawings
[0007] [Figure 1] Block diagram of the memory system according to the embodiment. [Diagram 2] Block diagram of the decoding unit of the first embodiment. [Diagram 3] Diagram showing a configuration example of the polynomial substitution unit. [Figure 4] Diagram showing a configuration example of the polynomial substitution unit. [Diagram 5] Diagram for explaining an example of power reduction. [Figure 6] Block diagram of the extraction unit of the first embodiment. [Figure 7] Block diagram of the complete symmetric polynomial calculation unit of the first embodiment. [Figure 8] Flowchart of the decoding process. [Figure 9] Block diagram of the decoding unit of the second embodiment. [Figure 10] Diagram showing the relationship between the coefficients of the error position polynomial and the remaining number of errors. [Figure 11] Block diagram of the extraction unit of the second embodiment. [Figure 12] Block diagram of the complete symmetric polynomial calculation unit of the second embodiment. [Figure 13] Diagram showing an example of ascending convolution. [Figure 14] Diagram showing an example of descending convolution. [Figure 15] FIG. 11 is a diagram for explaining an example of power reduction according to a modified example. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] A preferred embodiment of the arithmetic circuit according to the present invention will be described in detail below with reference to the accompanying drawings. In the following, a memory system including an arithmetic circuit that searches for the root of an error locator polynomial when decoding an error correction code will be described as an example. The configuration using the arithmetic circuit is not limited to this example, and may be any system (device, equipment).
[0009] (First embodiment) First, the memory system according to this embodiment will be described in detail with reference to the drawings. FIG. 1 is a block diagram showing a schematic configuration example of the memory system according to this embodiment. As shown in FIG. 1, the memory system 1 includes a memory controller 10 and a non-volatile memory 20. The memory system 1 can be connected to a host 30, and FIG. 1 shows the memory system 1 connected to the host 30. The host 30 may be, for example, an electronic device such as a personal computer or a mobile terminal.
[0010] The nonvolatile memory 20 is a nonvolatile memory that stores data in a nonvolatile manner, such as a NAND type flash memory (hereinafter, simply referred to as a NAND memory). In the following description, a case where a NAND memory is used as the nonvolatile memory 20 is exemplified, but it is also possible to use a storage device other than a NAND memory, such as a three-dimensional structure flash memory, a ReRAM (Resistive Random Access Memory), or a FeRAM (Ferroelectric Random Access Memory), as the nonvolatile memory 20. In addition, it is not essential that the nonvolatile memory 20 is a semiconductor memory, and this embodiment can be applied to various storage media other than semiconductor memories.
[0011] The memory system 1 may be any of various memory systems equipped with a nonvolatile memory 20, such as a so-called SSD (Solid State Drive) or a memory card in which a memory controller 10 and a nonvolatile memory 20 are configured as one package.
[0012] The memory controller 10 controls writing to the non-volatile memory 20 in accordance with a write request from the host 30. The memory controller 10 also controls reading from the non-volatile memory 20 in accordance with a read request from the host 30. The memory controller 10 is a semiconductor integrated circuit configured as, for example, a SoC (System On a Chip). The memory controller 10 includes a host I / F (host interface) 15, a memory I / F (memory interface) 13, a control unit 11, an encoding / decoding unit (codec) 14, and a data buffer 12. The host I / F 15, the memory I / F 13, the control unit 11, the encoding / decoding unit 14, and the data buffer 12 are connected to each other by an internal bus 16. Some or all of the operations of each component of the memory controller 10 described below may be realized by a CPU (Central Processing Unit) executing firmware, or may be realized by hardware.
[0013] The host I / F 15 performs processing in accordance with the interface standard with the host 30, and outputs commands received from the host 30, user data to be written, and the like to the internal bus 16. In addition, the host I / F 15 transmits user data read and restored from the non-volatile memory 20, responses from the control unit 11, and the like to the host 30.
[0014] The memory I / F 13 performs a write process to the non-volatile memory 20 based on an instruction from the control unit 11. The memory I / F 13 also performs a read process from the non-volatile memory 20 based on an instruction from the control unit 11.
[0015] The control unit 11 performs overall control of each component of the memory system 1. When the control unit 11 receives an instruction from the host 30 via the host I / F 15, the control unit 11 performs control according to the instruction. For example, the control unit 11 instructs the memory I / F 13 to write user data and parity to the nonvolatile memory 20 according to the instruction from the host 30. The control unit 11 also instructs the memory I / F 13 to read user data and parity from the nonvolatile memory 20 according to the instruction from the host 30.
[0016] Furthermore, when the control unit 11 receives a write request from the host 30, it determines a storage area (memory area) on the nonvolatile memory 20 for the user data stored in the data buffer 12. That is, the control unit 11 manages the write destination of the user data. The correspondence between the logical address of the user data received from the host 30 and the physical address indicating the storage area on the nonvolatile memory 20 where the user data is stored is stored as an address conversion table.
[0017] Furthermore, when the control unit 11 receives a read request from the host 30, it converts the logical address specified by the read request into a physical address using the address conversion table described above, and instructs the memory I / F 13 to read from the physical address.
[0018] In a NAND memory, writing and reading are generally performed in data units called pages, and erasure is performed in data units called blocks. In this embodiment, a plurality of memory cells connected to the same word line are called a memory cell group. When the memory cells are single level cells (SLC: Single Level Cell), one memory cell group corresponds to one page. When the memory cells are multi-level cells (MLC: Multiple Level Cell), one memory cell group corresponds to multiple pages. In this description, MLC includes TLC (Triple Level Cell) and QLC (Quad Level Cell). Each memory cell is connected to a word line and also to a bit line. Therefore, each memory cell can be identified by an address that identifies a word line and an address that identifies a bit line.
[0019] The data buffer 12 temporarily stores user data received by the memory controller 10 from the host 30 until the data is stored in the nonvolatile memory 20. The data buffer 12 also temporarily stores user data read from the nonvolatile memory 20 until the data is transmitted to the host 30. For the data buffer 12, for example, a general-purpose memory such as an SRAM (Static Random Access Memory) or a DRAM (Dynamic Random Access Memory) can be used. Note that the data buffer 12 may not be built into the memory controller 10, but may be mounted outside the memory controller 10.
[0020] User data transmitted from the host 30 is transferred to the internal bus 16 and temporarily stored in the data buffer 12. The encoding / decoding unit 14 encodes the user data stored in the nonvolatile memory 20 to generate a codeword. The encoding / decoding unit 14 also decodes the received word read from the nonvolatile memory 20 to restore the user data. Therefore, the encoding / decoding unit 14 includes an encoding unit (Encoder) 17 and a decoding unit (Decoder) 18. Note that the data encoded by the encoding / decoding unit 14 may include control data used inside the memory controller 10 in addition to the user data.
[0021] Next, the write process of this embodiment will be described. When writing to the non-volatile memory 20, the control unit 11 instructs the encoding unit 17 to encode the user data. At that time, the control unit 11 determines a storage location (storage address) of the codeword in the non-volatile memory 20, and also instructs the memory I / F 13 of the determined storage location.
[0022] The encoding unit 17 generates a codeword by encoding the user data on the data buffer 12 based on an instruction from the control unit 11. For example, an encoding method using algebraic codes such as BCH (Bose-Chaudhuri-Hocquenghem) code and RS (Reed-Solomon) code, as well as an encoding method (such as product code) using these codes as row- and column-direction component codes, can be adopted as the encoding method. The memory I / F 13 controls the storage of the codeword in a memory location on the non-volatile memory 20 instructed by the control unit 11. In the following, an example will be described in which a BCH code that corrects errors of t bits or less (t is an integer equal to or greater than 2) is used.
[0023] Next, a process of reading from the non-volatile memory 20 in this embodiment will be described. When reading from the non-volatile memory 20, the control unit 11 designates an address on the non-volatile memory 20 and instructs the memory I / F 13 to read. The control unit 11 also instructs the decoding unit 18 to start decoding. The memory I / F 13 reads the received word from the designated address in the non-volatile memory 20 in accordance with the instruction of the control unit 11, and inputs the read received word to the decoding unit 18. The decoding unit 18 decodes the received word read from the non-volatile memory 20.
[0024] The decoder 18 decodes the received word read from the non-volatile memory 20. The decoder 18 executes calculation of an error locator polynomial using, for example, the Peterson Gorenstein Zierler (PGZ) method, the Berlekamp Massey (BM) method, the Euclidean method, or the like.
[0025] Fig. 2 is a block diagram showing an example of the configuration of the decoding unit 18 according to this embodiment. As shown in Fig. 2, the decoding unit 18 includes a syndrome calculation unit 101, an error position polynomial calculation unit 102, an error position calculation unit 110 as an arithmetic circuit, and a correction unit 103.
[0026] The syndrome calculation unit 101 calculates a syndrome using the received word (read sequence) read from the non-volatile memory 20. The syndrome calculation unit 101 may calculate the syndrome by any conventional method. If all the syndrome values are 0, it can be determined that there is no error in the received word, and the decoding unit 18 can end the decoding process without executing the subsequent processes.
[0027] The error locator polynomial calculation unit 102 uses the syndrome to calculate the error locator polynomial by the PGZ method, the BM method, the Euclidean method, etc. Some of the coefficients of the error locator polynomial are calculated by addition and multiplication of the syndrome.
[0028] The syndrome and the coefficient σ calculated using the syndrome are elements of the Galois field. m It is a set with m elements (m is an integer greater than or equal to 1) and the four arithmetic operations are defined, characterized by a primitive polynomial of degree m.
[0029] The error position calculation unit 110 calculates an error position by using the error position polynomial calculated by the error position polynomial calculation unit 102. The process of calculating the error position (search process) may be realized by any method, but for example, Chien search can be used. The Chien search is a method of sequentially substituting values into the error position polynomial and searching for an error position based on the value that makes the output value of the error position polynomial 0.
[0030] The correction unit 103 performs error correction by inverting (bit flipping) the bit at the error position calculated by the search process.
[0031] Next, the function of the error position calculation unit 110 will be described in detail. In the search process using the Chien search, many input values are sequentially substituted into the error position polynomial, and the error position is searched for based on the value that makes the output value of the error position polynomial 0, so power consumption is large. The error position calculation unit 110 of this embodiment has a function of lowering the degree of the error position polynomial during the search process. This makes it possible to suppress the power consumption of the search process.
[0032] As shown in FIG. 2, the error-position calculation unit 110 includes a polynomial acquisition unit 111 , a polynomial substitution unit 112 , an extraction unit 113 , a completely symmetric equation calculation unit 114 , and an update unit 115 .
[0033] The polynomial acquisition unit 111 acquires the error-locator polynomial (hereinafter, referred to as σ(x)) calculated by the error-locator polynomial calculation unit 102.
[0034] The polynomial substitution unit 112 performs a substitution process of substituting input values into the error position polynomial and calculating error position information indicating whether it is an error position. The substitution process is executed in multiple cycles. In each cycle, a plurality of input values are input in parallel, and a plurality of output values that are elements of the error position information are output in parallel.
[0035] For example, if the number of input values is p (p is an integer satisfying 1 ≤ p < n) and the code length of the error correction code is n bits (n is an integer of 2 or more), the total number of cycles C is C = ceil(n / p). Note that ceil(x) is a ceiling function that outputs the smallest integer greater than or equal to x. The number of input values p can be interpreted as the parallelism of the substitution process.
[0036] Executing the substitution process in parallel is, for example, to reduce the latency of the entire decoding process. To further reduce the latency, it is desirable to increase the value of p and decrease the value of the total number of cycles C.
[0037] Next, a configuration example of the polynomial substitution unit 112 with parallelized substitution processing will be described. FIG. 3 is a diagram showing a configuration example of the polynomial substitution unit 112. Also, FIG. 3 schematically shows the influence on the power consumption of the substitution process. The left part of FIG. 3 shows an example of a register 351 that stores the coefficients of the error position polynomial whose maximum correction bit number is t.
[0038] The error position polynomial is a polynomial of a degree corresponding to the number of errors (error count) included in the received word. For example, when the error count is from 1 to t, first-degree to t-degree error position polynomials are used respectively. Let the coefficients of the t-degree error position polynomial be σ0, σ1, ···, σ t-1 , σ t When an s-degree (s is an integer satisfying 0 ≤ s < t) error position polynomial is used, the values of σ s+1 to σ t which are coefficients of degrees greater than s are 0.
[0039] The register 351 stores the coefficients σ0, σ1, ···, σ t-1 , σ tIn this case, in register 351, the values of coefficients up to an order corresponding to the number of errors are non-zero, and the values of coefficients of orders greater than the number of errors are 0. For example, area 352 included in the register in FIG. 3 corresponds to an area for storing coefficients whose values are 0.
[0040] 3, the polynomial substitution unit 112 is configured to execute substitution processing for the error locator polynomial in parallel by using the coefficients stored in the register 351. That is, the polynomial substitution unit 112 includes p logic circuits 301-1 to 301-p that input any one of p input values in parallel to the error locator polynomial and output error locator information.
[0041] The logic circuits 301-1 to 301-p have similar functions except for different input values, and are simply referred to as logic circuit 301 when there is no need to distinguish between them. The logic circuit 301 is configured to consume power in operations on coefficients whose values are other than 0, and to suppress power consumption in operations on coefficients whose values are 0. In FIG. 3, the regions of the logic circuit 301 that consume power are represented as "active", and the regions where power consumption is suppressed are represented as "inactive". In this way, the smaller the number of errors, i.e., the smaller the degree of the error locator polynomial, the larger the inactive region of the logic circuit 301, and as a result, power consumption is suppressed.
[0042] The memory system 1 of this embodiment focuses on the fact that the inactive area increases as the number of errors (the degree of the error locator polynomial) decreases, and has a function of decreasing the degree of the error locator polynomial so as to increase the inactive area.
[0043] The right part of Fig. 3 shows an example of error position information output by the polynomial substitution unit 112. Fig. 3 shows an example in which error position information for four cycles is output. The information surrounded by dotted lines corresponds to the error position information output in each cycle. A position of an element of the error position information where the value is 1 corresponds to the error position. For example, in the first cycle, a position corresponding to the first input value among p input values is output as the error position.
[0044] Here, a specific example of parallelized substitution processing will be described. Fig. 4 is a diagram showing a configuration example of a polynomial substitution unit 400 in which substitution processing is parallelized. The polynomial substitution unit 400 has the same functions as the polynomial substitution unit 112, but the method of updating the input error locator polynomial is different from that of the polynomial substitution unit 112. That is, in Fig. 4, the error locator polynomial is updated by a method different from that of the update unit 115 of this embodiment.
[0045] The registers 451-0 to 451-t and the multipliers 452-1 to 452-t are elements used for updating such an error locator polynomial.
[0046] The registers 451-0 to 451-t store the coefficients σ0, σ1, . . . , σ t-1 ,σ t These are registers that store the elements of a Galois field in m-bit representation based on
[0047] The logic circuits 301-1 to 301-p of the polynomial substitution unit 400 assign the error locator polynomial σ(x) to x=α q (q is an integer satisfying 1≦q≦p) q corresponds to the input value. α represents a primitive element that is the root of the primitive polynomial of the Galois field. These p values to be substituted are representative examples, and may be changed according to the settings of the code length, etc.
[0048] The multipliers 402-1 to 402-t multiply the values input from the registers 451-1 to 451-t by α to α t Note that since multiplication of the value input from register 451-0 is not necessary, the input value is output to adder 403 as is.
[0049] Adder 403 adds the value input from register 451-0 and the outputs of multipliers 402-1 to 402-t. Operator 404 outputs 1 when the output of adder 403 is 0, and outputs 0 when the output is 1.
[0050] The logic circuits 301-2 to 301-p respectively replace the α of the logic circuit 301-1 with α 2 ~α p This differs from the logic circuit 301-1 in that a value replaced with
[0051] The multipliers 452-1 to 452-t perform multiplication to obtain coefficients to be used in the next cycle, which are shifted by an amount corresponding to p. For example, the multiplier 452-1 multiplies the value stored in the register 451-1 by α p The result of the multiplication is stored in register 451-1 as the value of the coefficient to be used in the next cycle.
[0052] The logic circuits 301-1 to 301-p of the polynomial substitution unit 112 of this embodiment can have the same configuration as the logic circuits 301-1 to 301-p of FIG.
[0053] In addition, σ input to the polynomial substitution unit 112 in FIG. [c] (x) means the error locator polynomial input in the cth cycle (c is an integer satisfying 1≦c≦C). The error locator polynomial has (t+1) coefficients σ0, σ1, . . . , σ t-1 ,σ t In addition, each coefficient is expressed as 2 m 2 represents the size of the data input to the polynomial substitution unit 112.
[0054] As shown in FIG. 3, the polynomial substitution unit 112 outputs error-location information expressed as a vector including p elements in each cycle.
[0055] Returning to FIG. 2, the extraction unit 113 extracts one or more variables based on the root of the error locator polynomial based on the error locator information output from the polynomial substitution unit 112. Below, a configuration example in which the extraction unit 113 extracts one or two variables will be described. A configuration in which three or more variables are extracted is also possible, but there are cases in which the process up to updating the error locator polynomial is not completed within one cycle. In this case, a modified example described later may be applied. The details of the extraction unit 113 will be described later.
[0056] The completely symmetric expression calculation unit 114 calculates a completely symmetric expression (first completely symmetric expression) of the extracted variables. The update unit 115 updates the error locator polynomial by multiplying the error locator polynomial by the completely symmetric expression. The degree of the error locator polynomial is reduced by multiplying the error locator polynomial by the completely symmetric expression. The method of calculating the completely symmetric expression and the process of updating the error locator polynomial by the completely symmetric expression will be described later in detail.
[0057] Fig. 5 is a diagram for explaining an example of power reduction by reducing the degree of the error locator polynomial. Fig. 5 shows an example in which the code length n of the error correcting code is 4×p (four cycles of substitution processing, parallelism is p), the maximum number of corrected bits t is 8, and the number of errors is 8. Variables X1 to X8 represent eight root-based variables obtained by the substitution processing. As will be described later, the root-based variables are, for example, inverse elements of the roots, and are also called error locators. Fig. 5 also shows an example in which two root-based variables are obtained in each cycle.
[0058] The left part of Fig. 5 shows a process according to a comparative example in which the degree is not reduced. For example, the left part corresponds to an example in which the method of Fig. 4 in which the error locator polynomial is updated without reducing the degree is applied. In the comparative example, an 8th degree error locator polynomial is used in each cycle. Therefore, in none of the cycles does an inactive region as described in Fig. 3 occur, and power consumption is not suppressed.
[0059] The right part of FIG. 5 shows a process in the case of configuring to reduce the degree according to this embodiment. For example, in the first cycle, two variables X1 and X2 are obtained by substitution processing for the 8th degree error locator polynomial. As will be described later, in this embodiment, when two roots are obtained, the degree of the error locator polynomial is reduced by 2 by a completely symmetrical formula calculated using variables based on these two roots. Therefore, in the next second cycle, a 6th degree error locator polynomial is used. Therefore, the reduced 7th and 8th degree coefficients have values of 0, and an inactive region 501 is generated. Similarly, in the third and fourth cycles, inactive regions 502 and 503 are generated, respectively.
[0060] In this manner, in this embodiment, when the substitution process is performed in multiple cycles, the degree of the error locator polynomial used in the following cycle can be reduced by using the root found in a certain cycle, thereby making it possible to reduce the power consumption of the arithmetic circuit used in the decoding process, etc.
[0061] In addition, in a configuration in which the extraction unit 113 extracts one or two variables, even if three or more roots exist in one cycle, up to two variables are extracted. Also, if there is no root in one cycle, no variables are extracted.
[0062] Next, a detailed description will be given of the function of the extraction unit 113. Fig. 6 is a block diagram showing an example of the configuration of the extraction unit 113. As shown in Fig. 6, the extraction unit 113 includes an order reversal unit 601, priority encoders 602a and 602b, and lookup tables (LUTs) 603a and 603b.
[0063] The order reversal unit 601 reverses the order of each element of the error location information input from the polynomial substitution unit 112. For example, as shown in Fig. 3, the error location information is a vector (p-th order vector) including p elements each having a value of 0 or 1. The order reversal unit 601 generates and outputs a vector in which the order of each element of this vector is reversed.
[0064] The priority encoder 602a receives the pth vector and outputs the qth vector a min and information v1 indicating whether the p-th vector contains 1. For example, q can be calculated by q=ceil(log2p). The priority encoder 602b receives the p-th vector and outputs a max and information v2 indicating whether the p-th vector includes a 1.
[0065] In general, a priority encoder can be interpreted as a function that outputs the minimum address value of elements whose element value is a specific value (for example, 1) among the elements of an input vector (hereinafter, input vector). For example, the first element of an address is 0 and is incremented by 1. Consider the case where an input vector In=(0,0,0,1,0,0,1,1,0,0,0,1,0,0,0,0,0) containing 16-bit elements is input and the specific value is 1. In this case, there are four addresses whose element value is 1: {3,6,7,11}. The minimum value among these addresses is 3. The priority encoder outputs a 4(=ceil(log216))-bit vector (0,0,1,1) that indicates this value 3. If the input vector is inverted and input to the priority encoder, the maximum address value of elements whose element value is a specific value can be obtained.
[0066] By using the priority encoder 602a, the address a of the first element that appears among the elements whose value is 1 in the p-th vector is obtained. min In addition, by using the inverted p-th vector and the priority encoder 602b, the address a of the last element that appears among the elements whose value is 1 included in the p-th vector is extracted. max is extracted.
[0067] LUT603a is a min The LUT 603b is correspondence information that describes the variables (error locators) corresponding to a max The extraction unit 113 uses the LUT 603a to obtain amin The extraction unit 113 also uses the LUT 603b to find and output a variable X1 corresponding to a max The variable X2 corresponding to is calculated and output. Note that if there is one root, the variables X1 and X2 will have the same value. If there are two roots, the variables X1 and X2 will have different values.
[0068] 6 is merely an example, and is not limited to this. Any method may be used as long as it is a method for finding a variable (error locator) based on the root of the error location polynomial using error location information.
[0069] Next, a detailed description will be given of the function of the completely symmetric equation calculation unit 114. First, a description will be given of the relationship between the completely symmetric equation and the degree of the error locator polynomial.
[0070] When the number of errors is s (here, s is an integer satisfying 1≦s≦t), the error locator polynomial is defined as shown in the following equation (1).
number
[0071] X1 to X in formula (1) s corresponds to the error locator (variable based on the root). As shown in equation (1), the root of the error locator polynomial is the inverse of the error locator. Among the roots of the error locator polynomial, two roots X1 -1 and X2 -1 In this case, equation (1) can be rewritten as equation (2) below. The right-hand side of equation (2) is X3~X s The error locator polynomial σ with degree 2 reduction, including <s-2>< / s-2> (x) and the generating function e of the fundamental symmetric equation with known error locators X1 and X2 <2> It is multiplied with (x).
number
[0072] By multiplying both sides of equation (2) by the following equation (3) which represents the generating function of the completely symmetrical equation of the error locators X1 and X2, we obtain the following equation (4).
number
number
[0073] As shown in equation (4), the error location polynomial σ <s>< / s> <s>The error locator polynomial σ, reduced by two degrees, is obtained by multiplying (x) by the generating function of the complete symmetric expression of variables based on the two roots (error locators X1 and X2). <s-2>< / s-2> (x) is obtained.
[0074] In addition, x on both sides of equation (4) i By extracting the coefficients, we obtain the following relational expression (5): <2> i-j represents the following completely symmetric equation (ij). In the following, h <s>< / s> <s> i denotes a completely symmetric equation of degree i with s roots.
number
[0075] Equation (5) can be interpreted as indicating that the multiplication of the polynomials shown in equation (4) is equivalent to the convolution of the coefficients of the polynomials.
[0076] 7 is a block diagram showing an example of the configuration of the completely symmetric equation calculation unit 114. The completely symmetric equation calculation unit 114 receives information v1, v2 and variables X1, X2, calculates and outputs a completely symmetric equation of the variables X1, X2.
[0077] Selector 701 selects and outputs either the output of calculation formula 711 or the output of selector 702 depending on whether information v1 and v2 are both 0 or not. Selector 702 selects and outputs either the output of calculation formula 712 or the output of calculation formula 713 depending on whether variables X1 and X2 are equal or not.
[0078] For example, when both pieces of information v1 and v2 are 0, this corresponds to a case where no root exists, so the selector 701 outputs the result of the calculation shown in the calculation formula 711 as first- to third-order completely symmetrical formulas h1 to h3.
[0079] When both pieces of information v1 and v2 are not 0 and variables X1 and X2 are equal, this corresponds to the case where one root exists, so selector 701 and selector 702 output the result of the calculation shown in calculation formula 712 as first- to third-order completely symmetrical equations h1 to h3.
[0080] When both pieces of information v1 and v2 are not 0 and variables X1 and X2 are not equal, this corresponds to the case where two roots exist, so selector 701 and selector 702 output the results of the calculation shown in formula 713 as first- to third-order completely symmetrical equations h1 to h3.
[0081] In addition, in FIG. 7, examples of completely symmetric equations up to the third order are shown, but completely symmetric equations h4 to h t-1 is also calculated in a similar manner.
[0082] Next, a detailed description will be given of the process of updating the error locator polynomial by the update unit 115. For example, the update unit 115 uses the completely symmetric equation calculated by the completely symmetric equation calculation unit 114 to update the c-th cycle error locator polynomial σ [c] (x) is the error location polynomial σ [c+1] Update to (x).
number
number
[0083] In this way, by multiplying the error locator polynomial by a completely symmetric equation, an error locator polynomial whose degree has been reduced by the same number as the roots (error locators) of the error locator polynomial can be obtained as an updated error locator polynomial.
[0084] After that, the polynomial substitution unit 112 executes the above-mentioned substitution process again as the substitution process of the next cycle using the updated error-locator polynomial. The error-locator calculation unit 110 repeatedly executes the processes by the polynomial substitution unit 112, the extraction unit 113, the completely symmetric equation calculation unit 114, and the update unit 115 until the process of the last cycle is completed.
[0085] The correcting section 103 executes error correction by inverting the bit at the error position indicated by the error position information, using the error position information obtained by the substitution process of the error position calculating section 110 in each cycle.
[0086] Next, a description will be given of the flow of the decryption process performed by the memory system 1. Fig. 8 is a flowchart showing an example of the decryption process in this embodiment.
[0087] The control unit 11 reads out the error correction code from the non-volatile memory 20 to obtain the received word (step S101). Also, the control unit 11 instructs the decoding unit 18 to start decoding.
[0088] The syndrome calculation unit 101 of the decoding unit 18 calculates syndromes from the received word (step S102). The decoding unit 18 determines whether or not the values of all the calculated syndromes are 0 (step S103).
[0089] If all the syndromes are 0 (step S103: Yes), it can be determined that there is no error in the received word, and the decoding unit 18 ends the decoding process. If all the syndromes are not 0 (step S103: No), the error locator polynomial calculation unit 102 calculates an error locator polynomial using the syndromes (step S104).
[0090] The error position calculation unit 110 searches for an error position by the calculated error position polynomial (step S105). The correction unit 103 corrects the error by inverting (bit flipping) the bit at the error position found by the search (step S106), and ends the decoding process.
[0091] As described above, in this embodiment, the degree of the error locator polynomial is lowered in the process of searching for the root of the error locator polynomial by Chien search, etc. This makes it possible to generate an inactive region of the circuit according to the lowering of the degree, and as a result, it is possible to suppress the power consumption of the search process.
[0092] Note that this embodiment is suitable for cases where, for example, the degree of parallelism is set large to reduce latency and the maximum number of correctable bits is medium (for example, 5 to 12 bits).
[0093] Second embodiment In the second embodiment, the update of the error locator polynomial is performed more efficiently. Note that in the second embodiment, the function of the decoding unit is different from that in the first embodiment. The following describes the details of the decoding unit 18-2 in the second embodiment.
[0094] FIG. 9 is a block diagram showing a configuration example of the decoding unit 18-2 according to the present embodiment. As shown in FIG. 9, the decoding unit 18-2 includes a syndrome calculation unit 101, an error position polynomial calculation unit 102, an error position calculation unit 110-2, and a correction unit 103. Since the functions of each unit other than the error position calculation unit 110-2 are the same as those in the first embodiment, the same reference numerals are given and the description thereof is omitted.
[0095] The error position calculation unit 110-2 includes a polynomial acquisition unit 111, a polynomial substitution unit 112, an extraction unit 113-2, a complete symmetric polynomial calculation unit 114-2, and an update unit 115-2. Since the functions of the polynomial acquisition unit 111 and the polynomial substitution unit 112 are the same as those in the first embodiment, the same reference numerals are given and the description thereof is omitted.
[0096] The extraction unit 113-2 is different from the extraction unit 113 in the first embodiment in that it further extracts the inverses of one or more variables. In FIG. 9, two inverses X1 -1 , X2 -1 corresponding to two variables X1 and X2 are shown.
[0097] The complete symmetric polynomial calculation unit 114-2 is different from the complete symmetric polynomial calculation unit 114 in the first embodiment in that it further calculates the complete symmetric polynomial (second complete symmetric polynomial) of the extracted inverses. Hereinafter, the complete symmetric polynomial of variables may be referred to as complete symmetric polynomial SP-A, and the complete symmetric polynomial of the inverses of variables may be referred to as complete symmetric polynomial SP-B.
[0098] The complete symmetric polynomial calculation unit 114-2 calculates the complete symmetric polynomial SP-A as a complete symmetric polynomial used for updating the coefficients from the first order to the k-th order (k is an integer satisfying 2 ≦ k < t), and calculates the complete symmetric polynomial SP-B as a complete symmetric polynomial used for updating the coefficients from the (k + 1)-th order to the t-th order.
[0099] For example, the complete symmetric polynomial calculation unit 114-2 calculates the complete symmetric polynomial SP-A according to the following equation (8) and calculates the complete symmetric polynomial SP-B according to the following equation (9). In this example, k is calculated by "the largest integer less than or equal to (t - 1) / 2". For example, when t = 8, k is 3.
number
number
[0100] When t is an even number, equation (8) corresponds to an equation for calculating completely symmetric expressions of increasing degree from 1 to k in ascending order. On the other hand, equation (9) corresponds to an equation for calculating completely symmetric expressions of decreasing degree from t to (k+1) in descending order. When t is an odd number, equation (8) is used to calculate in ascending order for t less than k, and equation (9) is used to calculate in descending order for t greater than k. The same result is obtained whether k is calculated in ascending order using equation (8) or in descending order using equation (9).
[0101] The update unit 115-2 updates the error locator polynomial using the completely symmetric formula SP-A and the completely symmetric formula SP-B. Hereinafter, the update of the error locator polynomial using the completely symmetric formula SP-A may be referred to as an ascending convolution, and the update of the error locator polynomial using the completely symmetric formula SP-B may be referred to as a descending convolution.
[0102] The first embodiment can be interpreted as an example of updating by ascending convolution from 1 to t. In contrast, the present embodiment corresponds to an example of updating by both ascending and descending convolution. Descending convolution will be described below.
[0103] On both sides of the above equation (2), add x s Multiply by and subtract x from x -1 As a result, the left side is rewritten as the following equation (10), and the right side is rewritten as the following equation (11).
number
number
[0104] In equations (10) and (11), the inverse element X1 of the error locators X1 and X2 is -1 , X2 -1 Multiply it by the following equation (12) which represents the generating function of the completely symmetric equation of (-1) 2 X1 -1 X2 -1 By multiplying, we obtain the following equation (13).
number
number
[0105] As shown in equation (13), the error location polynomial σ <s>< / s> <s>(x -1 ) by the completely symmetric inverse of the error locators X1 and X2 to obtain the error locator polynomial σ <s-2>< / s-2> (x -1 ) is obtained.
[0106] The left and right sides of equation (13) are rewritten as the following equations (14) and (15), respectively. Note that the value with a bar above h in equation (14) is defined by the following equation (16).
number
number
number
[0107] Both sides of equation (13), that is, x in equations (14) and (15) i By extracting the coefficients of , we obtain the following equation (17) which shows the descending convolution.
number
[0108] Next, we will explain the reduction in the amount of calculations by convolution in both directions. Figure 10 is a diagram showing the relationship between the coefficients of the error locator polynomial and the number of remaining errors. This diagram corresponds to a diagram of the recurrence formula that the basic symmetric formula follows.
[0109] For example, σ0 in the first row <0> corresponds to the coefficient of the error locator polynomial with 0th degree of error. <1> and σ <1> correspond to the 0th and 1st order coefficients of the first order error locator polynomial with the number of errors being 1 (error locator is X1). The arrows represent additive contributions from the value at the start of the arrow to the value at the tip of the arrow. For example, σ1 <2> is σ0 <1> and σ1 <1> It is composed of σ0 <1> For the arrow pointing downwards and to the right, the value at the start of the arrow is multiplied by the error locator X2 before participating in the addition. <1> For the arrow pointing downward and to the left, the value at the start of the arrow is multiplied by 1 before participating in the addition. Therefore, σ1 <2> is X2σ0 <1> and σ1 <1> This indicates that it is an addition of .
[0110] The bottom row (fourth row) of Figure 10 corresponds to the coefficients when the remaining number of errors is 4. The state where the number of errors is 4 is σ0 <4> , σ1 <4> , σ <4> , σ <4> , σ <4> , corresponds to a state in which there are five coefficient values (Galois field values) of . The convolution is performed using these coefficients.
[0111] The convolution performed in this embodiment corresponds to removing a polynomial of a degree corresponding to an extracted error locator from an error locator polynomial in a certain row to obtain an error locator polynomial of a lower degree in a row above the row in question. For example, from the state of the bottom row in Fig. 10, the polynomials of the degrees corresponding to the error locators X3 and X4 are removed to obtain the error locator polynomial in the second row.
[0112] Coefficient σ2 of the error locator polynomial in the second row of the ascending convolution <2> To find, for example, the following equation (18) can be used. In this case, the three completely symmetric equations h0 <2> , h1 <2> , and h2 <2> It is necessary to calculate
number
[0113] On the other hand, the coefficient σ2 in descending convolution <2> To find, for example, the following equation (19) can be used. In this case, one completely symmetric equation (h0 <2> Only the coefficient σ2 of the larger degree of the (second-order) error locator polynomial in the second line needs to be calculated. <2> The number of completely symmetrical equations required can be reduced by updating based on coefficients of a larger degree than that of a smaller degree among the (fourth degree) error locator polynomials in the fourth line.
[0114] Therefore, in this embodiment, for example, the coefficients with smaller degrees are convoluted in ascending order, and the coefficients with larger degrees are convoluted in descending order. In this way, by combining the convolution in ascending order and the convolution in descending order, rather than only the convolution in ascending order, the overall amount of calculation can be reduced.
number
[0115] In addition, in descending convolution, the inverse element of the error locator (X1 -1 , X2 -1 The inverse element is calculated, for example, by a look-up table (LUT), but as described later, the size of this LUT can be set to the parallel degree p instead of the code length n. This makes it possible to prevent the size of the LUT from becoming excessively large.
[0116] Next, the extraction unit 113-2 will be described in detail. Fig. 11 is a block diagram showing an example of the configuration of the extraction unit 113-2. As shown in Fig. 11, the extraction unit 113-2 includes an order reversal unit 601, priority encoders 602a and 602b, and LUTs 603a, 603b, 603-2c, and 603-2d.
[0117] Extraction unit 113-2 of this embodiment differs from extraction unit 113 of the first embodiment in that it further includes LUTs 603-2c and 603-2d. Since the other configurations are similar to those of extraction unit 113, the same reference numerals are used and the description will be omitted.
[0118] LUT603-2c is a min The LUT 603-2d is correspondence information that describes the inverse of a variable corresponding to a max The extraction unit 113-2 uses the LUT 603-2c to obtain the inverse of a variable corresponding to a min The inverse element X1 corresponding to -1 The extraction unit 113-2 also uses the LUT 603-2d to obtain and output a max The corresponding inverse element X2 -1 Find and output.
[0119] The size of each LUT is the number of elements (=p) of the p-th order vector, not the code length n. Therefore, in this embodiment, although LUTs 603-2c and 603-2d for the inverse element are required, it is possible to prevent the overall required size of the LUTs from becoming excessive.
[0120] Next, the completely symmetric expression calculation unit 114-2 will be described in detail. Fig. 12 is a block diagram showing an example of the configuration of the completely symmetric expression calculation unit 114-2. The completely symmetric expression calculation unit 114-2 calculates information v1, v2, variables X1, X2, and an inverse element X1. -1 , X2 -1 Enter the following formula to find the complete symmetric equation SP-A for variables X1 and X2, and the inverse element X1 -1 , X2 -1 Calculate and output the completely symmetric equation SP-B and .
[0121] The calculation formulas 711 to 713 used to calculate the completely symmetric formula SP-A and the selectors 701 and 702 are similar to those in the first embodiment (FIG. 7), and therefore a description thereof will be omitted.
[0122] The selector 1201 selects and outputs either the output of the formula 1211 or the output of the selector 1202 depending on whether the information v1 and v2 are both 0. The selector 1202 selects and outputs the inverse element X1 -1 and X2 -1 Depending on whether or not they are equal, the output of the calculation formula 1212 or the output of the calculation formula 1213 is selected and output.
[0123] For example, when both pieces of information v1 and v2 are 0, this corresponds to a case where no root exists, so the selector 1201 outputs the result of the calculation shown in the calculation formula 1211 as the completely symmetric formula SP-B.
[0124] If both information ν1 and ν2 are not 0, the inverse element X1 -1 and X2 -1 If and are equal, this corresponds to the case where one root exists, so the selector 1201 and the selector 1202 output the result of the calculation shown in the calculation formula 1212 as the completely symmetric formula SP-B.
[0125] If both information ν1 and ν2 are not 0, the inverse element X1 -1 and X2 -1 If and are not equal, this corresponds to the case where two roots exist, so the selector 1201 and the selector 1202 output the result of the calculation shown in the calculation formula 1213 as the completely symmetric formula SP-B.
[0126] Next, the update process of the error locator polynomial by the update unit 115-2 will be described in detail. In the following, an example will be described in which the maximum number of correction bits t is 8. The error locator polynomial in this case is expressed by the following equation (20).
number
[0127] For example, the update section 115-2 calculates the coefficients σ0 to σ3 of the 0th order through the 3rd order by convolution in ascending order, and calculates the coefficients σ4 to σ8 of the 4th order through the 8th order by convolution in descending order.
[0128] Fig. 13 is a diagram showing an example of ascending convolution. In ascending convolution, the update unit 115-2 updates coefficients from the 0th order to the 3rd order by the matrix operation shown in Fig. 13. The update unit 115-2 also calculates coefficients to be used in the next cycle by fixed multiplication using the parallelism p.
[0129] 14 is a diagram showing an example of descending convolution. s represents the degree of the error locator polynomial input to the update unit 115-2. e represents the number of roots contained in the complete symmetric equation in the current cycle.
[0130] In descending convolution, the update unit 115-2 executes inversion and shifting of coefficients shown in Fig. 14 before and after the matrix operation. In Fig. 14, the coefficients obtained by inverting and shifting the 4th to 8th order coefficients are represented as σ'0 to σ'4. The update unit 115-2 updates the coefficients σ'0 to σ'4 by the matrix operation shown in Fig. 14. The update unit 115-2 calculates the coefficients to be used in the next cycle by fixed multiplication using the parallelism p, and updates the degree s of the error locator polynomial.
[0131] (Modification) Until now, it was assumed that the update of the error locator polynomial used in the cycle was completed before the start of the next cycle. For example, Figure 5 shows an example in which the error locator polynomial is updated by calculating a completely symmetric formula in each of cycles 1 to 3 out of 4 cycles.
[0132] On the other hand, there may be a case where the update of the error locator polynomial is not completed by the next cycle. In consideration of such a delay in calculation, the error locator calculation unit of the modified example executes a substitution process using the updated error locator polynomial in the cycle after the update of the error locator polynomial is completed.
[0133] FIG. 15 is a diagram for explaining an example of power reduction according to the modified example. FIG. 15 shows an example in which the update of the error locator polynomial using two error locators obtained in the first cycle is completed in the second cycle. As a result, in the third cycle, a substitution process is performed using a sixth-order error locator polynomial whose degree is reduced by two. Similarly, the update of the error locator polynomial using two error locators obtained in the second cycle is completed in the third cycle, and in the fourth cycle, a substitution process is performed using a fourth-order error locator polynomial whose degree is further reduced by two. As a result, in the modified example, two inactive regions 1501 and 1502 can be generated.
[0134] As described above, according to this embodiment, it is possible to reduce power consumption in operations such as decoding processing.
[0135] Although some embodiments of the present invention have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These novel embodiments can be implemented in various other forms, and various omissions, substitutions, and modifications can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope and spirit of the invention, and are included in the scope of the invention and its equivalents described in the claims. [Explanation of symbols]
[0136] 1. Memory System 10 Memory Controller 11 Control section 12 Data Buffer 13 Memory I / F 14 Encoding / Decoding Section 15 Host I / F 16 Internal Bus 17 Encoding section 18 Decoding section 20 Non-volatile memory 30 Host< / s> < / s> < / s>
Claims
1. A substitution process is performed to calculate p pieces of error location information indicating whether or not there is an error location by substituting p input values (p is an integer satisfying 1≦p<n) into an error location polynomial for an error-correcting code having a code length of n bits (n is an integer equal to or greater than 2); extracting one or more variables based on roots of the error locator polynomial based on the error location information; Computing a first complete symmetric expression for the extracted variables; updating the error locator polynomial by multiplying the error locator polynomial by the first completely symmetric equation; performing the substitution process again using the updated error locator polynomial; Arithmetic circuit.
2. the arithmetic circuit multiplies the error locator polynomial by the first completely symmetric expression to obtain, as the updated error locator polynomial, the error locator polynomial whose degree has been reduced by the same number as the extracted variables. The arithmetic circuit according to claim 1 .
3. The arithmetic circuit further comprises: Calculating the inverse of the variable based on the error location information; Computing a second completely symmetric expression of the inverse; updating the error locator polynomial by multiplying the error locator polynomial by the second completely symmetric equation; The arithmetic circuit according to claim 1 .
4. the first completely symmetric equation is a completely symmetric equation used to update coefficients of first to k orders (k is an integer satisfying 2≦k<t) among coefficients of first to t orders (t is an integer equal to or greater than 2) of the error locator polynomial, The second completely symmetric equation is a completely symmetric equation used to update coefficients of (k+1)th order to tth order among coefficients of the first order to tth order (t is an integer equal to or greater than 2) of the error locator polynomial. The arithmetic circuit according to claim 3.
5. The arithmetic circuit includes: Repeating the assignment process a number of cycles equal to C, which is the smallest integer equal to or greater than n divided by p; Among the C cycles of the substitution process, the substitution process corresponding to the cycle after the error locator polynomial is updated is executed by using the updated error locator polynomial. The arithmetic circuit according to claim 1 .
6. the arithmetic circuit includes p logic circuits respectively corresponding to the p input values, the p logic circuits inputting the corresponding input values to the error locator polynomial in parallel with other logic circuits and outputting the error location information, The arithmetic circuit according to claim 1 .
7. A non-volatile memory that stores data encoded with an error correction code; A memory controller including the arithmetic circuit according to claim 1, The memory controller includes: Calculating a plurality of syndromes, which are elements of a Galois field, using the received word read from the non-volatile memory; calculating the error location information by substituting the input value into the error location polynomial including coefficients based on a plurality of the syndromes by the arithmetic circuit; correcting the error at the error location indicated by the calculated error location information; Memory system.
8. A control method for controlling a non-volatile memory, which is executed by a memory controller including the arithmetic circuit according to claim 1, comprising: storing data encoded with an error correction code in the non-volatile memory; reading the data from the non-volatile memory as a received word; Calculating a plurality of syndromes, which are elements of a Galois field, using the received word read from the non-volatile memory; calculating the error location information by substituting the input value into the error location polynomial including coefficients based on a plurality of the syndromes by the arithmetic circuit; correcting the error at the error location indicated by the calculated error location information; The control method includes:
Citation Information
Patent Citations
Error location apparatus and methods
US4099160A
Architecture for time or transform domain decoding of reed-solomon codes
US4868828A
Reed-Solomon decoder and VLSI implementation thereof
US6209115B1
