Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and device for updating error detection and correction ECC codes

A data and column verification technology, applied in the computer field, can solve the problem of destroying the random read and write performance of NORFlash

Active Publication Date: 2020-02-21
HONOR DEVICE CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, unlike the reading and writing method of NAND Flash, NORFlash is a random reading and writing method, that is, the size of the read and write data is random. If ECC verification is directly introduced into NOR Flash, it will be limited to reading and writing in the form of data blocks. Data, destroying the random read and write of NOR Flash

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
  • A method and device for updating error detection and correction ECC codes
  • A method and device for updating error detection and correction ECC codes
  • A method and device for updating error detection and correction ECC codes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0045] In order to facilitate the understanding of the embodiments of the present invention, the calculation method of the ECC code is firstly introduced here. The ECC code includes a column check code and a row check code, and its calculation object is a data block. The following uses 256 bytes of data as a data block as an example to illustrate:

[0046] First, calculate the column check code of the ECC code.

[0047] It should be understood that 1 byte (Byte) i...

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

Disclosed in an embodiment of the invention is a method for updating an error checking and correction (ECC) code. The method is applied in a process of writing data to a storage medium comprising multiple storage blocks. The method comprises: acquiring an ECC code for a total amount of data in each storage block; when a byte of data is randomly written to the storage medium, acquiring the written data, a location in a storage space where the written data is stored, and initial data stored in the storage space prior to the writing of the data; performing a logic operation to acquire a column check code of an ECC code for the total amount of data in the storage block to which the storage space that stored the written byte of data belongs, and revising, according to the written data and the initial data, a row check code of the ECC code for the total amount of data in the storage block to which the storage space belongs; and obtaining an updated ECC code according to the column check code of the ECC code obtained via the operation and the revised row check code of the ECC code. The invention can protect random read and write performance of a storage medium from being degraded when an ECC check is performed.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method and device for updating error detection and correction ECC codes. Background technique [0002] In the field of computers, the two mainstream flash memories are NAND Flash (the internal storage unit adopts the flash memory connected with the NOR gate) and NOR Flash (the internal storage unit adopts the flash memory connected with the NOR gate). Among them, NAND Flash is prone to the problem of bit reversal. If bit reversal occurs in important program codes or key data in NADN Flash, it may cause the computer system to malfunction. Therefore, in order to improve reliability, NAND Flash applications need Perform ECC (Error Checking and Correction, error detection and correction) verification. [0003] ECC verification means that when reading and writing data, the ECC code is calculated in the form of a data block (such as 256 bytes or 512 bytes of data as a data block),...

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): G06F11/10
CPCG06F11/10
Inventor 黄生儒廉肖洁薛军
Owner HONOR DEVICE CO LTD