CN104035832B - Electronic equipment and data verification method - Google Patents

Electronic equipment and data verification method Download PDF

Info

Publication number
CN104035832B
CN104035832B CN201310068371.9A CN201310068371A CN104035832B CN 104035832 B CN104035832 B CN 104035832B CN 201310068371 A CN201310068371 A CN 201310068371A CN 104035832 B CN104035832 B CN 104035832B
Authority
CN
China
Prior art keywords
data
decoding
reading
unit
control unit
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
CN201310068371.9A
Other languages
Chinese (zh)
Other versions
CN104035832A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310068371.9A priority Critical patent/CN104035832B/en
Publication of CN104035832A publication Critical patent/CN104035832A/en
Application granted granted Critical
Publication of CN104035832B publication Critical patent/CN104035832B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Detection And Correction Of Errors (AREA)

Abstract

The invention discloses a kind of electronic equipment and its data verification methods.The electronic equipment has the storage unit for storing data and the first decoding unit for performing the first data solution code check and the second decoding unit for performing the verification of the second correcting data error, and the data verification method includes:Data read command is received, and reads corresponding coded data;For reading coded data perform the first data solution code check and second correcting data error verification it is at least one, to obtain decoding data;And the decoding data is sent as the reading of the data read command as a result, wherein, the required power consumption for performing the first data solution code check is different from performing the required power consumption of the second correcting data error verification.

Description

