# US 2021/0334202 A1 · Method for accessing flash memory module and associated package

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

- Number: US 2021/0334202 A1
- Document ID: US20210334202A1
- Status: Published application
- Kind: A1
- Application number: 16/860,093
- Filed: 2020-04-28
- Published: 2021-10-28
- Earliest claimed: 2020-04-28
- Assignees: Silicon Motion, Inc.
- Applicants: Silicon Motion, Inc.
- Inventors: Tsung-Chieh Yang
- Web page: https://patentgrep.com/patent/US20210334202A1

## CPC

- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G06F 3/0608: {Saving storage space on storage systems}
- G06F 3/0634: {by changing the state or mode of one or more devices}
- G06F 3/064: {Management of blocks}
- G06F 3/0659: {Command handling arrangements, e.g. command buffers, queues, command scheduling}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 9/4401: Bootstrapping (security arrangements therefor G06F21/57)
- G11C 16/0483: {comprising cells having several storage transistors connected in series}
- G11C 16/08: Address circuits; Decoders; Word-line control circuits
- G11C 16/28: using differential sensing or reference cells, e.g. dummy cells
- G06F 2212/7201: Logical to physical mapping or translation of blocks or pages
- G06F 2212/7202: Allocation control and policies
- G11C 16/10: Programming or data input circuits
- G11C 16/349: {Arrangements for evaluating degradation, retention or wearout, e.g. by counting erase cycles}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

The present invention provides a method for accessing a flash memory module is disclosed, wherein the flash memory module includes at least one flash memory chip, each flash memory chip includes a plurality of block, each block is implemented by a plurality of word lines, each word line corresponds to K pages, and each word line includes a plurality of memory cells supporting a plurality of states, and the method includes the steps of: receiving data from a host device; generating dummy data; and writing the data with the dummy data to a plurality of specific blocks, wherein for each of a portion of the word lines of the specific blocks, the dummy data is written into at least one of the K pages, and the data from the host device is written into the other page(s) of the K pages.

## 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 K pages, and each word line comprises a plurality of memory cells supporting a plurality of states, and the method comprises the steps of:
receiving data from a host device;
generating dummy data according to the data for the host device; and
writing the data with the dummy data to a plurality of specific blocks, wherein for each of a portion of the word lines of the specific blocks, the dummy data is written into at least one of the K pages, and the data from the host device is written into the other page(s) of the K pages.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
referring to a size of the data and a storage capacity of the flash memory module to determine a ratio between a size of the dummy data and a size of the data from the host device.

### Claim 3 (depends on 2)

The method of claim 2, wherein K is equal to three, and the step of writing the data with the dummy data to the plurality of specific blocks comprises:
if the size of the data is less than one-third of the storage capacity of the flash memory module, for each of the portion of the word lines of the specific blocks, the dummy data is written into two pages, and the data from the host device is written into the other one of the three pages; and
if the size of the data is greater than one-third of the storage capacity and less than two-third of the flash memory module, for each of the portion of the word lines of the specific blocks, the dummy data is written into one page, and the data from the host device is written into the other two of the three pages.

### Claim 4 (depends on 3)

The method of claim 3, wherein each memory supports eight states, and the step of writing the data with the dummy data to the plurality of specific blocks comprises:
if the size of the data is less than one-third of the storage capacity of the flash memory module, for each of the portion of the word lines of the specific blocks, the dummy data is written into two pages, and the data from the host device is written into the other one page by using only two non-adjacent states of the memory cells; and
if the size of the data is greater than one-third of the storage capacity and less than two-third of the flash memory module, for each of the portion of the word lines of the specific blocks, the dummy data is written into one page, and the data from the host device is written into the other two pages by using only four states that are not adjacent to each other.

### Claim 5 (depends on 2)

The method of claim 2, wherein K is equal to four, and the step of writing the data with the dummy data to the plurality of specific blocks comprises:
if the size of the data is less than one-fourth of the storage capacity of the flash memory module, for each of the portion of the word lines of the specific blocks, the dummy data is written into three pages, and the data from the host device is written into the other one of the four pages;
if the size of the data is greater than one-fourth of the storage capacity and less than two-fourth of the flash memory module, for each of the portion of the word lines of the specific blocks, the dummy data is written into two pages, and the data from the host device is written into the other two of the four pages; and
if the size of the data is greater than two-fourth of the storage capacity and less than three-fourth of the flash memory module, for each of the portion of the word lines of the specific blocks, the dummy data is written into one page, and the data from the host device is written into the other three of the four pages.

### Claim 6 (depends on 5)

The method of claim 5, wherein each memory supports sixteen states, and the step of writing the data with the dummy data to the plurality of specific blocks comprises:
if the size of the data is less than one-fourth of the storage capacity of the flash memory module, for each of the the portion of word lines of the specific blocks, the dummy data is written into three pages, and the data from the host device is written into the other one of the four pages by using only two non-adjacent states of the memory cells;
if the size of the data is greater than one-fourth of the storage capacity and less than two-fourth of the flash memory module, for each of the portion of the word lines of the specific blocks, the dummy data is written into two pages, and the data from the host device is written into the other two of the four pages by using only four states that are not adjacent to each other; and
if the size of the data is greater than two-fourth of the storage capacity and less than three-fourth of the flash memory module, for each of the portion of the word lines of the specific blocks, the dummy data is written into one page, and the data from the host device is written into the other three of the four pages by using only eight states that are not adjacent to each other.

### Claim 7 (depends on 1)

The method of claim 1, wherein the method is executed by an embedded Multi-Media-Card (eMMC) comprising a flash memory controller and the flash memory module, and the receiving step, the generating step and the writing step are performed before the eMMC is positioned in an electronic device.

