# US 2019/0156903 A1 · Method and apparatus for processing data in flash memory

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

- Number: US 2019/0156903 A1
- Document ID: US20190156903A1
- Status: Published application
- Kind: A1
- Application number: 16/175,843
- Filed: 2018-10-31
- Published: 2019-05-23
- Earliest claimed: 2017-11-23
- Assignees: Shenzhen Longsys Electronics Co., Ltd.
- Applicants: Shenzhen Longsys Electronics Co., Ltd.
- Inventors: Wenzuan YU; Xiaoqing LIANG
- Web page: https://patentgrep.com/patent/US20190156903A1

## CPC

- G11C 16/3431: {Circuits or methods to detect disturbed nonvolatile memory cells, e.g. which still read as programmed but with threshold less than the program verify threshold or read as erased but with threshold greater than the erase verify threshold, and to reverse the disturbance via a refreshing programming or erasing step}
- G06F 3/0619: {in relation to data integrity, e.g. data losses, bit errors}
- G06F 3/0629: {Configuration or reconfiguration of storage systems}
- G06F 3/0647: {Migration mechanisms}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 12/0246: {in block erasable memory, e.g. flash memory}
- G11C 16/26: Sensing or reading circuits; Data output circuits
- G11C 16/3418: {Disturbance prevention or evaluation; Refreshing of disturbed memory data}
- G11C 16/3427: {Circuits or methods to prevent or reduce disturbance of the state of a memory cell when neighbouring cells are read or written}
- G06F 2212/1036: Life time enhancement
- G06F 2212/7207: management of metadata or control data
- G06F 2212/7209: Validity control, e.g. using flags, time stamps or sequence numbers
- G11C: STATIC STORES (semiconductor memory devices H10B)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method and apparatus for processing data in a flash memory are disclosed. The flash memory has a plurality of data blocks for storing data. The method comprises obtaining read modes of read operations which are performed on a data block and a number of each of the read modes, wherein the read modes comprises a sequence read mode and a random read mode, determining a read disturbance value of the data block based on the read modes and the number of each of the read modes, and performing a data move operation for the data block when the read disturbance value of the data block is above a threshold.

## Claims

### Claim 1

A method for processing data in a flash memory, wherein the flash memory has a plurality of data blocks for storing data, the method comprising:
obtaining read modes of read operations which are performed on a data block and a number of each of the read modes, wherein the read modes comprise a sequence read mode and a random read mode;
determining a read disturbance value of the data block based on the read modes and the number of each of the read modes; and
performing a data move operation for the data block when the read disturbance value of the data block is above a threshold.

### Claim 2 (depends on 1)

The method of claim 1, wherein the data block includes a plurality of data pages which are arranged in an order; and
the obtaining read modes of read operations which are performed on a data block and a number of each of the read modes, comprises:
obtaining a sequence number of a currently-read data page and a sequence number of a previously-read data page, to obtain a read order of the currently-read data page, wherein the currently-read data page is a target page by a current read operation from the previously-read data page which is a target page by a previous read operation;
determining a read mode of the currently-read data page as the sequence read mode when the read order of the currently-read data page is same to that of the previously-read data page, and recording a number of the sequence read mode continuously occurring; and
determining the read mode of the currently-read data page as the random read mode when the read order of the currently-read data page is different from that of the previously-read data page, and recording a total number of the random read modes occurring.

### Claim 3 (depends on 2)

The method of claim 2, wherein the recording a number of the sequence read mode continuously occurring, comprises:
adding the number of the sequence read modes continuously occurring by 1 when the read mode of the currently-read data page is the sequence read mode; and
setting the number of the sequence read modes to zero when the read mode of the currently-read data page is the random read mode, and adding a number of the random read modes by 1 to record the total number of the random read modes occurring.

### Claim 4 (depends on 3)

The method of claim 3, wherein the determining the read disturbance value of the data block based on the read modes and the number of each of the read modes, comprises:
adding the read disturbance value of the data block by a unit value when the read mode of the currently-read data page is the sequence read mode and the number of the sequence read modes continuously occurring is less than a threshold number;
stopping the adding the read disturbance value of the data block when the read mode of the currently-read data page is the sequence read mode and the number of the sequence read modes continuously occurring is equal to or more than the threshold number; and
adding the read disturbance value of the data block by the unit value when the read mode of the currently-read data page is the random read mode;
wherein the read disturbance value starts to add from an initial value of zero.

### Claim 5 (depends on 1)

The method of claim 1, wherein the data block includes a plurality of data pages which are arranged in an order; and
the obtaining read modes of read operation which are performed on the data block and a number of each of the read modes, comprises:
obtaining a sequence number of a currently-read data page and a sequence number of a previously-read data page, to obtain a read order of the currently-read data page, wherein the currently-read data page is a target page by a current read operation from the previously-read data page which is a target page by a previous read operation;
determining a read mode of the currently-read data page as the sequence read mode when the read order of the currently-read data page is same to that of the previously-read data page, and recording a total number of the sequence read modes occurring; and
determining the read mode of the currently-read data page as the random read mode when the read order of the currently-read data page is different from that of the previously-read data page, and recording a total number of the random read modes occurring.