Electronic equipment and data verification method
Technical field
The present invention relates to electronic device field, and more particularly to a kind of electronic equipment and its data verification method.
Background technology
Have existed a variety of data coding and decoding schemes for adding in data check and error correction, such as CRC(Cyclic redundancy school It tests)Encoding scheme, ECC(Error check and correction)Encoding scheme, LDPC(Low density parity check code)Encoding scheme, BCH are compiled Code scheme etc..Different encoding schemes has different verifications and error correcting capability, and is suitable for different application scenarios, simultaneously It has different realization difficulty and overhead accordingly.
Using such as SSD(Solid state disk)In the electronic equipment of storage device, if using rudimentary coding and decoding scheme (Such as CRC encoding schemes)For the verification and error correction of data, then may not meet the needs of equipment is for reading and writing data precision. If on the contrary, using advanced coding and decoding scheme(Such as ECC encoding schemes), then its need more system resources and improve System power dissipation, this is weaker for processing capacity and to have for equipment cruising ability in required electronic equipment be that cannot make us Satisfied.Accordingly, it is desirable to provide a kind of electronic equipment and its data verification method, can realize reading and writing data precision and equipment System resource and power consumption demand are distributed rationally.
Invention content
In view of the above, the present invention provides a kind of electronic equipment and its data verification method, by according to all Read access time as read data requires, the history error code of the service life of storage unit and storage region residing for reading data Record, required checkschema is optimally selected in quick low-power consumption solution code check and high power consumption error checking and correction, so as to Enough realize distributing rationally for reading and writing data precision and apparatus system resource and power consumption demand.
According to one embodiment of present invention, a kind of data verification method is provided, applied to an electronic equipment, the electricity Sub- equipment have for store data storage unit and for perform the first data solution code check the first decoding unit and For performing the second decoding unit of the second correcting data error verification, the data verification method includes:Receive data read command, And read corresponding coded data;The first data solution code check and second number are performed for the coded data of reading According at least one of error checking and correction, to obtain decoding data;And the decoding data is sent as the data read command Reading as a result, wherein, the required power consumption for performing the first data solution code check is different from performing second correcting data error The required power consumption of verification.
In addition, data verification method according to an embodiment of the invention, wherein the coded data for reading performs The first data solution code check and second correcting data error verification it is at least one, included with obtaining decoding data:For The coded data of reading performs the first data solution code check, to obtain the first decoding data;Judge the first data solution The result of code check indicates that first decoding data whether there is mistake;If mistake is not present in first decoding data, Then determine first decoding data as the reading result;If first decoding data is there are mistake, for reading The coded data taken performs the second correcting data error verification, to obtain the second decoding data, and determines second decoding Data are as the reading result.
In addition, data verification method according to an embodiment of the invention, wherein the coded data for reading performs The first data solution code check and second correcting data error verification it is at least one, included with obtaining decoding data:Judge The time attribute for reading instruction, if the time attribute indicates that the permission read access time of the data read command is less than Predetermined read access time threshold value then performs the first data solution code check for the coded data of reading, to obtain the first decoding Data, and determine first decoding data as the reading result;And if the time attribute indicates the number It is greater than or equal to predetermined read access time threshold value according to the permission read access time for reading instruction, then institute is performed for the coded data of reading The first data solution code check is stated, to obtain the first decoding data;Judge described in the result instruction of the first data solution code check First decoding data whether there is mistake;If mistake is not present in first decoding data, it is determined that the first solution yardage According to as the reading result;If first decoding data is there are mistake, for described in the coded data execution of reading Second correcting data error verifies, and to obtain the second decoding data, and determines second decoding data as the reading result.
In addition, data verification method according to an embodiment of the invention, wherein the coded data for reading performs The first data solution code check and second correcting data error verification it is at least one, included with obtaining decoding data:Judge The usage time parameter of the storage unit, if the usage time parameter indicates that the usage time of the storage unit is less than Predetermined usage time threshold value then performs the first data solution code check for the coded data of reading, to obtain the first decoding Data, and determine first decoding data as the reading result;And if the usage time parameter indicates institute The usage time for stating storage unit is greater than or equal to predetermined usage time threshold value, then performs described for the coded data of reading Two data solution code checks to obtain the second decoding data, and determine second decoding data as the reading result.
In addition, data verification method according to an embodiment of the invention, wherein the coded data for reading performs The first data solution code check and second correcting data error verification it is at least one, included with obtaining decoding data:Judge The history error code parameter of the corresponding region for the storage unit that the data read command corresponds to, if the history error code parameter The history bit error rate of the storage unit is indicated less than predetermined bit error rate threshold, then described the is performed for the coded data of reading One data solution code check to obtain the first decoding data, and determines first decoding data as the reading result;With And if the history error code parameter indicates that the history bit error rate of the storage unit is greater than or equal to predetermined bit error rate threshold, The second data solution code check is performed for the coded data of reading, to obtain the second decoding data, and determines described the Two decoding datas are as the reading result.
According to another embodiment of the present invention, a kind of electronic equipment is provided, including:Control unit;First decoding unit, For performing the first data solution code check;Second decoding unit, for performing the verification of the second correcting data error;And storage unit, For storing data, wherein, described control unit receives data read command, and reads corresponding compile from the storage unit Code data;Described control unit controls at least one for reading of first decoding unit and second decoding unit Coded data performs decoding, to obtain decoding data;And described control unit sends the decoding data as the data The reading of instruction is read as a result, wherein, the required power consumption of first decoding unit is different from the institute of second decoding unit Need power consumption.
In addition, electronic equipment according to another embodiment of the present invention, wherein described control unit control first solution At least one coded data for reading of code unit and second decoding unit performs decoding, to obtain decoding data packet It includes:Described control unit controls first decoding unit to perform first data for the coded data of reading and decodes school It tests, to obtain the first decoding data;Described control unit judges the result instruction described first of the first data solution code check Decoding data whether there is mistake;If mistake is not present in first decoding data, it is determined that first decoding data is made For the reading result;If there are mistake, described control unit control the second decoding lists for first decoding data Member performs second correcting data error for the coded data of reading and verifies, and to obtain the second decoding data, and determines described Second decoding data is as the reading result.
In addition, electronic equipment according to another embodiment of the present invention, wherein described control unit control first solution At least one coded data for reading of code unit and second decoding unit performs decoding, to obtain decoding data packet It includes:Described control unit judges the time attribute for reading instruction, if the time attribute indicates that the digital independent refers to The permission read access time of order is less than predetermined read access time threshold value, then described control unit controls first decoding unit for reading The coded data taken performs the first data solution code check, to obtain the first decoding data, and determines first decoding Data are as the reading result;And if the time attribute indicates that the permission read access time of the data read command is big In or equal to predetermined read access time threshold value, then described control unit control first decoding unit is for the coded data of reading The first data solution code check is performed, to obtain the first decoding data;Described control unit judges the first data decoding The result of verification indicates that first decoding data whether there is mistake;If mistake is not present in first decoding data, Determine first decoding data as the reading result;If there are mistake, the controls for first decoding data Unit controls second decoding unit to perform second correcting data error for the coded data of reading and verifies, to obtain second Decoding data, and determine second decoding data as the reading result.
In addition, electronic equipment according to another embodiment of the present invention, wherein described control unit control first solution At least one coded data for reading of code unit and second decoding unit performs decoding, to obtain decoding data packet It includes:Described control unit judges the usage time parameter of the storage unit, if deposited described in usage time parameter instruction The usage time of storage unit is less than predetermined usage time threshold value, then described control unit controls first decoding unit for reading The coded data taken performs the first data solution code check, to obtain the first decoding data, and determines first decoding Data are as the reading result;And if the usage time parameter indicate the usage time of the storage unit be more than or Equal to predetermined usage time threshold value, then described control unit control second decoding unit is for the coded data execution of reading The second data solution code check to obtain the second decoding data, and determines second decoding data as the reading As a result.
In addition, electronic equipment according to another embodiment of the present invention, wherein described control unit control first solution At least one coded data for reading of code unit and second decoding unit performs decoding, to obtain decoding data packet It includes:Described control unit judges the history error code parameter of the corresponding region for the storage unit that the data read command corresponds to, If the history error code parameter indicates the history bit error rate of the storage unit less than predetermined bit error rate threshold, the control Unit controls first decoding unit to perform the first data solution code check for the coded data of reading, to obtain first Decoding data, and determine first decoding data as the reading result;And if the history error code parameter refers to Show that the history bit error rate of the storage unit is greater than or equal to predetermined bit error rate threshold, then described control unit control described second Decoding unit performs the second data solution code check for the coded data of reading, to obtain the second decoding data, and really Fixed second decoding data is as the reading result.
Electronic equipment and its data verification method according to embodiments of the present invention, by according to the reading for such as reading data The history error code record of time requirement, the service life of storage unit and storage region residing for reading data is taken, quick Required checkschema is optimally selected in low-power consumption solution code check and high power consumption error checking and correction, so as to realize reading and writing data Precision and apparatus system resource and power consumption demand are distributed rationally.
Description of the drawings
Fig. 1 is the block diagram of diagram electronic equipment according to embodiments of the present invention;
Fig. 2 is the flow chart for illustrating data verification method according to a first embodiment of the present invention;
Fig. 3 is the flow chart for illustrating data verification method according to a second embodiment of the present invention;
Fig. 4 is the flow chart for illustrating data verification method according to a third embodiment of the present invention;
Fig. 5 is the flow chart for illustrating data verification method according to a fourth embodiment of the present invention;And
Fig. 6 is the flow chart for illustrating data verification method according to a fifth embodiment of the present invention;
Specific embodiment
Hereinafter, multiple embodiments, application and modification are described with reference to the accompanying drawings.In addition, the embodiments described below is excellent The particular example of choosing, and there is provided technically preferred various limitations, but in the following description, the present invention is not restricted to these Embodiment.
First, will electronic equipment according to embodiments of the present invention be described with reference to Fig. 1.The electronic equipment is preferably e.g. Personal computer, smart mobile phone, personal digital assistant, palm PC etc..
Fig. 1 is the block diagram of diagram electronic equipment according to embodiments of the present invention.As shown in Figure 1, according to embodiments of the present invention Electronic equipment 1 have control unit 10, storage unit 20, the first decoding unit 30 and the second decoding unit 40.
Specifically, described control unit 10 controls the processing such as the read-write, decoding, verification for electronic equipment 1.At this In one embodiment of invention, described control unit 10 can be, but not limited to by the central processing unit of the electronic equipment 1 (CPU)Configuration.In another embodiment of the invention, described control unit 10 can be by the special of such as Read-write Catrol chip Manage unit configuration.
The storage unit 20 is used to store data.In one embodiment of the invention, the storage unit 20 is by solid State hard disk(SSD)Configuration.In another embodiment of the invention, the storage unit 20 is by common hard disc(HDD)Configuration.Ability The technical staff in domain is readily appreciated that the storage unit 20 can also be by including solid state disk(SSD)Region and common hard disc (HDD)The mixed type hard disk configuration in region.
First decoding unit 30 is for performing the first data solution code check, and the second decoding unit 40 is then used to perform Second correcting data error verifies.That is, first decoding unit 30 performs such as cyclic redundancy for read data Verification(CRC)Error detection verification, with determine decoding data in whether there is error coded.Second decoding unit 40 is for being read Data perform such as error check and correction(ECC)Error checking and correction, so as to determine the error coded in decoding data and It is corrected using error correcting code.In general, the second decoding unit 40 performed by second decoding unit 40 is than by described first The first data solution code check that decoding unit 30 performs needs better power consumption and system resource, and when needing longer operation Between.
The data school performed next, with reference to Fig. 2 to Fig. 5 specific descriptions by electronic equipment 1 according to embodiments of the present invention Proved recipe method.
Fig. 2 is the flow chart for illustrating data verification method according to a first embodiment of the present invention.As shown in Fig. 2, according to this The data verification method of invention first embodiment includes the following steps.
In step s 201, described control unit 10 receives the number of the application of equipment or internal operation from device external It is instructed according to reading, and corresponding coded data is read from the storage unit 20.Hereafter, processing enters step S202.
In step S202, described control unit 10 controls first decoding unit 30 and second decoding unit 40 At least one coded data for reading perform decoding, to obtain decoding data.It as follows will be further with reference to Fig. 3 to Fig. 5 Description, described control unit 10 will based on such as read data read access time requirement, storage unit service life and The history error code record of storage region residing for data is read, selects first decoding unit 30 and second decoding unit 40 One of or both sequence perform coded data decoding and verification.Hereafter, processing enters step S203.
In step S203, described control unit 10 is sent in described in the decoding data conduct obtained in step S202 Data read command reading as a result, and data verification method according to a first embodiment of the present invention terminate.
Fig. 3 is the flow chart for illustrating data verification method according to a second embodiment of the present invention.As shown in figure 3, according to this The data verification method of invention second embodiment includes the following steps.
In step S301, described control unit 10 receives the digital independent of the application from external equipment or internal operation Instruction, and read corresponding coded data from the storage unit 20.Hereafter, processing enters step S302.
In step s 302, described control unit 10 controls first decoding unit 30 to hold the coded data of reading Row the first data solution code check, to obtain the first decoding data.Hereafter, processing enters step S303.
In step S303, described control unit 10 judges the result instruction described first of the first data solution code check Whether decoding data is not present mistake.
If obtain positive result, i.e., result instruction first solution of described first data solution code check in step S303 There is no mistakes for code data, then handle to enter step S304.In step s 304, then described control unit 10 determines described first Decoding data is read as described as a result, and sending the reading result to the external equipment or internal operation of request data Using.
If on the contrary, obtain negative decision, i.e., the result instruction institute of described first data solution code check in step S303 The first decoding data is stated there are mistake, then processing enters step S305.In step S305, described control unit 10 controls described Second decoding unit 40 performs second correcting data error for the coded data of reading and verifies, to obtain the second decoding data, And it determines and sends second decoding data as the reading result.
In the data verification method according to a second embodiment of the present invention described above with reference to Fig. 3, described control unit 10 controls are only deposited in the case of an error in the decoding data for performing error detection by first decoding unit 30, just start institute It states the second decoding unit 40 and performs the second correcting data error verification to there is the decoding data of mistake.Therefore, according to the present invention The data verification method of second embodiment reduces the number of run of the second correcting data error verification of high power consumption, so as to drop on the whole The low power consumption of the electronic equipment 1.
Fig. 4 is the flow chart for illustrating data verification method according to a third embodiment of the present invention.As shown in figure 4, according to this The data verification method of invention 3rd embodiment includes the following steps.
In step S401, described control unit 10 receives the digital independent of the application from external equipment or internal operation Instruction, and read corresponding coded data from the storage unit 20.Hereafter, processing enters step S402.
In step S402, described control unit 10 obtains the time attribute for reading instruction, and when judging described Between attribute indicate data read command permission read access time whether be less than predetermined read access time threshold value.
If obtaining positive result in step S402, i.e., the data read command of described time attribute instruction allows to read Taking the time, in other words, i.e., described data read command instruction needs quick reading data, then less than predetermined read access time threshold value Processing enters step S403.In step S403, described control unit 10 controls first decoding unit 30 for reading Coded data performs the first data solution code check, to obtain the first decoding data, and determines first decoding data It is read as described as a result, hereafter sending application of the reading result to the external equipment or internal operation of request data.
If on the contrary, obtained positive result in step S402, i.e. the data read command of time attribute instruction Read access time is allowed to be equal to or higher than predetermined read access time threshold value, in other words, i.e., described data read command instruction does not need to Quick to read data, then processing enters step S404.Hereafter, the processing performed in step S404 to step S407 respectively with it is upper Face is identical with reference to the processing performed in the step S302 to step S305 that Fig. 3 is described, will omit its repeated description herein.
In the data verification method according to a third embodiment of the present invention described above with reference to Fig. 4, described control unit 10 first determine whether data read command indicates to need quick reading speed.In the situation for needing quick reading speed Under, only start first decoding unit 30 and perform solution code check, even if the result display solution of the first data solution code check There are error codes for code data, also do not start the execution of the second decoding unit 40 further and state the verification of the second correcting data error, so as to really The requirement of reading speed is protected.
Fig. 5 is the flow chart for illustrating data verification method according to a fourth embodiment of the present invention.As shown in figure 5, according to this The data verification method of invention fourth embodiment includes the following steps.
In step S501, described control unit 10 receives the digital independent of the application from external equipment or internal operation Instruction, and read corresponding coded data from the storage unit 20.Hereafter, processing enters step S502.
In step S502, described control unit 10 judges whether the usage time parameter of the storage unit 20 indicates institute The usage time for stating storage unit 20 is less than predetermined usage time threshold value.
If obtaining positive result in step S502, i.e., when usage time parameter indicates the use of the storage unit 20 Between less than predetermined usage time threshold value, in other words, i.e., described storage unit 20 undergoes less usage time or less read-write Number, then processing enter step S503.In step S503, described control unit 10 control first decoding unit 30 for The coded data of reading performs the first data solution code check, to obtain the first decoding data, and determines first solution Code data are read as described as a result, hereafter sending the reading result to the external equipment of request data or answering for internal operation With.
If on the contrary, obtaining negative decision in step S502, i.e., usage time parameter indicates the storage unit 20 Usage time be equal to or more than predetermined usage time threshold value, in other words, i.e., described storage unit 20 undergoes longer use Time or more read-write number, then processing enter step S504.In step S504, described control unit 10 controls described second Decoding unit 40 performs second correcting data error for the coded data of reading and verifies, to obtain the second decoding data, and Determine that second decoding data is read as described as a result, hereafter sending the reading result to the external equipment of request data Or the application of internal operation.
In the data verification method according to a fourth embodiment of the present invention described above with reference to Fig. 5, described control unit 10 first determine whether the usage time of the storage unit 20 or read-write number, this is because the storage device of such as SSD is with making It will appear the deterioration of storage performance with time and read-write number increase, so as to increase the bit error rate of storage data.In this way, only in institute It states 20 usage time of storage unit or after read-write number is more than predetermined threshold, just starts second decoding unit 40 and perform institute State the verification of the second correcting data error.Therefore, data verification method according to a fourth embodiment of the present invention reduces the second of high power consumption The number of run of correcting data error verification, so as to reduce the power consumption of the electronic equipment 1 on the whole.
Fig. 6 is the flow chart for illustrating data verification method according to a fifth embodiment of the present invention.As shown in fig. 6, according to this The data verification method for inventing the 5th embodiment includes the following steps.
In step s 601, described control unit 10 receives the digital independent of the application from external equipment or internal operation Instruction, and read corresponding coded data from the storage unit 20.Hereafter, processing enters step S602.
In step S602, described control unit 10 judges the correspondence for the storage unit that the data read command corresponds to Whether the history error code parameter in region indicates that the history bit error rate for the storage unit to be read is less than predetermined bit error rate threshold.
If obtaining positive result in step S602, that is, the history bit error rate for the storage unit to be read is missed less than predetermined Code check threshold value, in other words, that is, the bit error probability for the storage unit to be read are relatively low, then processing enters step S603.In step In S603, described control unit 10 controls first decoding unit 30 to perform first data for the coded data of reading Code check is solved, to obtain the first decoding data, and determines first decoding data as the reading as a result, hereafter sending The application that result is read to the external equipment or internal operation of request data.
If on the contrary, obtained negative decision in step S602, that is, history bit error rate for the storage unit to be read etc. In or higher than predetermined bit error rate threshold, in other words, that is, for the bit error probability for the storage unit to be read compared with original text, then processing enters step Rapid S604.In step s 604, described control unit 10 controls second decoding unit 40 to hold the coded data of reading Row the second correcting data error verification, to obtain the second decoding data, and determines second decoding data as the reading It takes as a result, hereafter sending application of the reading result to the external equipment or internal operation of request data.
In the data verification method according to a fifth embodiment of the present invention described above with reference to Fig. 6, described control unit 10 first determine whether the history error code parameter of the corresponding region for the storage unit that the data read command corresponds to.In this way, only exist The data to be read for the storage unit 20 high bit error area when, just start second decoding unit 40 and perform described Two correcting data errors verify.Therefore, data verification method according to a fifth embodiment of the present invention reduces the second data of high power consumption The number of run of error checking and correction, so as to reduce the power consumption of the electronic equipment 1 on the whole.
Electronic equipment and its data verification method according to embodiments of the present invention are described above by reference to Fig. 1 to Fig. 6, is led to Cross the storage region according to residing for the read access time requirement of such as reading data, the service life of storage unit and reading data History error code records, and required verification side is optimally selected in quick low-power consumption solution code check and high power consumption error checking and correction Case, so as to realize distributing rationally for reading and writing data precision and apparatus system resource and power consumption demand.
It should be noted that in the present specification, term " comprising ", "comprising" or its any other variant are intended to Non-exclusive inclusion, so that process, method, article or equipment including a series of elements not only will including those Element, but also including other elements that are not explicitly listed or further include as this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that Also there are other identical elements in process, method, article or equipment including the element.
Finally, it is to be noted that, a series of above-mentioned processing are not only included with sequence described here in temporal sequence The processing of execution, and the processing including performing parallel or respectively rather than in chronological order.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by Software adds the mode of required hardware platform to realize, naturally it is also possible to all be implemented by hardware.Based on such understanding, Technical scheme of the present invention can be embodied in the form of software product in whole or in part to what background technology contributed, The computer software product can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions making Obtain a computer equipment(Can be personal computer, server or the network equipment etc.)Perform each embodiment of the present invention Or the method described in certain parts of embodiment.
The present invention is described in detail above, specific case used herein is to the principle of the present invention and embodiment party Formula is expounded, and the explanation of above example is only intended to facilitate the understanding of the method and its core concept of the invention;It is meanwhile right In those of ordinary skill in the art, thought according to the present invention has change in specific embodiments and applications Part, in conclusion the content of the present specification should not be construed as limiting the invention.

