To provide an error correction device that corrects errors generated in transfer data in the order of sequences, where error correction is less likely to take place.
A syndrome value arithmetic section 120 calculates the syndrome value of a code word of an inner code sequence and the syndrome value of a code word of an external code sequence. An error correction code setting section 130 sets an error correction code of the inner code sequence and an error correction code of the external code sequence, on the basis of the calculated syndrome values. A storage section 140 stores the error correction code of the inner code sequence and the error correction code of the external code sequence that are set. A correction code summing section 150 sums the error correction code of the inner code sequence and the error correction code of the external code sequence that are stored by each sequence. An error correction sequence judgment section 160 judges to which of the inner code sequence and the external code sequence the error correction is to be applied, on the basis of the result of sums by each sequence. An error correction section 170 corrects the error of transfer data, by using the error correction codes of the inner code sequence and the error correction code of the external code sequence that are stored.
Next Patent: VITERBI DECODING CIRCUIT