ENCODING APPARATUS, ENCODING METHOD AND SEMICONDUCTOR MEMORY SYSTEM

Information

  • Patent Application
  • 20130151921
  • Publication Number
    20130151921
  • Date Filed
    December 06, 2012
    11 years ago
  • Date Published
    June 13, 2013
    11 years ago
Abstract
According to one embodiment, an encoding apparatus includes an input unit and a generation unit. The input unit inputs a data symbol sequence containing q(N−J) symbols (q, J, and N are integers, N>J). The generation unit generates a codeword containing qN symbols by adding a parity symbol sequence containing qJ symbols to the data symbol sequence. The codeword satisfies parity check equations of a parity check matrix of qJ rows×qN columns. A first submatrix of qJ rows×qJ columns that corresponds to the parity symbol sequence in the parity check matrix includes a second submatrix. The second submatrix includes a first identity matrix of qL rows×qL columns (L is an integer, J>L) and a first non-zero matrix of q(J−L) rows×qL columns.
Description
CROSS-REFERENCE TO RELATED APPLICATIONS

This application is based upon and claims the benefit of priority from Japanese Patent Application No. 2011-272624, filed Dec. 13, 2011, the entire contents of which are incorporated herein by reference.


FIELD

Embodiments described herein relate generally to error correction coding.


BACKGROUND

As a method of error correction coding with strong error correction performance, low-density parity check (LDPC) coding is known. LDPC codewords can be decoded based on, for example, message passing algorithm. Calculation complexity of such a decoding process can be evaluated as order O(n) for a code length (n symbols), i.e., a linear order. On the other hand, an encoding process to generate LDPC codewords can be generally realized by multiplying a data symbol sequence (data vector) with a generator matrix. Calculation complexity of such an encoding process can be evaluated as order O(n2) for a code length (n symbols).





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a block diagram showing an encoding apparatus according to the first embodiment.



FIG. 2 is a block diagram showing an encoding apparatus according to the second embodiment.



FIG. 3 is a block diagram showing an encoding apparatus in a comparative example.



FIG. 4 is an explanatory drawing showing a relationship between a semi-cyclic shift matrix and a fundamental matrix.



FIG. 5 is a block diagram showing a semiconductor memory system according to the third embodiment.



FIG. 6 is a drawing showing a parity check matrix corresponding to the encoding apparatus according to the first embodiment.



FIG. 7 is a drawing showing a parity check matrix corresponding to the encoding apparatus according to the second embodiment.



FIG. 8 is a drawing showing a fundamental matrix of the parity check matrix corresponding to the encoding apparatus according to the second embodiment.





DETAILED DESCRIPTION

In the following, the embodiments will be explained with reference to the drawings.


In general, according to one embodiment, an encoding apparatus includes an input unit and a generation unit. The input unit inputs a data symbol sequence containing q(N−J) symbols (q, J, and N are integers, N>J). The generation unit generates a codeword containing qN symbols by adding a parity symbol sequence containing qJ symbols to the data symbol sequence. The codeword satisfies parity check equations of a parity check matrix of qJ rows×qN columns. A first submatrix of qJ rows×qJ columns that corresponds to the parity symbol sequence in the parity check matrix includes a second submatrix. The second submarix includes a first identity matrix of qL rows×qL columns (L is an integer, J>L) and a first non-zero matrix of q(J−L) rows×qL columns.


In the following, the same elements are denoted by the same respective reference numbers. Redundant explanation will be avoided.


In the following explanation, each embodiment is assumed to be applied to, but not limited to, an LDPC coding scheme.


The characteristics of a parity check matrix does not change if elementary row operation and elementary column operation are performed on the parity check matrix. Thus, in the following explanation, a second parity check matrix that can be derived by performing at least one of elementary row operation and elementary column operation on a first parity check matrix is considered to be the same as the first parity check matrix.


In the following explanation, for simplicity, it is assumed that each embodiment is applied to binary symbols (the symbol value is 1 or 0). Accordingly, a sign can be neglected when calculating symbols. However, if the embodiments are applied to non-binary symbols, a sign cannot be neglected when the symbols are calculated.


First Embodiment

Encoding can be defined as a process of generating a parity symbol sequence (parity vector) p having a length of r=qJ that satisfies Equation (1) below with respect to a data symbol sequence m having a length of f=q(N−J). In the following explanation, t is a symbol indicating transposition of a matrix or vector.






H(m, p)t=0   (1)