Claims (6)

1. a kind of data verification method, applied to an electronic equipment, the electronic equipment has the storage list for storing data Member and the first decoding unit for performing the first data solution code check and second for execution the second correcting data error verification Decoding unit, the data verification method include:
Data read command is received, and reads corresponding coded data;
At least the one of the first data solution code check and second correcting data error verification is performed for the coded data of reading It is a, to obtain decoding data;And
The decoding data is sent as the reading of the data read command as a result,
Wherein, the required power consumption for performing the first data solution code check is different from performing the institute of the second correcting data error verification Need power consumption,
The first data solution code check and second correcting data error verification wherein are performed extremely for the coded data of reading It is one few, included with obtaining decoding data:
The time attribute for reading instruction is judged, if the time attribute instruction data read command allows to read Time is less than predetermined read access time threshold value, then performs the first data solution code check for the coded data of reading, to obtain First decoding data, and determine first decoding data as the reading result;And
If the time attribute indicates that the permission read access time of the data read command is greater than or equal to predetermined read access time Threshold value,
The first data solution code check then is performed for the coded data of reading, to obtain the first decoding data;
Judge that the result of the first data solution code check indicates that first decoding data whether there is mistake;
If mistake is not present in first decoding data, it is determined that first decoding data is as the reading result;
If there are mistakes for first decoding data, the second correcting data error school is performed for the coded data of reading It tests, to obtain the second decoding data, and determines second decoding data as the reading result.
2. a kind of data verification method, applied to an electronic equipment, the electronic equipment has the storage list for storing data Member and the first decoding unit for performing the first data solution code check and second for execution the second correcting data error verification Decoding unit, the data verification method include:
Data read command is received, and reads corresponding coded data;
At least the one of the first data solution code check and second correcting data error verification is performed for the coded data of reading It is a, to obtain decoding data;And
The decoding data is sent as the reading of the data read command as a result,
Wherein, the required power consumption for performing the first data solution code check is different from performing the institute of the second correcting data error verification Need power consumption,
The first data solution code check and second correcting data error verification wherein are performed extremely for the coded data of reading It is one few, it is further included with obtaining decoding data:
The usage time parameter of the storage unit is judged, if the usage time parameter indicates the use of the storage unit Time is less than predetermined usage time threshold value, then performs the first data solution code check for the coded data of reading, to obtain First decoding data, and determine first decoding data as the reading result;And
If the usage time parameter indicates that the usage time of the storage unit is greater than or equal to predetermined usage time threshold value, Then second correcting data error is performed for the coded data of reading to verify, to obtain the second decoding data, and determine described Second decoding data is as the reading result.
3. a kind of data verification method, applied to an electronic equipment, the electronic equipment has the storage list for storing data Member and the first decoding unit for performing the first data solution code check and second for execution the second correcting data error verification Decoding unit, the data verification method include:
Data read command is received, and reads corresponding coded data;
At least the one of the first data solution code check and second correcting data error verification is performed for the coded data of reading It is a, to obtain decoding data;And
The decoding data is sent as the reading of the data read command as a result,
Wherein, the required power consumption for performing the first data solution code check is different from performing the institute of the second correcting data error verification Need power consumption,
The first data solution code check and second correcting data error verification wherein are performed extremely for the coded data of reading It is one few, it is further included with obtaining decoding data:
The history error code parameter of the corresponding region for the storage unit that the data read command corresponds to is judged, if the history Error code parameter indicates that the history bit error rate of the storage unit less than predetermined bit error rate threshold, is then held the coded data of reading Row the first data solution code check to obtain the first decoding data, and determines first decoding data as the reading Take result;And
If the history error code parameter indicates that the history bit error rate of the storage unit is greater than or equal to predetermined bit error rate threshold, Then second correcting data error is performed for the coded data of reading to verify, to obtain the second decoding data, and determine described Second decoding data is as the reading result.
4. a kind of electronic equipment, including:
Control unit;
First decoding unit, for performing the first data solution code check;
Second decoding unit, for performing the verification of the second correcting data error;And
Storage unit, for storing data,
Wherein, described control unit receives data read command, and reads corresponding coded data from the storage unit;
Described control unit controls at least one volume for reading of first decoding unit and second decoding unit Code data perform decoding, to obtain decoding data;And
Described control unit send the decoding data as the reading of the data read command as a result,
Wherein, the required power consumption of first decoding unit is different from the required power consumption of second decoding unit,
Wherein described control unit control first decoding unit and second decoding unit is at least one for reading Coded data perform decoding, included with obtaining decoding data:
Described control unit judges the time attribute for reading instruction, if the time attribute indicates that the digital independent refers to The permission read access time of order is less than predetermined read access time threshold value, then described control unit controls first decoding unit for reading The coded data taken performs the first data solution code check, to obtain the first decoding data, and determines first decoding Data are as the reading result;And
If the time attribute indicates that the permission read access time of the data read command is greater than or equal to predetermined read access time Threshold value,
Then described control unit controls first decoding unit to perform first data for the coded data of reading and decodes Verification, to obtain the first decoding data;
Described control unit judges that the result of the first data solution code check indicates first decoding data with the presence or absence of mistake Accidentally;
If mistake is not present in first decoding data, it is determined that first decoding data is as the reading result;
If first decoding data, there are mistake, described control unit controls second decoding unit for reading Coded data performs the second correcting data error verification, to obtain the second decoding data, and determines second decoding data As the reading result.
5. a kind of electronic equipment, including:
Control unit;
First decoding unit, for performing the first data solution code check;
Second decoding unit, for performing the verification of the second correcting data error;And
Storage unit, for storing data,
Wherein, described control unit receives data read command, and reads corresponding coded data from the storage unit;
Described control unit controls at least one volume for reading of first decoding unit and second decoding unit Code data perform decoding, to obtain decoding data;And
Described control unit send the decoding data as the reading of the data read command as a result,
Wherein, the required power consumption of first decoding unit is different from the required power consumption of second decoding unit,
Wherein described control unit control first decoding unit and second decoding unit is at least one for reading Coded data perform decoding, included with obtaining decoding data:
Described control unit judges the usage time parameter of the storage unit, if deposited described in usage time parameter instruction The usage time of storage unit is less than predetermined usage time threshold value, then described control unit controls first decoding unit for reading The coded data taken performs the first data solution code check, to obtain the first decoding data, and determines first decoding Data are as the reading result;And
If the usage time parameter indicates that the usage time of the storage unit is greater than or equal to predetermined usage time threshold value, Then described control unit controls second decoding unit to perform second correcting data error for the coded data of reading and verifies, To obtain the second decoding data, and determine second decoding data as the reading result.
6. a kind of electronic equipment, including:
Control unit;
First decoding unit, for performing the first data solution code check;
Second decoding unit, for performing the verification of the second correcting data error;And
Storage unit, for storing data,
Wherein, described control unit receives data read command, and reads corresponding coded data from the storage unit;
Described control unit controls at least one volume for reading of first decoding unit and second decoding unit Code data perform decoding, to obtain decoding data;And
Described control unit send the decoding data as the reading of the data read command as a result,
Wherein, the required power consumption of first decoding unit is different from the required power consumption of second decoding unit,
Wherein described control unit control first decoding unit and second decoding unit is at least one for reading Coded data perform decoding, included with obtaining decoding data:
Described control unit judges the history error code parameter of the corresponding region for the storage unit that the data read command corresponds to, If the history error code parameter indicates the history bit error rate of the storage unit less than predetermined bit error rate threshold, the control Unit controls first decoding unit to perform the first data solution code check for the coded data of reading, to obtain first Decoding data, and determine first decoding data as the reading result;And
If the history error code parameter indicates that the history bit error rate of the storage unit is greater than or equal to predetermined bit error rate threshold, Then described control unit controls second decoding unit to perform second correcting data error for the coded data of reading and verifies, To obtain the second decoding data, and determine second decoding data as the reading result.
CN201310068371.9A 2013-03-04 2013-03-04 Electronic equipment and data verification method Active CN104035832B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310068371.9A CN104035832B (en) 2013-03-04 2013-03-04 Electronic equipment and data verification method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310068371.9A CN104035832B (en) 2013-03-04 2013-03-04 Electronic equipment and data verification method