### Claim 8 (depends on 7)

The method of claim 7, wherein the receiving step, the generating step and the writing step are performed before the eMMC is mounted on a printed circuit board (PCB) applied to the electronic device.

### Claim 9 (depends on 7)

The method of claim 7, further comprising:
after the eMMC is positioned in the electronic device and the electronic device starts to work, performing a garbage collection operation on the flash memory module to move valid data of a portion of the specific blocks to a plurality of blank blocks, to release space of the portion of the specific blocks;
wherein the valid data of the portion of the specific blocks are written into all of the K pages of each word line of the blank blocks.

### Claim 10 (depends on 9)

The method of claim 9, wherein the step of performing the garbage collection operation on the flash memory module to move the valid data of the portion of the specific blocks to the plurality of blank blocks comprises:
after the eMMC is positioned in the electronic device and the electronic device starts to work, performing the garbage collection operation on the flash memory module to move the valid data of the portion of the specific blocks to the plurality of blank blocks, even if quality of the portion of the specific blocks is good enough to be no need to perform the garbage collection operation in a normal operation of the eMMC.

### Claim 11 (depends on 1)

The method of claim 1, wherein the data from the host device comprises a boot code, an operating system (OS) code, and digital contents.

### Claim 12

A package, comprising:
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 K pages, and each word line comprises a plurality of memory cells supporting a plurality of states; and
a flash memory controller, coupled to the flash memory module, configured to receive data from a host device, generate dummy data according to the data received from the host device, and write the data with the dummy data to a plurality of specific blocks;
wherein for each of a portion of the word lines of the specific blocks, the dummy data is written into at least one of the K pages, and the data from the host device is written into the other page(s) of the K pages.

### Claim 13 (depends on 12)

The package of claim 12, wherein a ratio between a size of the dummy data and a size of the data from the host device is determined by referring to a size of the data and a storage capacity of the flash memory module.

### Claim 14 (depends on 13)

The package of claim 13, wherein K is equal to three, and if the size of the data is less than one-third of the storage capacity of the flash memory module, for each of the portion of the word lines of the specific blocks, the dummy data is written into two pages, and the data from the host device is written into the other one of the three pages; and if the size of the data is greater than one-third of the storage capacity and less than two-third of the flash memory module, for each of the portion of the word lines of the specific blocks, the dummy data is written into one page, and the data from the host device is written into the other two of the three pages.

### Claim 15 (depends on 14)

The package of claim 14, wherein each memory supports eight states, and if the size of the data is less than one-third of the storage capacity of the flash memory module, for each of the portion of the word lines of the specific blocks, the dummy data is written into two pages, and the data from the host device is written into the other one page by using only two non-adjacent states of the memory cells; if the size of the data is greater than one-third of the storage capacity and less than two-third of the flash memory module, for each of the portion of the word lines of the specific blocks, the dummy data is written into one page, and the data from the host device is written into the other two pages by using only four states that are not adjacent to each other.

### Claim 16 (depends on 13)

The package of claim 13, wherein K is equal to four, and if the size of the data is less than one-fourth of the storage capacity of the flash memory module, for each of the portion of the word lines of the specific blocks, the dummy data is written into three pages, and the data from the host device is written into the other one of the four pages; if the size of the data is greater than one-fourth of the storage capacity and less than two-fourth of the flash memory module, for each of the portion of the word lines of the specific blocks, the dummy data is written into two pages, and the data from the host device is written into the other two of the four pages; and if the size of the data is greater than two-fourth of the storage capacity and less than three-fourth of the flash memory module, for each of the portion of the word lines of the specific blocks, the dummy data is written into one page, and the data from the host device is written into the other three of the four pages.

### Claim 17 (depends on 16)

The package of claim 16, wherein each memory supports sixteen states, and if the size of the data is less than one-fourth of the storage capacity of the flash memory module, for each of the portion of the word lines of the specific blocks, the dummy data is written into three pages, and the data from the host device is written into the other one of the four pages by using only two non-adjacent states of the memory cells; if the size of the data is greater than one-fourth of the storage capacity and less than two-fourth of the flash memory module, for each of the portion of the word lines of the specific blocks, the dummy data is written into two pages, and the data from the host device is written into the other two of the four pages by using only four states that are not adjacent to each other; and if the size of the data is greater than two-fourth of the storage capacity and less than three-fourth of the flash memory module, for each of the portion of the word lines of the specific blocks, the dummy data is written into one page, and the data from the host device is written into the other three of the four pages by using only eight states that are not adjacent to each other.

### Claim 18 (depends on 12)

The package of claim 12, wherein the package is an embedded Multi-Media-Card (eMMC), and flash memory controller writes the data with the dummy data to the specific blocks before the eMMC is positioned in an electronic device.

### Claim 19 (depends on 18)

The package of claim 18, wherein after the eMMC is positioned in the electronic device and the electronic device starts to work, the flash memory controller performs a garbage collection operation on the flash memory module to move valid data of a portion of the specific blocks to a plurality of blank blocks, to release space of the portion of the specific blocks; wherein the valid data of the portion of the specific blocks are written into at all of the K pages of each word line of the blank blocks.

### Claim 20 (depends on 18)

The package of claim 18, wherein after the eMMC is positioned in the electronic device and the electronic device starts to work, performing the garbage collection operation on the flash memory module to move the valid data of the portion of the specific blocks to the plurality of blank blocks, even if quality of the portion of the specific blocks is good enough to be no need to perform the garbage collection operation in a normal operation of the eMMC.
