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.
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.