### Claim 6 (depends on 5)

The method of claim 5, wherein the determining the read disturbance value of the data block based on the read modes and the number of each of the read modes, comprises:
determining a first read disturbance value of the data block caused by the sequence read mode;
determining a second read disturbance value of the data block caused by the random read mode; and
obtaining the read disturbance value of the data block according to the first read disturbance value caused by the sequence read mode and the second read disturbance value caused by the random read mode.

### Claim 7 (depends on 6)

The method of claim 6, wherein the first read disturbance value caused by the sequence read mode is determined according to a weight coefficient of the sequence read mode and the total number of the sequence read modes occurring; and the second read disturbance value caused by the random read mode is determined according to a weight coefficient of the random read mode and the total number of the random read modes occurring.

### Claim 8 (depends on 7)

The method of claim 7, wherein the weight coefficient of the sequence read mode is less than the weight coefficient of the random read mode.

### Claim 9

An apparatus for processing data in a flash memory, wherein the flash memory has a plurality of data blocks for data storage, and the apparatus comprises a processor configured to:
obtain read modes of read operations which are performed on a data block and a number of each of the read modes, wherein the read modes comprise a sequence read mode and a random read mode;
determine a read disturbance value of the data block based on the read modes and the number of each of the read modes; and
perform a data move operation for the data block when the read disturbance value of the data block is above a threshold.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the data block includes a plurality of data pages which are arranged in an order; and
the processor is further configured to:
obtain a sequence number of a currently-read data page and a sequence number of a previously-read data page, to obtain a read order of the currently-read data page, wherein the currently-read data page is a target page by a current read operation from the previously-read data page which is a target page by a previous read operation;
determine a read mode of the currently-read data page as the sequence read mode when the read order of the currently-read data page is same to that of the previously-read data page, and record a number of the sequence read mode continuously occurring; and
determine the read mode of the currently-read data page as the random read mode when the read order of the currently-read data page is different from that of the previously-read data page, and record a total number of the random read mode occurring.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein the processor is further configured to:
add the number of the sequence read modes continuously occurring by 1 when the read mode of the currently-read data page is the sequence read mode; and
set the number of the sequence read modes to zero when the read mode of the currently-read data page is the random read mode, and add a number of the random read modes by 1 to record the total number of the random read modes occurring.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the processor is further configured to:
add the read disturbance value of the data block by a unit value when the read mode of the currently-read data page is the sequence read mode and the number of the sequence read modes continuously occurring is less than a threshold number;
stop adding the read disturbance value of the data block when the read mode of the currently-read data page is the sequence read mode and the number of the sequence read modes continuously occurring is equal to or more than the threshold number; and
add the read disturbance value of the data block by the unit value when the read mode of the currently-read data page is the random read mode;
wherein the read disturbance value starts to add from an initial value of zero.

### Claim 13 (depends on 9)

The apparatus of claim 9, wherein the data block comprises a plurality of data pages which are arranged in an order; and
the processor is further configured to:
obtain a sequence number of a currently-read data page and a sequence number of a previously-read data page, to obtain a read order of the currently-read data page, wherein the currently-read data page is a target page by a current read operation from the previously-read data page which is a target page by a previous read operation;
determine a read mode of the currently-read data page as the sequence read mode when the read order of the currently-read data page is same to that of the previously-read data page, and record a total number of the sequence read modes occurring; and
determine the read mode of the currently-read data page as the random read mode when the read order of the currently-read data page is different from that of the previously-read data page, and record a total number of the random read modes occurring.

### Claim 14 (depends on 13)

The apparatus of claim 13, wherein the processor is further configured to:
determine a first read disturbance value of the data block caused by the sequence read mode;
determine a second read disturbance value of the data block caused by the random read mode; and
obtain the read disturbance value of the data block according to the first read disturbance value caused by the sequence read mode and the second read disturbance value caused by the random read mode.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein the first read disturbance value caused by the sequence read mode is determined according to a weight coefficient of the sequence read mode and the total number of the sequence read modes occurring; and the second read disturbance value caused by the random read mode is determined according to a weight coefficient of the random read mode and the total number of the random read modes occurring.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the weight coefficient of the sequence read mode is less than the weight coefficient of the random read mode.

### Claim 17

A non-transitory computer readable medium storing computer programs which, when executed by a processor, cause the processor to perform a method for processing data in a flash memory having a plurality of data blocks for data storage, the method comprising:
obtaining read modes of read operations which are performed on a data block and a number of each of the read modes, wherein the read modes comprises a sequence read mode and a random read mode;
determining a read disturbance value of the data block based on the read modes and the number of each of the read modes; and
performing a data move operation for the data block when the read disturbance value of the data block is above a threshold.
