# US 2017/0255511 A1 · Decoding method, memory control circuit unit and memory storage apparatus

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

- Number: US 2017/0255511 A1
- Document ID: US20170255511A1
- Status: Published application
- Kind: A1
- Application number: 15/084,454
- Filed: 2016-03-29
- Published: 2017-09-07
- Earliest claimed: 2016-03-02
- Assignees: Phison Electronics Corp.
- Applicants: Phison Electronics Corp.
- Inventors: Wei Lin; Tien-Ching Wang; Kuo-Hsin Lai
- Web page: https://patentgrep.com/patent/US20170255511A1

## CPC

- G06F 11/1068: {in sector programmable memories, e.g. flash disk (G06F11/1072 takes precedence)}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/064: {Management of blocks}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G11C 29/52: Protection of memory contents; Detection of errors in memory contents
- G11C 11/5642: {Sensing or reading circuits; Data output circuits}
- G11C 2029/0411: {Online error correction}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

A decoding method for a rewritable non-volatile memory module is provided. The method includes reading data from a plurality of memory cells of the rewritable non-volatile memory module according to a first voltage, wherein the data includes a user data string and an error checking and correcting code set. The method also includes decoding at least part of sub data units i the user data string according to a first decoding algorithm to obtain a plurality of decoded sub data units. The method further includes restoring a value of the corrected bit to an original bit value if a corrected bit in the decoded sub data units matches a reliability condition.

## Claims

### Claim 1

A decoding method for a rewritable non-volatile memory module having a plurality of memory cells, the decoding method comprising:
reading data from the memory cells according to a first voltage, wherein the data comprises a user data string and an error checking and correcting code set, and the user data string comprises a plurality of sub data units;
decoding at least part of the sub data units by a first decoding algorithm to obtain a plurality of decoded sub data units, wherein the decoded sub data units comprise a corrected bit, and a value of the corrected bit is decoded from an original bit value into a corrected bit value;
determining whether the corrected bit matches a reliability condition; and
restoring the value of the corrected bit to the original bit value if the corrected bit matches the reliability condition.

### Claim 2 (depends on 1)

The decoding method of claim 1, further comprising:
decoding a data string containing the original bit value according to a second decoding algorithm.

### Claim 3 (depends on 1)

The decoding method of claim 1, further comprising:
determining a preset region according to the first voltage;
wherein the step of determining whether the corrected bit matches the reliability condition comprises:
determining whether a threshold voltage of the memory cell storing the corrected bit falls within the preset region;
determining that the corrected bit does not match the reliability condition if the threshold voltage of the memory cell storing the corrected bit falls within the preset region; and
determining that the corrected bit matches the reliability condition if the threshold voltage of the memory cell storing the corrected bit does not fall within the preset region.

### Claim 4 (depends on 3)

The decoding method of claim 3, wherein after the step of restoring the value of the corrected bit to the original bit value if the corrected bit matches the reliability condition, the decoding method further comprises:
counting an iteration count;
determining whether the iteration count reaches a preset count; and
re-determining the preset region according to the first voltage if the iteration count does not reach the preset count.

### Claim 5 (depends on 1)

The decoding method of claim 1, wherein the step of decoding the at least part of the sub data units by the first decoding algorithm to obtain the decoded sub data units comprises:
obtaining an error bit in the sub data units according to the first decoding algorithm, wherein a value of the error bit is the original bit value;
adjusting the value of the error bit to obtain the value of the corrected bit, wherein the value of the corrected bit is the corrected bit value; and
obtaining the decoded sub data units according to the corrected bit.

### Claim 6 (depends on 1)

The decoding method of claim 1, wherein the step of restoring the value of the corrected bit to the original bit value if the corrected bit matches the reliability condition comprises:
restoring the value of the corrected bit to the original bit value, and updating the decoded sub data units according to the value of the corrected bit.

### Claim 7 (depends on 1)

The decoding method of claim 1, wherein the error checking and correcting code set comprises a plurality of first direction error correcting codes and a plurality of second direction error correcting codes, the first direction error correcting codes are respectively corresponding to a plurality of first direction data segments in the sub data units arranged in form of a matrix, and the second direction error correcting codes are respectively corresponding to a plurality of second direction data segments in the sub data units arranged in form of the matrix,
wherein the step of decoding the at least part of the sub data units by the first decoding algorithm to obtain the decoded sub data units comprises:
decoding the first direction data segments according to the first direction error correcting codes to obtain the decoded sub data units.

### Claim 8 (depends on 7)

The decoding method of claim 7, further comprising:
decoding the second direction data segments according to the second direction error correcting codes to obtain a plurality of updated decoded sub data units; and
obtaining a corrected data string corresponding to the user data string according to the updated decoded sub data units.

### Claim 9 (depends on 7)