In Equation (1), H represents a parity check matrix. A general LDPC encoding process can be realized by multiplying a generator matrix corresponding to the parity check matrix H with a data symbol sequence m. The calculation complexity of the process is order O(n2) is as described above. Herein, it is possible to reduce the calculation complexity by generating a parity symbol sequence p, using the parity check matrix H.


More specifically, as shown in Equation (2) below, the parity check matrix H consists of six (sub) matrices A, B, T, C, D and E. Matrix T is a lower triangular matrix. Although other matrices A, B, C, D and E are not necessarily lower triangular matrices, in light of reducing of calculation complexity, preferably they are sparse matrices.









H
=

(



A


B


T




C


D


E



)





(
2
)







Matrices A and C correspond to the data symbol sequence m (in other words, matrices A and C are multiplied with the data symbol sequence m). Matrices B, T, D and E correspond to the parity symbol sequence p (in other words, matrices B, T, D and E are multiplied with the parity symbol sequence p). More specifically, if the parity symbols p is divided as in p=(p1, p2), matrices B and D correspond to the first (sub) parity symbol sequence p1 (i.e., the first (sub) parity vector), and matrices T and E correspond to the second (sub) parity symbol sequence p2 (i.e., the second (sub) parity vector). If the length of the first parity symbol sequence p1 is r1=q(J−L) and the length of the second parity symbol sequence p2 is r2=qL, the relationship r=r1+r2 holds true. If elementary row operation is performed on the parity check matrix H in Equation (2) to replace matrix E with a zero matrix, the parity check matrix H′ as shown in Equation (3) below can be obtained. In the following explanation, −1 is a symbol for indicating an inverse matrix.










H


=



(



I


0





-

ET

-
1





I



)



(



A


B


T




C


D


E



)


=

(



A


B


T







-

ET

-
1




A

+
C






-

ET

-
1




B

+
D



0



)






(
3
)







It should be noted that matrix T is a lower triangular matrix, an inverse matrix T−1 exists. Even if elementary row operation is performed, the characteristic of the parity check matrix H does not change; thus, H′(m, p)t=0 holds true. In other words, Equations (4) and (5) below hold true.






Am
t
+Bp
1
t
+Tp
2
t=0   (4)





(−ET−1A+C)mt+(−ET−1B+D)p1t=0   (5)


From Equation (5), the first parity symbol sequence pi can be generated as shown in Equation (6) below:










p
1
t

=



-


(



-

ET

-
1




B

+
D

)


-
1





(



-

ET

-
1




A

+
C

)



m
t


=


-


Φ

-
1




(



-

ET

-
1




A

+
C

)





m
t







(
6
)







From Equation (4), the second parity symbol sequence p2 can be generated as shown in Equation (7) below:






p
2
t
=−T
−1(Amt+Bp1t)   (7)


In Equation (7), if matrices A and B are sparse matrices, calculation complexity of matrix products Amt and Bp1t will be low. Furthermore, since T is a lower triangular matrix, if each element in the second parity symbol sequence p2 is sequentially calculated, calculation complexity can be reduced. Accordingly, if the parity symbol sequence p is generated in such a manner, calculation complexity of the encoding process can be partially reduced.


On the other hand, as such a method of generating a parity symbol sequence includes sequential calculation, it is difficult to perform parallel processing; in other words, it is difficult to increase the processing rate of such a generation method. Furthermore, generally speaking, a matrix φ−1 in Equation (6) is not a sparse matrix. For this reason, if such a generating method is adopted, the calculation complexity in generation of the first parity symbol sequence is not always low.


If matrix T is replaced with identity matrix I having the same size, Equations (6) and (7) can be replaced with Equations (8) and (9) below. As stated above, plus and minus signs can be switched with respect to a binary symbol; thus, the minus sign on the right side can be changed to a plus sign.










p
1
t

=



-


(


-
EB

+
D

)


-
1





(


-
EA

+
C

)



m
T


=


-


Ψ

-
1




(


-
EA

+
C

)





m
t







(
8
)







p
2
t

=

-

(


Am
t

+

Bp
1
t


)






(
9
)







By Equation (9), the second parity symbol sequence p2 can be generated by summing vectors Amt and Bp1t, thereby negating the need of sequential calculation. Therefore, if the second parity symbol sequence p2 is generated in such a manner, it is easy to realize the encoding process in parallel processing (in other words, a rate of the encoding process can be increased).


The encoding apparatus according to the first embodiment generates the first parity symbol sequence p1 and the second parity symbol sequence p2 by following Equations (8) and (9) above. The encoding apparatus corresponds to the parity check matrix H shown in FIG. 6 and Equation (10) below:









H
=

(



A


B


I




C


D


E



)





(
10
)







Matrix A is a matrix of qL rows×q(N−J) columns. Matrix B is a matrix of qL rows×q(J−L) columns. Matrix C is a matrix of q(J−L) rows×q(N−J) columns. Matrix D is a matrix of q(J−L) rows×q(J−L) columns. Matrix E is a matrix of q(J−L) rows×qL columns. From the view point of reducing calculation complexity, matrices A, B, C, D and E are preferably sparse matrices.


Typically, matrices A, B, C, D and E are formed by arranging (the number of rows×the number of columns) block matrices (i.e., matrices of q rows×q columns). In the following explanation, it is assumed that matrices A, B, C, D and E are formed by arranging (the number of rows×the number of columns) block matrices. More specifically, matrix A is formed by arranging L×(N−J) block matrices; matrix B is formed by arranging L×(J−L) block matrices; matrix C is formed by arranging (J−L)×(N−J) block matrices; matrix D is formed by arranging (J−L)×(J−L) block matrices; matrix E is formed by arranging(J−L)×L block matrices.


Each block matrix may be a non-zero matrix (preferably a sparse matrix) or may be a zero matrix. In terms of simple hardware configuration, a non-zero matrix as each block matrix may be a cyclic shift matrix of the identity matrix, i.e. a cyclic permutation matrix. Herein, among the cyclic shift matrices, a matrix having one non-zero element in each row is the most sparse cyclic shift matrix. In the following explanation, suppose each block matrix is a cyclic shift matrix of q rows×q columns including only one non-zero element in each row, or a zero matrix of q rows×q columns; in other words, suppose the parity check matrix H is a semi-cyclic shift matrix formed by arranging J×N block matrices.


A semi-cyclic shift matrix can be expressed using a fundamental matrix. A block matrix corresponding to an identity matrix of q rows×q columns corresponds to an element of 0 in the fundamental matrix. A block matrix corresponding to a matrix in which non-zero elements in each row is cyclically shifted to the right for i row(s) (i=1, 2, . . . , q−1) corresponds to an element i in the fundamental matrix. A block matrix of q rows×q columns of zero elements corresponds to an element ∞ in the fundamental matrix. FIG. 4 shows the parity check matrix H and the fundamental matrix ΩH thereof. In the example shown in FIG. 4, q=3, J=5, N=6, L=3.


The encoding apparatus according to the present embodiment comprises an input unit for inputting a data symbol sequence containing q(N−J) symbols, and a generating unit for generating a codeword containing qN symbols that is obtained by adding the parity symbol sequence containing qJ symbols to the data symbol sequence.


The encoding apparatus 100 according to the present embodiment is shown in FIG. 1. The encoding apparatus 100 includes matrix calculation units 101, 102, 103 and 104 and vector addition unit 105. Matrix calculation units 101, 102, 103 and 104 and vector addition unit 105 correspond to the generating unit described above.


Matrix calculation units 101 and 102 generate a first parity symbol sequence p1 based on Equation (8) above. Matrix calculation units 103 and 104 and vector addition unit 105 generate a second parity symbol sequence p2 based on Equation (9) above.


Matrix calculation unit 101 inputs a data symbol sequence m from outside. Matrix calculation unit 101 multiplies the matrix (−EA+C) from the left side of the data symbol sequence mt. In other words, matrix calculation unit 101 calculates a vector (matrix product) v1t by following Equation (11) below. Matrix calculation unit 101 outputs vector v1t to matrix calculation unit 102.






v
1
t=(−EA+C)mt   (11)


Matrix calculation unit 102 inputs vector v1t from matrix calculation unit 101. Matrix calculation unit 102 multiplies a matrix Ψ−1 from the left side of vector v1t. In other words, matrix calculation unit 102 calculates a first parity symbol sequence p1t by Equation (12) below. Matrix calculation unit 102 outputs the first parity symbol sequence p1 from the apparatus, and outputs the same to matrix calculation unit 104.






p
1
t−1v1t   (12)


Matrix calculation unit 103 inputs the data symbol sequence m from outside. Matrix calculation unit 103 multiplies matrix A from the left side of the data symbol sequence m. In other words, matrix calculation unit 103 calculates a vector (matrix product) v2t by Equation (13) below. Matrix calculation unit 103 outputs vector v2t to vector addition unit 105. Matrix calculation unit 103 can operate concurrently matrix calculation units 101, 102 and 104, or may operate before or after the operation of those calculation units.





v2t=Amt   (13)