Publications (2)

Publication Number Publication Date
CN104035832A CN104035832A (en) 2014-09-10
CN104035832B true CN104035832B (en) 2018-07-03

Family

ID=51466606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310068371.9A Active CN104035832B (en) 2013-03-04 2013-03-04 Electronic equipment and data verification method

Country Status (1)

Country Link
CN (1) CN104035832B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105790773A (en) * 2016-04-08 2016-07-20 暨南大学 Novel 10 gigabit Ethernet parallel CRC encoding and decoding method
CN110908826B (en) * 2019-10-16 2021-04-20 长江存储科技有限责任公司 Data processing method and related product
CN114415817B (en) * 2020-10-28 2024-05-07 北京小米移动软件有限公司 Display control method, electronic device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329916A (en) * 2007-01-08 2008-12-24 三星电子株式会社 Flash memory device error correction code controllers and related methods and memory systems
CN102203740A (en) * 2011-05-27 2011-09-28 华为技术有限公司 Data processing method, device and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7900118B2 (en) * 2007-02-12 2011-03-01 Phison Electronics Corp. Flash memory system and method for controlling the same
US8453032B2 (en) * 2010-04-21 2013-05-28 General Electric Company Energy and space efficient detection for data storage
US8869000B2 (en) * 2011-01-31 2014-10-21 Marvell World Trade Ltd. Methods and systems for efficient decoding of concatenated error correction codes
CN102567134B (en) * 2012-01-06 2015-01-07 威盛电子股份有限公司 Error check and correction system and error check and correction method for memory module

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101329916A (en) * 2007-01-08 2008-12-24 三星电子株式会社 Flash memory device error correction code controllers and related methods and memory systems
CN102203740A (en) * 2011-05-27 2011-09-28 华为技术有限公司 Data processing method, device and system

