CN103151072B - The method for writing data of phase transition storage and device - Google Patents

The method for writing data of phase transition storage and device Download PDF

Info

Publication number
CN103151072B
CN103151072B CN201310105405.7A CN201310105405A CN103151072B CN 103151072 B CN103151072 B CN 103151072B CN 201310105405 A CN201310105405 A CN 201310105405A CN 103151072 B CN103151072 B CN 103151072B
Authority
CN
China
Prior art keywords
data
value
described
energy loss
destination address
Prior art date
Application number
CN201310105405.7A
Other languages
Chinese (zh)
Other versions
CN103151072A (en
Inventor
孙健
陈岚
郝晓冉
Original Assignee
中国科学院微电子研究所
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 中国科学院微电子研究所 filed Critical 中国科学院微电子研究所
Priority to CN201310105405.7A priority Critical patent/CN103151072B/en
Publication of CN103151072A publication Critical patent/CN103151072A/en
Application granted granted Critical
Publication of CN103151072B publication Critical patent/CN103151072B/en

Links

Abstract

The invention discloses a kind of method for writing data and device of phase transition storage, comprise: one group of data in will the destination address of recording phase change memory are as source data, adopt multiple different pretreatment mode to carry out pretreatment to source data, obtain the alternative data of many groups, wherein, each organizes the figure place of alternative data and the figure place N of source data equates, N is natural number; Calculate the energy loss value that each organizes alternative data and be stored to destination address, obtain multiple energy loss values; Make destination address store the corresponding alternative data of energy loss value of value minimum in multiple energy loss values, adopt said method, the energy loss can reduce phase transition storage data writing time.

Description

The method for writing data of phase transition storage and device

Technical field

The present invention relates to memory device field, particularly the method for writing data of phase transition storage and device.

Background technology

Phase transition storage PCM(PhaseChangeMemory) be taking chalcogenide compound (typical material asGe2Sb2Te5, GST) and be basic semiconductor memory. PCM step-by-step is that unit operates, and utilizes sulphurThe resistance of based compound between the crystalline state (SET state) of low-resistance and the amorphous state (RESET state) of high resistantThe difference of resistance characterizes and stores binary data " 1 " and " 0 ". What is called refers in material system mutuallyThere is the homogeneous substance part of same physical properties, between it and other parts with certain interface isolationCome. For example, in the system being made up of water and ice, ice is a phase, and water is another phase. Ice becomesFor water process is a phase transition process.

PCM because fast, non-volatile, the technique of its access speed is simple and high power capacity be regarded as flash memory andThe person of succeeding of DRAM (dynamic RAM).

Meanwhile, also there is certain deficiency in PCM, and that is exactly the energy loss in the time writing PCM dataLarger. Therefore the energy loss while, reducing to write PCM data becomes research hot topic instantly.

Summary of the invention

In view of this, the object of the present invention is to provide method for writing data and the device of phase transition storage,Energy loss while reducing PCM data writing.

For achieving the above object, the invention provides following technical scheme:

A method for writing data for phase transition storage, comprising:

One group of data in will the destination address of recording phase change memory, as source data, adopt multipleDifferent pretreatment modes carries out pretreatment to described source data, obtains the alternative data of many groups, wherein, everyThe figure place of one group of alternative data equates with the figure place N of described source data, and described N is natural number;

Calculate described each organize alternative data and be stored to the energy loss value of described destination address, obtain multipleEnergy loss value;

Make the energy loss value institute of value minimum in the described multiple energy loss values of described destination address storage rightThe alternative data of answering.

Preferably, in described multiple different pretreatment mode, wherein a kind of pretreatment mode is not for enteringRow any processing, other pretreatment modes comprise step-by-step negate, with data-oriented step-by-step XOR, with givenData step-by-step with or and cyclic shift mode in any one or any combination.

Preferably, described in described calculating, each organizes alternative data and is stored to the energy loss of described destination addressValue, the process that obtains multiple energy loss values comprises:

For arbitrary alternative data, the value by alternative data on i position and described destination address is current depositsThe value of storage data on i position compares, and obtains the comparative result that value is identical or value is different, instituteStating i is natural number, and value, between 1 to N, and comprises 1 and N;

Using corresponding the comparative result that in described comparative result, value is different position as target bit, determine XIndividual target bit, described X is natural number, value, between 1 to N, and comprises 1 and N;

By described alternative data, the value in all target bit writes described destination address relevant position in calculatingEnergy loss value.

Preferably, described by alternative data the value on i position and the current storage data of described destination addressThe process that value on i position compares comprises:

Current described destination address storage data and described alternative data step-by-step XOR are obtained to XOR result,XOR result on i position is as the comparative result of i position.

Preferably, the value of arbitrary alternative data in each target bit is 0 or 1, described in described calculating is incited somebody to actionThe value of alternative data in all target bit writes the energy loss value of described destination address relevant positionProcess comprises:

The proportionality coefficient that setting writes 0 energy loss value and writes 1 energy loss value is a:b;

The number of the statistics target bit that value is 0 in a described X target bit, is designated as num0;

The number of the statistics target bit that value is 1 in a described X target bit, is designated as num1;

According to formula a*num0+b*Num1 calculates the value in each target bit by alternative data and writesThe energy loss value of described destination address relevant position.

Preferably, described method also comprises:

Preserve the reduction mode of the corresponding alternative data of energy loss value of value minimum, to readingTime, will be stored in energy loss in described destination address, value minimum according to the reduction mode of preservingBe worth corresponding alternative data and be reduced into described source data.

A data transfer apparatus for phase transition storage, comprising: data preprocessing module, data are calculated mouldPiece and data memory module;

Data preprocessing module is used for, one group of data in will the destination address of recording phase change memoryAs source data, adopt multiple different pretreatment mode to carry out pretreatment to described source data, acquisition is manyOrganize alternative data, wherein, each organizes the figure place of alternative data and the figure place N of described source data equates, instituteStating N is natural number;

Data computation module is used for, calculate described each organize alternative data and be stored to the energy of described destination addressAmount loss value, obtains multiple energy loss values;

Data memory module is used for, and makes in the described multiple energy loss values of described destination address storage valueThe little corresponding alternative data of energy loss value.

Preferably, described data computation module comprises data comparing unit, target bit generation unit and calculatingUnit;

Described data comparing unit is used for, for arbitrary alternative data, by alternative data getting on i positionThe value of the current storage data of value and described destination address on i position compares, obtain value identical orThe comparative result that value is different, described i is natural number, value, between 1 to N, and comprises 1And N;

Target bit generation unit is used for, by corresponding the comparative result that in described comparative result, value is differentPosition as target bit, determine X target bit, described X is natural number, value between 1 to N,And comprise 1 and N;

Described computing unit is used for, and by described alternative data, the value in all target bit writes institute in calculatingState the energy loss value of destination address relevant position.

Preferably, the value of arbitrary alternative data in each target bit is 0 or 1, described computing unit bagDraw together subelement, the first statistics subelement, the second statistics subelement and energy loss value computation subunit are set;

Described arrange subelement for, arrange and write 0 energy loss value and write 1 energy loss valueProportionality coefficient be a:b;

Described the first statistics subelement is used for, the statistics target bit that value is 0 in a described X target bitNumber, and be designated as num0;

Described the second statistics subelement is used for, the statistics target bit that value is 1 in a described X target bitNumber, and be designated as num1;

Described energy loss value computation subunit is used for, according to formula a*num0+b*Num1 calculates standbySelect the value of data in each target bit to write the energy loss value of described destination address relevant position.

Preferably, described device also comprises recovery module, and described recovery module is for preserving minimum energyThe reduction mode of the corresponding alternative data of loss value, so that in the time reading, according to the reduction mode of preservingThe corresponding alternative data reduction of energy loss value in described destination address, value minimum will be stored inBecome described source data.

Can find out from above-mentioned technical scheme, in embodiments of the present invention, by writing PCMDestination address in one group of data as source data, source data is carried out to multiple pretreatment, obtain many groupsAlternative data, calculate respectively the energy loss the value how alternative data of group are stored to destination address, obtain multipleEnergy loss value. Finally make destination address store the energy loss value of value minimum in multiple energy loss valuesCorresponding alternative data, thereby the energy loss while having reduced PCM data writing.

Brief description of the drawings

In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will be to realityThe accompanying drawing of executing required use in example or description of the Prior Art is briefly described, apparently, belowAccompanying drawing in description is only some embodiments of the present invention, for those of ordinary skill in the art,Do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.

Fig. 1 is the method for writing data flow chart of the phase transition storage that provides of the embodiment of the present invention;

Fig. 2 is the another flow chart of the method for writing data of the phase transition storage that provides of the embodiment of the present invention;

Fig. 3 is the data transfer apparatus structure chart of the phase transition storage that provides of the embodiment of the present invention;

Fig. 4 is the another structure chart of the data transfer apparatus of the phase transition storage that provides of the embodiment of the present invention;

Fig. 5 is another structure chart of the data transfer apparatus of the phase transition storage that provides of the embodiment of the present invention.

Detailed description of the invention

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 carried outDescribe clearly and completely, obviously, described embodiment is only the present invention's part embodiment, andNot whole embodiment. Based on the embodiment in the present invention, those of ordinary skill in the art are not doingGo out the every other embodiment obtaining under creative work prerequisite, all belong to the scope of protection of the invention.

The invention discloses a kind of phase transition storage PCM(PhaseChangeMemory) data writeMethod, as shown in Figure 1, the method at least comprises the following steps:

S1: will write one group of data in the destination address of PCM as source data, and adopt multipleSame pretreatment mode carries out pretreatment to source data, obtains the alternative data of many groups, and wherein, each group is standbySelect the figure place of data and the figure place N of source data to equate, wherein N is natural number;

More specifically, source data can be denoted as to writedata[N], can be by multiple different pretreatment modes noteMake the pretreatment mode that M+1 kind is different. For to writedata[N] carry out the pretreatment of M+1 kind and obtainM+1 organize alternative data, can be this M+1 and organize an alternative data allocations M+1 register, like this, afterContinuous can organize alternative data to M+1 and carry out parallel processing, thereby improve processing speed.

In above-mentioned M+1 kind pretreatment mode, " 1 " is wherein expressed as not to writedata[N] carry outAny processing, other " M " plant pretreatment mode can comprise step-by-step negate, with data-oriented step-by-step XOR,With data-oriented step-by-step with or and cyclic shift mode etc. in any one or any combination.

For example,, in the time of M=1, to writedata[N] carry out two kinds of pretreatment, a kind of for not to writedata[N]Carry out any processing, also, make writedata[N] directly as alternative data. Another pretreatment mode canFor step-by-step negate, with data-oriented step-by-step XOR, with data-oriented step-by-step with or and cyclic shift mode.

Certainly, also can by step-by-step negate, with data-oriented step-by-step XOR, with data-oriented step-by-step with or andCyclic shift mode is combined the processing mode obtaining, as above-mentioned another pretreatment mode. Such as,To writedata[N] step-by-step negate obtains writedata[N]-1(subscript-1 represents step-by-step negate), then willwritedata[N]-1Obtain writedata[N with data-oriented step-by-step XOR]-1XOR(subscript XOR represents step-by-stepXOR), by writedata[N]-1XORAs alternative data.

In the time of M=2, except making writedata[N] directly as alternative data, to writedata[N] carry outAnother two kinds of pretreatment---pretreatment A and pretreatment B, pretreatment A can be step-by-step negate, with give fixed numberAccording to step-by-step XOR, with data-oriented step-by-step with or and cyclic shift mode etc. in any one, or,Also can be by step-by-step negate, with data-oriented step-by-step XOR, with data-oriented step-by-step with or and cyclic shiftMode is combined obtained pretreatment mode; And pretreatment B can be equally step-by-step negate, withData-oriented step-by-step XOR, with data-oriented step-by-step with or and cyclic shift mode etc. in any one,Or, also can for by step-by-step negate, with data-oriented step-by-step XOR, with data-oriented step-by-step with or and followRing displacement mode is combined obtained pretreatment mode. As long as ensure that pretreatment A is different from advanceTreatments B.

By that analogy, can derive a variety of pretreatment modes, as long as ensure each pretreatment mode each other notIdentical.

S2: calculate each and organize alternative data and be stored to the energy loss value of destination address, obtain multiple energy and damageConsumption value;

S3: make destination address store the energy loss value of value minimum in multiple energy loss values correspondingAlternative data.

Therefore, in embodiments of the present invention, by writing one in the destination address of PCMGroup data, as source data, are carried out multiple pretreatment to source data, obtain the alternative data of many groups, respectively meterCalculate the energy loss value that the alternative data of many groups are stored to destination address, obtain multiple energy loss values. FinallyMake destination address store the corresponding alternative number of energy loss value of value minimum in multiple energy loss valuesAccording to, thereby the energy loss while having reduced PCM data writing.

In other embodiment of the present invention, in above-mentioned all embodiment, step S2 specifically can have multiple realization sideFormula. Wherein implementation can be: (j is a natural number, and value is between 1 to organize alternative data for jBetween M+1, and comprise 1 and M+1), calculate its energy loss value and be specially:

The proportionality coefficient that setting writes 0 energy loss value and writes 1 energy loss value is a:b;

Add up j and organize the number that in alternative data, value is 0, be designated as n0;

Add up j and organize the number that in alternative data, value is 1, be designated as n1;

According to formula a*n0+b*N1 calculates the N bit data that j is organized in alternative data and all writes orderThe energy loss value of mark address.

Answer in contrast, step S3 can be refined as: by the N figure place of the alternative data of energy loss value minimumAccording to all writing in destination address.

Another implementation of above-mentioned steps S2 can be:

One, from destination address, read in advance current storage data readdata[N];

Two, calculate each and organize alternative data and write the energy loss value of destination address;

(j is natural number, and value, between 1 to M+1, and comprises 1 to organize alternative data for jAnd M+1), its energy loss value that writes destination address can calculate by following step (by j from 1 to

M+1 is value successively, can obtain M+1 energy loss value):

Steps A, organizes value and the described destination address current storage number of alternative data on i position by jCompare according to the value on i position, obtain the comparative result that value is identical or value is different, i is certainlySo number, value, between 1 to N, and comprises 1 and N;

Concrete, j can be organized to alternative data and be denoted as Wj[N], can organize j the i position of alternative dataBe denoted as Wj[i], can organize j the value W of alternative data on i positionj[i] and the current storage of destination addressThe value readdata[i of data on i position] whether identical comparative result is denoted as Bj[i]。

By readdata[N] at i position value readdata[i] and Wj[i] compares, and obtains j group alternativeData and readdata[N] the whether identical comparative result B of value on i positionj[i] (i is natural number,Value is between 1 to N), and BjThe value of [i] can be c or d, and c is not identical with the value of d,In the time that value is c, represent readdata[i] and Wj[i] value is identical, represents readdata[i in the time that value is d]With Wj[i] value is not identical.

In other embodiment of the present invention, above-mentioned steps A can be further refined as:

Current destination address storage data and alternative data step-by-step XOR are obtained to XOR result, on i positionXOR result as the comparative result of i position; Concrete, by readdata[N] and j organize alternative dataCarry out step-by-step XOR, also, by readdata[i] and Wj[i] carries out XOR, obtains XOR result (everyAn all corresponding XOR result), using the XOR result on i position as above-mentioned comparative result Bj[i],Now, the concrete value of above-mentioned c is 0 and the concrete value of above-mentioned d is 1(0 represents that j organizes alternative data and existsThe value of i position is identical in the value of i position with the current storage data of destination address, and 1 represents that j group is standbySelect the data not identical in the value of i position with the current storage data of destination address in the value of i position).

By way of example, suppose N=8, readdata[N] everybody concrete value is respectively: 11110000, andThe 1st group of everybody concrete value of alternative data is respectively: 01000111. Carry out the different of step-by-step XOR gainedOr result is also that comparative result is: 10110111, and be also B1[1]=1,B1[2]=0,B1[3]=1,B1[4]=1,B1[5]=0,B1[6]=1,B1[7]=1,B1[8]=1。

In addition, also can be by readdata[N] and the 1st group of alternative data carry out step-by-step with or, by i positionWith or result as above-mentioned comparative result Bj[i], now, the concrete value of above-mentioned c is 1 and above-mentioned d is concreteValue is that 0(1 represents that j organizes alternative data and exists in value and the current storage data of destination address of i positionThe value of i position is identical, and 0 represents that j organizes alternative data in the value of i position and destination address is current depositsStorage data are not identical in the value of i position).

Step B, using corresponding comparative results different value in comparative result position as target bit, trueMake X target bit, X is natural number, and value, between 1 to N, and comprises 1 and N;

Concrete, by Bj[1] to BjThe corresponding position of comparative result that in [N], each value is d is as targetPosition, determines X target bit (X is natural number, and value is between 1 to N);

Continue to use aforementioned given example, according to comparative result 10110111, can determine B1[1]、B1[3]、B1[4]、B1[6]、B1[7]、B1[8] corresponding 6 is target bit, now X=6.

Step C, calculates and j is organized to the value of alternative data in all target bit to write destination address correspondingThe energy loss value of position.

More specifically, because each value of source data is 0 or 1, and pretreatment is all binary translation,So the value of the arbitrary alternative data that obtained by pretreatment in each target bit is 0 or 1, referring to Fig. 2,Above-mentioned steps C specifically can comprise the steps:

S201: it is a:b that the proportionality coefficient that writes 0 energy loss value and write 1 energy loss value is set;

Concrete, the value of a:b determines by the design parameter of PCM, can be from PCM supplier and academic literary compositionIn offering, obtain. For example: ALowPowerPhaseChangeRandomAccessMemoryUsingaIn Data-ComparisonWriteScheme, writing 0 energy loss value is 12nJ/bit, writes 1 energyAmount loss value is for being 64nJ/bit, and therefore a:b can be approximated to be 1:5.

S202: the number of the statistics target bit that value is 0 in X target bit, is designated as num0;

S203: the number of the statistics target bit that value is 1 in X target bit, is designated as num1;

S204: according to formula a*num0+b*Num1 calculates j is organized to alternative data in all target bitOn value write the energy loss value of destination address relevant position.

Still continue to use aforementioned given example, frontly address, B1[1]、B1[3]、B1[4]、B1[6]、B1[7]、B1[8] corresponding 6 is target bit. , in step S202, will add up the 1st group of alternative data01000111The the the the 1st, 3,4,6,7,8(1,3,4,6,7,8 is 6 target bit) get on positionValue is 1 number. Known, the number that value is 1 is 3. In like manner, in step S203, can uniteCount out01000111The number that value is 0 on the 1st, 3,4,6,7,8 is 3. Then, according toFormula a*num0+b*Num1 can calculate the value of the 1st group of alternative data in all target bit and write orderThe energy loss value of mark relevant position, address is 3a+3b.

Correspondingly, step S3 can be refined as: the energy of determining value minimum in M+1 energy loss value damagesThe corresponding alternative data of consumption value are write the value in the X of the alternative data of a determining target bit simultaneouslyEnter the corresponding positions of destination address.

Still continue to use aforementioned given example, determine that as last energy loss value corresponding to the 1st group of alternative dataLittle, utilize the 1st group of value on the 1st, 3,4,6,7,8 to replace readdata[N] the 1st,3, the value on 4,6,7,8, also, by readdata[1] replace with 0, by readdata[3] replaceBe changed to 0, by readdata[4] replace with 0, by readdata[6] replace with 1, by readdata[7] replace with1, by readdata[8] replace with 1.

After replacement completes, the energy that is value minimum in M+1 energy loss value of storing in destination addressThe corresponding alternative data of amount loss value.

In other embodiment of the present invention, the method for above-mentioned all embodiment also can comprise:

Preserve the reduction mode of the corresponding alternative data of energy loss value of value minimum, to readingTime, according to the reduction mode of preserving, the data that are stored in destination address are reduced into source datawritedata[N]。

Each pretreatment mode is corresponding a kind of anti-pretreatment mode all, for example, supposes, adopts the 1st kindPretreatment mode is processed into 10001110 by source data 11011100, and according to the 1st kind of pretreatment mode pairThe anti-pretreatment mode of answering, can restore into 11011100 by 10001110.

In view of this, the reduction side of the corresponding alternative data of the energy loss of above-mentioned preservation value minimum valueFormula can comprise:

For M+1 kind pretreatment mode is numbered;

Record energy loss value minimum alternative data the numbering of corresponding pretreatment mode.

Accordingly, " according to the reduction mode of preserving, the data that are stored in destination address are reduced into source numberAccording to " can specifically comprise:

In the time reading storage data, according to recorded numbering, the data that write in destination address are carried out insteadPretreatment, is reduced to source data writedata[N].

Certainly, also can be the anti-pretreatment mode of M+1 kind and be numbered, and record energy loss value minimumAlternative data the numbering of corresponding anti-pretreatment mode. And in the time reading storage data, according to recordedNumbering is carried out anti-pretreatment to the data that write in destination address, is reduced to source data writedata[N].

Corresponding with said method, the embodiment of the invention also discloses the data transfer apparatus of phase transition storage,Referring to Fig. 3, it can comprise data preprocessing module 31, data computation module 32 and data memory module 33,Wherein:

Data preprocessing module 31 is for, one group of number in will the destination address of recording phase change memoryAccording to as source data, adopt multiple different pretreatment mode to carry out pretreatment to source data, obtain many groupsAlternative data, wherein, each organizes the figure place of alternative data and the figure place N of source data equates, and N is natureNumber;

Data computation module 32 for, calculate each and organize alternative data and be stored to the energy loss of destination addressValue, obtains multiple energy loss values;

Concrete, as shown in Figure 4, data computation module 32 can comprise data comparing unit 321, targetPosition generation unit 322 and computing unit 323;

Data comparing unit 321 for, for arbitrary alternative data, by alternative data getting on i positionThe value of the current storage data of value and destination address on i position compares, and obtains the identical or value of valueDifferent comparative results, wherein i is natural number, value, between 1 to N, and comprises 1 and N;

Target bit generation unit 322 for, by corresponding comparative results different value in comparative resultPosition as target bit, determine X target bit, wherein X is natural number, value between 1 to N,And comprise 1 and N;

Computing unit 323 for, calculate the value in all target bit by alternative data and write target groundThe energy loss value of relevant position, location.

More specifically, the value of arbitrary alternative data in each target bit is 0 or 1. As shown in Figure 5,Computing unit can comprise subelement 3231, the first statistics subelement 3232, the second statistics subelement 3233 are setWith calculating energy loss value subelement 3234;

Wherein, arrange subelement 3231 for, arrange and write 0 energy loss value and write 1 energyThe proportionality coefficient of loss value is a:b;

The first statistics subelement 3232 is individual for, statistics value is 0 in X target bit target bitNumber, and be designated as num0;

The second statistics subelement 3233 is individual for, statistics value is 1 in X target bit target bitNumber, and be designated as num1;

Calculating energy loss value subelement 3234 for, according to formula a*num0+b*num1 calculate byThe value of alternative data in each target bit writes the energy loss value of destination address relevant position.

Data memory module 33 for, make destination address store the energy of value minimum in multiple energy loss valuesThe corresponding alternative data of amount loss value.

Each refinement function of data preprocessing module 31, data computation module 32 and data memory module 33Can be referring to the relevant record of said method, therefore not to repeat here.

In other embodiment of the present invention, still referring to Fig. 3, the device in above-mentioned all embodiment also can compriseRecovery module 34, recovery module 34 is for preserving going back of the minimum corresponding alternative data of energy loss valueFormer mode so that in the time reading, according to preserve reduction mode by be stored in destination address, valueThe minimum corresponding alternative data of energy loss value are reduced into source data. Each refinement merit of recovery module 34Energy can be referring to the relevant record of said method, and therefore not to repeat here.

It should be noted that above-mentioned data preprocessing module 31, data computation module 32 and recovery module34 function can be realized by the hardware circuit in PCM. And the function of data memory module 33 is by PCMInterior memory cell realizes.

Therefore, in embodiments of the present invention, data preprocessing module 31 for, will write PCMDestination address in one group of data as source data, source data is carried out to multiple pretreatment, obtain many groupsAlternative data; Data computing unit 32 for, calculate respectively many groups alternative data and be stored to destination addressEnergy loss value, obtains multiple energy loss values. Final data memory module 33 for, make destination addressStore the corresponding alternative data of energy loss value of value minimum in multiple energy loss values, thereby reduceEnergy loss when PCM data writing.

To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field can be realized or useThe present invention. To be aobvious and easy for those skilled in the art to the multiple amendment of these embodimentSee, General Principle as defined herein can be in the situation that not departing from the spirit or scope of the present invention,Realize in other embodiments. Therefore, the present invention will can not be restricted to these embodiment shown in this article,But to meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (6)

1. a method for writing data for phase transition storage, is characterized in that, comprising:
One group of data in will the destination address of recording phase change memory, as source data, adopt multipleDifferent pretreatment modes carries out pretreatment to described source data, obtains the alternative data of many groups, wherein, everyThe figure place of one group of alternative data equates with the figure place N of described source data, and described N is natural number;
Calculate described each organize alternative data and be stored to the energy loss value of described destination address, obtain multipleEnergy loss value;
Make the energy loss value institute of value minimum in the described multiple energy loss values of described destination address storage rightThe alternative data of answering;
Described in described calculating, each organizes alternative data and is stored to the energy loss value of described destination address, obtainsThe process of multiple energy loss values comprises:
For arbitrary alternative data, the value by alternative data on i position and described destination address is current depositsThe value of storage data on i position compares, and obtains the comparative result that value is identical or value is different, instituteStating i is natural number, and value, between 1 to N, and comprises 1 and N;
Using corresponding the comparative result that in described comparative result, value is different position as target bit, determine XIndividual target bit, described X is natural number, value, between 1 to N, and comprises 1 and N;
By described alternative data, the value in all target bit writes described destination address relevant position in calculatingEnergy loss value;
The value of arbitrary alternative data in each target bit is 0 or 1, and described calculating is by described alternative dataValue in all target bit writes the process bag of the energy loss value of described destination address relevant positionDraw together:
The proportionality coefficient that setting writes 0 energy loss value and writes 1 energy loss value is a:b;
The number of the statistics target bit that value is 0 in a described X target bit, is designated as num0;
The number of the statistics target bit that value is 1 in a described X target bit, is designated as num1;
Calculating the value in each target bit by alternative data according to formula a*num0+b*num1 writesEnter the energy loss value of described destination address relevant position.
2. method according to claim 1, is characterized in that, in described multiple different pretreatmentIn mode, wherein a kind of pretreatment mode is not for carrying out any processing, and other pretreatment modes comprise step-by-stepNegate, with data-oriented step-by-step XOR, with data-oriented step-by-step with or and cyclic shift mode in arbitrarilyOne or any combination.
3. method according to claim 1, is characterized in that, described by alternative data in i positionOn value and the process bag that compares of the value of the current storage data of described destination address on i positionDraw together:
Current described destination address storage data and described alternative data step-by-step XOR are obtained to XOR result,XOR result on i position is as the comparative result of i position.
4. method according to claim 1, is characterized in that, also comprises:
Preserve the reduction mode of the corresponding alternative data of energy loss value of value minimum, to readingTime, will be stored in energy loss in described destination address, value minimum according to the reduction mode of preservingBe worth corresponding alternative data and be reduced into described source data.
5. a data transfer apparatus for phase transition storage, is characterized in that, comprising: data pretreatment mouldPiece, data computation module and data memory module;
Data preprocessing module is used for, one group of data in will the destination address of recording phase change memoryAs source data, adopt multiple different pretreatment mode to carry out pretreatment to described source data, acquisition is manyOrganize alternative data, wherein, each organizes the figure place of alternative data and the figure place N of described source data equates, instituteStating N is natural number;
Data computation module is used for, calculate described each organize alternative data and be stored to the energy of described destination addressAmount loss value, obtains multiple energy loss values;
Data memory module is used for, and makes in the described multiple energy loss values of described destination address storage valueThe little corresponding alternative data of energy loss value;
Described data computation module comprises data comparing unit, target bit generation unit and computing unit;
Described data comparing unit is used for, for arbitrary alternative data, by alternative data getting on i positionThe value of the current storage data of value and described destination address on i position compares, obtain value identical orThe comparative result that value is different, described i is natural number, value, between 1 to N, and comprises 1And N;
Target bit generation unit is used for, by corresponding the comparative result that in described comparative result, value is differentPosition as target bit, determine X target bit, described X is natural number, value between 1 to N,And comprise 1 and N;
Described computing unit is used for, and by described alternative data, the value in all target bit writes institute in calculatingState the energy loss value of destination address relevant position;
The value of arbitrary alternative data in each target bit is 0 or 1, and described computing unit comprises son is setUnit, the first statistics subelement, the second statistics subelement and energy loss value computation subunit;
Described arrange subelement for, arrange and write 0 energy loss value and write 1 energy loss valueProportionality coefficient be a:b;
Described the first statistics subelement is used for, the statistics target bit that value is 0 in a described X target bitNumber, and be designated as num0;
Described the second statistics subelement is used for, the statistics target bit that value is 1 in a described X target bitNumber, and be designated as num1;
Described energy loss value computation subunit is used for, and calculates standby according to formula a*num0+b*num1Select the value of data in each target bit to write the energy loss value of described destination address relevant position.
6. device according to claim 5, is characterized in that, also comprises recovery module, described going backFormer module is for preserving the reduction mode of the minimum corresponding alternative data of energy loss value, to readingWhile getting, damage being stored in energy in described destination address, value minimum according to the reduction mode of preservingThe corresponding alternative data of consumption value are reduced into described source data.
CN201310105405.7A 2013-03-28 2013-03-28 The method for writing data of phase transition storage and device CN103151072B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310105405.7A CN103151072B (en) 2013-03-28 2013-03-28 The method for writing data of phase transition storage and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310105405.7A CN103151072B (en) 2013-03-28 2013-03-28 The method for writing data of phase transition storage and device

Publications (2)

Publication Number Publication Date
CN103151072A CN103151072A (en) 2013-06-12
CN103151072B true CN103151072B (en) 2016-05-18

Family

ID=48549083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310105405.7A CN103151072B (en) 2013-03-28 2013-03-28 The method for writing data of phase transition storage and device

Country Status (1)

Country Link
CN (1) CN103151072B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104282333A (en) * 2013-07-12 2015-01-14 华为技术有限公司 Data inversion based storage method and memory
CN104424108B (en) * 2013-09-05 2017-12-15 华为技术有限公司 Write operation method and device
CN105702289B (en) * 2016-02-16 2019-11-05 江苏时代全芯存储科技有限公司 A kind of write circuit and wiring method of phase transition storage

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7012834B2 (en) * 2003-06-03 2006-03-14 Samsung Electronics Co., Ltd. Writing driver circuit of phase-change memory
CN101329907A (en) * 2008-07-24 2008-12-24 中国科学院上海微系统与信息技术研究所 System and method for reducing programming power consumption of phase-change memory
CN102097125A (en) * 2010-12-07 2011-06-15 清华大学 PCM (pulse code modulation) write operation method
CN102592665A (en) * 2011-10-24 2012-07-18 北京时代全芯科技有限公司 High-speed data writing structure and writing method for phase change memory
CN102831929A (en) * 2012-09-04 2012-12-19 中国科学院上海微系统与信息技术研究所 Reading-writing conversion system and reading-writing conversion method of phase change memory

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100764738B1 (en) * 2006-04-06 2007-10-09 삼성전자주식회사 Phase change memory device with improved reliability, write method thereof, and system including the same
KR101281685B1 (en) * 2007-10-04 2013-07-03 삼성전자주식회사 Method for writing and reading data of phase-change random access memory and apparatus thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7012834B2 (en) * 2003-06-03 2006-03-14 Samsung Electronics Co., Ltd. Writing driver circuit of phase-change memory
CN101329907A (en) * 2008-07-24 2008-12-24 中国科学院上海微系统与信息技术研究所 System and method for reducing programming power consumption of phase-change memory
CN102097125A (en) * 2010-12-07 2011-06-15 清华大学 PCM (pulse code modulation) write operation method
CN102592665A (en) * 2011-10-24 2012-07-18 北京时代全芯科技有限公司 High-speed data writing structure and writing method for phase change memory
CN102831929A (en) * 2012-09-04 2012-12-19 中国科学院上海微系统与信息技术研究所 Reading-writing conversion system and reading-writing conversion method of phase change memory

Also Published As

Publication number Publication date
CN103151072A (en) 2013-06-12

Similar Documents

Publication Publication Date Title
US10636483B2 (en) Apparatuses, devices and methods for sensing a snapback event in a circuit
CN104871249B (en) The adaptive error correcting code of data-storage system
TWI672631B (en) Processing-in-memory method and memory module
CN104051003B (en) Circuit for memorizer data writing operation
JP2014154167A (en) Method and apparatus for managing data in memory
US9437272B1 (en) Multi-bit spin torque transfer magnetoresistive random access memory with sub-arrays
Alavi et al. Sensitivity analysis of different wind speed distribution models with actual and truncated wind data: a case study for Kerman, Iran
US9639462B2 (en) Device for selecting a level for at least one read voltage
TWI375224B (en) Voltage compensation circuit, multi-level memory device with the same, and voltage compensation method for reading the multi-level memory device
CN106257400B (en) The method of processing equipment, computing system and processing equipment access main memory
CN104641356B (en) Address of cache
CN101369457B (en) Apparatus and method of nonvolatile memory device having three-level nonvolatile memory cells
CN105027212A (en) Apparatuses and methods for performing logical operations using sensing circuitry
TWI636459B (en) Apparatuses including multi-level memory cells and methods of operation of same
CN108475519A (en) Including memory and its device and method of operation
KR101497860B1 (en) Memory address translation
CN104919434B (en) System and method for carrying out relatively low page data recovery in solid state drive
TWI403906B (en) Flash memory apparatus and method for operating flash memory apparatus
US20100281202A1 (en) Wear-leveling and bad block management of limited lifetime memory devices
JP5792019B2 (en) semiconductor device
US9275696B2 (en) Energy conservation in a multicore chip
US20110026336A1 (en) Data Storage Using Read-Mask-Write Operation
CN1890752B (en) AC sensing for a resistive memory
US20170364437A1 (en) Retention management for phase change memory lifetime improvement through application and hardware profile matching
CN104051024B (en) For the storage device and its operating method of built-in error correction

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
C14 Grant of patent or utility model