The decoding method of claim 7, wherein the first direction data segments are a plurality of column data segments in the sub data units arranged in form of the matrix, and the second direction data segments are a plurality of row data segments in the sub data units arranged in form of the matrix.

### Claim 10 (depends on 7)

The decoding method of claim 7, wherein the first direction error correcting codes are corresponding to a first maximum number of correctable error bits, the second direction error correcting codes are corresponding to a second maximum number of correctable error bits, and the first maximum number of correctable error bits is less than the second maximum number of correctable error bits.

### Claim 11

A memory control circuit unit, for controlling a rewritable non-volatile memory module, the rewritable non-volatile memory module having a plurality of memory cell, the memory control circuit unit comprising:
a host interface configured to couple to a host system;
a memory interface configured to couple to the rewritable non-volatile memory module;
a memory management circuit coupled to the host interface and the memory interface; and
an error checking and correcting circuit coupled to the memory management circuit,
wherein the memory management circuit is configured to send a read command sequence for reading data from the memory cells according to a first voltage, wherein the data comprises a user data string and an error checking and correcting code set, and the user data string comprises a plurality of sub data units,
wherein the error checking and correcting circuit is configured to decode at least part of the sub data units by a first decoding algorithm to obtain a plurality of decoded sub data units, wherein the decoded sub data units comprise a corrected bit, and a value of the corrected bit is decoded from an original bit value into a corrected bit value,
wherein the error checking and correcting circuit is further configured to determine whether the corrected bit matches a reliability condition,
wherein the error checking and correcting circuit is further configured to restore the value of the corrected bit to the original bit value if the corrected bit matches the reliability condition.

### Claim 12 (depends on 10)

The memory control circuit unit of claim 10, wherein the error checking and correcting circuit is further configured to decode a data string containing the original bit value according to a second decoding algorithm.

### Claim 13 (depends on 11)

The memory control circuit unit of claim 11, wherein the error checking and correcting circuit is further configured to determine a preset region according to the first voltage,
wherein in the operation of determining whether the corrected bit matches the reliability condition, the error checking and correcting circuit determines whether a threshold voltage of the memory cell storing the corrected bit falls within the preset region,
wherein the error checking and correcting circuit determines that the corrected bit does not match the reliability condition if the threshold voltage of the memory cell storing the corrected bit falls within the preset region,
wherein the error checking and correcting circuit determines that the corrected bit matches the reliability condition if the threshold voltage of the memory cell storing the corrected bit does not fall within the preset region.

### Claim 14 (depends on 13)

The memory control circuit unit of claim 13, wherein the error checking and correcting circuit is further configured to count an iteration count,
wherein the error checking and correcting circuit is further configured to determine whether the iteration count reaches a preset count,
wherein the error checking and correcting circuit re-determines the preset region according to the first voltage if the iteration count does not reach the preset count.

### Claim 15 (depends on 11)

The memory control circuit unit of claim 11, wherein in the operation of decoding the at least part of the sub data units by the first decoding algorithm to obtain the decoded sub data units, the error checking and correcting circuit obtains an error bit in the sub data units according to the first decoding algorithm, wherein a value of the error bit is the original bit value,
wherein the error checking and correcting circuit adjusts the value of the error bit to obtain the value of the corrected bit, wherein the value of the corrected bit is the corrected bit value,
wherein the error checking and correcting circuit obtains the decoded sub data units according to the corrected bit.

### Claim 16 (depends on 11)

The memory control circuit unit of claim 11, wherein in the operation of restoring the value of the corrected bit to the original bit value if the corrected bit matches the reliability condition, the error checking and correcting circuit restores the value of the corrected bit to the original bit value, and updates the decoded sub data units according to the value of the corrected bit.

### Claim 17 (depends on 11)

The memory control circuit unit of claim 11, wherein the error checking and correcting code set comprises a plurality of first direction error correcting codes and a plurality of second direction error correcting codes, the first direction error correcting codes are respectively corresponding to a plurality of first direction data segments in the sub data units arranged in form of a matrix, and the second direction error correcting codes are respectively corresponding to a plurality of second direction data segments in the sub data units arranged in form of the matrix,
wherein in the operation of decoding the at least part of the sub data units by the first decoding algorithm to obtain the decoded sub data units, the error checking and correcting circuit decodes the first direction data segments according to the first direction error correcting codes to obtain the decoded sub data units.

### Claim 18 (depends on 17)

The memory control circuit unit of claim 17, wherein the error checking and correcting circuit is further configured to decode the second direction data segments according to the second direction error correcting codes to obtain a plurality of updated decoded sub data units,
wherein the error checking and correcting circuit is further configured to obtain a corrected data string corresponding to the user data string according to the updated decoded sub data units.

### Claim 19 (depends on 17)

The memory control circuit unit of claim 17, wherein the first direction data segments are a plurality of column data segments in the sub data units arranged in form of the matrix, and the second direction data segments are a plurality of row data segments in the sub data units arranged in form of the matrix.

