# US 2021/0334039 A1 · Method for accessing flash memory module and associated flash memory controller and electronic device

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

- Number: US 2021/0334039 A1
- Document ID: US20210334039A1
- Status: Published application
- Kind: A1
- Application number: 16/856,008
- Filed: 2020-04-22
- Published: 2021-10-28
- Earliest claimed: 2020-04-22
- Assignees: Silicon Motion, Inc.
- Applicants: Silicon Motion, Inc.
- Inventors: Jian-Dong Du; Pi-Ju Tsai
- Web page: https://patentgrep.com/patent/US20210334039A1

## CPC

- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/061: {Improving I/O performance}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G11C 11/5642: {Sensing or reading circuits; Data output circuits}
- G11C 16/0483: {comprising cells having several storage transistors connected in series}
- G11C 16/08: Address circuits; Decoders; Word-line control circuits
- G11C 16/26: Sensing or reading circuits; Data output circuits
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

The present invention discloses a method for accessing a flash memory module, wherein the flash memory module comprises a plurality of block, each block is implemented by a plurality of word lines, and each word line comprises a plurality of memory cells supporting a plurality of states. The method comprises the steps of: reading the memory cells of at least a first word line of a specific block of the plurality of blocks to obtain a cumulative distribution information of the states of the memory cells; determining a target decoding flow selected from at least a first decoding flow and a second decoding flow according to the cumulative distribution information; reading the memory cells of a second word line to obtain readout information of the second word line; and using the target decoding flow to decode the readout information of the second word line.

## Claims

### Claim 1

A method for accessing a flash memory module, wherein the flash memory module comprises at least one flash memory chip, each flash memory chip comprises a plurality of block, each block is implemented by a plurality of word lines, each word line corresponds to a plurality of pages, each word line comprises a plurality of memory cells supporting a plurality of states, each memory cell is arranged to store a plurality of bits, each state represents different combination of the plurality of bits, and the method comprises the steps of:
reading the memory cells of at least a first word line of a specific block of the plurality of blocks to obtain cumulative distribution information of the states of the memory cells;
determining a target decoding flow selected from at least a first decoding flow and a second decoding flow according to the cumulative distribution information, wherein the first decoding flow and the second decoding flow have different decoding methods or different decoding orders;
reading the memory cells of a second word line to obtain readout information of the second word line; and
using the target decoding flow to decode the readout information of the second word line.

### Claim 2 (depends on 1)

The method of claim 1, wherein the cumulative distribution information comprises cumulative number/ratio of each state, and the cumulative number/ratio of one of the states comprises the number/ratio of the states whose corresponding programmed voltage is equal to and less than the programmed voltage of the one of the states.

### Claim 3 (depends on 1)

The method of claim 1, wherein the step of determining the target decoding flow selected from at least the first decoding flow and the second decoding flow according to the cumulative distribution information comprises:
referring to a difference between the cumulative distribution information and ideal cumulative distribution information to determine the target decoding flow selected from at least the first decoding flow and the second decoding flow.

### Claim 4 (depends on 3)

The method of claim 3, wherein the first decoding flow comprising a hard decoding method and a soft decoding method, and the second decoding flow comprises the soft decoding method without the hard decoding method, and the step of referring to the difference between the cumulative distribution information and the ideal cumulative distribution information to determine the target decoding flow selected from at least the first decoding flow and the second decoding flow comprises:
if the difference is lower than a first degree, selecting the first decoding flow as the target decoding flow; and
if the difference is greater than the first degree or a second degree, selecting the second decoding flow as the target decoding flow, wherein second degree is greater than the second degree.

### Claim 5 (depends on 3)

The method of claim 3, wherein the first decoding flow comprising a soft decoding method and a redundant array of independent disks (RAID) decoding method, and the second decoding flow comprises the RAID decoding method without the soft decoding method, and the step of referring to the difference between the cumulative distribution information and the ideal cumulative distribution information to determine the target decoding flow selected from at least the first decoding flow and the second decoding flow comprises:
if the difference is lower than a first degree, selecting the first decoding flow as the target decoding flow; and
if the difference is greater than the first degree or a second degree, selecting the second decoding flow as the target decoding flow, wherein the second degree is greater than the first degree.