Matrix calculation unit 104 inputs the first parity symbol sequence p1 from matrix calculation unit 102. Matrix calculation unit 104 multiplies matrix B from the left side of the parity symbol sequence p1t. In other words, matrix calculation unit 104 calculates a vector (matrix product) v3t by Equation (14) below. Matrix calculation unit 104 outputs vector v3t to vector addition unit 105.





v3t=Bp1t   (14)


Vector addition unit 105 inputs vector v2t from matrix calculation unit 103, and inputs vector v3t from matrix calculation unit 104. Vector addition unit 105 adds vector v2t and vector v3t. In other words, vector addition unit 105 calculates the second parity symbol sequence p2 by Equation (15) below. Vector addition unit 105 outputs the second parity symbol sequence p2 from the apparatus.






p
2
t
=v
2
t
+v
3
t   (15)


Regarding Equation (12) above, Ψ−1 is a matrix of q(J−L) rows×q(J−L) columns. The matrix Ψ−1 is generally not a sparse matrix; thus, the calculation complexity of Equation (12) is not always low. Accordingly, it is preferable to reduce the calculation complexity of Equation (12) by setting L as large as possible in consideration of the characteristics of LDPC codes, while maintaining the characteristics of LDPC codes.


A possible maximum value of L can be determined by the following method. For example, there is at least one W that satisfies a condition that the total number of columns having at maximum W (W may be J, J−1, . . . , 1) elements other than ∞ (i.e., elements such as 0, 1, . . . , q−1) is at least (J−W+1) in a portion in the fundamental matrix ΩH corresponding to the parity symbol sequence p. For such W, L can be set as J−W+1. In this case, if a minimum of W is Wmin, and a maximum of L is Lmax, Lmax=J−Wmin+1. In the example shown in FIG. 4, the above condition is satisfied when W=5, 4, 3. Accordingly, Lmax can be set as 3 (5×3+1).


It should be noted, as described above, that it is desirable to set L as great as possible in consideration of the characteristics of LDPC codes, since simply setting L at the greatest value may cause degradation of the characteristic of LDPC codes. For example, it is empirically known that a minimum number in a non-zero block matrix in each row of a parity check matrix that defines an LDPC code showing good characteristic in a region where a decoding error rate is 3 or more. Accordingly, for example, it is preferable to adopt W=3 to set L for an LDPC code to be applied to a storage system. In other words, it is desirable to design the first submatrix of qJ rows×qJ columns corresponding to a parity symbol sequence of the parity check matrix H includes a second submatrix of qJ rows×q(J−2) columns comprising an identity matrix of q(J−2) rows×q(J−2) columns and a non-zero matrix in which 2×(J−2) cyclic shift matrices are arranged.


The encoding apparatus 300 shown in FIG. 3 is a comparative example of the encoding apparatus 100. The encoding apparatus 300 comprises matrix calculation units 301, 302, 103, 104, 306 and a vector addition unit 305.


Matrix calculation units 301 and 302 generate a first parity symbol sequence p1 by Equation (6) above.


Matrix calculation units 103, 104 and 306 and vector addition unit 305 generate a second parity symbol sequence p2 by Equation (7).


Matrix calculation unit 301 inputs a data symbol sequence m from outside. Matrix calculation unit 301 multiplies matrix (−ET−1A+C) from the left side of the data symbol sequence mt. In other words, matrix calculation unit 301 calculates a vector (matrix product) v4t by Equation (16) below. Matrix calculation unit 301 outputs vector v4t to matrix calculation unit 302.






v
4
t=(−ET−1A+C)mt   (16)


Matrix calculation unit 302 inputs a vector v4t from matrix calculation unit 301. Matrix calculation unit 302 multiplies a matrix φ−1 from the left side of vector v4t. In other words, matrix calculation unit 302 calculates the first parity symbol sequence p1t in accordance with Equation (17) below. Matrix calculation unit 302 outputs the first parity symbol sequence p1 from the apparatus and outputs the same to matrix calculation unit 104.






p
1
t−1v4t   (17)


Vector addition unit 305 inputs a vector v2t from matrix calculation unit 103, and inputs a vector v3t from matrix calculation unit 104. Vector addition unit 305 adds vector v2t and vector v3t. In other words, vector addition unit 305 calculates a vector v5t in accordance with Equation (18) below. Vector addition unit 305 outputs vector v5t to matrix calculation unit 306.






v
5
t
=v
2
t
+v
3
t   (18)


Matrix calculation unit 306 inputs vector v5t from vector addition unit 305. Matrix calculation unit 306 calculates a second parity symbol sequence p2t in accordance with Equation (19) below. Since the matrix T−1 is a lower triangular matrix, the calculation complexity can be reduced by sequential calculation. Matrix calculation unit 306 outputs the second parity symbol p2 from the apparatus.






