# US 2009/0276680 A1 · Error correction circuit and method thereof

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2009/0276680 A1
- Document ID: US20090276680A1
- Status: Published application
- Kind: A1
- Application number: 12/351,989
- Filed: 2009-01-12
- Published: 2009-11-05
- Earliest claimed: 2008-04-30
- Inventors: Yen-Lung CHIU
- Web page: https://patentgrep.com/patent/US20090276680A1

## CPC

- H03M 13/356: {Unequal error protection [UEP]}
- G06F 11/1068: {in sector programmable memories, e.g. flash disk (G06F11/1072 takes precedence)}
- G11B 20/1833: {by adding special lists or symbols to the coded information (G11B20/1806, G11B20/1866 take precedence)}
- H03M 13/3707: {Adaptive decoding and hybrid decoding, e.g. decoding methods or techniques providing more than one decoding algorithm for one code}
- H03M 13/3715: {Adaptation to the number of estimated errors or to the channel state}
- G11B 2020/1836: {using a Reed Solomon [RS] code}
- G11B 2220/61: wherein solid state memory is used for storing A/V content
- G11C 2029/0411: {Online error correction}
- H03M 13/15: Cyclic codes, i.e. cyclic shifts of codewords produce other codewords, e.g. codes defined by a generator polynomial, Bose-Chaudhuri-Hocquenghem [BCH] codes (H03M13/17 takes precedence)
- H03M 13/1515: {Reed-Solomon codes}
- H03M 13/152: {Bose-Chaudhuri-Hocquenghem [BCH] codes}
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11B: INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER (recording measured values in a way that does not require playback through a transducer G01D9/00; recording or playback apparatus using mechanically marked tape, e.g. punched paper tape, or using unit records, e.g. punched or magnetically marked cards G06K; transferring data from one type of record carrier to another G06K1/18; circuits for coupling output of reproducer to radio receiver H04B1/20; gramophone pick-ups or like acoustic electromechanical transducers or circuits therefor H04R)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

An error correction method is applicable for accessing a data in a storage medium. The method includes the steps of: encoding a portion of the data and the whole data to produce a partial data parity for that portion of the data and a whole data parity for the whole data; using the partial data parity to decode the corresponding portion of the data and the corresponding partial data parity in order to correct error bits from the corresponding portion of the data and from the partial data parity according to the decoded result; using the whole data parity to decode the whole data and the whole data parity in order to correct the error bit from the whole data and the whole data parity according to the decoded result; and outputting the corrected data.

## Claims

### Claim 1

An error correction method, applied in an electronic system having a storage medium for accessing a data stream, wherein the data stream being divided into a plurality of data segments with an equal length, the improvement comprising each the data segment having a first portion of the data segment at least; encoding the data segment and the corresponding first portion of the data segment to produce a whole data parity and a first partial data parity respectively when performing an encoding procedure; and performing a decoding procedure comprising the steps of: using the first partial data parity to decode the first portion of the data segment and the first partial data parity for correcting error bits in the first portion of the data segment and the first partial data parity; and using the whole data parity to decode the corresponding data segment and the whole data parity for correcting error bits of the data segment and the whole data parity.

### Claim 2 (depends on 1)

The error correction method of claim 1, wherein each of the first portion of the data segment further has a second portion of data segment which is encoded to produce a second partial data parity when performing the encoding procedure and while performing the decoding procedure using the second partial data parity to decode the second portion of the data segment and the second partial data parity for correcting error bits in the second portion of the data segment and the second partial data parity.

### Claim 3 (depends on 2)

The error correction method of claim 2, wherein the decoding procedure further comprises the steps of:
using the second partial data parity to decode the second portion of the data segment and the second partial data parity for correcting error bits in the second portion of the data segment and the second partial data parity;
using the first partial data parity to decode the first portion of the data segment including the corrected second portion of the data segment and the first partial data parity for correcting error bits in the first portion of the data segment and the first partial data parity; and
using the whole data parity to decode the corresponding data segment including the corrected the first portion of the data segment and the whole data parity for correcting error bits of the data segment and the whole data parity.

### Claim 4 (depends on 1)

The error correction method of claim 1, wherein an error correction capability for the data segment is directly proportional to the number of the partial data parities contained in the data segment.

### Claim 5 (depends on 1)

The error correction method of claim 1, wherein the partial data parities can be stored in different page from the corresponding data segment.

### Claim 6 (depends on 1)

The error correction method of claim 1, wherein the step of using the first partial data parity to decode the first portion of the data segment and the first partial data parity includes the following steps:
providing another storage space with the same format and space allocation as the data segment;
storing first portion of the data segment within the storage space;
filling the remaining the storage space with a plurality of zeros; and
using the corresponding first partial data parity to decode the content within the storage space.

### Claim 7 (depends on 6)

The error correction method of claim 6, wherein the plurality of zeros in the storage space fills the front half of the storage space, and the first portion of the data segment is stored in the latter half of the storage space.

### Claim 8 (depends on 3)