### Claim 6 (depends on 1)

The method of claim 1, wherein the step of determining the target decoding flow selected from at least the first decoding flow and the second decoding flow according to the cumulative distribution information comprises:
determining the target decoding flow selected from at least the first decoding flow, the second decoding flow and a third decoding flow according to the cumulative distribution information, wherein the first decoding flow, the second decoding flow and the third decoding flow have different decoding methods or different decoding orders.

### Claim 7 (depends on 6)

The method of claim 6, wherein the step of determining the target decoding flow selected from at least the first decoding flow, the second decoding flow and the third decoding flow according to the cumulative distribution information comprises:
referring to a difference between the cumulative distribution information and ideal cumulative distribution information to determine the target decoding flow selected from at least the first decoding flow, the second decoding flow and the third decoding flow.

### Claim 8 (depends on 7)

The method of claim 7, wherein the first decoding flow comprising a hard decoding method, a soft decoding method and a RAID decoding method, the second decoding flow comprises the soft decoding method and the RAID decoding method without the hard decoding method, and the third decoding flow comprises the RAID decoding method without the hard decoding method and the soft decoding method; and the step of referring to the difference between the cumulative distribution information and the ideal cumulative distribution information to determine the target decoding flow selected from at least the first decoding flow, the second decoding flow and the third decoding flow comprises:
if the difference is lower than a first degree, selecting the first decoding flow as the target decoding flow;
if the difference is greater than a second degree, selecting the third decoding flow as the target decoding flow, wherein second degree is greater than the second degree; and
if the difference is between the first degree and the second degree, selecting the second decoding flow as the target decoding flow.

### Claim 9

A flash memory controller, wherein the flash memory controller is coupled to a flash memory module, the flash memory module comprises at least one flash memory chip, each flash memory chip comprises a plurality of block, each block is implemented by a plurality of word lines, each word line corresponds to a plurality of pages, each word line comprises a plurality of memory cells supporting a plurality of states, each memory cell is arranged to store a plurality of bits, each state represents different combination of the plurality of bits, and the flash memory controller comprising:
a memory, for storing a program code;
a microprocessor, for executing the program code to access the flash memory module via a control logic circuit; and
a decoder;
wherein the microprocessor reads the memory cells of at least a first word line of a specific block of the plurality of blocks to obtain a cumulative distribution information of the states of the memory cells, and the microprocessor determines a target decoding flow selected from at least a first decoding flow and a second decoding flow according to the cumulative distribution information, wherein the first decoding flow and the second decoding flow have different decoding methods or different decoding orders; and the microprocessor further reads the memory cells of a second word line to obtain readout information of the second word line, and the decoder uses the target decoding flow to decode the readout information of the second word line.

### Claim 10 (depends on 9)

The flash memory controller of claim 9, wherein the cumulative distribution information comprises cumulative number/ratio of each state, and the cumulative number/ratio of one of the states comprises the number/ratio of the states whose corresponding programmed voltage is equal to and less than the programmed voltage of the one of the states.

### Claim 11 (depends on 9)

The flash memory controller of claim 9, the microprocessor refers to a difference between the cumulative distribution information and ideal cumulative distribution information to determine the target decoding flow selected from at least the first decoding flow and the second decoding flow.

### Claim 12 (depends on 11)

The flash memory controller of claim 11, wherein the first decoding flow comprising a hard decoding method and a soft decoding method, and the second decoding flow comprises the soft decoding method without the hard decoding method; and if the difference is lower than a first degree, he microprocessor selects the first decoding flow as the target decoding flow; and if the difference is greater than the first degree or a second degree, the microprocessor selects the second decoding flow as the target decoding flow, wherein second degree is greater than the second degree.

