Method for storing data and storage device

A technology for storing data and storage devices, which is applied in the electronic field, can solve the problems of occupation, storage devices are not safe, stable, and cannot obtain error correction codes in time, and achieve the effect of reducing the probability of errors

Active Publication Date: 2013-10-02
CHENGDU HUAWEI TECH
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] During the research and practice of the prior art, the inventors of the present invention have found that for one sector in the prior art, a 13-bit error correction code is usually required for correcting 1 bit (bit) data, that is, 13-bit error correction codes are required. Check bit, therefore, the check bit of 12B space in a sector can correct up to 8 bits of erroneous data. When more bits of data are to be corrected, the error correction code needs to be stored in more Sector check bits. A page includes multiple Sectors, where a page is the smallest unit for writing and reading data in a storage device. Therefore, when the storage device reads data, it cannot obtain the error correction code corresponding to the data in time, so that the storage device Insufficient security and stability when storing data

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for storing data and storage device
  • Method for storing data and storage device
  • Method for storing data and storage device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] The embodiment of the present invention provides a method for storing data, such as figure 2 As shown, the method includes:

[0028] Step 1: Obtain the data and the error correction code (ECC) of the data;

[0029] Wherein, the data obtained in step 1 may be received data sent by other devices and needs to be stored, and the error correction code of the data obtained in step 1 may be the error correction code of the data calculated according to a specific algorithm. For the specific operation of the error correction code, reference may be made to the prior art.

[0030] Step 2: Store the data and the error correction code of the data in different pages of the flash memory through the data channel connected to the flash memory.

[0031] Wherein, it should be noted that, when the storage device reads data and writes data, it operates in units of pages (Page). In step 2, the data is stored in one or more than one page, and the error correction code of the data is also ...

Embodiment 2

[0034] The embodiment of the present invention provides a method for storing data, which is similar to the method provided in Embodiment 1, including: storing the error correction code of the data separately in the unit of Page, and the Page for storing the error correction code of the data is not Store data, and at the same time, the Page that stores the data does not store the error correction code of the data; however, the embodiment of the present invention provides a more specific method for storing data and the error correction code of the data, which is convenient to use fewer steps and more quickly Get all the error correction codes of the data, so as to get the correct storage data.

[0035] like image 3 As shown, the method includes:

[0036] Step A1: the same as Step 1 in Embodiment 1, that is, to obtain the data and the error correction code (ECC) of the data;

[0037] Step A2: through the data channel connected to the flash memory, store the data and the error ...

Embodiment 3

[0050] The embodiment of the present invention provides a method for storing data. The embodiment of the present invention provides a method for storing data. This method is similar to the method provided in Embodiment 1, including: the error correction code of the data is separately represented by Page Store as a unit, the Page that stores the data error correction code does not store data, and at the same time, the Page that stores data does not store the error correction code of the data; however, the embodiment of the present invention provides another more specific storage data and the data error correction The code method is convenient to obtain all the error correction codes of the data more quickly through fewer steps, so as to obtain the correct storage data.

[0051] like Figure 5 As shown, the method includes:

[0052] Step B1: the same as Step 1 in Embodiment 1, that is, to obtain the data and the error correction code (ECC) of the data;

[0053] Step B2: Store ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The embodiment of the invention discloses a method for storing data and a storage device. The method comprises the following steps of acquiring data and error correcting codes of the data; and respectively storing the data and the error correcting codes of the data in different pages of a flash memory through a data channel which is connected with the flash memory. Based on the technical scheme, because the error correcting codes of the data are stored in independent pages, i.e. the pages of a storage space are divided into two types, one type of the pages is used for storing the data, and the other type of the pages is used for storing the error correcting codes of the data, the data and all error correcting codes of the data can be obtained through less reading times, thereby acquiring correct data, reducing the error possibility of the storage device and enabling the storage device to be safe and stable in the process of data storage.

Description

technical field [0001] The invention relates to the field of electronic technology, in particular to a data storage method and a storage device. Background technique [0002] Storage devices play a very important role in people's lives today. People use them to store text materials, pictures, videos, etc. A commonly used storage device such as a solid state disk (SSD, Solid State Disk) plays an important role in people's daily life because of its large storage capacity, small size, and portability. An SSD may be composed of flash memory (Flash), such as NAND Flash. Due to the NAND Flash manufacturing process, random bit (bit) flips may occur during data reading, writing and storage, resulting in data errors. With the continuous improvement of the Flash manufacturing process, more data is stored in a unit storage space, and the probability of errors in the stored data is greater. [0003] Error Checking and Correcting (ECC, Error Checking and Correcting,) technology can pe...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G11C16/10G11C29/42
Inventor 张娅舸徐君
Owner CHENGDU HUAWEI TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products