The error correction method of claim 3, wherein the step of using the second partial data parity to decode the second portion of the data segment and the second partial data parity includes the following steps: providing another storage space with the same format and space allocation as the data segment, storing second portion of the data segment within the storage space, filling the remaining the storage space with a plurality of zeros, and using the corresponding second partial data parity to decode the content within the storage space; and the step of using the first partial data parity to decode the first portion of the data segment and the first partial data parity includes the following steps: providing another storage space with the same format and space allocation as the data segment, storing first portion of the data segment within the storage space, filling the remaining the storage space with a plurality of zeros, and using the corresponding first partial data parity to decode the content within the storage space.

### Claim 9

An error correction method, applied in a storage medium for accessing a data stream, and the data stream being divided into a plurality of data segments with an equal length, and the method comprising the steps of:
performing an encoding procedure on each the data segment having a first portion of the data segment at least, comprising the steps of:
encoding the first portion of the data segments to produce a first partial data parity; and
encoding the data segments to produce a whole data parity; and
performing a decoding procedure on each the data segment, comprising the steps of:
determining whether number of error bits exceeds the bit number of an error correction capability of the whole data parity;
correcting error bits of the data segment and the whole data parity when the number of error bits not exceeds the error correction capability; and
using the first partial data parity to decode the corresponding first portion of the data segment and the first partial data parity when the number of error bits exceeds the error correction capability;
correcting error bits of the first portion of the data segment and the first partial data parity;
using the whole data parity to decode the corresponding data segment including the corrected first portion of the data segment and the whole data parity; and
correcting error bits of the data segment and the whole partial data parity.

### Claim 10 (depends on 9)

The error correction method of claim 9, wherein the step of using the first partial data parity to decode the corresponding first portion of the data segment and the first partial data parity includes the following steps:
providing another storage space with the same format and space allocation as the data segment;
storing the first portion of the data segment within the storage space;
filling the remaining the storage space with a plurality of zeros; and
using the first partial data parity to decode the content within the storage space.

### Claim 11 (depends on 10)

The error correction method of claim 10, wherein the plurality of zeros in the storage space fills the front half of the storage space, and the first portion of the data segment is stored in the latter half of the storage space.

### Claim 12 (depends on 9)

The error correction method of claim 9, wherein each of the first portion of the data segment further has a second portion of data segment which is encoded to produce a second partial data parity when performing the encoding procedure and performing the decoding procedure using the second partial data parity to decode the second portion of the data segment and the second partial data parity for correcting error bits in the second portion of the data segment and the second partial data parity.

### Claim 13 (depends on 12)

The error correction method of claim 12, wherein before the step of using the first partial data parity to decode the corresponding first portion of the data segment and the first partial data parity further comprises the steps of:
determining whether number of error bits exceeds the bit number of an error correction capability of the first data parity;
executing the step of using the first partial data parity to decode the corresponding first portion of the data segment and the first partial data parity when the number of error bits not exceeds the error correction capability; and
using the second partial data parity to decode the corresponding second portion of the data segment and the second partial data parity when the number of error bits exceeds the error correction capability;
correcting error bits of the second portion of the data segment and the second partial data parity;
using the first partial data parity to decode the corresponding first portion of the data segment including the corrected second portion of the data segment and the first partial data parity;
correcting error bits of the first portion of the data segment and the first partial data parity;
using the whole data parity to decode the corresponding data segment including the corrected first portion of the data segment and the whole data parity; and
correcting error bits of the data segment and the whole partial data parity.

### Claim 14 (depends on 13)

The error correction method of claim 13, wherein the step of using the second partial data parity to decode the second portion of the data segment and the second partial data parity includes the following steps: providing another storage space with the same format and space allocation as the data segment, storing second portion of the data segment within the storage space, filling the remaining the storage space with a plurality of zeros, and using the corresponding second partial data parity to decode the content within the storage space; and the step of using the first partial data parity to decode the first portion of the data segment and the first partial data parity includes the following steps: providing another storage space with the same format and space allocation as the data segment, storing first portion of the data segment within the storage space, filling the remaining the storage space with a plurality of zeros, and using the corresponding first partial data parity to decode the content within the storage space.

### Claim 15 (depends on 9)

The error correction method of claim 9, wherein the partial data parities can be stored in different page from the corresponding data segment.

### Claim 16 (depends on 9)

The error correction method of claim 9, wherein the error correction capability for the data segment is directly proportional to the number of the partial data parities contained in the data segment.

### Claim 17 (depends on 9)

The error correction method of claim 9, wherein the partial data parity can be stored in the same page with the corresponding data segment and the whole data parity.

### Claim 18

An error correction circuit, applicable in a storage medium for accessing a data stream, and the error correction circuit comprising:
a plurality of shift registers, for receiving the data stream to produce a whole data parity; and
a plurality of auxiliary shift registers, for receiving a portion of the data stream to produce a partial data parity,
whereby the storage medium uses the whole data parity and the partial data parity to correct the data stream and the portion of the data stream respectively.

### Claim 19 (depends on 18)

An error correction circuit of claim 18, further comprising:
a plurality of XOR gates, and the XOR gates are installed alternately with the shift registers.

### Claim 20 (depends on 18)

An error correction circuit of claim 18, further comprising:
a plurality of switches, coupled between the shift registers and the auxiliary shift registers,
wherein when the switches are closed, the auxiliary shift registers receives the portion of the data stream and produce the partial data parity; and when the switches are open, the shift registers receives the data stream and produce the whole data parity.
