# US 2022/0093168 A1 · Method for managing flash memory module and associated flash memory controller and memory device

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

- Number: US 2022/0093168 A1
- Document ID: US20220093168A1
- Status: Published application
- Kind: A1
- Application number: 17/026,331
- Filed: 2020-09-21
- Published: 2022-03-24
- Earliest claimed: 2020-09-21
- Assignees: Silicon Motion, Inc.
- Applicants: Silicon Motion, Inc.
- Inventors: Tsung-Yao Chiang
- Web page: https://patentgrep.com/patent/US20220093168A1

## CPC

- G11C 11/40622: {Partial refresh of memory arrays}
- G11C 16/3495: {Circuits or methods to detect or delay wearout of nonvolatile EPROM or EEPROM memory devices, e.g. by counting numbers of erase or reprogram cycles, by using multiple memory areas serially or cyclically}
- G11C 11/40615: {Internal triggering or timing of refresh, e.g. hidden refresh, self refresh, pseudo-SRAMs}
- G11C 11/4072: Circuits for initialization, powering up or down, clearing memory or presetting
- G11C 11/4076: Timing circuits (for regeneration management G11C11/406)
- G11C 11/409: Read-write [R-W] circuits
- G11C 11/5628: {Programming or writing circuits; Data input circuits}
- G11C 16/32: Timing circuits
- G11C: STATIC STORES (semiconductor memory devices H10B)

## Abstract

The present invention provides a method for managing a flash memory module, wherein the method includes the steps of: grouping a plurality of blocks within the flash memory module into a plurality of groups; scanning a target block of each group, without scanning all of the blocks within the group, to determine if at least a portion of blocks of the group needs to be refreshed, wherein the group that is determined that at least the portion of blocks needs to be refreshed is marked as a marked group; only scanning at least the portion of blocks of the marked group, without scanning the groups that is not marked, to determine which block needs to be refreshed, wherein the block that is determined to be refreshed is marked as a marked block; refreshing the marked block(s) by moving valid data of the marked block(s) to at least one blank block.

## Claims

### Claim 1

A method for managing a flash memory module, comprising:
grouping a plurality of blocks within the flash memory module into a plurality of groups, wherein each group comprises at least one block;
scanning a target block of each group, without scanning all of the blocks within the group, to determine if at least a portion of blocks of the group needs to be refreshed, wherein the group that is determined that at least the portion of blocks needs to be refreshed is marked as a marked group;
only scanning at least the portion of blocks of the marked group, without scanning the groups that is not marked, to determine which block needs to be refreshed, wherein the block that is determined to be refreshed is marked as a marked block;
refreshing the marked block(s) by moving valid data of the marked block(s) to at least one blank block;
wherein the step of grouping a plurality of blocks within the flash memory module into the plurality of groups comprises:
grouping the plurality of blocks according to power-on events and power-off events of a flash memory controller, to make that different power cycles correspond to different groups, wherein a power cycle indicates a period from one power-on event to a following power-off event;
wherein the step of scanning the target block of each group comprises:
selecting a specific block having earliest write time within the group as the target block.

### Claim 2

(canceled)

### Claim at position 3

3-4. (canceled)

### Claim 5 (depends on 1)

The method of claim 1, wherein the plurality of blocks comprises a first group of blocks having a first type and a second group of blocks having a second type, and the step of scanning the target block of each group comprises:
selecting a specific block among the blocks having the first type with the earliest write time as the target block.

### Claim 6 (depends on 5)

The method of claim 5, wherein the blocks having the first type are triple-level cell (TLC) blocks or quad-level cell (QLC) blocks.

### Claim 7

