摘要 |
A method of generating and allocating codewords includes allocating one of two selectable codewords b 1 and b 2 as codeword "b" when a preceding codeword "a" and a following codeword "b" form a code stream X, in which the codewords b 1 and b 2 have opposite INV values which are parameters indicating whether the number of '1s' contained in a codeword is an odd number or an even number. When the code stream of the preceding codeword "a" and the following codeword b 2 is X 1 , and when the code stream of the preceding codeword "a" and the following codeword b 2 is X 2 , the codewords are allocated such that the INV values of X 1 and X 2 are maintained to be opposite when the preceding codeword "a" or the following codeword b 1 (b 2 ) (b 1 or b 2 ) should be replaced by another codeword in compliance with a predetermined boundary condition given between codewords. The codewords are allocated so that a DC suppression capability of the code stream can be maintained.
|