p
2
t
=T
−1
v
5
t   (19)


If the encoding apparatus 100 is compared to the encoding apparatus 100, the encoding apparatus 100 does not require sequential calculation, unlike matrix calculation unit 306. Accordingly, it is easier to realize the encoding process by performing the process concurrently (i.e., enhancing the rate of the encoding process) with the encoding apparatus 100 than with the encoding apparatus 300.


As explained above, the encoding apparatus according to the first embodiment generates a codeword using a parity check designed such that a submatrix corresponding to a parity symbol sequence includes an identity matrix of q rows×q columns. Thus, according to the encoding apparatus, the calculation complexity of the encoding process can be reduced, and the rate of the encoding process can be enhanced.


Second Embodiment

The encoding apparatus according to the second embodiment is different from that according to the first embodiment in terms of part of the parity check matrix. More specifically, the encoding apparatus according to the second embodiment corresponds to the parity check matrix H shown in FIG. 7 and Equation (20) below:









H
=

(



A


B


I




C


I


E



)





(
20
)







The parity check matrix H indicated in Equation (20) corresponds to the parity check matrix H indicated in Equation (10), wherein the submatrix D is an identity matrix I. Further, the parity check matrix H indicated in Equation (20) satisfies Equation (21) below:





EB=0   (21)


Accordingly, Equation (8) can be replaced with Equation (22) below:






P
1
t=(−EA+C)mt   (22)


The encoding apparatus according to the present embodiment comprises an input unit for inputting a data symbol sequence having q(N−J) symbols and a generating unit for generating a codeword having qN symbols by adding the parity symbol sequence having qJ symbols to the data symbol sequence having q(N−J) symbols.



FIG. 2 shows the encoding apparatus 200 according to the present embodiment. The encoding apparatus 200 includes matrix calculation units 201, 103 and 104 and a vector addition unit 105. Matrix calculation units 201, 103 and 104 and vector addition unit 105 correspond to the aforementioned generating unit. Matrix calculation unit 201 generates a first parity symbol sequence p1 by Equation (22). Matrix calculation units 103 and 104 and vector addition unit 105 generate a second parity symbol sequence p2 by following Equation (9).


Matrix calculation unit 201 inputs a data symbol sequence m from outside. Matrix calculation unit 201 multiplies the matrix (−EA+C) from the left side of the data symbol sequence mt. In other words, matrix calculation unit 201 calculates the first parity symbol sequence p1 by following Equation (22). Matrix calculation unit 201 outputs the first parity symbol sequence p1 from the apparatus and to matrix calculation unit 104.


Matrix calculation unit 103 is similar to or the same as the one described in the first embodiment; however, matrix calculation unit 103 may be operated concurrently with matrix calculation units 201 and 104, and may be operated before or after the operation of matrix calculation units 201 and 104.


According to the parity check matrix H that satisfies Equations (20) and (21) above, Ψ−1=(−EB+D)−1=I. The encoding apparatus 200 does not require matrix calculation using the matrix Ψ−1 like the calculation shown in Equation (12). As the matrix Ψ−1 is not generally a sparse matrix, as explained above, the calculation complexity of a matrix product including the matrix Ψ−1 is not always low. Accordingly, the encoding apparatus 200 can omit the calculation shown in Equation (12), and thus, the calculation complexity of the encoding process can be effectively reduced.


In the following, the technique of designing matrices E and B that satisfy Equation (21) is described. The technique is not limitative, and matrices E, B that satisfy Equation (21) can be designed by adopting various techniques. For example, matrices E, B that satisfy Equation (21) can be designed by adopting the teachings from Manabu Hagiwara et al. “Quantum Quasi-Cyclic LDPC Codes” Proceedings in IEEE International Symposium on Information Theory (ISIT2007), pp. 806-810, 2007.


With the present technique, a cyclic shift matrix S of qM rows×qM columns and a cyclic shift matrix Q of qM rows×qM columns are used. Cyclic shift matrices S, Q are formed by arranging M×M block matrices having q rows×q columns. Each of the block matrices are a cyclic shift matrix or a zero matrix. Thus, fundamental matrices Ωs, ΩQ of cyclic shift matrices S, Q can be described as shown in Equation (23) below:











Ω
S

=

(




s
0




s
1







s

M
-
1







s

M
-
1





s
0







s

M
-
2





















s
1




s
2







s
0




)









Ω
U

=

(




u
0




u
1







u

M
-
1







u

M
-
1





u
0







u

M
-
2





















u
1




u
2







u
0




)