### Claim 13 (depends on 11)

The flash memory controller of claim 11, wherein the first decoding flow comprising a soft decoding method and a redundant array of independent disks (RAID) decoding method, and the second decoding flow comprises the RAID decoding method without the soft decoding method; and if the difference is lower than a first degree, the microprocessor selects the first decoding flow as the target decoding flow; and if the difference is greater than the first degree or a second degree, the microprocessor selects the second decoding flow as the target decoding flow, wherein the second degree is greater than the first degree.

### Claim 14 (depends on 9)

The flash memory controller of claim 9, wherein the microprocessor determines the target decoding flow selected from at least the first decoding flow, the second decoding flow and a third decoding flow according to the cumulative distribution information, wherein the first decoding flow, the second decoding flow and the third decoding flow have different decoding methods or different decoding orders.

### Claim 15 (depends on 14)

The flash memory controller of claim 14, wherein the microprocessor refers to a difference between the cumulative distribution information and ideal cumulative distribution information to determine the target decoding flow selected from at least the first decoding flow, the second decoding flow and the third decoding flow.

### Claim 16 (depends on 15)

The flash memory controller of claim 15, wherein the first decoding flow comprising a hard decoding method, a soft decoding method and a RAID decoding method, the second decoding flow comprises the soft decoding method and the RAID decoding method without the hard decoding method, and the third decoding flow comprises the RAID decoding method without the hard decoding method and the soft decoding method; and if the difference is lower than a first degree, the microprocessor selects the first decoding flow as the target decoding flow; if the difference is greater than a second degree, the microprocessor selects the third decoding flow as the target decoding flow, wherein second degree is greater than the second degree; and if the difference is between the first degree and the second degree, the microprocessor selects the second decoding flow as the target decoding flow.

### Claim 17

An electronic device, comprising:
a flash memory controller;
a flash memory module, wherein the flash memory module comprises at least one flash memory chip, each flash memory chip comprises a plurality of block, each block is implemented by a plurality of word lines, each word line corresponds to a plurality of pages, each word line comprises a plurality of memory cells supporting a plurality of states, each memory cell is arranged to store a plurality of bits, each state represents different combination of the plurality of bits;
wherein the flash memory controller reads the memory cells of at least a first word line of a specific block of the plurality of blocks to obtain a cumulative distribution information of the states of the memory cells, and the flash memory controller determines a target decoding flow selected from at least a first decoding flow and a second decoding flow according to the cumulative distribution information, wherein the first decoding flow and the second decoding flow have different decoding methods or different decoding orders; and the flash memory controller further reads the memory cells of a second word line to obtain readout information of the second word line, and the flash memory controller uses the target decoding flow to decode the readout information of the second word line.

### Claim 18 (depends on 17)

The electronic device of claim 17, wherein the flash memory controller determines the target decoding flow selected from at least the first decoding flow, the second decoding flow and a third decoding flow according to the cumulative distribution information, wherein the first decoding flow, the second decoding flow and the third decoding flow have different decoding methods or different decoding orders.

### Claim 19 (depends on 18)

The electronic device of claim 18, wherein the flash memory controller refers to a difference between the cumulative distribution information and ideal cumulative distribution information to determine the target decoding flow selected from at least the first decoding flow, the second decoding flow and the third decoding flow.

### Claim 20 (depends on 19)

The electronic device of claim 19, wherein the first decoding flow comprising a hard decoding method, a soft decoding method and a RAID decoding method, the second decoding flow comprises the soft decoding method and the RAID decoding method without the hard decoding method, and the third decoding flow comprises the RAID decoding method without the hard decoding method and the soft decoding method; and if the difference is lower than a first degree, the flash memory controller selects the first decoding flow as the target decoding flow; if the difference is greater than a second degree, the flash memory controller selects the third decoding flow as the target decoding flow, wherein second degree is greater than the second degree; and if the difference is between the first degree and the second degree, the flash memory controller selects the second decoding flow as the target decoding flow.