A flash memory controller, wherein the flash memory controller is coupled to a flash memory module, 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;
wherein the microprocessor groups a plurality of blocks within the flash memory module into a plurality of groups, wherein each group comprises at least one block; the microprocessor scans a target block of each group, without scanning all of the blocks within the group, to determine if at least a portion of blocks of the group needs to be refreshed, wherein the group that is determined that at least the portion of blocks needs to be refreshed is marked as a marked group; the microprocessor only scans at least the portion of blocks of the marked group, without scanning the groups that is not marked, to determine which block needs to be refreshed, wherein the block that is determined to be refreshed is marked as a marked block; and the microprocessor refreshes the marked block(s) by moving valid data of the marked block(s) to at least one blank block;
wherein the microprocessor groups the plurality of blocks according to write times of the blocks, to make that two blocks written in sequence whose write times having a time interval greater than a threshold correspond to different groups.

### Claim 8 (depends on 7)

The flash memory controller of claim 7, wherein the microprocessor groups the plurality of blocks according to power-on events and power-off events of the flash memory controller, to make that different power cycles correspond to different groups, wherein a power cycle indicates a period from one power-on event to a following power-off event.

### Claim 9

(canceled)

### Claim 10

A flash memory controller, wherein the flash memory controller is coupled to a flash memory module, 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;
wherein the microprocessor groups a plurality of blocks within the flash memory module into a plurality of groups, wherein each group comprises at least one block; the microprocessor scans a target block of each group, without scanning all of the blocks within the group, to determine if at least a portion of blocks of the group needs to be refreshed, wherein the group that is determined that at least the portion of blocks needs to be refreshed is marked as a marked group; the microprocessor only scans at least the portion of blocks of the marked group, without scanning the groups that is not marked, to determine which block needs to be refreshed, wherein the block that is determined to be refreshed is marked as a marked block; and the microprocessor refreshes the marked block(s) by moving valid data of the marked block(s) to at least one blank block;
wherein the microprocessor selects a specific block having earliest write time within the group as the target block.

### Claim 11 (depends on 7)

The flash memory controller of claim 7, wherein the plurality of blocks comprises a first group of blocks having a first type and a second group of blocks having a second type, and the microprocessor selects a specific block among the blocks having the first type with the earliest write time as the target block.

### Claim 12 (depends on 11)

The flash memory controller of claim 11, wherein the blocks having the first type are triple-level cell (TLC) blocks or quad-level cell (QLC) blocks.

### Claim 13

A memory device, comprising:
a flash memory module; and
a flash memory controller, configured to access the flash memory module;
wherein the flash memory controller groups a plurality of blocks within the flash memory module into a plurality of groups, wherein each group comprises at least one block; the flash memory controller scans a target block of each group, without scanning all of the blocks within the group, to determine if at least a portion of blocks of the group needs to be refreshed, wherein the group that is determined that at least the portion of blocks needs to be refreshed is marked as a marked group; the flash memory controller only scans at least the portion of blocks of the marked group, without scanning the groups that is not marked, to determine which block needs to be refreshed, wherein the block that is determined to be refreshed is marked as a marked block; and the flash memory controller refreshes the marked block(s) by moving valid data of the marked block(s) to at least one blank block;
wherein the plurality of blocks comprises a first group of blocks having a first type and a second group of blocks having a second type, and the flash memory controller selects a specific block among the blocks having the first type with the earliest write time as the target block.

### Claim 14 (depends on 13)

The memory device of claim 13, wherein the flash memory controller groups the plurality of blocks according to power-on events and power-off events of the flash memory controller, to make that different power cycles correspond to different groups, wherein a power cycle indicates a period from one power-on event to a following power-off event.

### Claim 15 (depends on 13)

The memory device of claim 13, wherein the flash memory controller groups the plurality of blocks according to write times of the blocks, to make that two blocks written in sequence whose write times having a time interval greater than a threshold correspond to different groups.

### Claim 16 (depends on 13)

The memory device of claim 13, wherein the flash memory controller selects a specific block having earliest write time within the group as the target block.

### Claim 17

(canceled)

### Claim 18 (depends on 13)

The memory device of claim 13, wherein the blocks having the first type are triple-level cell (TLC) blocks or quad-level cell (QLC) blocks.
