Summary of the invention
The invention provides data manipulation method among Flash and the Flash,, and improve the reliability of data manipulation among the Flash with reliability and the serviceable life of raising Flash.
The present invention proposes Flash, this Flash comprises: storage block, reference unit and comparing unit, and described reference unit and storage block all are connected to comparing unit, are respectively applied for to comparing unit output reference signal and data-signal; Comparing unit is used for more described reference signal and data-signal and exports comparative result; Also comprise monitoring means, control module, spare reference unit and spare comparison unit; Wherein monitoring means is connected to reference unit and control module, is used to monitor whether operate as normal of reference unit, and is monitoring reference unit can't operate as normal the time, and notice control module control spare reference unit is exported reference signal to spare comparison unit; Control module is connected to monitoring means and spare reference unit, is used to control spare reference unit and exports reference signal to spare comparison unit; Spare reference unit is connected to spare comparison unit, is used for to spare comparison unit output reference signal; And spare comparison unit, be connected to storage block and spare reference unit, be used for the reference signal that data-signal that the comparison storage block sends and spare reference unit are sent, and the output comparative result.
The invention allows for data manipulation method among the Flash, this method comprises: whether monitoring means monitoring reference unit operate as normal, and monitoring reference unit can't operate as normal the time, notice control module control spare reference unit is exported reference signal to spare comparison unit; Control module control spare reference unit is exported reference signal to spare comparison unit; Spare reference unit is exported reference signal to spare comparison unit; The reference signal that data-signal that spare comparison unit comparison storage block is sent and spare reference unit are sent, and output comparative result.
Be provided with above-mentioned spare reference unit, spare comparison unit and control module among the Flash that the present invention proposes, realized when reference unit can't operate as normal, take over reference unit work by control module control spare reference unit, avoid the problems referred to above, improved reliability and the serviceable life of Flash.
In addition among the Flash that proposes of the present invention the data manipulation scheme by when reference unit can't operate as normal, take over the work of reference unit by control module control spare reference unit, even thereby make that reference unit can't operate as normal, can guarantee that also data manipulation is normally carried out among the Flash, has improved the reliability of data manipulation.
Embodiment
The problem of mentioning at background technology, if the embodiment of the invention proposes spare reference unit is set, and be implemented in reference unit can't operate as normal the time in Flash, take over reference unit work by spare reference unit, then can avoid the problems referred to above, improve reliability and the serviceable life of Flash.
Fig. 2 is for the part-structure synoptic diagram of the Flash of embodiment of the invention proposition, and in conjunction with this figure, based on above-mentioned thinking, the Flash that the embodiment of the invention proposes comprises:
Storage block 20, reference unit 21 and comparing unit 22, described reference unit 21 and storage block 20 all are connected to comparing unit 22, are respectively applied for to comparing unit 22 output reference signal and data-signals; Comparing unit 22 is used for more described reference signal and data-signal and exports comparative result, for example logical zero or " 1 "; The reference signal herein and the form of data-signal are generally current signal.
In addition, this Flash also comprises monitoring means 23, control module 24, spare reference unit 25 and spare comparison unit 26; Wherein
Monitoring means 23 is connected to reference unit 21 and control module 24, be used to monitor whether operate as normal of reference unit 21, and monitoring reference unit 21 can't operate as normal the time, notice control module 24 control spare reference unit 25 are to spare comparison unit 26 output reference signals;
The mode of described monitoring means 23 monitoring reference units 21 has multiple, for example can regularly send the duty normal signal by reference unit 21 to monitoring means 23, if monitoring means 23 receives this signal on time, then description references unit 21 is working properly, otherwise thinks that reference unit 21 can't operate as normal.Also can be regularly to reference unit 21 transmitting supervisory signals by monitoring means 23, and receive the duty normal signal that reference unit 21 feeds back to, if can receive this signal, then description references unit 21 is working properly, otherwise can think that reference unit 21 can't operate as normal.
The advice method of described monitoring means 23 notice control modules 24 also can have multiple, for example monitor reference unit 21 can't operate as normal the time when monitoring means 23, send notification signal to control module 24, export reference signals to spare comparison unit 26 by control module 24 control spare reference unit 25; Also can be that control module 24 regularly is used to judge whether the interrogation signal of needs control spare reference unit 25 to spare comparison unit 26 output reference signals to monitoring means 23 transmissions, and after acquisition monitoring means 23 needs the feedback signal of control, carry out above-mentioned control.
Control module 24 is connected to monitoring means 23 and spare reference unit 25, is used to control spare reference unit 25 to spare comparison unit 26 output reference signals;
Described control module 24 normally is stored in the program module among the Flash in advance, can transmit control signal to spare reference unit 25, and control spare reference unit 25 is to spare comparison unit 26 output reference signals.This control signal is generally electric signal.
Spare reference unit 25 is connected to spare comparison unit 26, is used for to spare comparison unit 26 output reference signals;
Because each spare reference unit 25 is connected with a spare comparison unit 26 usually, therefore after the embodiment of the invention increases spare reference unit 25 in Flash, the corresponding spare comparison unit 26 of also adding, and reference signal is delivered to spare comparison unit 26, by spare comparison unit 26 relatively with reference signal and data-signal.
Spare comparison unit 26 is connected to storage block 20 and spare reference unit 25, be used for the reference signal that data-signal that comparison storage block 20 sends and spare reference unit 25 are sent, and output comparative result, this comparative result still is generally logical zero or " 1 ", the effect of the comparative result of its output is consistent with the effect of comparing unit, the auxiliary data manipulation that realizes among the Flash, for example reading and writing of data and wipe etc.
Spare reference unit 25 in the such scheme can also have a plurality of, drawn among Fig. 2 the situation of two spare reference unit 25 has been arranged, then after a spare reference unit 25 is damaged, can take over its work by other follow-up spare reference unit 25, accordingly, spare comparison unit 26 also needs a plurality of, and number is identical with spare reference unit 25, and each spare comparison unit 26 is connected to each spare reference unit 25 respectively.
For realizing having among the Flash scheme of a plurality of spare reference unit 25 and spare comparison unit 26, also need to increase standby monitoring means 27 among the Flash, this standby monitoring means 27 is connected to spare reference unit 25 and control module 24, be used to monitor whether operate as normal of the spare reference unit that self connects 25, and monitoring the spare reference unit 25 that self connects can't operate as normal the time, notice control module 24 other spare reference unit 25 of control are to the spare comparison unit 26 output reference signals of correspondence.
The number of wherein standby monitoring means 27 can be identical with the number of spare reference unit 25, and each standby monitoring means 27 is connected to each spare reference unit 25 respectively, in this case, suppose to have N spare reference unit 25, when then any one can't operate as normal in a preceding N-1 spare reference unit 25, can monitor it by standby monitoring means can't operate as normal, takes over its work by other spare reference unit 25; If there be N-1 the spare reference unit 25 can't operate as normal, the standby monitoring means 27 that then is connected to N spare reference unit 25 can send information etc. monitoring can't operate as normal the time, is convenient to the user and handles.Certainly, it also is feasible that the number of standby monitoring means 27 lacks one than the number of spare reference unit 25, if because after N spare reference unit 25 damages this moment, even being arranged, standby monitoring means 27 monitors out its damage, because a preceding N-1 spare reference unit 25 has been damaged, therefore there has not been spare reference unit 25 can take over its work, so the standby monitoring means 27 of N spare reference unit 25 connections is omissible.If do not omit, then can add effects such as sending information.
In addition, above-mentioned standby monitoring means 27 is connected to control module 24, and promptly standby monitoring means 27 and monitoring means 23 are connected to same control module 24, in fact, also can increase other control module, be connected to standby monitoring means 26 by it, this is optional certainly.
In conjunction with above-mentioned Flash structure, the embodiment of the invention has also proposed the data manipulation method among the Flash, to improve the reliability of data manipulation.
Fig. 3 is the data manipulation method process flow diagram among the Flash of embodiment of the invention proposition, and in conjunction with this figure, this method comprises:
Whether step 1, monitoring means 23 monitoring reference unit 21 operate as normal, and is monitoring reference unit 21 can't operate as normal the time, and notice control module 24 control spare reference unit 25 are to spare comparison unit 26 output reference signals;
Step 2, control module 24 control spare reference unit 25 are to spare comparison unit 26 output reference signals;
Step 3, spare reference unit 25 is to spare comparison unit 26 output reference signals;
Step 4, the reference signal that data-signal that spare comparison unit 26 comparison storage blocks 20 are sent and spare reference unit 25 are sent, and output comparative result.
Optionally, if a plurality of spare reference unit 25 and spare comparison unit 26 are arranged, after then increasing standby monitoring means 27, this method also comprises: whether spare reference unit that 27 monitorings of standby monitoring means connect self 25 operate as normal, and monitoring the spare reference unit 25 that self connects can't operate as normal the time, notice control module 24 other spare reference unit 25 of control are to the spare comparison unit 26 output reference signals of correspondence.
Wherein with reference to above-mentioned Flash embodiment, the number of described standby monitoring means 27 can equal the number of spare reference unit 25, and each standby monitoring means 27 is connected with each spare reference unit 25 respectively; Described standby monitoring means 27 lacks one than spare reference unit 25, and each standby monitoring means 27 is connected to different spare reference unit 25 respectively.
In the said method, by when reference unit can't operate as normal, take over the work of reference unit by spare reference unit, thereby even make that reference unit can't operate as normal, can guarantee that also data manipulation is normally carried out among the Flash, has improved the reliability of data manipulation.
The specific implementation process of this data manipulation scheme obtains easily with reference to the enforcement of above-mentioned Flash, repeats no more herein.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.