Also Published As

Publication number Publication date
CN104035832A (en) 2014-09-10

Similar Documents

Publication Publication Date Title
US20230280911A1 (en) Managing Memory Devices in a Storage Network
US10067832B2 (en) Imposter slices
US10083081B2 (en) Responding to a maintenance free storage container security threat
US20170300396A1 (en) Allocating data based on hardware faults
US10387382B2 (en) Estimating a number of entries in a dispersed hierarchical index
US10255133B2 (en) Isolating the introduction of software defects in a dispersed storage network
US10089036B2 (en) Migrating data in a distributed storage network
US8707105B2 (en) Updating a set of memory devices in a dispersed storage network
US8756464B2 (en) Flash memory device and flash memory programming method equalizing wear-level
US9348692B2 (en) Flash memory apparatus, memory controller and method for controlling flash memory
CN107807792A (en) A kind of data processing method and relevant apparatus based on copy storage system
CN107391297B (en) System and method for improving data refresh in flash memory
CN104035832B (en) Electronic equipment and data verification method
CN105788647B (en) A kind of error correction method and device of nonvolatile storage
US11416149B1 (en) Selecting a processing unit in accordance with a customizable data processing plan
CN110401458B (en) Data check coding method and system
CN116917873A (en) Data access method, memory controller and memory device
US20180074905A1 (en) Storage container reassignment based on dynamic parameters
CN108170554A (en) The data-encoding scheme and device of a kind of NAND
CN116760424A (en) Interleaving encoding method, interleaving encoding system, electronic device and storage medium
CN107632902A (en) Method, controller and the storage system of data are replied when failing for sequencing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant