CN104035832A - Electronic device and data verification method - Google Patents

Electronic device and data verification method Download PDF

Info

Publication number
CN104035832A
CN104035832A CN201310068371.9A CN201310068371A CN104035832A CN 104035832 A CN104035832 A CN 104035832A CN 201310068371 A CN201310068371 A CN 201310068371A CN 104035832 A CN104035832 A CN 104035832A
Authority
CN
China
Prior art keywords
data
reading
verification
decoded data
decoded
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.)
Granted
Application number
CN201310068371.9A
Other languages
Chinese (zh)
Other versions
CN104035832B (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 an electronic device and a data verification method thereof. The electronic device comprises a storage unit used for storing data, a first decoding unit used for executing first data decoding verification and a second decoding unit used for executing second data error correction verification. The data verification method includes receiving a data reading command and reading corresponding coding data, executing at least one of the first data decoding verification and the second data decoding verification for the read coding data to obtain decoding data and transmitting the decoding data as a reading result of the data reading command. Power consumption required by executing the first data decoding verification is different from power consumption required by executing the second data decoding verification.

Description

Electronic equipment and data verification method
Technical field
The present invention relates to electronic device field, and be specifically related to a kind of electronic equipment and data verification method thereof.
Background technology
There is the several data coding and decoding scheme for adding check sum error correction, such as CRC(cyclic redundancy check (CRC)) encoding scheme, ECC(error check and correction) encoding scheme, LDPC(low density parity check code) encoding scheme, Bose-Chaudhuri-Hocquenghem Code scheme etc.Different encoding schemes has different verifications and error correcting capability, and is applicable to different application scenarioss, and simultaneously it has different difficulty and the system overheads realized accordingly.
Adopting such as SSD(solid state hard disc) in the electronic equipment of memory storage, if adopt verification and the error correction of rudimentary coding and decoding scheme (as CRC encoding scheme) for data, may not meet the demand of equipment for reading and writing data precision.On the contrary, if adopt senior coding and decoding scheme (as ECC encoding scheme), it needs more system resource and improved system power dissipation, this weak for processing power and have required electronic equipment for equipment flying power in be unsafty.Therefore, be desirable to provide a kind of electronic equipment and data verification method thereof, it can realize distributing rationally of reading and writing data precision and apparatus system resource and power consumption demand.
Summary of the invention
Because above-mentioned situation, the invention provides a kind of electronic equipment and data verification method thereof, it is by according to such as the serviceable life of reading time requirement, storage unit of reading out data and the historical error code record of reading out data storage area of living in, in the code check of low-power consumption solution fast and high power consumption error checking and correction, optimally select required checkschema, thereby can realize distributing rationally of 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, be applied to an electronic equipment, described electronic equipment has the storage unit for storing data, and for carrying out the first decoding unit of the first data decode verification and for carrying out the second decoding unit of the second correcting data error verification, described data verification method comprises: receive data reading command, and read corresponding coded data; Carry out at least one of described the first data decode verification and described the second correcting data error verification for the coded data reading, to obtain decoded data; And send the reading result of described decoded data as described data reading command, wherein, the required power consumption of carrying out described the first data decode verification is different from the required power consumption of carrying out described the second correcting data error verification.
In addition, data verification method according to an embodiment of the invention, wherein carry out at least one of described the first data decode verification and described the second correcting data error verification for the coded data reading, comprise to obtain decoded data: carry out described the first data decode verification for the coded data reading, to obtain the first decoded data; The result that judges described the first data decode verification indicates described the first decoded data whether to have mistake; If described the first decoded data does not exist mistake, determine that described the first decoded data is as described reading result; If there is mistake in described the first decoded data, carry out described the second correcting data error verification for the coded data reading, to obtain the second decoded data, and determine that described the second decoded data is as described reading result.
In addition, data verification method according to an embodiment of the invention, wherein carry out at least one of described the first data decode verification and described the second correcting data error verification for the coded data reading, comprise to obtain decoded data: the time attribute that judges described reading command, if what described time attribute was indicated described data reading command allows the time of reading lower than the predetermined time threshold that reads, carry out described the first data decode verification for the coded data reading, to obtain the first decoded data, and determine that described the first decoded data is as described reading result, if and described time attribute indicate described data reading command allow the time of reading to be more than or equal to predetermined to read time threshold, carry out described the first data decode verification for the coded data reading, to obtain the first decoded data, the result that judges described the first data decode verification indicates described the first decoded data whether to have mistake, if described the first decoded data does not exist mistake, determine that described the first decoded data is as described reading result, if there is mistake in described the first decoded data, carry out described the second correcting data error verification for the coded data reading, to obtain the second decoded data, and determine that described the second decoded data is as described reading result.
In addition, data verification method according to an embodiment of the invention, wherein carry out at least one of described the first data decode verification and described the second correcting data error verification for the coded data reading, comprise to obtain decoded data: parameter service time that judges described storage unit, if the service time that described service time, parameter was indicated described storage unit is lower than predetermined service time of threshold value, carry out described the first data decode verification for the coded data reading, to obtain the first decoded data, and determine that described the first decoded data is as described reading result, if and parameter was indicated and was more than or equal to predetermined service time of threshold value the service time of described storage unit described service time, carry out described the second data decode verification for the coded data reading, to obtain the second decoded data, and determine that described the second decoded data is as described reading result.
In addition, data verification method according to an embodiment of the invention, wherein carry out at least one of described the first data decode verification and described the second correcting data error verification for the coded data reading, comprise to obtain decoded data: judge described data reading command corresponding to the historical error code parameter of corresponding region of storage unit, if described historical error code parameter indicates the historical bit error rate of described storage unit lower than predetermined bit error rate threshold value, carry out described the first data decode verification for the coded data reading, to obtain the first decoded data, and determine that described the first decoded data is as described reading result, if and described historical error code parameter indicates the historical bit error rate of described storage unit to be more than or equal to predetermined bit error rate threshold value, carry out described the second data decode verification for the coded data reading, to obtain the second decoded data, and determine that described the second decoded data is as described reading result.
According to another embodiment of the present invention, provide a kind of electronic equipment, having comprised: control module; The first decoding unit, for carrying out the first data decode verification; The second decoding unit, for carrying out the second correcting data error verification; And storage unit, for storing data, wherein, described control module receives data reading command, and reads corresponding coded data from described storage unit; Described in described control module control, at least one of the first decoding unit and described the second decoding unit carried out decoding for the coded data that reads, to obtain decoded data; And described control module sends the reading result of described decoded data as described data reading command, wherein, the required power consumption of described the first decoding unit is different from the required power consumption of described the second decoding unit.
In addition, electronic equipment according to another embodiment of the present invention, described in wherein said control module control, at least one of the first decoding unit and described the second decoding unit carried out decoding for the coded data that reads, comprise to obtain decoded data: described in described control module control, the first decoding unit is carried out described the first data decode verification for the coded data reading, to obtain the first decoded data; Described control module judges the result of described the first data decode verification indicates described the first decoded data whether to have mistake; If described the first decoded data does not exist mistake, determine that described the first decoded data is as described reading result; If there is mistake in described the first decoded data, described in described control module control, the second decoding unit is carried out described the second correcting data error verification for the coded data reading, to obtain the second decoded data, and determine that described the second decoded data is as described reading result.
In addition, electronic equipment according to another embodiment of the present invention, described in wherein said control module control, at least one of the first decoding unit and described the second decoding unit carried out decoding for the coded data that reads, comprise to obtain decoded data: described control module judges the time attribute of described reading command, if what described time attribute was indicated described data reading command allows the time of reading lower than the predetermined time threshold that reads, described in described control module control, the first decoding unit is carried out described the first data decode verification for the coded data reading, to obtain the first decoded data, and determine that described the first decoded data is as described reading result, if and described time attribute indicates the time of reading that allows of described data reading command to be more than or equal to the predetermined time threshold that reads, described in described control module control, the first decoding unit is carried out described the first data decode verification for the coded data reading, to obtain the first decoded data, described control module judges the result of described the first data decode verification indicates described the first decoded data whether to have mistake, if described the first decoded data does not exist mistake, determine that described the first decoded data is as described reading result, if there is mistake in described the first decoded data, described in described control module control, the second decoding unit is carried out described the second correcting data error verification for the coded data reading, to obtain the second decoded data, and determine that described the second decoded data is as described reading result.
In addition, electronic equipment according to another embodiment of the present invention, described in wherein said control module control, at least one of the first decoding unit and described the second decoding unit carried out decoding for the coded data that reads, comprise to obtain decoded data: described control module judges parameter service time of described storage unit, if the service time that described service time, parameter was indicated described storage unit is lower than predetermined service time of threshold value, described in described control module control, the first decoding unit is carried out described the first data decode verification for the coded data reading, to obtain the first decoded data, and determine that described the first decoded data is as described reading result, if and parameter was indicated and was more than or equal to predetermined service time of threshold value the service time of described storage unit described service time, described in described control module control, the second decoding unit is carried out described the second data decode verification for the coded data reading, to obtain the second decoded data, and determine that described the second decoded data is as described reading result.
In addition, electronic equipment according to another embodiment of the present invention, described in wherein said control module control, at least one of the first decoding unit and described the second decoding unit carried out decoding for the coded data that reads, comprise to obtain decoded data: described control module judge described data reading command corresponding to the historical error code parameter of corresponding region of storage unit, if described historical error code parameter indicates the historical bit error rate of described storage unit lower than predetermined bit error rate threshold value, described in described control module control, the first decoding unit is carried out described the first data decode verification for the coded data reading, to obtain the first decoded data, and determine that described the first decoded data is as described reading result, if and described historical error code parameter indicates the historical bit error rate of described storage unit to be more than or equal to predetermined bit error rate threshold value, described in described control module control, the second decoding unit is carried out described the second data decode verification for the coded data reading, to obtain the second decoded data, and determine that described the second decoded data is as described reading result.
According to the electronic equipment of the embodiment of the present invention and data verification method thereof, it is by according to such as the serviceable life of reading time requirement, storage unit of reading out data and the historical error code record of reading out data storage area of living in, in the code check of low-power consumption solution fast and high power consumption error checking and correction, optimally select required checkschema, thereby can realize distributing rationally of reading and writing data precision and apparatus system resource and power consumption demand.
Brief description of the drawings
Fig. 1 is that diagram is according to the block diagram of the electronic equipment of the embodiment of the present invention;
Fig. 2 is that diagram is according to the process flow diagram of the data verification method of first embodiment of the invention;
Fig. 3 is that diagram is according to the process flow diagram of the data verification method of second embodiment of the invention;
Fig. 4 is that diagram is according to the process flow diagram of the data verification method of third embodiment of the invention;
Fig. 5 is that diagram is according to the process flow diagram of the data verification method of fourth embodiment of the invention; And
Fig. 6 is that diagram is according to the process flow diagram of the data verification method of fifth embodiment of the invention;
Embodiment
Hereinafter, multiple embodiment, application and amendment are described with reference to the accompanying drawings.In addition, embodiment described below is preferred particular example, and is provided with technical preferred various restrictions, but in the following description, the invention is not restricted to these embodiment.
First, describe according to the electronic equipment of the embodiment of the present invention with reference to Fig. 1.Described electronic equipment is for example preferably personal computer, smart mobile phone, personal digital assistant, palm PC etc.
Fig. 1 is that diagram is according to the block diagram of the electronic equipment of the embodiment of the present invention.As shown in Figure 1, there is control module 10, storage unit 20, the first decoding unit 30 and the second decoding unit 40 according to the electronic equipment 1 of the embodiment of the present invention.
Particularly, described control module 10 is controlled processing such as the read-write for electronic equipment 1, decoding, verification.In one embodiment of the invention, described control module 10 can be, but not limited to CPU (central processing unit) (CPU) configuration by described electronic equipment 1.In another embodiment of the present invention, described control module 10 can be by configuring such as the specialized processing units of read-write control chip.
Described storage unit 20 is for storing data.In one embodiment of the invention, described storage unit 20 is configured by solid state hard disc (SSD).In another embodiment of the present invention, described storage unit 20 is configured by common hard disc (HDD).Those skilled in the art will readily understand, described storage unit 20 can also be by the mixed type hard disk configuration that comprises solid state hard disc (SSD) region and common hard disc (HDD) region.
Described the first decoding unit 30 is for carrying out the first data decode verification, and the second decoding unit 40 is for carrying out the second correcting data error verification.That is to say, described the first decoding unit 30 is carried out the error detection verification such as Cyclic Redundancy Check for read data, to determine whether there is error coded in decoded data.The second decoding unit 40 is carried out the error checking and correction such as error check and correction (ECC) for read data, to determine the error coded in decoded data and utilize error correcting code to proofread and correct.Conventionally, the second decoding unit 40 of being carried out by described the second decoding unit 40 needs better power consumption and system resource than the first data decode verification of being carried out by described the first decoding unit 30, and working time that need to be longer.
Below, specifically describe by the data verification method of carrying out according to the electronic equipment 1 of the embodiment of the present invention to Fig. 5 with reference to Fig. 2.
Fig. 2 is that diagram is according to the process flow diagram of the data verification method of first embodiment of the invention.As shown in Figure 2, comprise the steps according to the data verification method of first embodiment of the invention.
In step S201, described control module 10 receives the data reading command from the equipment of device external or the application of internal operation, and reads corresponding coded data from described storage unit 20.After this, process and enter step S202.
In step S202, described control module 10 control described the first decoding unit 30 and described the second decoding unit 40 at least one carry out decoding for the coded data reading, to obtain decoded data.Further describe to Fig. 5 with reference to Fig. 3 as follows, described control module 10 is the historical error code record of the serviceable life of reading time requirement, storage unit based on such as reading out data and reading out data storage area of living in, selects one of described the first decoding unit 30 and described second decoding unit 40 or both sequentially to carry out decoding and the verification of coded data.After this, process and enter step S203.
In step S203, described control module 10 is sent in the described decoded data that obtains in the step S202 reading result as described data reading command, and finishes according to the data verification method of first embodiment of the invention.
Fig. 3 is that diagram is according to the process flow diagram of the data verification method of second embodiment of the invention.As shown in Figure 3, comprise the steps according to the data verification method of second embodiment of the invention.
In step S301, described control module 10 receives the data reading command from the application of external unit or internal operation, and reads corresponding coded data from described storage unit 20.After this, process and enter step S302.
In step S302, described control module 10 is controlled described the first decoding unit 30 and is carried out described the first data decode verification for the coded data reading, to obtain the first decoded data.After this, process and enter step S303.
In step S303, described control module 10 judges the result of described the first data decode verification indicates described the first decoded data whether not have mistake.
If obtain positive result at step S303, the result of described the first data decode verification indicates described the first decoded data not have mistake, processes and enters step S304.In step S304, described control module 10 determines that described the first decoded data is as described reading result, and sends described reading result to the external unit of request msg or the application of internal operation.
On the contrary, if obtain negative decision at step S303, the result of described the first data decode verification indicates described the first decoded data to have mistake, processes and enters step S305.In step S305, described control module 10 is controlled described the second decoding unit 40 and is carried out described the second correcting data error verification for the coded data reading, and to obtain the second decoded data, and determines and sends described the second decoded data as described reading result.
Above with reference to Fig. 3 describe according in the data verification method of second embodiment of the invention, described control module 10 control only in the decoded data of carrying out error detection by described the first decoding unit 30, exist wrong, just start described the second decoding unit 40 to existing wrong decoded data to carry out described the second correcting data error verification.Therefore, reduce the number of run of the second correcting data error verification of high power consumption according to the data verification method of second embodiment of the invention, thereby reduced on the whole the power consumption of described electronic equipment 1.
Fig. 4 is that diagram is according to the process flow diagram of the data verification method of third embodiment of the invention.As shown in Figure 4, comprise the steps according to the data verification method of third embodiment of the invention.
In step S401, described control module 10 receives the data reading command from the application of external unit or internal operation, and reads corresponding coded data from described storage unit 20.After this, process and enter step S402.
In step S402, described control module 10 obtains the time attribute of described reading command, and judge the instruction of described time attribute data reading command allow the time of reading whether lower than the predetermined time threshold that reads.
If obtain positive result in step S402, be the instruction of described time attribute data reading command allow the time of reading lower than the predetermined time threshold that reads, in other words, i.e. described data reading command instruction needs quick reading out data, processes and enters step S403.In step S403, described control module 10 is controlled described the first decoding unit 30 and is carried out described the first data decode verification for the coded data reading, to obtain the first decoded data, and determine that described the first decoded data is as described reading result, after this send described reading result to the external unit of request msg or the application of internal operation.
On the contrary, if obtain positive result at step S402, i.e. the data reading command of described time attribute instruction allow the time of reading to be equal to or higher than predeterminedly to read time threshold, in other words, be that described data reading command instruction does not need quick reading out data, process and enter step S404.After this, identical to the processing of carrying out in step S305 with the step S302 describing above with reference to Fig. 3 respectively to the processing of carrying out in step S407 at step S404, at this, by omission, it is repeated in this description.
Above with reference to Fig. 4 describe according in the data verification method of third embodiment of the invention, first described control module 10 judges whether data reading command indicates reading speed fast.At needs fast reading speed in the situation that, only start described the first decoding unit 30 and carry out solution code check, even if the result of this first data decode verification shows that decoded data exists error code, further do not start described the second decoding unit 40 execution and state the second correcting data error verification, thereby guaranteed the requirement of reading speed yet.
Fig. 5 is that diagram is according to the process flow diagram of the data verification method of fourth embodiment of the invention.As shown in Figure 5, comprise the steps according to the data verification method of fourth embodiment of the invention.
In step S501, described control module 10 receives the data reading command from the application of external unit or internal operation, and reads corresponding coded data from described storage unit 20.After this, process and enter step S502.
In step S502, described control module 10 judges that service time that whether parameter service time of described storage unit 20 indicate described storage unit 20 is lower than predetermined service time of threshold value.
If obtain positive result in step S502, it is service time that service time, parameter was indicated described storage unit 20 lower than predetermined service time of threshold value, in other words, described storage unit 20 experiences less service time or less read-write number of times, processes and enters step S503.In step S503, described control module 10 is controlled described the first decoding unit 30 and is carried out described the first data decode verification for the coded data reading, to obtain the first decoded data, and determine that described the first decoded data is as described reading result, after this send described reading result to the external unit of request msg or the application of internal operation.
On the contrary, if obtain negative decision in step S502, be service time parameter indicate and be equal to or greater than predetermined service time of threshold value the service time of described storage unit 20, in other words, be that described storage unit 20 experiences longer service time or more read-write number of times, process and enter step S504.In step S504, described control module 10 is controlled described the second decoding unit 40 and is carried out described the second correcting data error verification for the coded data reading, to obtain the second decoded data, and determine that described the second decoded data is as described reading result, after this send described reading result to the external unit of request msg or the application of internal operation.
Above with reference to Fig. 5 describe according in the data verification method of fourth embodiment of the invention, first described control module 10 judges service time or the read-write number of times of described storage unit 20, this be because such as the memory device of SSD along with service time and the increase of read-write number of times there will be the deteriorated of memory property, thereby increase the bit error rate of storage data.So, only, just start described the second decoding unit 40 and carry out described the second correcting data error verification after number of times exceedes predetermined threshold in 20 service times of described storage unit or read-write.Therefore, reduce the number of run of the second correcting data error verification of high power consumption according to the data verification method of fourth embodiment of the invention, thereby reduced on the whole the power consumption of described electronic equipment 1.
Fig. 6 is that diagram is according to the process flow diagram of the data verification method of fifth embodiment of the invention.As shown in Figure 6, comprise the steps according to the data verification method of fifth embodiment of the invention.
In step S601, described control module 10 receives the data reading command from the application of external unit or internal operation, and reads corresponding coded data from described storage unit 20.After this, process and enter step S602.
In step S602, described control module 10 judge described data reading command corresponding to the historical error code parameter of corresponding region of storage unit whether indicate the historical bit error rate of the storage unit that will read lower than predetermined bit error rate threshold value.
If obtain positive result in step S602, the historical bit error rate of the storage unit that will read is lower than predetermined bit error rate threshold value, and in other words, the bit error probability of the storage unit that will read is lower, processes and enters step S603.In step S603, described control module 10 is controlled described the first decoding unit 30 and is carried out described the first data decode verification for the coded data reading, to obtain the first decoded data, and determine that described the first decoded data is as described reading result, after this send described reading result to the external unit of request msg or the application of internal operation.
On the contrary, if obtain negative decision in step S602, the historical bit error rate of the storage unit that will read is equal to or higher than predetermined bit error rate threshold value, and in other words, the bit error probability of the storage unit that will read, compared with original text, is processed and entered step S604.In step S604, described control module 10 is controlled described the second decoding unit 40 and is carried out described the second correcting data error verification for the coded data reading, to obtain the second decoded data, and determine that described the second decoded data is as described reading result, after this send described reading result to the external unit of request msg or the application of internal operation.
Describe above with reference to Fig. 6 according in the data verification method of fifth embodiment of the invention, described control module 10 first judge described data reading command corresponding to the historical error code parameter of corresponding region of storage unit.So, only, just start described the second decoding unit 40 and carry out described the second correcting data error verification during for the high bit error district of described storage unit 20 in the data that will read.Therefore, reduce the number of run of the second correcting data error verification of high power consumption according to the data verification method of fifth embodiment of the invention, thereby reduced on the whole the power consumption of described electronic equipment 1.
Describe according to the electronic equipment of the embodiment of the present invention and data verification method thereof referring to figs. 1 through Fig. 6 above, it is by according to such as the serviceable life of reading time requirement, storage unit of reading out data and the historical error code record of reading out data storage area of living in, in the code check of low-power consumption solution fast and high power consumption error checking and correction, optimally select required checkschema, thereby can realize distributing rationally of reading and writing data precision and apparatus system resource and power consumption demand.
It should be noted that, in this manual, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
Finally, also it should be noted that, above-mentioned a series of processing not only comprise the processing of carrying out by time series with order described here, and comprise processing parallel or that carry out respectively instead of in chronological order.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential hardware platform by software and realize, and can certainly all implement by hardware.Based on such understanding, what technical scheme of the present invention contributed to background technology can embody with the form of software product in whole or in part, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) carry out the method described in some part of each embodiment of the present invention or embodiment.
Above the present invention is described in detail, has applied specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.

Claims (10)

1. a data verification method, be applied to an electronic equipment, described electronic equipment has the storage unit for storing data, and for carrying out the first decoding unit of the first data decode verification and for carrying out the second decoding unit of the second correcting data error verification, described data verification method comprises:
Receive data reading command, and read corresponding coded data;
Carry out at least one of described the first data decode verification and described the second correcting data error verification for the coded data reading, to obtain decoded data; And
Send the reading result of described decoded data as described data reading command,
Wherein, the required power consumption of carrying out described the first data decode verification is different from the required power consumption of carrying out described the second correcting data error verification.
2. data verification method as claimed in claim 1, wherein carries out at least one of described the first data decode verification and described the second correcting data error verification for the coded data reading, comprise to obtain decoded data:
Carry out described the first data decode verification for the coded data reading, to obtain the first decoded data;
The result that judges described the first data decode verification indicates described the first decoded data whether to have mistake;
If described the first decoded data does not exist mistake, determine that described the first decoded data is as described reading result;
If there is mistake in described the first decoded data, carry out described the second correcting data error verification for the coded data reading, to obtain the second decoded data, and determine that described the second decoded data is as described reading result.
3. data verification method as claimed in claim 1, wherein carries out at least one of described the first data decode verification and described the second correcting data error verification for the coded data reading, comprise to obtain decoded data:
Judge the time attribute of described reading command, if what described time attribute was indicated described data reading command allows the time of reading lower than the predetermined time threshold that reads, carry out described the first data decode verification for the coded data reading, to obtain the first decoded data, and determine that described the first decoded data is as described reading result; And
If described time attribute indicates the time of reading that allows of described data reading command to be more than or equal to the predetermined time threshold that reads,
Carry out described the first data decode verification for the coded data reading, to obtain the first decoded data;
The result that judges described the first data decode verification indicates described the first decoded data whether to have mistake;
If described the first decoded data does not exist mistake, determine that described the first decoded data is as described reading result;
If there is mistake in described the first decoded data, carry out described the second correcting data error verification for the coded data reading, to obtain the second decoded data, and determine that described the second decoded data is as described reading result.
4. data verification method as claimed in claim 1, wherein carries out at least one of described the first data decode verification and described the second correcting data error verification for the coded data reading, comprise to obtain decoded data:
Judge parameter service time of described storage unit, if the service time that described service time, parameter was indicated described storage unit is lower than predetermined service time of threshold value, carry out described the first data decode verification for the coded data reading, to obtain the first decoded data, and determine that described the first decoded data is as described reading result; And
If parameter was indicated and was more than or equal to predetermined service time of threshold value the service time of described storage unit described service time, carry out described the second data decode verification for the coded data reading, to obtain the second decoded data, and determine that described the second decoded data is as described reading result.
5. data verification method as claimed in claim 1, wherein carries out at least one of described the first data decode verification and described the second correcting data error verification for the coded data reading, comprise to obtain decoded data:
Judge described data reading command corresponding to the historical error code parameter of corresponding region of storage unit, if described historical error code parameter indicates the historical bit error rate of described storage unit lower than predetermined bit error rate threshold value, carry out described the first data decode verification for the coded data reading, to obtain the first decoded data, and determine that described the first decoded data is as described reading result; And
If described historical error code parameter indicates the historical bit error rate of described storage unit to be more than or equal to predetermined bit error rate threshold value, carry out described the second data decode verification for the coded data reading, to obtain the second decoded data, and determine that described the second decoded data is as described reading result.
6. an electronic equipment, comprising:
Control module;
The first decoding unit, for carrying out the first data decode verification;
The second decoding unit, for carrying out the second correcting data error verification; And
Storage unit, for storing data,
Wherein, described control module receives data reading command, and reads corresponding coded data from described storage unit;
Described in described control module control, at least one of the first decoding unit and described the second decoding unit carried out decoding for the coded data that reads, to obtain decoded data; And
Described control module sends the reading result of described decoded data as described data reading command,
Wherein, the required power consumption of described the first decoding unit is different from the required power consumption of described the second decoding unit.
7. electronic equipment as claimed in claim 6, at least one of the first decoding unit and described the second decoding unit carried out decoding for the coded data reading described in wherein said control module control, comprises to obtain decoded data:
Described in described control module control, the first decoding unit is carried out described the first data decode verification for the coded data reading, to obtain the first decoded data;
Described control module judges the result of described the first data decode verification indicates described the first decoded data whether to have mistake;
If described the first decoded data does not exist mistake, determine that described the first decoded data is as described reading result;
If there is mistake in described the first decoded data, described in described control module control, the second decoding unit is carried out described the second correcting data error verification for the coded data reading, to obtain the second decoded data, and determine that described the second decoded data is as described reading result.
8. electronic equipment as claimed in claim 6, at least one of the first decoding unit and described the second decoding unit carried out decoding for the coded data reading described in wherein said control module control, comprises to obtain decoded data:
Described control module judges the time attribute of described reading command, if what described time attribute was indicated described data reading command allows the time of reading lower than the predetermined time threshold that reads, described in described control module control, the first decoding unit is carried out described the first data decode verification for the coded data reading, to obtain the first decoded data, and determine that described the first decoded data is as described reading result; And
If described time attribute indicates the time of reading that allows of described data reading command to be more than or equal to the predetermined time threshold that reads,
Described in described control module control, the first decoding unit is carried out described the first data decode verification for the coded data reading, to obtain the first decoded data;
Described control module judges the result of described the first data decode verification indicates described the first decoded data whether to have mistake;
If described the first decoded data does not exist mistake, determine that described the first decoded data is as described reading result;
If there is mistake in described the first decoded data, described in described control module control, the second decoding unit is carried out described the second correcting data error verification for the coded data reading, to obtain the second decoded data, and determine that described the second decoded data is as described reading result.
9. electronic equipment as claimed in claim 6, at least one of the first decoding unit and described the second decoding unit carried out decoding for the coded data reading described in wherein said control module control, comprises to obtain decoded data:
Described control module judges parameter service time of described storage unit, if the service time that described service time, parameter was indicated described storage unit is lower than predetermined service time of threshold value, described in described control module control, the first decoding unit is carried out described the first data decode verification for the coded data reading, to obtain the first decoded data, and determine that described the first decoded data is as described reading result; And
If parameter was indicated and was more than or equal to predetermined service time of threshold value the service time of described storage unit described service time, described in described control module control, the second decoding unit is carried out described the second data decode verification for the coded data reading, to obtain the second decoded data, and determine that described the second decoded data is as described reading result.
10. electronic equipment as claimed in claim 6, at least one of the first decoding unit and described the second decoding unit carried out decoding for the coded data reading described in wherein said control module control, comprises to obtain decoded data:
Described control module judge described data reading command corresponding to the historical error code parameter of corresponding region of storage unit, if described historical error code parameter indicates the historical bit error rate of described storage unit lower than predetermined bit error rate threshold value, described in described control module control, the first decoding unit is carried out described the first data decode verification for the coded data reading, to obtain the first decoded data, and determine that described the first decoded data is as described reading result; And
If described historical error code parameter indicates the historical bit error rate of described storage unit to be more than or equal to predetermined bit error rate threshold value, described in described control module control, the second decoding unit is carried out described the second data decode verification for the coded data reading, to obtain the second decoded data, and determine that described the second decoded data is as described 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 true CN104035832A (en) 2014-09-10
CN104035832B 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)