(
23
)







In Equation (23), elements s0, s1, . . . , sM−1, u0, u1, . . . , uM−1 are any of 0, 1, . . . , q−1, or ∞. The element ∞ corresponds to a zero matrix of q rows×q columns. The elements 0, 1, . . . , q−1 correspond to a cyclic shift matrix of q rows×q columns. The value of each element is a shift value of a corresponding cyclic shift matrix of q rows×q columns.


Matrices E and B can be expressed using those cyclic shift matrices S and U. Specifically, fundamental matrices ΩE, ΩB of matrices E and B can be expressed by Equation (24) below:











Ω
E

=

[




Ω
S




Ω
U




]









Ω
B

=

[




Ω
U






Ω
S




]






(
24
)







According to this technique, matrix E will be qM rows×2qM columns, and matrix B will be 2qM rows×qM columns. It is easy to confirm that matrices E and B designed by the present technique satisfy Equation (21). Further, since each row of matrix E (or each column of matrix B) is independent, the size of the matrix can be arbitrarily changed by removing a certain row (or column). In other words, the size of matrix E can be changed to (qM−P)×2qM, and the size of matrix B can be changed to 2qM×(qM−P). Herein, P is an integer (0≦P≦qM−1), desirably an integral multiple of q, considering that matrices E and B are designed as cyclic shift matrices.


The following Equations (25) and (26) illustrate fundamental matrices ΩE, ΩBt designed by the present technique when q=7, M=3:










Ω
E

=

(



1


2


4


3


6


5




4


1


2


5


3


6




2


4


1


6


5


3



)





(
25
)







Ω
B

=

(



3


6


5




5


3


6




6


5


3




1


2


4




4


1


2




2


4


1



)





(
26
)







As explained above, the encoding apparatus according to the second embodiment uses a parity check matrix which is designed so as to omit a part of matrix calculation required for generating a first parity symbol sequence at the encoding apparatus according to the first embodiment. Since the omitted part of the matrix calculation corresponds to a matrix product calculation generally including a matrix which is not sparse matrix, the calculation complexity is not always low. Therefore, with the encoding apparatus according to the second embodiment, the calculation complexity of the encoding process can be effectively reduced as compared to the encoding apparatus according to the first embodiment.



FIG. 8 shows the fundamental matrix of the parity check matrix used by the encoding apparatus according to the second embodiment. The fundamental matrix corresponds to a parity check matrix that defines an LDPC code having a half coding rate. As for this particular parity check matrix, q=493. In the LDPC code defined by the fundamental matrix the average number of adds required to generate one parity symbol (parity bit) is 6.2 times. Thus, it can be confirmed that the calculation complexity of the encoding is significantly reduced.


Third Embodiment

The encoding apparatus according to the first and the second embodiments is incorporated in, for example, a memory system and a communication system. The semiconductor memory system according to the third embodiment incorporates the encoding apparatus according to the first and second embodiments. Although detailed explanation is omitted, the encoding apparatus according to the first and second embodiments can be integrated in any kind of system that can utilize error correction code, such as a communication system, an optical storage system, a magnetic storage system, etc.


As shown in FIG. 5, the semiconductor memory system 500 according to the third embodiment includes an LDPC encoding unit 501, a non-volatile semiconductor memory 502, an LDPC decoding unit 503. The semiconductor memory system 500 may use an error correction code other than an LDPC code. For brevity, the functional unit that reads and writes data to the non-volatile semiconductor memory 502 is omitted in FIG. 5. In reality, the semiconductor memory system 500 may comprise such a functional unit as needed.


The LDPC encoding unit 501 corresponds to the encoding apparatus according to the first and second embodiments. The LDPC encoding unit 501 inputs data from a processing unit (not shown)in the preceding stage, and performs LDPC encoding process on each of the data symbol sequences that constitute the data. In other words, the LDPC encoding unit 501 adds a parity symbol sequence to a data symbol sequence to generate an LDPC code frame (i.e., an LDPC codeword). The LDPC encoding unit 501 generates page data by binding one or more LDPC code frame. The LDPC encoding unit 501 outputs the page data to the nonvolatile semiconductor memory 502.


As mentioned above, the LDPC encoding unit 501 corresponds to the encoding apparatus according to the first and second embodiments. Accordingly, the LDPC encoding unit 501 performs encoding process by utilizing the parity check matrix H as indicated in Equation (10) or (20) above (or a matrix that can be obtained by performing at least one of elementary row operation and elementary column operation on the parity check matrix H). In other words, the LDPC encoding unit 501 generates a first parity symbol sequence based on the data symbol sequence, and a second parity symbol sequence based on the first parity symbol sequence and the data symbol sequence.


The process of writing to the nonvolatile semiconductor memory 502 and reading therefrom is performed by a unit of page data. As explained above, page data is generated by binding one or more LDPC code frames. The size of each page data is dependent on the configuration of the nonvolatile semiconductor memory 502, but generally it is a few kilobytes. The nonvolatile semiconductor memory 502 comprises a plurality of memory cells. More specifically, the nonvolatile semiconductor memory 502 is realized by a flash memory having an array structure in which a plurality memory cells are NAND coupled, for example.


Two or more threshold voltages are assigned to each memory cell to store data in the size of one bit or more. A data amount that each memory cell can store is determined by a total number of threshold voltages assigned to each memory cell. For example, for a flash memory that stores two bits per cell, four thresholds in accordance with two-bit value patterns, 00, 01, 10 and 11, to each cell. Fluctuations in the threshold voltage of a memory cell may be caused by a capacitive coupling to a neighboring cell. The fluctuations are one of causes of error in read data.


The nonvolatile semiconductor memory 502 inputs page data generated by the LDPC encoding unit 501. The nonvolatile semiconductor memory 502 stores (writes) the page data in (to) memory cells. The nonvolatile semiconductor memory 502 reads and outputs the page data stored in the memory cell. As described above, it should be noted that the page data may contain errors caused by factors, such as the fluctuations in a threshold voltage, etc.


The LDPC decoding unit 503 inputs page data read by the nonvolatile semiconductor memory 502. The LDPC decoding unit 503 performs LDPC decoding process on each of the LDPC code frames included the page data.


The LDPC decoding process is realized by an iterative decoding algorithm that uses a parity check matrix. The iterative decoding algorithm is, for example, a sum-product algorithm or a min-sum algorithm.


The LDPC decoding unit 503, when no errors are found by parity checks (i.e., successful decoding), removes the parity symbol sequence from the temporary estimated word to generate a data symbol sequence, and outputs it to a signal processing unit (not shown) in the subsequent stage. In addition, when the number of trials of a decoding process reaches the maximum number of iterations (i.e., decoding fails), the LDPC decoding unit 503 may outputs a data symbol sequence to a signal processing unit (not shown) in the subsequent stage, or notifies a signal processing unit (not shown) in the subsequent stage of the failure in decoding.


The LDPC decoding unit 503 uses the parity check matrix H as indicated in Equation (10) or (20) above (or, a matrix that can be obtained by performing at least one of elementary row operation and elementary column operation on the parity check matrix H).


As explained above, the semiconductor memory system according to the third embodiment incorporates the encoding apparatus according to the first and second embodiments. According to the semiconductor memory system, the rate of the encoding process as a part of writing process can be enhanced.


The processing in the above-described embodiments can be implemented using a general-purpose computer as basic hardware. A program implementing the processing in each of the above-described embodiments may be stored in a computer readable storage medium for provision. The program is stored in the storage medium as a file in an installable or executable format. The storage medium is a magnetic disk, an optical disc (CD-ROM, CD-R, DVD, or the like), a magnetooptic disc (MO or the like), a semiconductor memory, or the like. That is, the storage medium may be in any format provided that a program can be stored in the storage medium and that a computer can read the program from the storage medium. Furthermore, the program implementing the processing in each of the above-described embodiments may be stored on a computer (server) connected to a network such as the Internet so as to be downloaded into a computer (client) via the network.


While certain embodiments have been described, these embodiments have been presented by way of example only, and are not intended to limit the scope of the inventions. Indeed, the novel embodiments described herein may be embodied in a variety of other forms; furthermore, various omissions, substitutions and changes in the form of the embodiments described herein may be made without departing from the spirit of the inventions. The accompanying claims and their equivalents are intended to cover such forms or modifications as would fall within the scope and spirit of the inventions.

