CN107102820B - The data processing method and device of a kind of NAND flash memory equipment - Google Patents

The data processing method and device of a kind of NAND flash memory equipment Download PDF

Info

Publication number
CN107102820B
CN107102820B CN201710251994.8A CN201710251994A CN107102820B CN 107102820 B CN107102820 B CN 107102820B CN 201710251994 A CN201710251994 A CN 201710251994A CN 107102820 B CN107102820 B CN 107102820B
Authority
CN
China
Prior art keywords
data
block number
page
storage unit
data processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710251994.8A
Other languages
Chinese (zh)
Other versions
CN107102820A (en
Inventor
王凤海
杨骥
张建涛
夏杰旭
王嵩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dera Technology Co Ltd
Original Assignee
Beijing New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing New Technology Co Ltd filed Critical Beijing New Technology Co Ltd
Priority to CN201710251994.8A priority Critical patent/CN107102820B/en
Publication of CN107102820A publication Critical patent/CN107102820A/en
Priority to PCT/CN2018/083355 priority patent/WO2018192488A1/en
Application granted granted Critical
Publication of CN107102820B publication Critical patent/CN107102820B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1008Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
    • G06F11/1012Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices using codes or arrangements adapted for a specific type of error
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1008Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
    • G06F11/1068Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices in sector programmable memories, e.g. flash disk
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0619Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0659Command handling arrangements, e.g. command buffers, queues, command scheduling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Read Only Memory (AREA)

Abstract

The embodiment of the invention discloses the data processing method and device of a kind of NAND flash memory equipment, the method includes:When receiving the data write request order of host transmission, judge pending block number according to corresponding Page pages in the storage unit to be operated of NAND flash memory equipment;According to Page pages of type and the data characteristics of pending block number evidence, according to preset rules to the pending block number according to carrying out complementary operation, and corresponds in the storage unit to be operated the mark of Page pages of meta-data region progress data processing method;To treated, the storage unit to be operated is written according to encoding, and by the coded data after coding in pending block number.The data processing method and device for the NAND flash memory equipment that the embodiment of the present invention proposes can be effectively reduced the error in data probability of happening of NAND flash memory equipment, promote the overall performance of NAND flash memory equipment.

Description

The data processing method and device of a kind of NAND flash memory equipment
Technical field
The present invention relates to technical field of data storage more particularly to the data processing methods and dress of a kind of NAND flash memory equipment It puts.
Background technology
Solid state disk has qualitative leap compared with traditional mechanical hard disk in access speed.And MLC nand flash memories are set It is standby, by the way that MLC nand flash memories are applied to solid state disk, the storage density of memory can be greatly increased, reduce storage into This.MLC NAND refer to the nand flash memory of multilevel-cell (Multi-Level Cell).One storage unit of nand flash memory is such as Fruit only stores a bit data, the nand flash memory of referred to as SLC (Single-Level Cell), if 2 bit numbers can be stored According to, the referred to as nand flash memory of multilevel-cell (MLC), if 3 bit datas can be stored, the referred to as NAND of three-layer unit (TLC) Flash memory.But due in a storage unit of MLC NAND flash memory equipments storing multi-bit data, the probability of corrupt data it is big It is big to increase.20nm is reduced to especially with process hereinafter, being reduced in the electric charge number that floating gate layer stores, the thickness of oxide layer Spend it is smaller in the case of, the charge for being stored in floating gate layer more likely escapes, so as to cause data retain mistake occur probability It greatly improves.
At present, the method for reducing MLC NAND flash memory equipment error in data in the prior art mainly includes following several:
Utilize the error correcting techniques such as BCH/LDPC.They are general correcting data error technologies, are not required to it is to be understood that mistake generated Principle and mechanism, available for appointing the error in data closed under scene.This method needs some redundant digits to compile initial data Code.If the number of errors in flash memory is more, the redundant digit needed is more, these redundant digits needs additionally occupy depositing for flash memory Space is stored up, therefore the data that user can store just tail off.There are mainly two types of error in data modes in nand flash memory:It is a kind of It is data interference mistake, another kind is that data retain mistake.Under current process, data retain the probability of mistake much Mistake is interfered more than data.Therefore, for BCH/LDPC as general correcting data error technology, it can not utilize the difference of this probability Property come reduce mistake probability.
Asymmetric encoding technology.The technology reduces the higher data of threshold voltage by changing the data pattern inputted The probability of appearance retains mistake with this to reduce data.This method retains mistake to data has good effect, but to data Interference mistake is invalid, in some instances it may even be possible to can increase data interference mistake.The program is increased by a flag for every 16 bit data Come identify this 16 bit be 0 number it is more or 1 number it is more, this flag is also required to be stored in nand flash memory, thus this The space cost of kind coding is 6.25%.If asymmetric encoding is used alone, this space cost carrys out solid state disk It says, is not too big.It is but invalid to interference mistake, it is therefore necessary to simultaneously since this encryption algorithm is just for data reservation mistake Using general BCH/LDPC error correcting techniques, the space cost of such asymmetric encoding algorithm 6.3% is exactly BCH/LDPC redundancies Additional increased cost except code, it is difficult to by receiving.
Therefore, how to provide at a kind of data of error in data probability of happening that can be effectively reduced NAND flash memory equipment Reason method is a technical problem to be solved urgently.
Invention content
In view of the above problems, the present invention proposes the data processing method and device of a kind of NAND flash memory equipment, Neng Gouyou Effect ground reduces the error in data probability of happening of NAND flash memory equipment, promotes the overall performance of NAND flash memory equipment.
One aspect of the present invention provides a kind of data processing method of NAND flash memory equipment, the method includes:
When receiving the data write request order of host transmission, judge that pending block number evidence is treated in NAND flash memory equipment Corresponding Page pages is operated in storage unit;
According to Page pages of type and the data characteristics of pending block number evidence, according to preset rules to described pending piece Data carry out complementary operation, and correspond to Page pages of meta-data region progress data processing method in the storage unit to be operated Mark;
To treated, the storage to be operated is written according to encoding, and by the coded data after coding in pending block number Unit.
Optionally, the method further includes:
Corresponding meta-data region, the meta-data region are set for each storage unit in the NAND flash memory equipment in advance For identifying the corresponding data processing method of the data of Page pages of write storage unit difference.
Optionally, it is described according to Page pages of type and the data characteristics of pending block number evidence, according to preset rules pair The pending block number is according to carrying out complementary operation, and correspond to Page pages of meta-data region into line number in the storage unit to be operated According to the mark of processing mode, including:
When being lower page page for described Page pages, whether the judgement pending block number 0 quantity in is more than 1 Quantity;If so, the corresponding data of bit each in the pending block number evidence are subjected to complementary operation, and the fortune that will negate It calculates corresponding data processing method mark and the meta-data region that the storage unit to be operated corresponds to Page pages is written;Otherwise, directly The pending block number evidence is performed the encoding operation.
Optionally, it is described according to Page pages of type and the data characteristics of pending block number evidence, according to preset rules pair The pending block number is according to carrying out complementary operation, and correspond to Page pages of meta-data region into line number in the storage unit to be operated According to the mark of processing mode, including:
When being upper page page for described Page pages, whether the judgement pending block number 1 quantity in is more than 0 Quantity;If so, the corresponding data of bit each in the pending block number evidence are subjected to complementary operation, and the fortune that will negate It calculates corresponding data processing method mark and the meta-data region that the storage unit to be operated corresponds to Page pages is written;Otherwise, directly The pending block number evidence is performed the encoding operation.
Optionally, after the storage unit to be operated is written in the coded data after encoding, the method further includes:
When receiving the data read request order that the host is sent, read from Page pages of storage unit to be operated Target data is taken, and the target data is decoded;
It obtains the target data and corresponds to identification information in Page pages of meta-data region;
Judge whether the identification information is the corresponding data processing method mark of complementary operation, if so, after decoding Block number in the corresponding data of each bit carry out complementary operation, and by obtained block number according to host is transferred to, otherwise, Decoded block number evidence is directly transferred to host.
It is still another aspect of the present invention to provide a kind of data processing equipment of NAND flash memory equipment, described device includes:
Determination module, in the data write request order for receiving host transmission, judging that pending block number evidence exists Corresponding Page pages in the storage unit to be operated of NAND flash memory equipment;
Data processing module, for the type according to Page pages and the data characteristics of pending block number evidence, according to default Rule, according to complementary operation is carried out, and corresponds to Page pages of meta-data region to the pending block number in the storage unit to be operated Carry out the mark of data processing method;
Command execution module, for the data processing module treated pending block number according to encoding, and will The storage unit to be operated is written in coded data after coding.
Optionally, described device further includes:
Configuration module, for being that each storage unit in the NAND flash memory equipment sets corresponding metadata in advance Area, the meta-data region are used to identify the corresponding data processing method of data of Page pages of write storage unit difference.
Optionally, the data processing module, specifically for when being lower page page for described Page pages, described in judgement Whether pending block number 0 quantity in is more than 1 quantity, if so, by each bit pair in the pending block number evidence The data answered carry out complementary operation, and the corresponding data processing method mark write-in of the complementary operation storage to be operated is single Member meta-data region Page pages corresponding;
The command execution module, the quantity being additionally operable to when in the pending block number evidence 0 are less than or equal to 1 quantity When, directly the pending block number evidence is performed the encoding operation.
Optionally, the data processing module, specifically for when being upper page page for described Page pages, described in judgement Whether pending block number 1 quantity in is more than 0 quantity, if so, by each bit pair in the pending block number evidence The data answered carry out complementary operation, and the corresponding data processing method mark write-in of the complementary operation storage to be operated is single Member meta-data region Page pages corresponding;
The command execution module, the quantity being additionally operable to when in the pending block number evidence 1 are less than or equal to 0 quantity When, directly the pending block number evidence is performed the encoding operation.
Optionally, the command execution module is additionally operable to the coded data after it will encode and the storage to be operated is written After unit, when receiving the data read request order that the host is sent, from Page pages of storage unit to be operated Target data is read, and the target data is decoded;
Described device further includes:
Acquisition module corresponds to the identification information in Page pages of meta-data region for obtaining the target data;
Correspondingly, the determination module, is additionally operable to judge whether the identification information is at the corresponding data of complementary operation Reason mode identifies;
The data processing module, it is fortune of negating to be additionally operable to when the judgement result of the determination module is the identification information When calculating corresponding data processing method mark, the corresponding data of bit each in decoded block number evidence are subjected to fortune of negating It calculates, and by obtained block number according to host is transferred to, otherwise, decoded block number evidence is directly transferred to host.
The data processing method and device of NAND flash memory equipment provided in an embodiment of the present invention receive the number of host transmission During according to write request order, according to corresponding Page pages of type in storage unit to be operated and the data of pending block number evidence Feature treats process block data according to preset rules and carries out complementary operation, and the member in the storage unit of NAND flash memory equipment Data field stores a small amount of information and corresponds to the corresponding data processing method of storage data in Page pages to identify the storage unit, and then It uses such information for reducing data reservation mistake, the error in data probability of happening of NAND flash memory equipment can be effectively reduced, Promote the overall performance of NAND flash memory equipment.
Above description is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, below the special specific embodiment for lifting the present invention.
Description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this field Technical staff will become clear.Attached drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is the structure diagram of NAND storage units;
Fig. 2 is the threshold voltage distribution schematic diagram of storage unit in MLC NAND flash memory equipments;
Fig. 3 is that storage unit threshold voltage shift caused by data reservation is wrong is illustrated in MLC NAND flash memory equipments Figure;
Fig. 4 is a kind of flow chart of the data processing method of NAND flash memory equipment of the embodiment of the present invention;
Fig. 5 is the specific process chart handled for the write operation of 4K bytes;
Fig. 6 is the specific process chart handled for the read operation of 4K bytes;
Fig. 7 is a kind of structure diagram of the data processing equipment of NAND flash memory equipment of the embodiment of the present invention;
Fig. 8 is a kind of structure diagram of the data processing equipment of NAND flash memory equipment of another embodiment of the present invention.
Specific embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
Those skilled in the art of the present technique are appreciated that unless otherwise defined all terms used herein are (including technology art Language and scientific terminology), there is the meaning identical with the general understanding of the those of ordinary skill in fields of the present invention.Should also Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art The consistent meaning of meaning, and unless by specific definitions, otherwise will not be explained with the meaning of idealization or too formal.
NAND flash memory equipment is a kind of nonvolatile memory of high-performance low-power-consumption, in storage industry now just To being more and more widely used, especially solid state disk is even more to develop rapidly.All the time, the manufacturing process of nand flash memory is more next It is smaller.Fig. 1 is the structure diagram of NAND storage units, and referring to Fig. 1, each NAND storage units are from an only bit data SLC develops to MLC/TLC now.The benefit of these development is it is clear that the quantity of storage unit is continuous on same area Increase, therefore cost constantly declines.But incident challenge is that the distance between each storage unit is less and less, oxygen Change layer is more and more thinner, and the interference of consecutive storage unit electric signal is more and more stronger, therefore error in data is more and more.
Fig. 2 is the threshold voltage distribution schematic diagram of storage unit in MLC NAND flash memory equipments, referring to Fig. 2, for MLC For nand flash memory, a storage unit deposits 2 bit datas, and one of bit belongs to lower page, another bit belongs to upper page.Storage unit can be programmed into 4 kinds of different threshold voltages according to this 2 bit data.In Fig. 2, when storage data During for 11 (data mode data state being 0), the threshold voltage of storage unit meets leftmost Gaussian Profile;When storage number According to for 01 (data state be 1, upper page be 0, lower page for 1) when, the threshold voltage of storage unit meets time The Gaussian Profile on the left side;When it is 00 (data state are 2) to store data, the threshold voltage of storage unit meets time the right Gaussian Profile;When it is 10 (data state are that 3, upper page are 1, lowerpage 0) to store data, storage unit Threshold voltage meet the Gaussian Profile of rightmost.
After a storage unit programs, as time goes by, the charge of storage may escape, so as to which number occur According to reservation mistake.This mistake can cause the threshold voltage of this storage unit that can reduce, as shown in Figure 3.An as it can be seen that storage The thermal balance voltage of unit is in 0V or so, so threshold voltage is higher, charge effusion may more occur, protected so as to cause data Stay mistake., it was also found that retaining mistake for data, the mistake that upper page occur from 1 to 0 is relatively more, and lower in statistics The mistake that page occurs from 0 to 1 is relatively more.
For this purpose, retain mistake by reducing the probability of data 10 and 00 to reduce data an embodiment of the present invention provides a kind of Data processing method, under the premise of not increasing excessive redundant digit, preventing take up excessive memory space, to be effectively reduced The error in data probability of happening of NAND flash memory equipment promotes the overall performance of NAND flash memory equipment.
Fig. 4 diagrammatically illustrates the flow chart of the data processing method of the NAND flash memory equipment of one embodiment of the invention. With reference to Fig. 4, the data processing method of the NAND flash memory equipment of the embodiment of the present invention specifically includes following steps:
S11, when receiving the data write request order of host transmission, judge pending block number according in NAND flash memory equipment Storage unit to be operated in corresponding Page pages.
S12, according to Page pages of type and the data characteristics of pending block number evidence, wait to locate to described according to preset rules Block number is managed according to progress complementary operation, and Page pages of meta-data region progress data processing side is corresponded in the storage unit to be operated The mark of formula.
S13, to treated, pending block number is according to encoding, and the coded data write-in after coding is described to be operated Storage unit.
The data processing method of NAND flash memory equipment provided in an embodiment of the present invention receives the data write-in of host transmission During request command, according to corresponding Page pages of type in storage unit to be operated and the data characteristics of pending block number evidence, Process block data, which are treated, according to preset rules carries out complementary operation, and the meta-data region in the storage unit of NAND flash memory equipment It stores a small amount of information and corresponds to the corresponding data processing method of storage data in Page pages, and then utilize this to identify the storage unit A little information retain mistake to reduce data, can be effectively reduced the error in data probability of happening of NAND flash memory equipment, are promoted The overall performance of NAND flash memory equipment.
Further, the method further includes corresponds in advance for each storage unit setting in the NAND flash memory equipment Meta-data region the step of.Wherein, the meta-data region is corresponding for identifying the data of Page pages of write storage unit difference Data processing method.
In the embodiment of the present invention, step S12 can further include following two situations, specific as follows:
When being lower page page for described Page pages, whether the judgement pending block number 0 quantity in is more than 1 Quantity;If so, the corresponding data of bit each in the pending block number evidence are subjected to complementary operation, and the fortune that will negate It calculates corresponding data processing method mark and the meta-data region that the storage unit to be operated corresponds to Page pages is written;Otherwise, directly The pending block number evidence is performed the encoding operation.
When being not lower page page for described Page pages namely when being upper page page for described Page pages, judgement Whether the pending block number 1 quantity in is more than 0 quantity;If so, by each bit in the pending block number evidence The corresponding data in position carry out complementary operation, and to be operated deposit the corresponding data processing method mark write-in of complementary operation is described Storage unit corresponds to Page pages of meta-data region;Otherwise, directly the pending block number evidence is performed the encoding operation.
Technical solution of the present invention is explained by taking MLC NAND flash memory equipments as an example below.
When MLC nand flash memories are applied to solid state disk, accessed in a manner of block device.The size of one block is more For 512 bytes or 4K bytes.In the embodiment of the present invention by taking 4K bytes as an example.When 4K byte datas are written in host, solid state disk Main controller can be encoded according to the BCH/LDPC technologies of use, while for each 4K byte data, and main controller all can The metadata of a little byte is added, for storing the management information of data.The data method that the embodiment of the present invention proposes is exactly profit Retain mistake with the memory block of metadata to reduce the data of nand flash memory.
For solid state disk, the reliability of data is most important.According to Law of Barrel, the reliability of data occurs Problem is frequently experienced in worst situation.Especially present solid state disk capacity is increasing, and small probability event also can be with The increase of statistical sample and become very important.For example, for data retain mistake, if the data stored in NAND All being 10, (it is 1, lower page for 0) that data state, which are 3, upper page, then many data may occur and protect Stay mistake, it is likely that more than the error correcting capability of the technologies such as BCH/LDPC, so as to cause irrecoverable error, influence data can By property.Therefore, the data processing method that the embodiment of the present invention proposes seeks to prevent the generation of this extreme case.Meanwhile it is Reduction redundant digit occupies too many memory space, and for one piece of (512 bytes or 4K bytes) data, the embodiment of the present invention is only in member Data field stores a small amount of bit and carrys out mark data processing mode.Referring to Fig. 5, Fig. 5 is the tool handled for the write operation of 4K bytes Body process chart, specifically includes:When receiving the data write request order of host transmission, the use in initialization metadata area In the identification information of the corresponding data processing method of data of Page pages of write storage unit difference of mark, in a specific implementation In example, which can be set as 0.For the block number evidence of the lower page in storage unit to be operated, if original 0 quantity is more than 1 quantity in data, then by monoblock data reversal, that is, carries out complementary operation, and store 1 in meta-data region, with The data for representing corresponding Page pages of the storage unit are the data after data reversal, subsequently to carry out digital independent When, obtain initial data by carrying out corresponding reverse turn operation.If 0 quantity is less than or equal to 1 quantity in initial data, Monoblock data are not inverted then, and 0 is stored in meta-data region, be with the data for representing corresponding Page pages of the storage unit Without the data that data reversal is handled, it can subsequently be directly read and send host.It then, will be after complementary operation Data are encoded by BCH/LDPC error correcting techniques, and are sent to storage unit.For the upper in storage unit to be operated The block number evidence of page if 1 quantity is more than 0 quantity in initial data, is deposited by monoblock data reversal, and in meta-data region Storage 1.If 1 quantity is less than or equal to 0 quantity in initial data, monoblock data are not inverted, and in meta-data region Storage 0.
In the embodiment of the present invention, after the storage unit to be operated is written in the coded data after encoding, the side Method is further comprising the steps of:
When receiving the data read request order that the host is sent, read from Page pages of storage unit to be operated Target data is taken, and the target data is decoded;
It obtains the target data and corresponds to identification information in Page pages of meta-data region;
Judge whether the identification information is the corresponding data processing method mark of complementary operation, if so, after decoding Block number in the corresponding data of each bit carry out complementary operation, and by obtained block number according to host is transferred to, otherwise, Decoded block number evidence is directly transferred to host.
In a specific embodiment, referring to Fig. 6, Fig. 6 is the specific processing stream handled for the read operation of 4K bytes Cheng Tu is specifically included:When receiving the data read request order of host transmission, read from Page pages of storage unit to be operated Access evidence, and pass through BCH/LDPC error correcting techniques and the data read are decoded, then obtain Page pages of storage data Meta-data region in identification information, if the identification information of meta-data region be 1, then it represents that Page pages of the data are by data Therefore the corresponding data of bit each in decoded block number evidence, are carried out complementary operation, and incite somebody to action by the data after reversion To block number according to being transferred to host, otherwise directly by decoded block number according to being transferred to host.
The data processing method of NAND flash memory equipment provided in an embodiment of the present invention, with reference to error correction such as general BCH/LDPC Technology, in the mould for carrying out mark data using NAND FLASH as the meta-data region a small amount of information of storage in the block device of storage medium Formula uses such information for reducing data reservation mistake, is effectively reduced the error in data probability of happening of NAND flash memory equipment.
Technical solution provided in an embodiment of the present invention is not limited only to MLC NAND flash memory equipments, for TLC and SLC NAND Flash memory device is equally applicable, for the data processing method embodiment of TLC and SLC NAND flash memory equipments, due to its with The data processing method embodiment of MLC NAND flash memory equipments is substantially similar, therefore does not do excessive description, and related part can be found in The part explanation of the data processing method embodiment of MLC NAND flash memory equipments.
In addition, technical solution provided in an embodiment of the present invention, is not limited only to solid state disk application, for NAND FLASH For other block devices of storage medium, simply by the presence of meta-data region, can be set using nand flash memory provided in an embodiment of the present invention Standby data processing method, to be effectively reduced the error in data probability of happening of NAND flash memory equipment.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but this field Technical staff should know that the embodiment of the present invention is not limited by described sequence of movement, because implementing according to the present invention Example, certain steps may be used other sequences or are carried out at the same time.Secondly, those skilled in the art should also know, specification Described in embodiment belong to preferred embodiment, necessary to the involved action not necessarily embodiment of the present invention.
Fig. 7 diagrammatically illustrates the structural representation of the data processing equipment of the NAND flash memory equipment of one embodiment of the invention Figure.The data processing equipment of the NAND flash memory equipment of the embodiment of the present invention can be set in the main controller of NAND flash memory equipment, Or it is realized by main controller.With reference to Fig. 7, the data processing equipment of the NAND flash memory equipment of the embodiment of the present invention, which specifically includes, to be sentenced Cover half block 701, data processing module 702 and command execution module 703, wherein:The determination module 701, for connecing When receiving the data write request order of host transmission, judge pending block number according to the storage list to be operated in NAND flash memory equipment Corresponding Page pages in member;The data processing module 702, for the type according to Page pages and pending block number evidence Data characteristics, according to preset rules to the pending block number according to progress complementary operation, and in the storage unit pair to be operated Answer the mark of Page pages of meta-data region progress data processing method;The command execution module 703, for the data Treated the pending block number of processing module 702 to be operated is deposited according to being encoded, and by the coded data write-in after coding is described Storage unit.
The data processing equipment of NAND flash memory equipment provided in an embodiment of the present invention is write in the data for receiving host transmission When entering request command, according to the data of corresponding Page pages of type in storage unit to be operated and pending block number evidence spy Sign treats process block data according to preset rules and carries out complementary operation, and first number in the storage unit of NAND flash memory equipment A small amount of information, which is stored, according to area corresponds to the corresponding data processing method of storage data, Jin Erli in Page pages to identify the storage unit Retain mistake to reduce data with these information, the error in data probability of happening of NAND flash memory equipment can be effectively reduced, carried Rise the overall performance of NAND flash memory equipment.
In an alternate embodiment of the present invention where, the data processing equipment of the NAND flash memory equipment is further included in attached drawing Unshowned configuration module, the configuration module, for being that each storage unit in the NAND flash memory equipment is set in advance Corresponding meta-data region is put, the meta-data region is used at the corresponding data of data for identifying Page pages of write storage unit difference Reason mode.
In the embodiment of the present invention, the data processing module 702 is lowerpage pages specifically for working as described Page pages When, whether the judgement pending block number 0 quantity in is more than 1 quantity, if so, the pending block number is every in The corresponding data of one bit carry out complementary operation, and will be treated described in the corresponding data processing method mark write-in of complementary operation Operation storage unit corresponds to Page pages of meta-data region;
The command execution module 703, the quantity being additionally operable to when in the pending block number evidence 0 are less than or equal to 1 number During amount, directly the pending block number evidence is performed the encoding operation.
In the embodiment of the present invention, the data processing module 702 is upperpage pages specifically for working as described Page pages When, whether the judgement pending block number 1 quantity in is more than 0 quantity, if so, the pending block number is every in The corresponding data of one bit carry out complementary operation, and will be treated described in the corresponding data processing method mark write-in of complementary operation Operation storage unit corresponds to Page pages of meta-data region;
The command execution module 703, the quantity being additionally operable to when in the pending block number evidence 1 are less than or equal to 0 number During amount, directly the pending block number evidence is performed the encoding operation.
In an alternate embodiment of the present invention where, the command execution module 703, the coding being additionally operable to after it will encode Data are written after the storage unit to be operated, when receiving the data read request order that the host is sent, from treating Target data is read, and the target data is decoded in Page pages of operation storage unit.
Correspondingly, with reference to Fig. 8, described device further includes acquisition module 704, the acquisition module 704, for obtaining It states target data and corresponds to identification information in Page pages of meta-data region;
Further, the determination module 701 is additionally operable to judge whether the identification information is that complementary operation is corresponding Data processing method identifies;
The data processing module 702, it is the identification information to be additionally operable to when the judgement result of the determination module 701 When being complementary operation corresponding data processing method mark, by decoded block number in the corresponding data of each bit into Row complementary operation, and by obtained block number according to host is transferred to, otherwise, decoded block number evidence is directly transferred to host.
For device embodiment, since it is basicly similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
The data processing method and device of NAND flash memory equipment provided in an embodiment of the present invention receive the number of host transmission During according to write request order, according to corresponding Page pages of type in storage unit to be operated and the data of pending block number evidence Feature treats process block data according to preset rules and carries out complementary operation, and the member in the storage unit of NAND flash memory equipment Data field stores a small amount of information and corresponds to the corresponding data processing method of storage data in Page pages to identify the storage unit, and then It uses such information for reducing data reservation mistake, the error in data probability of happening of NAND flash memory equipment can be effectively reduced, Promote the overall performance of NAND flash memory equipment.
The apparatus embodiments described above are merely exemplary, wherein the unit illustrated as separating component can To be or may not be physically separate, the component shown as unit may or may not be physics list Member, you can be located at a place or can also be distributed in multiple network element.It can be selected according to the actual needs In some or all of module realize the purpose of this embodiment scheme.Those of ordinary skill in the art are not paying creativeness Labour in the case of, you can to understand and implement.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It is realized by the mode of software plus required general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, on Technical solution is stated substantially in other words to embody the part that the prior art contributes in the form of software product, it should Computer software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including several fingers It enables and (can be personal computer, server or the network equipment etc.) so that computer equipment is used to perform each implementation Method described in certain parts of example or embodiment.
In addition, it will be appreciated by those of skill in the art that although some embodiments in this include institute in other embodiments Including certain features rather than other feature, but the combination of the feature of different embodiment means in the scope of the present invention Within and form different embodiments.For example, in the following claims, embodiment claimed it is arbitrary it One mode can use in any combination.
Finally it should be noted that:The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although The present invention is described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that:It still may be used To modify to the technical solution recorded in foregoing embodiments or carry out equivalent replacement to which part technical characteristic; And these modification or replace, various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution spirit and Range.

Claims (10)

1. a kind of data processing method of NAND flash memory equipment, which is characterized in that including:
When receiving the data write request order of host transmission, judge pending block number according in the to be operated of NAND flash memory equipment Corresponding Page pages in storage unit;
According to Page pages of type and the data characteristics of pending block number evidence, according to preset rules to the pending block number evidence Carry out complementary operation, and the storage unit to be operated corresponds to Page pages meta-data region progress data processing method mark Know;
To treated, pending block number is according to encoding, and the coded data write-in storage to be operated after coding is single Member;
Wherein, it is described according to Page pages of type and the data characteristics of pending block number evidence, it is treated according to preset rules to described Process block data carry out complementary operation, and correspond to Page pages of meta-data region progress data processing in the storage unit to be operated The mark of mode, including:When being upper page page for described Page pages, the judgement pending block number 1 quantity in is It is no be more than 0 quantity;If so, the corresponding data of bit each in the pending block number evidence are subjected to complementary operation, And the corresponding data processing method mark write-in of the complementary operation storage unit to be operated is corresponded to Page pages of meta-data region.
2. according to the method described in claim 1, it is characterized in that, the method further includes:
Corresponding meta-data region is set for each storage unit in the NAND flash memory equipment in advance, the meta-data region is used for Identify the corresponding data processing method of data of Page pages of write storage unit difference.
3. method according to claim 1 or 2, which is characterized in that described according to Page pages of type and pending piece The data characteristics of data, according to preset rules to the pending block number according to progress complementary operation, and in the storage to be operated Unit corresponds to the mark of Page pages of meta-data region progress data processing method, further includes:
When being lower page page for described Page pages, whether the judgement pending block number 0 quantity in is more than 1 number Amount;If so, the corresponding data of each bit carry out complementary operation in by the pending block number, and by complementary operation The meta-data region that the storage unit to be operated corresponds to Page pages is written in corresponding data processing method mark;Otherwise, it is directly right The pending block number evidence performs the encoding operation.
4. method according to claim 1 or 2, which is characterized in that the method further includes:
When being upper page page for described Page pages, and the pending block number 1 quantity in is less than or equal to 0 quantity When, directly the pending block number evidence is performed the encoding operation.
5. according to the method described in claim 1, it is characterized in that, coded data write-in after it will encode is described to be operated deposits After storage unit, the method further includes:
When receiving the data read request order that the host is sent, mesh is read from Page pages of storage unit to be operated Data are marked, and the target data is decoded;
It obtains the target data and corresponds to identification information in Page pages of meta-data region;
Judge whether the identification information is the corresponding data processing method mark of complementary operation, if so, by decoded piece The corresponding data of each bit carry out complementary operation in data, and by obtained block number according to host is transferred to, otherwise, directly Decoded block number evidence is transferred to host.
6. a kind of data processing equipment of NAND flash memory equipment, which is characterized in that including:
Determination module, in the data write request order for receiving host transmission, judging pending block number according in NAND Corresponding Page pages in the storage unit to be operated of flash memory device;
Data processing module, for the type according to Page pages and the data characteristics of pending block number evidence, according to preset rules To the pending block number according to progress complementary operation, and Page pages of meta-data region progress is corresponded in the storage unit to be operated The mark of data processing method;
Command execution module, for the data processing module treated pending block number according to encoding, and will coding The storage unit to be operated is written in coded data afterwards;
The data processing module, specifically for when being upper page page for described Page pages, judging the pending block number Whether 1 quantity is more than 0 quantity in, if so, the corresponding data of bit each in the pending block number evidence are equal Complementary operation is carried out, and the storage unit to be operated is written into the corresponding data processing method mark of complementary operation and corresponds to Page The meta-data region of page.
7. device according to claim 6, which is characterized in that described device further includes:
Configuration module, for being that each storage unit in the NAND flash memory equipment sets corresponding meta-data region, institute in advance Meta-data region is stated for identifying the corresponding data processing method of data of Page pages of write storage unit difference.
8. the device described according to claim 6 or 7, which is characterized in that the data processing module is specifically additionally operable to when described Page pages when being lower page page, whether the judgement pending block number 0 quantity in is more than 1 quantity, if so, by The corresponding data of the pending block number each bit in carry out complementary operation, and will be at the corresponding data of complementary operation Reason mode, which identifies, is written the meta-data region that the storage unit to be operated corresponds to Page pages;
The command execution module is additionally operable to when 0 quantity is less than or equal to 1 quantity to the pending block number in, directly It connects and the pending block number evidence is performed the encoding operation.
9. the device described according to claim 6 or 7, which is characterized in that the command execution module is additionally operable to wait to locate when described When 1 quantity is less than or equal to 0 quantity in reason block number evidence, directly the pending block number evidence is performed the encoding operation.
10. device according to claim 6, which is characterized in that the command execution module is additionally operable to after it will encode Coded data is written after the storage unit to be operated, when receiving the data read request order that the host is sent, Target data is read from Page pages of storage unit to be operated, and the target data is decoded;
Described device further includes:
Acquisition module corresponds to the identification information in Page pages of meta-data region for obtaining the target data;
Correspondingly, the determination module, is additionally operable to judge whether the identification information is the corresponding data processing side of complementary operation Formula identifies;
The data processing module, it is complementary operation pair to be additionally operable to when the judgement result of the determination module is the identification information During the data processing method mark answered, the corresponding data of bit each in decoded block number evidence are subjected to complementary operation, And by obtained block number according to host is transferred to, otherwise, decoded block number evidence is directly transferred to host.
CN201710251994.8A 2017-04-17 2017-04-17 The data processing method and device of a kind of NAND flash memory equipment Active CN107102820B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201710251994.8A CN107102820B (en) 2017-04-17 2017-04-17 The data processing method and device of a kind of NAND flash memory equipment
PCT/CN2018/083355 WO2018192488A1 (en) 2017-04-17 2018-04-17 Data processing method and apparatus for nand flash memory device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710251994.8A CN107102820B (en) 2017-04-17 2017-04-17 The data processing method and device of a kind of NAND flash memory equipment

Publications (2)

Publication Number Publication Date
CN107102820A CN107102820A (en) 2017-08-29
CN107102820B true CN107102820B (en) 2018-07-06

Family

ID=59657032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710251994.8A Active CN107102820B (en) 2017-04-17 2017-04-17 The data processing method and device of a kind of NAND flash memory equipment

Country Status (2)

Country Link
CN (1) CN107102820B (en)
WO (1) WO2018192488A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107102820B (en) * 2017-04-17 2018-07-06 北京得瑞领新科技有限公司 The data processing method and device of a kind of NAND flash memory equipment
CN111488122A (en) * 2017-10-25 2020-08-04 华为技术有限公司 Data writing method and storage device
CN109407989B (en) * 2018-10-18 2022-02-18 郑州云海信息技术有限公司 Method and device for flashing metadata
WO2020082348A1 (en) * 2018-10-26 2020-04-30 Yangtze Memory Technologies Co., Ltd. Data processing method for memory and related data processor
CN110704235B (en) * 2019-09-23 2023-03-21 深圳忆联信息系统有限公司 SSD data protection method and device, computer equipment and storage medium
CN114281271B (en) * 2022-03-07 2022-05-13 北京得瑞领新科技有限公司 Method for judging reliability of NAND flash memory data, storage medium and storage device
CN115617567B (en) * 2022-12-16 2023-04-14 珠海妙存科技有限公司 Data recovery method and device of flash memory, electronic equipment and medium
CN116757158B (en) * 2023-08-11 2024-01-23 深圳致赢科技有限公司 Data management method based on semiconductor storage

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101025792A (en) * 2006-02-17 2007-08-29 游旭 Audio book and pickup body
CN100468576C (en) * 2007-05-30 2009-03-11 忆正存储技术(深圳)有限公司 Flash memory data read-write processing method
KR100857252B1 (en) * 2007-12-27 2008-09-05 (주)인디링스 Flash memory device and flash memory programming method equalizing wear-level
US9170933B2 (en) * 2010-06-28 2015-10-27 International Business Machines Corporation Wear-level of cells/pages/sub-pages/blocks of a memory
JP5962258B2 (en) * 2012-06-29 2016-08-03 富士通株式会社 Data conversion method, data conversion apparatus, and data conversion program
CN103578565B (en) * 2012-07-19 2017-06-20 百富计算机技术(深圳)有限公司 The method of calibration and device of a kind of NAND Flash memory chips
CN104715102B (en) * 2014-12-30 2018-05-08 华立科技股份有限公司 The design method of intelligent electric energy meter load curve based on dichotomy
CN107102820B (en) * 2017-04-17 2018-07-06 北京得瑞领新科技有限公司 The data processing method and device of a kind of NAND flash memory equipment

Also Published As

Publication number Publication date
WO2018192488A1 (en) 2018-10-25
CN107102820A (en) 2017-08-29

Similar Documents

Publication Publication Date Title
CN107102820B (en) The data processing method and device of a kind of NAND flash memory equipment
US8732538B2 (en) Programmable data storage management
JP5658128B2 (en) System, method, and computer program for probabilistic multilayer error correction in NAND flash memory
CN103782266B (en) Apparatuses and methods of operating for memory endurance
CN101719100B (en) Compression based wear leveling for non-volatile memory
KR101300821B1 (en) Apparatus and method for preventing data loss of non-volatile memory
US9251900B2 (en) Data scrambling based on transition characteristic of the data
CN102346652A (en) Flash storing device and method for managing flash storing device
US20170185328A1 (en) Nand flash storage error mitigation systems and methods
US20160283319A1 (en) Data storage device and encoding method thereof
CN113611350A (en) Mobile data storage
CN113168562A (en) Optimized neural network data organization
DE102015209502A1 (en) Mark programming in nonvolatile memories
WO2021011078A1 (en) Use of error correction codes to prevent errors in neighboring storage
KR20210150966A (en) Method of decoding error correction code by applying machine learning and decoder using the same
CN114730596A (en) QLC programming method using fine data grading
CN117079704A (en) Soft decoding correctable page-aided LLR estimation
US20140351495A1 (en) Local checkpointing using a multi-level cell
CN117693758A (en) Hybrid memory management for non-volatile memory (NVM) devices for use with recurrent neural networks
TWI661300B (en) Data management method for memory and memory apparatus
US9239751B1 (en) Compressing data from multiple reads for error control management in memory systems
US20160320973A1 (en) Data writing method, memory control circuit unit and memory storage apparatus
TW202145231A (en) Memory apparatus
CN104281537B (en) A kind of internal memory clone method and device
US20180182453A1 (en) Data mapping enabling fast read multi-level 3d nand to improve lifetime capacity

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 14th Floor of Shining Building, 35 College Road, Haidian District, Beijing, 100083 (1407-005)

Patentee after: Beijing Purple Light Technology Co., Ltd.

Address before: 14th Floor of Shining Building, 35 College Road, Haidian District, Beijing, 100083 (1407-005)

Patentee before: Beijing New Technology Co., Ltd.

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 14th Floor of Shining Building, 35 College Road, Haidian District, Beijing, 100083 (1407-005)

Patentee after: BEIJING DERA TECHNOLOGY Co.,Ltd.

Address before: 14th Floor of Shining Building, 35 College Road, Haidian District, Beijing, 100083 (1407-005)

Patentee before: BEIJING ZIGUANG DERA TECHNOLOGY Co.,Ltd.

CP01 Change in the name or title of a patent holder