Cited By (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
CN112948166A (en) * 2019-10-16 2021-06-11 长江存储科技有限责任公司 Data processing method and related product
CN114415817A (en) * 2020-10-28 2022-04-29 北京小米移动软件有限公司 Display control method, electronic device, and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080195900A1 (en) * 2007-02-12 2008-08-14 Phison Electronics Corp. Flash memory system and method for controlling the same
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
CN102298952A (en) * 2010-04-21 2011-12-28 通用电气公司 energy and space efficient detection for data storage
CN102567134A (en) * 2012-01-06 2012-07-11 威盛电子股份有限公司 Error check and correction system and error check and correction method for memory module
CN102624403A (en) * 2011-01-31 2012-08-01 马维尔国际贸易有限公司 Methods and systems for efficient decoding of concatenated error correction codes

Patent Citations (6)

* 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
US20080195900A1 (en) * 2007-02-12 2008-08-14 Phison Electronics Corp. Flash memory system and method for controlling the same
CN102298952A (en) * 2010-04-21 2011-12-28 通用电气公司 energy and space efficient detection for data storage
CN102624403A (en) * 2011-01-31 2012-08-01 马维尔国际贸易有限公司 Methods and systems for efficient decoding of concatenated error correction codes
CN102203740A (en) * 2011-05-27 2011-09-28 华为技术有限公司 Data processing method, device and system
CN102567134A (en) * 2012-01-06 2012-07-11 威盛电子股份有限公司 Error check and correction system and error check and correction method for memory module

Cited By (4)

* 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
CN112948166A (en) * 2019-10-16 2021-06-11 长江存储科技有限责任公司 Data processing method and related product
CN114415817A (en) * 2020-10-28 2022-04-29 北京小米移动软件有限公司 Display control method, electronic device, and storage medium
CN114415817B (en) * 2020-10-28 2024-05-07 北京小米移动软件有限公司 Display control method, electronic device and storage medium

Also Published As

Publication number Publication date
CN104035832B (en) 2018-07-03

Similar Documents

Publication Publication Date Title
KR102645583B1 (en) Predictive memory maintenance
US9673840B2 (en) Turbo product codes for NAND flash
US9128864B2 (en) Memory controller, storage device and error correction method
KR101306645B1 (en) Error correction decoding by trial and error
US8145840B2 (en) Method and system for storing excess data in a redundant array of independent disk level 6
KR102275717B1 (en) Flash memory system and operating method thereof
KR101919990B1 (en) Data processing system and processing method for error correction code thereof
KR20110008301A (en) Copyback optimization for memory system
CN103218271B (en) A kind of data error-correcting method and device
US8832525B2 (en) Memory controller with low density parity check code decoding capability and relevant memory controlling method
US10484014B2 (en) Controller, semiconductor memory system and operating method thereof
US10141952B2 (en) Memory system and operating method thereof
US9304851B2 (en) Decoding with log likelihood ratios stored in a controller
CN104035832A (en) Electronic device and data verification method
CN101634938A (en) Data migration method and data migration device of solid state disk and solid state disk
KR102652293B1 (en) Method for managing memory
CN109766214A (en) A kind of optimal H-matrix generation method and device
US9584159B1 (en) Interleaved encoding
KR20210057787A (en) Turbo product code decoding method, apparatus, decoder and computer recording medium
CN105915234B (en) Scheme for avoiding error correction of turbo product code
CN115827308A (en) Solid state disk data error correction method and solid state disk
CN106708649B (en) Coding/decoding method, memorizer memory devices and memorizer control circuit unit
CN110287716B (en) Data storage method and device
CN108170554B (en) NAND data coding method and device
CN105938728B (en) Encoder and decoder designs for near-balanced codes

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