### Claim 20 (depends on 17)

The memory control circuit unit of claim 17, wherein the first direction error correcting codes are corresponding to a first maximum number of correctable error bits, the second direction error correcting codes are corresponding to a second maximum number of correctable error bits, and the first maximum number of correctable error bits is less than the second maximum number of correctable error bits.

### Claim 21

A memory storage apparatus, comprising:
a connection interface unit configured to couple to a host system;
a rewritable non-volatile memory module having a plurality of memory cells; and
a memory control circuit unit coupled to the connection interface unit and the rewritable non-volatile memory module,
wherein the memory control circuit unit is configured to send a read command sequence for reading data from the memory cells according to a first voltage, wherein the data comprises a user data string and an error checking and correcting code set, and the user data string comprises a plurality of sub data units,
wherein the memory control circuit unit is further configured to decode at least part of the sub data units by a first decoding algorithm to obtain a plurality of decoded sub data units, wherein the decoded sub data units comprise a corrected bit, and a value of the corrected bit is decoded from an original bit value into a corrected bit value,
wherein the memory control circuit unit is further configured to determine whether the corrected bit matches a reliability condition,
wherein the memory control circuit unit is further configured to restore the value of the corrected bit to the original bit value if the corrected bit matches the reliability condition.

### Claim 22 (depends on 21)

The memory storage apparatus of claim 21, wherein the memory control circuit unit is further configured to decode a data string containing the original bit value according to a second decoding algorithm.

### Claim 23 (depends on 21)

The memory storage apparatus of claim 21, wherein the memory control circuit unit is further configured to determine a preset region according to the first voltage,
wherein in the operation of determining whether the corrected bit matches the reliability condition, the memory control circuit unit determines whether a threshold voltage of the memory cell storing the corrected bit falls within the preset region,
wherein the memory control circuit unit determines that the corrected bit does not match the reliability condition if the threshold voltage of the memory cell storing the corrected bit falls within the preset region,
wherein the memory control circuit unit determines that the corrected bit matches the reliability condition if the threshold voltage of the memory cell storing the corrected bit does not fall within the preset region.

### Claim 24 (depends on 23)

The memory storage apparatus of claim 23, wherein the memory control circuit unit is further configured to count an iteration count,
wherein the memory control circuit unit is further configured to determine whether the iteration count reaches a preset count,
wherein the memory control circuit unit is further configured to re-determine the preset region according to the first voltage if the iteration count does not reach the preset count.

### Claim 25 (depends on 21)

The memory storage apparatus of claim 21, wherein in the operation of decoding the at least part of the sub data units by the first decoding algorithm to obtain the decoded sub data units, the memory control circuit unit obtains an error bit in the sub data units according to the first decoding algorithm, wherein a value of the error bit is the original bit value,
wherein the memory control circuit unit adjusts the value of the error bit to obtain the value of the corrected bit, wherein the value of the corrected bit is the corrected bit value,
wherein the memory control circuit unit obtains the decoded sub data units according to the corrected bit.

### Claim 26 (depends on 21)

The memory storage apparatus of claim 21, wherein in the operation of restoring the value of the corrected bit to the original bit value if the corrected bit matches the reliability condition, the memory control circuit unit restores the value of the corrected bit to the original bit value, and updates the decoded sub data units according to the value of the corrected bit.

### Claim 27 (depends on 21)

The memory storage apparatus of claim 21, wherein the error checking and correcting code set comprises a plurality of first direction error correcting codes and a plurality of second direction error correcting codes, the first direction error correcting codes are respectively corresponding to a plurality of first direction data segments in the sub data units arranged in form of a matrix, and the second direction error correcting codes are respectively corresponding to a plurality of second direction data segments in the sub data units arranged in form of the matrix,
wherein in the operation of decoding the at least part of the sub data units by the first decoding algorithm to obtain the decoded sub data units, the error checking and correcting circuit decodes the first direction data segments according to the first direction error correcting codes to obtain the decoded sub data units.

### Claim 28 (depends on 21)

The memory storage apparatus of claim 21, wherein the memory control circuit unit is further configured to decode the second direction data segments according to the second direction error correcting codes to obtain a plurality of updated decoded sub data units,
wherein the memory control circuit unit is further configured to obtain a corrected data string corresponding to the user data string according to the updated decoded sub data units.

### Claim 29 (depends on 21)

The memory storage apparatus of claim 21, wherein the first direction data segments are a plurality of column data segments in the sub data units arranged in form of the matrix, and the second direction data segments are a plurality of row data segments in the sub data units arranged in form of the matrix.

### Claim 30 (depends on 21)

The memory storage apparatus of claim 21, wherein the first direction error correcting codes are corresponding to a first maximum number of correctable error bits, the second direction error correcting codes are corresponding to a second maximum number of correctable error bits, and the first maximum number of correctable error bits is less than the second maximum number of correctable error bits.