Claims
  • 1. An encoding apparatus, comprising: an input unit configured to input a data symbol sequence containing q(N−J) symbols (q, J, and N are integers, N>J); anda generation unit configured to generate a codeword containing qN symbols by adding a parity symbol sequence containing qJ symbols to the data symbol sequence,wherein the codeword satisfies parity check equations of a parity check matrix of qJ rows×qN columns,a first submatrix of qJ rows×qJ columns that corresponds to the parity symbol sequence in the parity check matrix includes a second submatrix, the second submatrix comprising a first identity matrix of qL rows×qL columns (L is an integer, J>L) and a first non-zero matrix of q(J−L) rows×qL columns.
  • 2. The apparatus according to claim 1, wherein the first submatrix further includes a third submatrix of qJ rows×q(J−L) columns comprising a second non-zero matrix of qL rows×q(J−L) columns and a second identity matrix of q(J−L) rows×q(J−L) columns, a matrix product of the first non-zero matrix and the second non-zero matrix is a zero matrix.
  • 3. The apparatus according to claim 1, wherein the parity symbol sequence comprises a first partial parity symbol sequence containing q(J−L) symbols and a second partial parity symbol sequence containing qL symbols, the first partial parity symbol sequence is generated based on the data symbol sequence, the second partial parity symbol sequence is generated based on the first partial parity symbol sequence and the data symbol sequence.
  • 4. The apparatus according to claim 1, wherein the parity check matrix is formed by arranging J×N block matrices of q rows×q columns, each of the block matrices is either a non-zero matrix or a zero matrix.
  • 5. The apparatus according to claim 4, wherein each of the block matrices is either a cyclic shift matrix or a zero matrix.
  • 6. The apparatus according to claim 4, wherein each of the block matrices is either a zero matrix or a non-zero matrix containing one non-zero element in each row.
  • 7. The apparatus according to claim 1, wherein L=J−2, the first non-zero matrix is formed by arranging 2×(J−2) block matrices of q rows×q columns, each of the block matrices is a non-zero matrix.
  • 8. The apparatus according to claim 2, wherein the parity symbol sequence comprises a first partial parity symbol sequence containing q(J−L) symbols and a second partial parity symbol sequence containing qL symbols, the first partial parity symbol sequence is generated based on the data symbol sequence, the second partial parity symbol sting is generated based on the first partial parity symbol sequence and the data symbol sequence.
  • 9. The apparatus according to claim 2, wherein the parity check matrix is formed by arranging J×N block matrices of q rows×q columns, each of the block matrices is either a non-zero matrix or a zero matrix.
  • 10. The apparatus according to claim 9, wherein each of the block matrices is either a cyclic shift matrix or a zero matrix.
  • 11. The apparatus according to claim 9, wherein each of the block matrices is either a zero matrix or a non-zero matrix containing one non-zero element in each row.
  • 12. The apparatus according to claim 2, wherein L=J−2, the first non-zero matrix is formed by arranging 2×(J−2) block matrices of q rows×q columns, each of the block matrices is a non-zero matrix.
  • 13. An encoding method, comprising: inputting a data symbol sequence containing q(N−J) symbols (q, J, and N are integers, N>J); andgenerating a codeword containing qN symbols by adding a parity symbol sequence containing qJ symbols to the data symbol sequence,wherein the codeword satisfies parity check equations of a parity check matrix of qJ rows×qN columns,a first submatrix of qJ rows×qJ columns that corresponds to the parity symbol sequence in the parity check matrix includes a second submatrix, the second submatrix comprising a first identity matrix of qL rows×qL columns (L is an integer, J>L) and a first non-zero matrix of q(J−L) rows×qL columns.
  • 14. The method according to claim 13, wherein the first submatrix further includes a third submatrix of qJ rows×q(J−L) columns comprising a second non-zero matrix of qL rows×q(J−L) columns and a second identity matrix of q(J−L) rows×q(J−L) columns, a matrix product of the first non-zero matrix and the second non-zero matrix is a zero matrix.
  • 15. The method according to claim 13, wherein the parity symbol sequence comprises a first partial parity symbol sequence containing q(J−L) symbols and a second partial parity symbol sequence containing qL symbols, the first partial parity symbol sequence is generated based on the data symbol sequence, the second partial parity symbol sting is generated based on the first partial parity symbol sequence and the data symbol sequence.
  • 16. The method according to claim 13, wherein the parity check matrix is formed by arranging J×N block matrices of q rows×q columns, each of the block matrices is either a non-zero matrix or a zero matrix.
  • 17. The method according to claim 16, wherein each of the block matrices is either a cyclic shift matrix or a zero matrix.
  • 18. The method according to claim 16, wherein each of the block matrices is either a zero matrix or a non-zero matrix containing one non-zero element in each row.
  • 19. The method according to claim 13, wherein L=J−2, the first non-zero matrix is formed by arranging 2×(J−2) block matrices of q rows×q columns, each of the block matrices is a non-zero matrix.
  • 20. A semiconductor memory system, comprising: the apparatus according to claim 1; anda semiconductor memory configured to store the codeword.
Priority Claims (1)
Number Date Country Kind
2011-272624 Dec 2011 JP national