CN105556489A - Data processing method and apparatus - Google Patents

Data processing method and apparatus Download PDF

Info

Publication number
CN105556489A
CN105556489A CN201480003909.0A CN201480003909A CN105556489A CN 105556489 A CN105556489 A CN 105556489A CN 201480003909 A CN201480003909 A CN 201480003909A CN 105556489 A CN105556489 A CN 105556489A
Authority
CN
China
Prior art keywords
data
storage unit
destination storage
unit
target
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
CN201480003909.0A
Other languages
Chinese (zh)
Other versions
CN105556489B (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.)
Honor Device Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN105556489A publication Critical patent/CN105556489A/en
Application granted granted Critical
Publication of CN105556489B publication Critical patent/CN105556489B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Disclosed are a data processing method and apparatus. The data processing method comprises: when a target data unit needs to be stored, obtaining the number of first data and the number of second data in the target data unit, with the type of the first data being a first type and the type of the second data being a second type; and if the number of the first data is larger than the number of the second data, obtaining a first target location of the second data in the target data unit, and writing data of the first type into the first target location in a target storage unit prefilled as data of the second type. The use of the present invention enables an efficient storage of the target data unit into the target storage unit, and there is small power consumption.

Description

Data processing method and apparatus
A kind of data processing method, device
Technical field
The present invention relates to electronic technology field, more particularly to a kind of data processing method, device.Background technology
With the development of various applications, generally require to store data used in various applications, be typically that by the data storage of various applications in the internal memory of computer, various calculator memories are to use new nonvolatile memory now(Non- volatile memory, NVM), such as phase transition storage (Phase-change Random Access memory, PCM), PCM memory includes multiple memory cell, when needing to store various application datas, application data is divided into data cell, then corresponding data cell is stored in into the memory cell of PCM memory, data cell generally comprises one or two kinds of categorical data, for example:The data that the data and/or data value for being 1 including data value are 0.
It is existing data cell is stored into the method into the memory cell of PCM memory to be, by all digits of memory cell it is pre-filled be data that data value is 1, when needing toward data storage unit in memory cell, target location of the data that then data value is 0 in searching data unit in data cell, then thus data cell is stored in the memory unit corresponding to the data that write-in digital value is 0 in the storage location of target location into memory cell.When the data amount check that this method digital value included in data cell is 0 is less than the number for the data that digital value is 1, reduce power consumption and the delay of data storage, but when number of the data amount check that digital value included in data cell is 0 more than the data that digital value is 1, this method is due to needing the target location of the data that digital value is 0 in searching data unit, power consumption and the delay of data storage can be increased on the contrary, the data amount check that digital value is 0 in data cell in this way be more than digital value be 1 data amount check when, efficiency comparison is low, and power dissipation ratio is larger.The content of the invention
The embodiments of the invention provide a kind of data processing method, device, expeditiously target data unit can be stored into Destination Storage Unit, and power consumption is smaller.
First aspect present invention provides a kind of data processing method, it may include:
When needing to store target data unit, the number of the number of the first data and the second data in target data unit is obtained, the type of first data is the first kind, and the type of second data is Second Type; If the number of first data is more than the number of second data, then obtain first object position of second data in the target data unit, and the data for the first kind being write in first object position described in the Destination Storage Unit of the pre-filled data for the Second Type.
Based in a first aspect, in the first feasible embodiment, methods described also includes:If the number of first data is less than or equal to the number of second data, then obtain second target location of first data in the target data unit, and the data for the first kind being write in the second target location described in the Destination Storage Unit of the pre-filled data for the Second Type.
The first feasible embodiment based on first aspect, in second of feasible embodiment, if the number of first data is more than the number of second data, then obtain first object position of second data in the target data unit, and will be write described in the Destination Storage Unit of the pre-filled data for the Second Type in first object position after the data of the first kind, in addition to:
The flag bit of the Destination Storage Unit is set to the first mark, described first identifies for identifying the initial data in the non-target data unit of data stored in the Destination Storage Unit.
Based on second of feasible embodiment of first aspect, in the third feasible embodiment, if the number of first data is less than or equal to the number of second data, then obtain second target location of first data in the target data unit, and will be write described in the Destination Storage Unit of the pre-filled data for the Second Type in the second target location after the data of the first kind, in addition to:
The flag bit of the Destination Storage Unit is set to the second mark, described second to identify for identifying the data stored in the Destination Storage Unit be the initial data in the target data unit.
The third feasible embodiment based on first aspect, in the 4th kind of feasible embodiment, methods described also includes:
When needing to obtain the target data unit stored in the Destination Storage Unit, the flag bit of the Destination Storage Unit is read;
If the flag bit is the described first mark, the data of the first kind described in the Destination Storage Unit are then converted into the data of the Second Type, the data of Second Type described in the Destination Storage Unit are converted into the data of the first kind, and the target data unit that the data after conversion processing are defined as being stored in the Destination Storage Unit;
If the flag bit is the described second mark, the number stored in the Destination Storage Unit is read Member.
Second aspect of the present invention provides a kind of data processing equipment, it may include:
Acquisition module, for when needing to store target data unit, obtaining the number of the number of the first data and the second data in target data unit, the type of first data is the first kind, and the type of second data is Second Type;
First writing module, if the number for first data is more than the number of second data, then obtain first object position of second data in the target data unit, and the data for the first kind being write in first object position described in the Destination Storage Unit of the pre-filled data for the Second Type.
Based on second aspect, in the first feasible embodiment, described device also includes:Second writing module, if the number for first data is less than or equal to the number of second data, then obtain second target location of first data in the target data unit, and the data for the first kind being write in the second target location described in the Destination Storage Unit of the pre-filled data for the Second Type.
The first feasible embodiment based on second aspect, in second of feasible embodiment, described device also includes:
First setup module, for the flag bit of the Destination Storage Unit to be set into the first mark, described first identifies for identifying the initial data in the non-target data unit of data stored in the Destination Storage Unit.
Second based on second aspect feasible embodiment, in the third feasible embodiment, second setup module, for the flag bit of the Destination Storage Unit to be set into the second mark, described second to identify for identifying the data stored in the Destination Storage Unit be the initial data in the target data unit.
The third feasible embodiment based on second aspect, in the 4th kind of feasible embodiment, described device also includes:
Read module, for when needing to obtain the target data unit stored in the Destination Storage Unit, reading the flag bit of the Destination Storage Unit;
Determining module is converted, if being the described first mark for the flag bit, the target is stored single The data of the first kind described in member are converted into the data of the Second Type, the data of Second Type described in the Destination Storage Unit are converted into the data of the first kind, and the target data unit that the data after conversion processing are defined as being stored in the Destination Storage Unit;
Determining module is read, if being the described second mark for the flag bit, the target is read and stores the target data unit.
Third aspect present invention provides a kind of data processing equipment, it may include processor, wherein:The processor, for when needing to store target data unit, obtaining the number of the number of the first data and the second data in target data unit, the type of first data is the first kind, and the type of second data is Second Type;
If the processor is additionally operable to number of the number more than second data of first data, then obtain first object position of second data in the target data unit, and the data for the first kind being write in first object position described in the Destination Storage Unit of the pre-filled data for the Second Type.
Based on the third aspect, in the first feasible embodiment, if the processor is additionally operable to number of the number less than or equal to second data of first data, then obtain second target location of first data in the target data unit, and the data for the first kind being write in the second target location described in the Destination Storage Unit of the pre-filled data for the Second Type.
The first feasible embodiment based on the third aspect, in second of feasible embodiment, the processor is additionally operable to the flag bit of the Destination Storage Unit being set to the first mark, and described first identifies for identifying the initial data in the non-target data unit of data stored in the Destination Storage Unit.
Second based on the third aspect feasible embodiment, in the third feasible embodiment, the processor is additionally operable to the flag bit of the Destination Storage Unit being set to the second mark, and described second to identify for identifying the data stored in the Destination Storage Unit be the initial data in the target data unit.
The third feasible embodiment based on the third aspect, in the 4th kind of feasible embodiment, the processor is additionally operable to when needing to obtain the target data unit stored in the Destination Storage Unit, reads the flag bit of the Destination Storage Unit;
If it is the described first mark that the processor, which is additionally operable to the flag bit, by the Destination Storage Unit Described in the data of the first kind be converted into the data of the Second Type, the data of Second Type described in the Destination Storage Unit are converted into the data of the first kind, and the target data unit that the data after conversion processing are defined as being stored in the Destination Storage Unit;
If it is the described second mark that the processor, which is additionally operable to the flag bit, reads the target storage and singly state target data unit.
In the embodiment of the present invention, when needing to store target data unit, the number for the second data that type is the number of the first data of the first kind in acquisition target data unit and type is Second Type, when the number of the first data is more than the number of the second data, then obtain target location of relatively small number of second data of number in target data unit, and the data that the target location in the Destination Storage Unit of the data of Second Type writes the first kind will be pre-charged with, for replacing the second data in target data unit, in the embodiment of the present invention, the data of Second Type in target data unit are replaced with the data of the first kind in Destination Storage Unit, first kind data are more in target data unit, when Second Type data are less, also only needing to write the data of the less first kind is used to replace relatively small number of Second Type data in target data unit, so efficiency comparison is high, and because write-in data are less, so power consumption is also than relatively low.Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, the required accompanying drawing used in embodiment will be briefly described below, apparently, drawings in the following description are only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
A kind of schematic flow sheet for data processing method that Fig. 1 provides for the present invention;
The schematic flow sheet for another data processing method that Fig. 2 provides for the present invention;
A kind of storage organization figure that Fig. 3 provides for the present invention;
A kind of structural representation for data processing equipment that Fig. 4 provides for the present invention;
The structural representation for another data processing equipment that Fig. 5 provides for the present invention;
The structural representation for another data processing equipment that Fig. 6 provides for the present invention;Embodiment Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made belongs to the scope of protection of the invention.
In the embodiment of the present invention, the data of the first kind can be the data that data value is 0, then the data of Second Type can be the data that data value is 1;The data of the first kind can be the data that data value is 1, then the data of Second Type can be the data that data value is 0.The data processing method of the embodiment of the present invention can apply into calculator memory in the application scenarios of data storage, with the development of various applications, calculator memory is typically stored with nonvolatile memory NVM, such as PCM memory, its scalability is more preferable, density is bigger, can accomplish bigger capacity, and energy consumption is lower.The data stored into internal memory can be binary data, when writing ' 0 into PCM, when, a plus higher voltage, the duration is shorter, when writing T into PCM, plus a relatively low voltage, and the duration is longer.Below in conjunction with accompanying drawing 1- accompanying drawings 3, data processing method provided in an embodiment of the present invention is described in detail.
Fig. 1 is referred to, is a kind of schematic flow sheet of data processing method provided in an embodiment of the present invention;This method may include following steps S 100- steps S 101.
S100, when needing to store target data unit, obtains the number of the number of the first data and the second data in target data unit, the type of first data is the first kind, and the type of second data is Second Type;
In one embodiment, when needing to store target data unit into Destination Storage Unit, firstly the need of the number for obtaining the number of the first data and the second data in target data unit, when being stored in computer systems to data, usually stored in the form of data cell, a data cell can include 8bit data.Therefore there are multiple data in target data unit, and the type of included data can also have a variety of in target data unit, for example, when data are stored in binary form, then type included in target data unit has two kinds, the first kind and Second Type, the data of the first kind can be the data that data value is 0, the data of Second Type can be the data that data value is 1, then the first data in target data unit are the data that total data value is 0, and the second data are the data that total data value is 1.It should be noted that the data of the first kind can also be the data that data value is 1, second The data of type can be the data that data value is 0, then the first data in target data unit are the data that total data value is 1, and the second data are the data that total data value is 0.
S101, if the number of first data is more than the number of second data, then obtain first object position of second data in the target data unit, and the data for the first kind being write in first object position described in the Destination Storage Unit of the pre-filled data for the Second Type.
In one embodiment, when to data storage into calculator memory, in order to reduce the data volume of write-in data, delay is reduced simultaneously, typically calculator memory can all be carried out pre-filled, it is to fill a type of data in each memory cell in advance, when data storage to memory cell, then directly changes the different digit of data value in the memory unit.Because the digit sometimes for modification is excessive, need to write substantial amounts of data, the larger delay of power consumption can be caused longer, therefore, in embodiments of the present invention, pre-filled data type is the data of Second Type, when type is that the numbers of the first data of the first kind more than type is the number of the second data of Second Type in target data unit, then directly obtain the first object position of the data of Second Type in target data unit, and the data for the first kind being write in first object position in Destination Storage Unit, the data of Second Type in target data unit are replaced with the data of the first kind, the data of the first kind in target data unit are replaced with the data of Second Type, upset storage is carried out equivalent to each data in target data unit.
Here illustrated exemplified by storing binary data in Destination Storage Unit, due to considering power consumption and delay, it is general that the data that data value is 1 are pre-charged with Destination Storage Unit, the data for being Second Type are the data that data value is 1, and the data of the first kind are the data that data value is 0.When the data amount check that data value is 0 in target data unit is more than the number for the data that data value is 1, such as target data unit is 10000100, the data amount check that data value is 0 is 6, the number for the data that data value is 1 is 2, the data amount check that data value is 0 is more than the number for the data that data value is 1, then obtain the first object position of the data that data value is 1 in target data unit, in the present embodiment, first object position is first and the 6th, the data that data value is 0 are then write at first of Destination Storage Unit and the 6th, since replace target data unit in data value be 1 data, the data then stored in Destination Storage Unit are 01111011, the initial data of the data stored not target data unit, but the data negated after computing of initial data.
In the embodiment of the present invention, when needing to store target data unit, the number for the second data that type is the number of the first data of the first kind in acquisition target data unit and type is Second Type, when When the number of first data is more than the number of the second data, then obtain target location of relatively small number of second data of number in target data unit, and the data that the target location in the Destination Storage Unit of the data of Second Type writes the first kind will be pre-charged with, for replacing the second data in target data unit, in the embodiment of the present invention, the data of Second Type in target data unit are replaced with the data of the first kind in Destination Storage Unit, first kind data are more in target data unit, when Second Type data are less, also only needing to write the data of the less first kind is used to replace relatively small number of Second Type data in target data unit, so efficiency comparison is high, and because write-in data are less, so power consumption is also than relatively low.Fig. 2 is referred to, is the schematic flow sheet of another data processing method provided in an embodiment of the present invention;This method may include following steps S200- steps S207.
5200, when needing to store target data unit, the number of the number of the first data and the second data in target data unit is obtained, the type of first data is the first kind, and the type of second data is Second Type;
Step of embodiment of the present invention S200 may refer to the step S100 shown in Fig. 1, no longer carry out praising and stating herein.
5201, if the number of first data is more than the number of second data, then obtain first object position of second data in the target data unit, and the data for the first kind being write in first object position described in the Destination Storage Unit of the pre-filled data for the Second Type.
Step of embodiment of the present invention S201 may refer to the step S101 shown in Fig. 1, no longer carry out praising and stating herein.
5202, the flag bit of the Destination Storage Unit is set to the first mark, described first identifies for identifying the initial data in the non-target data unit of data stored in the Destination Storage Unit.
It is used as a kind of optional embodiment, after target data unit has been stored, data are read for convenience, the flag bit in Destination Storage Unit is needed to be configured, when the initial data of the data non-targeted data cell stored in Destination Storage Unit, it is in storage, it is to be stored according to step S201 method, the flag bit of Destination Storage Unit is then set to the first mark, first mark is the initial data in the data non-targeted data cell for identifying and being stored in Destination Storage Unit, as described in Figure 3, to store the scene graph of binary data in PCM memories, in first aim memory cell, flag bit is provided with the first mark, first mark is replaced with data value for 0 data.The number then stored in Destination Storage Unit It is not the initial data of target data unit according to 01111011, is negated when needing to read the target data unit stored in the Destination Storage Unit, it is necessary to which the data in Destination Storage Unit are carried out into step-by-step.
5203, if the number of first data is less than or equal to the number of second data, then obtain second target location of first data in the target data unit, and the data for the first kind being write in the second target location described in the Destination Storage Unit of the pre-filled data for the Second Type.
As an alternative embodiment, the type of the first data is the first kind, the type of the second data is Second Type.The type of pre-filled data is Second Type in Destination Storage Unit, because the number of the first data in target data unit is less than or equal to the number of the second data, in order to write less data amount in Destination Storage Unit, then corresponding position the data of the first kind can be write directly in Destination Storage Unit, be that the data stored in Destination Storage Unit are initial data in target data unit.
Here illustrated exemplified by storing binary data in Destination Storage Unit, due to considering power consumption and delay, it is general that the data that data value is 1 are pre-charged with Destination Storage Unit, the data for being Second Type are the data that data value is 1, and the data of the first kind are the data that data value is 0.When the data amount check that data value is 0 in target data unit is less than or equal to the number for the data that data value is 1, such as target data unit is 11111010, the data amount check that data value is 0 is 2, the number for the data that data value is 1 is 6, the data amount check that data value is 0 is less than the number for the data that data value is 1, then obtain the first object position of the data that data value is 0 in target data unit, in the present embodiment, first object position is the 6th and the 8th, the data that data value is 0 are then write at the 6th of Destination Storage Unit and the 8th, since replace target data unit in data value be 0 data, the data then stored in Destination Storage Unit are 11111010, the data stored are the initial data of target data unit, specifically, second memory cell in PCM memory as described in Figure 3.
5204, the flag bit of the Destination Storage Unit is set to the second mark, described second to identify for identifying the data stored in the Destination Storage Unit be the initial data in the target data unit.
It is used as a kind of optional embodiment, after target data unit has been stored, data are read for convenience, the flag bit in Destination Storage Unit is needed to be configured, when the data stored in Destination Storage Unit are the initial data of target data unit, it is in storage, it is to be stored according to step S203 method, the flag bit of Destination Storage Unit is then set to the second mark, second mark is to identify the scene graph that binary data is stored in target memory, in second target memory cell, flag bit is provided with Second mark, the second mark is replaced with data value for 1 data.The data 11111010 then stored in Destination Storage Unit are the initial data of target data unit, when needing to read the target data unit stored in the Destination Storage Unit, directly read the data in Destination Storage Unit.
5205, when needing to obtain the target data unit stored in the Destination Storage Unit, read the flag bit of the Destination Storage Unit;
As an alternative embodiment, target data unit is stored to target data unit, when wanting invocation target data cell, then need to go to obtain target data unit from Destination Storage Unit.In embodiments of the present invention, the method of target data unit is obtained based on the rule that target data unit is stored into Destination Storage Unit, so, when needing to obtain the target data unit stored in Destination Storage Unit, read the flag bit of Destination Storage Unit first, the effect of flag bit is to identify whether the data stored in Destination Storage Unit are initial data in target data unit.
5206, if the flag bit is the described first mark, the data of the first kind described in the Destination Storage Unit are then converted into the data of the Second Type, the data of Second Type described in the Destination Storage Unit are converted into the data of the first kind, and the target data unit that the data after conversion processing are defined as being stored in the Destination Storage Unit;
It is used as a kind of optional embodiment, if the flag bit of Destination Storage Unit is the first mark, then show the initial data of data non-targeted data cell stored in Destination Storage Unit, when needing to obtain the target data unit stored in Destination Storage Unit, it is necessary to which the data stored in Destination Storage Unit are carried out into a series of conversion processing.If the data in Destination Storage Unit are the data of the first kind, the data of the first kind are converted into the data of Second Type, if the data in Destination Storage Unit are the data of Second Type, the data of Second Type are converted into the data of the first kind.Target data unit to being deposited in Destination Storage Unit successively.
Here continue to illustrate exemplified by storing binary data in Destination Storage Unit, as described in Fig. 3, it is the first mark in the flag bit of first aim memory cell, it is that flag bit is the data that data value is 0, then demonstrate the need for that the data stored in Destination Storage Unit are needed to convert, first kind data, are that the data that data value is 0 need to be converted into Second Type data, are the data that data value is 1;Second Type data, are that the data that data value is 1 need to be converted into first kind data, are the data that data value is 0, therefore, after being converted successively to each data stored in Destination Storage Unit Obtained binary data is:10000100, data 10000100 are defined as the target data unit that the Destination Storage Unit is stored.
S207, if the flag bit is the described second mark, reads institute's memory cell in the Destination Storage Unit.
It is used as a kind of optional embodiment, if the flag bit of Destination Storage Unit is the second mark, when then table takes the target data unit stored in Destination Storage Unit, then directly read in Destination Storage Unit to deposit and continue to illustrate exemplified by storing binary data in Destination Storage Unit here, as described in Fig. 3, in second target memory cell, the flag bit of Destination Storage Unit is the second mark, it is the data that data value is 1, the data 11111010 then stored in Destination Storage Unit are the initial data in target data unit, when therefore needing to obtain the target data unit stored in Destination Storage Unit, need only to read stored data 11111010 from Destination Storage Unit, and data 11111010 are defined as the target data unit that the Destination Storage Unit is stored.
In the embodiment of the present invention, when needing to store target data unit, the number for the second data that type is the number of the first data of the first kind in acquisition target data unit and type is Second Type, when the number of the first data is more than the number of the second data, then obtain target location of relatively small number of second data of number in target data unit, and the data that the target location in the Destination Storage Unit of the data of Second Type writes the first kind will be pre-charged with, for replacing the second data in target data unit, in the embodiment of the present invention, the data of Second Type in target data unit are replaced with the data of the first kind in Destination Storage Unit, first kind data are more in target data unit, when Second Type data are less, also only needing to write the data of the less first kind is used to replace relatively small number of Second Type data in target data unit, so efficiency comparison is high, and because write-in data are less, so power consumption is also than relatively low.Below in conjunction with accompanying drawing 4- accompanying drawings 6, the structure to data processing equipment provided in an embodiment of the present invention describes in detail.It should be noted that following data processing equipments can apply in the above method.
Fig. 4 is referred to, is a kind of structural representation of data processing equipment provided in an embodiment of the present invention;The data processing equipment may include:The writing module 101 of acquisition module 100 and first. Acquisition module 100, for when needing to store target data unit, the number of the number of the first data and the second data in target data unit is obtained, the type of first data is the first kind, and the type of second data is Second Type;
In one embodiment, when needing to store target data unit into Destination Storage Unit, acquisition module 100 needs to obtain the number of the number of the first data and the second data in target data unit first, when being stored in computer systems to data, usually stored in the form of data cell, a data cell can include 8bit data.Therefore there are multiple data in target data unit, and the type of included data can also have a variety of in target data unit, for example, when data are stored in binary form, then type included in target data unit has two kinds, the first kind and Second Type, the data of the first kind can be the data that data value is 0, the data of Second Type can be the data that data value is 1, then the first data in target data unit are the data that total data value is 0, and the second data are the data that total data value is 1.It should be noted that, the data of the first kind can also be the data that data value is 1, the data of Second Type can be the data that data value is 0, then the first data in target data unit are the data that total data value is 1, and the second data are the data that total data value is 0
First writing module 101, if the number for first data is more than the number of second data, then obtain first object position of second data in the target data unit, and the data for the first kind being write in first object position described in the Destination Storage Unit of the pre-filled data for the Second Type.
In one embodiment, when to data storage into calculator memory, in order to reduce the data volume of write-in data, delay is reduced simultaneously, typically calculator memory can all be carried out pre-filled, it is to fill a type of data in each memory cell in advance, when data storage to memory cell, then directly changes the different digit of data value in the memory unit.Because the digit sometimes for modification is excessive, need to write substantial amounts of data, the larger delay of power consumption can be caused longer, therefore, in embodiments of the present invention, pre-filled data type is the data of Second Type, when type is that the numbers of the first data of the first kind more than type is the number of the second data of Second Type in target data unit, then the first writing module 101 directly obtains the first object position of the data of Second Type in target data unit, and the data for the first kind being write in first object position in Destination Storage Unit, the data of Second Type in target data unit are replaced with the data of the first kind, the data of the first kind in target data unit are replaced with the data of Second Type, upset storage is carried out equivalent to each data in target data unit. Here illustrated exemplified by storing binary data in Destination Storage Unit, due to considering power consumption and delay, it is general that the data that data value is 1 are pre-charged with Destination Storage Unit, the data for being Second Type are the data that data value is 1, and the data of the first kind are the data that data value is 0.When the data amount check that data value is 0 in target data unit is more than the number for the data that data value is 1, such as target data unit is 10000100, the data amount check that data value is 0 is 6, the number for the data that data value is 1 is 2, the data amount check that data value is 0 is more than the number for the data that data value is 1, then obtain the first object position of the data that data value is 1 in target data unit, in the present embodiment, first object position is first and the 6th, the data that data value is 0 are then write at first of Destination Storage Unit and the 6th, since replace target data unit in data value be 1 data, the data then stored in Destination Storage Unit are 01111011, the initial data of the data stored not target data unit, but the data negated after computing of initial data.
In the embodiment of the present invention, when needing to store target data unit, the number for the second data that type is the number of the first data of the first kind in acquisition target data unit and type is Second Type, when the number of the first data is more than the number of the second data, then obtain target location of relatively small number of second data of number in target data unit, and the data that the target location in the Destination Storage Unit of the data of Second Type writes the first kind will be pre-charged with, for replacing the second data in target data unit, in the embodiment of the present invention, the data of Second Type in target data unit are replaced with the data of the first kind in Destination Storage Unit, first kind data are more in target data unit, when Second Type data are less, also only needing to write the data of the less first kind is used to replace relatively small number of Second Type data in target data unit, so efficiency comparison is high, and because write-in data are less, so power consumption is also than relatively low.Fig. 5 is referred to, is the structural representation of another data processing equipment provided in an embodiment of the present invention;The data processing equipment may include:Acquisition module 100, the first writing module 101, the first setup module 102, the second writing module 103, the second setup module 104, read module 105, conversion determining module 106 and reading determining module 107, wherein, the writing module 101 of acquisition module 100 and first is referring to Fig. 4, will not be described here.
First setup module 102, for the flag bit of the Destination Storage Unit to be set into the first mark, described first identifies for identifying the initial data in the non-target data unit of data stored in the Destination Storage Unit. It is used as a kind of optional embodiment, after target data unit has been stored, data are read for convenience, first setup module 102 needs the flag bit in Destination Storage Unit to be configured, when the initial data of the data non-targeted data cell stored in Destination Storage Unit, then the flag bit of Destination Storage Unit is set to the first mark by the first setup module 102, first mark is the initial data in the data non-targeted data cell for identifying and being stored in Destination Storage Unit, as described in Figure 3, to store the scene graph of binary data in PCM memory, in first aim memory cell, flag bit is provided with the first mark, first mark is replaced with data value for 0 data.The data 01111011 then stored in Destination Storage Unit are not the initial data of target data unit, are negated when needing to read the target data unit stored in the Destination Storage Unit, it is necessary to which the data in Destination Storage Unit are carried out into step-by-step.
Second writing module 103, if the number for first data is less than or equal to the number of second data, then obtain second target location of first data in the target data unit, and the data for the first kind being write in the second target location described in the Destination Storage Unit of the pre-filled data for the Second Type.
As an alternative embodiment, the type of the first data is the first kind, the type of the second data is Second Type.The type of pre-filled data is Second Type in Destination Storage Unit, because the number of the first data in target data unit is less than or equal to the number of the second data, in order in Destination Storage Unit write less data amount, then the second writing module 103 can directly in Destination Storage Unit corresponding position initial data.
Here illustrated exemplified by storing binary data in Destination Storage Unit, due to considering power consumption and delay, it is general that the data that data value is 1 are pre-charged with Destination Storage Unit, the data for being Second Type are the data that data value is 1, and the data of the first kind are the data that data value is 0.When the data amount check that data value is 0 in target data unit is less than or equal to the number for the data that data value is 1, such as target data unit is 11111010, the data amount check that data value is 0 is 2, the number for the data that data value is 1 is 6, the data amount check that data value is 0 is less than the number for the data that data value is 1, then the second writing module 103 obtains the first object position for the data that data value in target data unit is 0, in the present embodiment, first object position is the 6th and the 8th, then the second writing module 103 writes the data that data value is 0 at the 6th of Destination Storage Unit and the 8th, since replace target data unit in data value be 0 data, the data then stored in Destination Storage Unit are 11111010, the data stored are targets The initial data of data cell, specifically, second memory cell in PCM memory as described in Figure 3.
Second setup module 104, for the flag bit of the Destination Storage Unit to be set into the second mark, described second to identify for identifying the data stored in the Destination Storage Unit be the initial data in the target data unit.
It is used as a kind of optional embodiment, after target data unit has been stored, data are read for convenience, second setup module 104 needs the flag bit in Destination Storage Unit to be configured, when the data stored in Destination Storage Unit are the initial data of target data unit, then the flag bit of Destination Storage Unit is set to the second mark by the second setup module 104, second mark is that to identify the data that are stored in Destination Storage Unit be the initial data in target data unit, as described in Figure 3, to store the scene graph of binary data in PCM memory, in second target memory cell, flag bit is provided with the second mark, second mark is replaced with data value for 1 data.The data 11111010 then stored in Destination Storage Unit are the initial data of target data unit, when needing to read the target data unit stored in the Destination Storage Unit, directly read the data in Destination Storage Unit.
Read module 105, for when needing to obtain the target data unit stored in the Destination Storage Unit, reading the flag bit of the Destination Storage Unit;
As an alternative embodiment, target data unit is stored to target data unit, when wanting invocation target data cell, then need to go to obtain target data unit from Destination Storage Unit.In embodiments of the present invention, the method of target data unit is obtained based on the rule that target data unit is stored into Destination Storage Unit, so, when needing to obtain the target data unit stored in Destination Storage Unit, read module 105 first reads the flag bit of Destination Storage Unit, and the effect of flag bit is to identify whether the data stored in Destination Storage Unit are initial data in target data unit.
Convert determining module 106, if being the described first mark for the flag bit, the data of the first kind described in the Destination Storage Unit are then converted into the data of the Second Type, the data of Second Type described in the Destination Storage Unit are converted into the data of the first kind, and it regard described after conversion processing as a kind of optional embodiment, if the flag bit of Destination Storage Unit is the first mark, then show the initial data of data non-targeted data cell stored in Destination Storage Unit, when needing to obtain the target data unit stored in Destination Storage Unit, conversion determining module 106 is needed Destination Storage Unit Middle stored data carry out a series of conversion processing.If the data in Destination Storage Unit are the data of the first kind, then the data of the first kind are converted into the data of Second Type by conversion determining module 106, if the data in Destination Storage Unit are the data of Second Type, the data of Second Type are converted into the data of the first kind by conversion determining module 106.Convert the mark data cell of determining module 106 successively to being stored in Destination Storage Unit.
Here continue to illustrate exemplified by storing binary data in Destination Storage Unit, as described in Fig. 3, it is the first mark in the flag bit of first aim memory cell, it is that flag bit is the data that data value is 0, then demonstrate the need for that the data stored in Destination Storage Unit are needed to convert, first kind data, are that the data that data value is 0 need to be converted into Second Type data, are the data that data value is 1;Second Type data, it is that the data that data value is 1 need to be converted into first kind data, it is the data that data value is 0, therefore, the binary data that conversion determining module 106 is obtained after being converted successively to each data stored in Destination Storage Unit is:10000100, data 10000100 are defined as the target data unit that the Destination Storage Unit is stored.
Determining module 107 is read, if being the described second mark for the flag bit, the target data unit of the target storage is read.
It is used as a kind of optional embodiment, if the flag bit of Destination Storage Unit is the second mark, it is the initial data of target data unit then to show the data stored in Destination Storage Unit, therefore, when needing to obtain the target data unit stored in Destination Storage Unit, then read determining module 107 and directly read purpose target data unit.
Here continue to illustrate exemplified by storing binary data in Destination Storage Unit, as described in Fig. 3, in second target memory cell, the flag bit of Destination Storage Unit is the second mark, it is the data that data value is 1, the data 11111010 then stored in Destination Storage Unit are the initial data in target data unit, when therefore needing to obtain the target data unit stored in Destination Storage Unit, need only to reading determining module 107 and stored data 11111010 are read from Destination Storage Unit, and data 11111010 are defined as the target data unit that the Destination Storage Unit is stored.
In the embodiment of the present invention, when needing to store target data unit, target data unit is obtained The number for the second data that middle type is the number of the first data of the first kind and type is Second Type, when the number of the first data is more than the number of the second data, then obtain target location of relatively small number of second data of number in target data unit, and the data that the target location in the Destination Storage Unit of the data of Second Type writes the first kind will be pre-charged with, for replacing the second data in target data unit, in the embodiment of the present invention, the data of Second Type in target data unit are replaced with the data of the first kind in Destination Storage Unit, first kind data are more in target data unit, when Second Type data are less, also only needing to write the data of the less first kind is used to replace relatively small number of Second Type data in target data unit, so efficiency comparison is high, and because write-in data are less, so power consumption is also than relatively low.Fig. 6 is referred to, is the structural representation of another data processing equipment provided in an embodiment of the present invention;The data processing equipment may include:Processor device 200.
Processor 200, for when needing to store target data unit, obtaining the number of the number of the first data and the second data in target data unit, the type of first data is the first kind, and the type of second data is Second Type;
Optionally, when needing to store target data unit into Destination Storage Unit, firstly the need of the number for obtaining the number of the first data and the second data in target data unit, when being stored in computer systems to data, usually stored in the form of data cell, a data cell can include 8bit data.Therefore there are multiple data in target data unit, and the type of included data can also have a variety of in target data unit, for example, when data are stored in binary form, then type included in target data unit has two kinds, the first kind and Second Type, the data of the first kind can be the data that data value is 0, the data of Second Type can be the data that data value is 1, then the first data in target data unit are the data that total data value is 0, and the second data are the data that total data value is 1.It should be noted that, the data of the first kind can also be the data that data value is 1, the data of Second Type can be the data that data value is 0, then the first data in target data unit are the data that total data value is 1, and the second data are the data that total data value is 0.
Processor 200, if the number for being additionally operable to first data is more than the number of second data, then obtain first object position of second data in the target data unit, and the data for the first kind being write in first object position described in the Destination Storage Unit of the pre-filled data for the Second Type. Optionally, when to data storage into calculator memory, in order to reduce the data volume of write-in data, delay is reduced simultaneously, typically calculator memory can all be carried out pre-filled, it is to fill a type of data in each memory cell in advance, when data storage to memory cell, then directly changes the different digit of data value in the memory unit.Because the digit sometimes for modification is excessive, need to write substantial amounts of data, the larger delay of power consumption can be caused longer, therefore, in embodiments of the present invention, pre-filled data type is the data of Second Type, when type is that the numbers of the first data of the first kind more than type is the number of the second data of Second Type in target data unit, then directly obtain the first object position of the data of Second Type in target data unit, and the data for the first kind being write in first object position in Destination Storage Unit, the data of Second Type in target data unit are replaced with the data of the first kind, the data of the first kind in target data unit are replaced with the data of Second Type, upset storage is carried out equivalent to each data in target data unit.
Here illustrated exemplified by storing binary data in Destination Storage Unit, due to considering power consumption and delay, it is general that the data that data value is 1 are pre-charged with Destination Storage Unit, the data for being Second Type are the data that data value is 1, and the data of the first kind are the data that data value is 0.When the data amount check that data value is 0 in target data unit is more than the number for the data that data value is 1, such as target data unit is 10000100, the data amount check that data value is 0 is 6, the number for the data that data value is 1 is 2, the data amount check that data value is 0 is more than the number for the data that data value is 1, then obtain the first object position of the data that data value is 1 in target data unit, in the present embodiment, first object position is first and the 6th, the data that data value is 0 are then write at first of Destination Storage Unit and the 6th, since replace target data unit in data value be 1 data, the data then stored in Destination Storage Unit are 01111011, the initial data of the data stored not target data unit, but the data negated after computing of initial data.
It is used as a kind of optional embodiment, if the processor 200 is additionally operable to number of the number less than or equal to second data of first data, then obtain second target location of first data in the target data unit, and the data for the first kind being write in the second target location described in the Destination Storage Unit of the pre-filled data for the Second Type.
Optionally, the type of the first data is the first kind, and the type of the second data is Second Type.The type of pre-filled data is Second Type in Destination Storage Unit, because the number of the first data in target data unit is less than or equal to the number of the second data, in order to write less data in Destination Storage Unit Amount, then corresponding position it can write the data of the first kind directly in Destination Storage Unit, it is that target is illustrated exemplified by storing binary data in Destination Storage Unit here, due to considering power consumption and delay, it is general that the data that data value is 1 are pre-charged with Destination Storage Unit, the data for being Second Type are the data that data value is 1, and the data of the first kind are the data that data value is 0.When the data amount check that data value is 0 in target data unit is less than or equal to the number for the data that data value is 1, such as target data unit is 11111010, the data amount check that data value is 0 is 2, the number for the data that data value is 1 is 6, the data amount check that data value is 0 is less than the number for the data that data value is 1, then obtain the first object position of the data that data value is 0 in target data unit, in the present embodiment, first object position is the 6th and the 8th, the data that data value is 0 are then write at the 6th of Destination Storage Unit and the 8th, since replace target data unit in data value be 0 data, the data then stored in Destination Storage Unit are 11111010, the data stored are the initial data of target data unit, specifically, second memory cell in PCM memory as described in Figure 3.
It is used as a kind of optional embodiment, the processor 200 is additionally operable to the flag bit of the Destination Storage Unit being set to the first mark, and described first identifies for identifying the initial data in the non-target data unit of data stored in the Destination Storage Unit.
Optionally, after target data unit has been stored, data are read for convenience, the flag bit in Destination Storage Unit is needed to be configured, when the initial data of the data non-targeted data cell stored in Destination Storage Unit, it is in storage, it is to be stored according to step S201 method, the flag bit of Destination Storage Unit is then set to the first mark, first mark is the initial data in the data non-targeted data cell for identifying and being stored in Destination Storage Unit, as described in Figure 3, to store the scene graph of binary data in PCM memory, in first aim memory cell, flag bit is provided with the first mark, first mark is replaced with data value for 0 data.The data 01111011 then stored in Destination Storage Unit are not the initial data of target data unit, are negated when needing to read the target data unit stored in the Destination Storage Unit, it is necessary to which the data in Destination Storage Unit are carried out into step-by-step.
It is used as a kind of optional embodiment, the processor 200 is additionally operable to the flag bit of the Destination Storage Unit being set to the second mark, and described second to identify for identifying the data stored in the Destination Storage Unit be the initial data in the target data unit.
Optionally, after target data unit has been stored, data are read for convenience, it is necessary in target The flag bit of memory cell is configured, when the data stored in Destination Storage Unit are the initial data of target data unit, it is in storage, it is to be stored according to step S203 method, the flag bit of Destination Storage Unit is then set to the second mark, second mark is that to identify the data that are stored in Destination Storage Unit be the initial data in target data unit, as described in Figure 3, to store the scene graph of binary data in PCM memory, in second target memory cell, flag bit is provided with the second mark, second mark is replaced with data value for 1 data.The data 11111010 then stored in Destination Storage Unit are the initial data of target data unit, when needing to read the target data unit stored in the Destination Storage Unit, directly read the data in Destination Storage Unit.
As an alternative embodiment, the processor 200 is additionally operable to when needing to obtain the target data unit stored in the Destination Storage Unit, the flag bit of the Destination Storage Unit is read;Optionally, target data unit is stored to target data unit, when wanting invocation target data cell, then needs to go to obtain target data unit from Destination Storage Unit.In embodiments of the present invention, the method of target data unit is obtained based on the rule that target data unit is stored into Destination Storage Unit, so, when needing to obtain the target data unit stored in Destination Storage Unit, read the flag bit of Destination Storage Unit first, the effect of flag bit is to identify whether the data stored in Destination Storage Unit are initial data in target data unit.
If it is the described first mark that the processor 200, which is additionally operable to the flag bit, the data of the first kind described in the Destination Storage Unit are then converted into the data of the Second Type, the data of Second Type described in the Destination Storage Unit are converted into the data of the first kind, and the target data unit that the data after conversion processing are defined as being stored in the Destination Storage Unit;
Optionally, if the flag bit of Destination Storage Unit is the first mark, then show the initial data of data non-targeted data cell stored in Destination Storage Unit, when needing to obtain the target data unit stored in Destination Storage Unit, it is necessary to which the data stored in Destination Storage Unit are carried out into a series of conversion processing.If the data in Destination Storage Unit are the data of the first kind, the data of the first kind are then converted into the data of Second Type, if the data in Destination Storage Unit are the data of Second Type, the data of Second Type are converted into the data of the first kind.All data stored in Destination Storage Unit are continued here successively to illustrate exemplified by storing binary data in Destination Storage Unit, as described in Fig. 3, it is the first mark in the flag bit of first aim memory cell, is that flag bit is that data value is 0 Data, then demonstrate the need for that the data stored in Destination Storage Unit are needed to convert, first kind data, be data value be 0 data need to be converted into Second Type data, be data value be 1 data;Second Type data, are that the data that data value is 1 need to be converted into first kind data, are the data that data value is 0, therefore, the binary data obtained after being converted successively to each data stored in Destination Storage Unit is:10000100, data 10000100 are defined as the target data unit that the Destination Storage Unit is stored.
If it is the described second mark that the processor 200, which is additionally operable to the flag bit, the target data unit that the target is deposited is read.
Optionally, if the flag bit of Destination Storage Unit is the second mark, it is the initial data of target data unit then to show the data stored in Destination Storage Unit, therefore, when needing to obtain the target data unit stored in Destination Storage Unit, then directly read the data stored in Destination Storage Unit, and the target data unit that the data read are defined as being stored in Destination Storage Unit.
Here continue to illustrate exemplified by storing binary data in Destination Storage Unit, as described in Fig. 3, in second target memory cell, the flag bit of Destination Storage Unit is the second mark, it is the data that data value is 1, the data 11111010 then stored in Destination Storage Unit are the initial data in target data unit, when therefore needing to obtain the target data unit stored in Destination Storage Unit, need only to read stored data 11111010 from Destination Storage Unit, and data 11111010 are defined as the target data unit that the Destination Storage Unit is stored.
In the embodiment of the present invention, when needing to store target data unit, the number for the second data that type is the number of the first data of the first kind in acquisition target data unit and type is Second Type, when the number of the first data is more than the number of the second data, then obtain target location of relatively small number of second data of number in target data unit, and the data that the target location in the Destination Storage Unit of the data of Second Type writes the first kind will be pre-charged with, for replacing the second data in target data unit, in the embodiment of the present invention, the data of Second Type in target data unit are replaced with the data of the first kind in Destination Storage Unit, first kind data are more in target data unit, when Second Type data are less, also only needing to write the data of the less first kind is used to replace relatively small number of Second Type data in target data unit, so efficiency comparison is high, and because write-in data are less, so power consumption is also than relatively low.
One of ordinary skill in the art will appreciate that all or part of flow in above-described embodiment method is realized, It can be by computer program to instruct the hardware of correlation to complete, described program can be stored in a computer read/write memory medium, and the program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic disc, CD, read-only memory(Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the interest field of the present invention, therefore the equivalent variations made according to the claims in the present invention with this certainly, still belongs to the scope that the present invention is covered.

Claims (14)

  1. Claim
    1st, a kind of data processing method, it is characterised in that methods described includes:
    When needing to store target data unit, the number of the number of the first data and the second data in target data unit is obtained, the type of first data is the first kind, and the type of second data is Second Type;
    If the number of first data is more than the number of second data, then obtain first object position of second data in the target data unit, and the data for the first kind being write in first object position described in the Destination Storage Unit of the pre-filled data for the Second Type.
    2nd, the method as described in claim 1, it is characterised in that methods described also includes:
    If the number of first data is less than or equal to the number of second data, then obtain second target location of first data in the target data unit, and the data for the first kind being write in the second target location described in the Destination Storage Unit of the pre-filled data for the Second Type.
    3rd, method as claimed in claim 2, it is characterized in that, if the number of first data is more than the number of second data, then obtain first object position of second data in the target data unit, and will be write described in the Destination Storage Unit of the pre-filled data for the Second Type in first object position after the data of the first kind, in addition to:
    The flag bit of the Destination Storage Unit is set to the first mark, described first identifies for identifying the initial data in the non-target data unit of data stored in the Destination Storage Unit.
    4th, method as claimed in claim 3, it is characterized in that, if the number of first data is less than or equal to the number of second data, then obtain second target location of first data in the target data unit, and will be write described in the Destination Storage Unit of the pre-filled data for the Second Type in the second target location after the data of the first kind, in addition to:
    The flag bit of the Destination Storage Unit is set to the second mark, described second to identify for identifying the data stored in the Destination Storage Unit be the initial data in the target data unit. 5th, method as claimed in claim 4, it is characterised in that methods described also includes:When needing to obtain the target data unit stored in the Destination Storage Unit, the flag bit of the Destination Storage Unit is read;
    If the flag bit is the described first mark, the data of the first kind described in the Destination Storage Unit are then converted into the data of the Second Type, the data of Second Type described in the Destination Storage Unit are converted into the data of the first kind, and the target data unit that the data after conversion processing are defined as being stored in the Destination Storage Unit;
    If the flag bit is the described second mark, the several members stored in the Destination Storage Unit are read.
    6th, a kind of data processing equipment, it is characterised in that described device includes:
    Acquisition module, for when needing to store target data unit, obtaining the number of the number of the first data and the second data in target data unit, the type of first data is the first kind, and the type of second data is Second Type;
    First writing module, if the number for first data is more than the number of second data, then obtain first object position of second data in the target data unit, and the data for the first kind being write in first object position described in the Destination Storage Unit of the pre-filled data for the Second Type.
    7th, device as claimed in claim 6, it is characterised in that described device also includes:
    Second writing module, if the number for first data is less than or equal to the number of second data, then obtain second target location of first data in the target data unit, and the data for the first kind being write in the second target location described in the Destination Storage Unit of the pre-filled data for the Second Type.
    8th, device as claimed in claim 7, it is characterised in that described device also includes:
    First setup module, for the flag bit of the Destination Storage Unit to be set into the first mark, described first identifies for identifying in the non-target data unit of data stored in the Destination Storage Unit Initial data.
    9th, device as claimed in claim 8, it is characterised in that described device also includes:
    Second setup module, for the flag bit of the Destination Storage Unit to be set into the second mark, described second to identify for identifying the data stored in the Destination Storage Unit be the initial data in the target data unit.
    10th, device as claimed in claim 9, it is characterised in that described device also includes:Read module, for when needing to obtain the target data unit stored in the Destination Storage Unit, reading the flag bit of the Destination Storage Unit;
    Convert determining module, if being the described first mark for the flag bit, the data of the first kind described in the Destination Storage Unit are then converted into the data of the Second Type, the data of Second Type described in the Destination Storage Unit are converted into the data of the first kind, and the target data unit that the data after conversion processing are defined as being stored in the Destination Storage Unit;
    Determining module is read, if being the described second mark for the flag bit, the data stored in the Destination Storage Unit, ^ are read
    The target data unit.
    11st, a kind of data processing equipment, it is characterised in that including processor, wherein:
    The processor, for when needing to store target data unit, obtaining the number of the number of the first data and the second data in target data unit, the type of first data is the first kind, and the type of second data is Second Type;
    If the processor is additionally operable to number of the number more than second data of first data, then obtain first object position of second data in the target data unit, and the data for the first kind being write in first object position described in the Destination Storage Unit of the pre-filled data for the Second Type.
    12nd, data processing equipment as claimed in claim 11, it is characterised in that
    If the number that the processor is additionally operable to first data is less than or equal to second data Number, then obtain second target location of first data in the target data unit, and the data for the first kind being write in the second target location described in the Destination Storage Unit of the pre-filled data for the Second Type.
    13rd, data processing equipment as claimed in claim 12, it is characterised in that
    The processor is additionally operable to the flag bit of the Destination Storage Unit being set to the first mark, and described first identifies for identifying the initial data in the non-target data unit of data stored in the Destination Storage Unit.
    14th, data processing equipment as claimed in claim 13, it is characterised in that
    The processor is additionally operable to the flag bit of the Destination Storage Unit being set to the second mark, and described second to identify for identifying the data stored in the Destination Storage Unit be the initial data in the target data unit.
    15th, data processing equipment as claimed in claim 14, it is characterised in that
    The processor is additionally operable to when needing to obtain the target data unit stored in the Destination Storage Unit, reads the flag bit of the Destination Storage Unit;
    If it is the described first mark that the processor, which is additionally operable to the flag bit, the data of the first kind described in the Destination Storage Unit are then converted into the data of the Second Type, the data of Second Type described in the Destination Storage Unit are converted into the data of the first kind, and the target data unit that the data after conversion processing are defined as being stored in the Destination Storage Unit;
    If it is the described second mark that the processor, which is additionally operable to the flag bit, the data stored in the Destination Storage Unit, ^ are read
    State target data unit.
CN201480003909.0A 2014-04-11 2014-04-11 A kind of data processing method, device Active CN105556489B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/075141 WO2015154298A1 (en) 2014-04-11 2014-04-11 Data processing method and apparatus

Publications (2)

Publication Number Publication Date
CN105556489A true CN105556489A (en) 2016-05-04
CN105556489B CN105556489B (en) 2019-04-26

Family

ID=54287136

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201480003909.0A Active CN105556489B (en) 2014-04-11 2014-04-11 A kind of data processing method, device

Country Status (2)

Country Link
CN (1) CN105556489B (en)
WO (1) WO2015154298A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083138A (en) * 2007-05-30 2007-12-05 忆正存储技术(深圳)有限公司 Flash memory data read-write processing method
CN103034649A (en) * 2011-09-30 2013-04-10 阿里巴巴集团控股有限公司 Method and system for realizing data storage and search
US20130329492A1 (en) * 2012-06-06 2013-12-12 Silicon Motion Inc. Flash memory control method, controller and electronic apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011008850A (en) * 2009-06-24 2011-01-13 Sony Corp Memory and method of processing information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083138A (en) * 2007-05-30 2007-12-05 忆正存储技术(深圳)有限公司 Flash memory data read-write processing method
CN103034649A (en) * 2011-09-30 2013-04-10 阿里巴巴集团控股有限公司 Method and system for realizing data storage and search
US20130329492A1 (en) * 2012-06-06 2013-12-12 Silicon Motion Inc. Flash memory control method, controller and electronic apparatus

Also Published As

Publication number Publication date
CN105556489B (en) 2019-04-26
WO2015154298A1 (en) 2015-10-15

Similar Documents

Publication Publication Date Title
US11416391B2 (en) Garbage collection
KR101940963B1 (en) Volatile memory architecture in non-volatile memory devices and related controllers
US8417872B2 (en) Write and merge methods in memory card systems for reducing the number of page copies
CN108897492B (en) Data writing method and device
CN104346290A (en) Storage device, computer system and methods of operating same
CN108733324B (en) Data reading and writing method, device and equipment of solid state disk and storage medium
US20160328161A1 (en) Method, apparatus, and storage medium for writing data
US7945723B2 (en) Apparatus and method of managing mapping table of non-volatile memory
CN108073522A (en) Garbage collection method for data storage device
CN103914397B (en) Flash memory device and its management method
US8634243B2 (en) Data writing method and data storage device
CN107291392A (en) A kind of solid state hard disc and its reading/writing method
US8555005B2 (en) Memory managing apparatus and method using a pointer indicator bit to perform garbage collection
CN105117168A (en) Information processing method and electronic equipment
CN112997160A (en) Data relocation in memory
US9336136B2 (en) Apparatus, systems, and methods for providing wear leveling in solid state devices
CN106326135B (en) Method and device for translating data of non-volatile memory (NVM)
CN105556489A (en) Data processing method and apparatus
CN103049217A (en) Multi-level cell (MLC) NAND type solid-state hard disk, read-write control method and flash memory controller
US20150120991A1 (en) Data processing system and operating method thereof
CN103151072A (en) Method and device for writing data into phase change memory
CN105426129A (en) Method for optimizing hybrid memory data storage
US20200194080A1 (en) Consolidation of copy-back and write in pram blocks
CN112204533A (en) Data relocation in memory with two data portions
CN103811054B (en) A kind of NAND flash storages, NAND flash storages implementation method and its system

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
TR01 Transfer of patent right

Effective date of registration: 20210423

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Device Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right