Control method, voltage prediction system and computer readable storage medium
By receiving operation instructions and obtaining status information to generate relevant addresses, the crosstalk problem caused by address instability during the operation of the phase change memory is solved, and the stability of the phase change memory and the read success rate are improved.
Patent Information
- Application Number
- CN202411245359.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-09-06
AI Technical Summary
Phase change memory has associated address instability during operation, resulting in crosstalk problems that are difficult to effectively solve with existing technology.
By receiving operating instructions, status information is obtained, relevant addresses are generated, and based on the addresses, the phase change memory is operated, including reading and writing, using address wear values and temperature information to adjust voltage predictions, and switching preset voltage levels to improve stability.
The relative address stability of the phase change memory is improved, crosstalk is reduced, and the overall stability and read success rate of the memory are enhanced.
Smart Images

Figure CN118762728A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of storage technology, and in particular to a control method, a voltage prediction system and a computer-readable storage medium. Background Art
[0002] Phase Change Memory (PCM) has excellent characteristics such as high integration, low power consumption, and non-volatility, and is one of the storage media for non-volatile memory. During the operation of the phase change memory, the relevant addresses in the phase change memory related to the operation process may be unstable, resulting in crosstalk. Summary of the invention
[0003] In view of the above problems, the present application provides a control method, a voltage prediction system and a computer-readable storage medium.
[0004] In a first aspect, the present application provides a control method for a phase change memory, comprising: receiving an operation instruction for the phase change memory, and obtaining state information based on the operation instruction; generating a relevant address based on the operation instruction and the status information; The phase change memory is operated based on the associated address.
[0005] In some embodiments, the operation instruction includes a read instruction, the relevant address includes a first relevant address; and the step of obtaining the status information based on the operation instruction includes: Acquire a read address from the read instruction, and acquire an address wear value corresponding to the read address, wherein the state information includes the address wear value; The step of generating the relevant address based on the operation instruction and the status information comprises: generating the first correlation address based on the read address and the address wear value; The step of operating the phase change memory based on the relevant address comprises: The phase change memory is written based on the first associated address.
[0006] In some embodiments, the operation instruction includes a read instruction, and the method further includes: The predicted voltage is obtained based on the state information, wherein the state information further includes: temperature information of the read address; The phase change memory is read based on the read instruction and the predicted voltage.
[0007] In some embodiments, the method further comprises: Acquire a plurality of preset voltage levels, wherein the predicted voltage corresponds to one of the plurality of preset voltage levels; In response to a failure in reading the phase change memory, switching the preset voltage level; Update the predicted voltage based on the switched preset voltage level and the state information; The phase change memory is read based on the read instruction and the updated prediction voltage.
[0008] In some embodiments, in response to a failure in reading the phase change memory, the step of switching the preset voltage level includes: In response to a failure to read the phase change memory, counting the number of failures to read the phase change memory; In response to the number being less than a preset number, the preset voltage level is switched.
[0009] In some embodiments, the operation instruction includes a write instruction, the relevant address includes a second relevant address; and the step of obtaining the status information based on the operation instruction includes: Acquire a write address from the write instruction, and acquire an address wear value corresponding to the write address; The step of generating the relevant address based on the operation instruction and the status information comprises: generating the second correlation address based on the write address and the address wear value; The step of operating the phase change memory based on the relevant address comprises: Writing is performed to the phase change memory based on the second associated address.
[0010] In some embodiments, the method further comprises: Performing balanced processing on the write data corresponding to the write instruction; The equalized write data is written into the phase change memory.
[0011] In a second aspect, the present application provides a voltage prediction system, comprising: A state information generating module, used for receiving an operation instruction for the phase change memory from a read-write device, and obtaining state information based on the operation instruction; The address prediction module is connected to the state information generation module and the phase change memory respectively, and is used to generate a relevant address based on the operation instruction and the state information, and operate the phase change memory based on the relevant address.
[0012] In some embodiments, the operation instruction includes a read instruction, and the voltage prediction system also includes a voltage prediction module, which is respectively connected to the state information generation module and the phase change memory, and the voltage prediction module is used to obtain a predicted voltage based on the state information, and read the phase change memory based on the read instruction and the predicted voltage.
[0013] In a third aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program can implement the above-mentioned control method when executed by a processor.
[0014] Different from the prior art: the present application receives an operation instruction for the phase change memory, obtains state information based on the operation instruction; generates a related address based on the operation instruction and the state information; and operates the phase change memory based on the related address. In the above manner, when an operation instruction is received, a related address is generated based on the operation instruction and the state information, so as to operate the phase change memory through the related address, thereby improving the stability of the related address of the phase change memory, reducing crosstalk, and improving the stability of the phase change memory. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Moreover, the same reference numerals are used throughout the drawings to represent the same components. In the drawings: Figure 1 It is a flow chart of an embodiment of a control method of a phase change memory of the present application; Figure 2 yes Figure 1 A schematic diagram of a framework of an embodiment of a medium voltage prediction system; Figure 3 is a flow chart of another embodiment of a control method for a phase change memory of the present application; Figure 4 It is a flow chart of another embodiment of the control method of the phase change memory of the present application; Figure 5 yes Figure 4 A schematic diagram of a flow chart of an embodiment of step S304; Figure 6 is a flow chart of another embodiment of the control method of the phase change memory of the present application; Figure 7 It is a schematic diagram of a framework of an embodiment of a computer-readable storage medium of the present application. DETAILED DESCRIPTION
[0016] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0017] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0018] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0019] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0020] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).
[0021] In the description of the embodiments of the present application, unless otherwise clearly specified and limited, technical terms such as "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be connected between, or indirectly connected through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.
[0022] See also Figure 1 and Figure 2 As shown, Figure 1 It is a flow chart of an embodiment of a control method of a phase change memory of the present application; Figure 2 yes Figure 1The control method of this embodiment is used to read or write the phase change memory 20 and can be applied to the voltage prediction system 10 . The voltage prediction system 10 is connected to the phase change memory 20 and the voltage prediction system 10 is also connected to the read / write device 30 .
[0023] Optionally, the voltage prediction system 10 can be set in a CXL (Compute Express Link, high-speed interconnect technology) controller chip, which is set between the CPU (Central Processing Unit) and the phase change memory 20 in the computer system to control the CPU to read or write the phase change memory 20.
[0024] The control method of this embodiment includes the following steps: S101: receiving an operation instruction for the phase change memory 20, and obtaining state information based on the operation instruction.
[0025] An operation instruction for the phase change memory 20 is received, that is, the voltage prediction system 10 receives the operation instruction from the read-write device 30. For example, the read-write device 30 is connected to the voltage prediction system 10 through a read-write bus, and the read-write device 30 sends the operation instruction to the voltage prediction system 10. The operation instruction includes a read instruction and a write instruction. The read instruction refers to the read-write device 30 reading data from the phase change memory 20 through the voltage prediction system 10, and the write instruction refers to the read-write device 30 writing data to the phase change memory 20 through the voltage prediction system 10.
[0026] The state information is obtained based on the operation instruction, that is, the voltage prediction system 10 obtains the state information based on the operation instruction. For example, the voltage prediction system 10 receives the operation instruction from the read-write device 30, and the voltage prediction system 10 obtains the state information.
[0027] S102: Generate relevant addresses based on the operation instruction and status information.
[0028] Generate relevant addresses based on operation instructions and status information, that is, the voltage prediction system 10 generates relevant addresses based on operation instructions and status information. For example, the voltage prediction system 10 generates relevant addresses based on operation instructions and status information through a relevant address prediction model, and the relevant address prediction model can be a relevant address prediction model in the prior art, which is not repeated here. Among them, the relevant address is an address related to the operation address in the operation instruction, such as an address adjacent to the operation address; if the operation instruction is a read instruction, the operation address is a read address; if the operation instruction is a write instruction, the operation address is a write address.
[0029] S103: operating the phase change memory 20 based on the relevant address.
[0030] The phase change memory 20 is operated based on the relevant address, that is, the voltage prediction system 10 operates the phase change memory 20 based on the first relevant address. The operation of the phase change memory 20 based on the relevant address means: writing to the relevant address of the phase change memory 20, or reading the relevant address of the phase change memory 20.
[0031] In this embodiment, by receiving an operation instruction for the phase change memory 20, state information is obtained based on the operation instruction; a relevant address is generated based on the operation instruction and the state information; and the phase change memory 20 is operated based on the relevant address. In the above manner, when the operation instruction is received, the relevant address is generated based on the operation instruction and the state information, so that the phase change memory 20 is operated through the relevant address, the stability of the relevant address of the phase change memory 20 is improved, the crosstalk is reduced, and the stability of the phase change memory 20 is improved.
[0032] According to some embodiments of the present application, the operation instruction of this embodiment includes a read instruction, and the related address includes a first related address. Step S101 includes: obtaining a read address from the read instruction, obtaining an address wear value corresponding to the read address, and the state information includes the address wear value.
[0033] The voltage prediction system 10 obtains the read address from the read instruction and obtains the address wear value corresponding to the read address. That is, the voltage prediction system 10 receives the read instruction from the read-write device 30, and the read instruction includes the read address, which refers to the address of the phase change memory 20 read by the voltage prediction system 10. The address wear value refers to the number of times the same address of the phase change memory 20 is written, and the address wear value corresponding to the read address refers to the number of times the read address of the phase change memory 20 is written.
[0034] Step S102 includes: generating a first relevant address based on the read address and the address wear value.
[0035] The voltage prediction system 10 generates a first related address based on the read address and the address wear value. For example, the voltage prediction system 10 generates a first related address based on the read address and the address wear value through a related address prediction model. The first related address is an address related to the read address, such as an address adjacent to the read address.
[0036] Step S103 includes: writing to the phase change memory 20 based on the first related address.
[0037] The voltage prediction system 10 writes to the phase change memory 20 based on the first related address.
[0038] Optionally, the voltage prediction system 10 compares the address wear value corresponding to the read address with a preset wear value; in response to the address wear value corresponding to the read address being greater than or equal to the preset wear value, that is, the read address wear reaches a preset degree, the voltage prediction system 10 writes to the phase change memory 20 based on the first related address. In response to the address wear value corresponding to the read address being less than the preset wear value, the voltage prediction system 10 does not need to write to the phase change memory 20.
[0039] During the process of the voltage prediction system 10 reading the phase change memory 20 based on the read address and the predicted voltage, the dielectric current of the phase change memory 20 corresponding to the read address is relatively large, and the dielectric temperature adjacent to the read address continues to rise, causing other addresses adjacent to the read address of the phase change memory 20 to be unstable, resulting in read crosstalk.
[0040] In this embodiment, the first relevant address is generated based on the read address and the address wear value, and the phase change memory 20 is written based on the first relevant address. In this way, the first relevant address of the phase change memory 20 can be rewritten, the read crosstalk is reduced, and the stability of the phase change memory 20 is improved.
[0041] Optionally, the state information further includes temperature information of the read address, and the temperature information of the read address refers to the temperature of the PCM particles corresponding to the read address. Step S102 includes: generating a first related address based on the temperature information of the read address and the address wear value.
[0042] The voltage prediction system 10 generates the first relevant address based on the temperature information and the address wear value of the read address. For example, the voltage prediction system 10 generates the first relevant address based on the temperature information and the address wear value of the read address through a relevant address prediction model.
[0043] This embodiment generates a first relevant address based on the temperature information of the read address and the address wear value, thereby improving the accuracy of the first relevant address.
[0044] According to some embodiments of this application, see Figure 3 As shown, Figure 3 FIG. 1 is a flow chart of another embodiment of the control method of the phase change memory of the present application. Figure 1 Based on the control method shown in the figure, the control method of this embodiment further includes the following steps: S201: Obtaining predicted voltage based on state information.
[0045] The operation instruction of this embodiment includes a read instruction, and the voltage prediction system 10 receives the read instruction from the read / write device 30 and obtains the state information based on the read / write instruction. For example, the voltage prediction system 10 receives the read instruction from the read / write device 30, and the voltage prediction system 10 obtains the state information.
[0046] The predicted voltage is obtained based on the state information, that is, the voltage prediction system 10 receives the read instruction, and the voltage prediction system 10 obtains the predicted voltage based on the state information. For example, the voltage prediction system 10 calculates the state information through a voltage prediction model to obtain the predicted voltage. The voltage prediction model can be a voltage prediction model in the prior art, which will not be described in detail here.
[0047] S202: Read the phase change memory 20 based on the read instruction and the predicted voltage.
[0048] The phase change memory 20 is read based on the read instruction and the predicted voltage, that is, the voltage prediction system 10 reads the phase change memory 20 based on the read instruction and the predicted voltage. For example, the voltage prediction system 10 is connected to the phase change memory 20 through a read bus, and the voltage prediction system 10 reads the phase change memory 20 based on the read instruction and the predicted voltage to read data from the phase change memory 20.
[0049] This embodiment obtains the predicted voltage based on the state information, and reads the phase change memory 20 based on the read instruction and the predicted voltage. In this way, the electrical parameter drift of the phase change memory 20 can be avoided, and the stability of the phase change memory 20 can be improved.
[0050] According to some embodiments of this application, see Figure 4 As shown, Figure 4 FIG. 1 is a flow chart of another embodiment of the control method of the phase change memory of the present application. The control method of this embodiment includes the following steps: S301: Obtain predicted voltage based on state information.
[0051] S302: Read the phase change memory 20 based on the read instruction and the predicted voltage.
[0052] Steps S301-S302 are the same as steps S201-S202 and will not be described again here.
[0053] S303: Acquire a plurality of preset voltage levels, and predict that the voltage corresponds to one of the plurality of preset voltage levels.
[0054] A plurality of preset voltage levels are obtained, and the predicted voltage corresponds to one of the plurality of preset voltage levels; that is, the voltage prediction system 10 is pre-set with a plurality of preset voltage levels, and the predicted voltage corresponds to one of the plurality of preset voltage levels, and the voltage prediction system 10 obtains a plurality of preset voltage levels.
[0055] For example, the voltage prediction system 10 is pre-set with a preset voltage level of 0V, a preset voltage level of 1V, a preset voltage level of 2V, and a preset voltage level of 3V; 0V, 1V, 2V, and 3V are for illustration and do not limit the preset voltage levels; the predicted voltage corresponds to the preset voltage level of 1V. In other embodiments, the voltage prediction system 10 is pre-set with a preset voltage level of 0V, a preset voltage level of 1V, a preset voltage level of 2V, and a preset voltage level of 1V.
[0056] S304 : In response to a failure in reading the phase change memory 20 , switching a preset voltage level.
[0057] In response to a failure in reading the phase change memory 20 , the preset voltage level is switched; that is, the voltage prediction system 10 fails to read the phase change memory 20 through the read instruction and the predicted voltage, and the preset voltage level is switched.
[0058] For example, in response to a read failure of the phase change memory 20 , the voltage prediction system 10 switches the preset voltage level 1V to the preset voltage level 2V.
[0059] S305: updating the predicted voltage based on the preset voltage level and state information after switching.
[0060] The predicted voltage is updated based on the preset voltage level and state information after switching, that is, the voltage prediction system 10 updates the predicted voltage based on the preset voltage level and state information after switching. For example, the voltage prediction system 10 updates the predicted voltage for the preset voltage level 2V and state information through the voltage prediction model.
[0061] S306 : Reading the phase change memory 20 based on the read instruction and the updated prediction voltage.
[0062] The phase change memory 20 is read based on the read instruction and the updated predicted voltage. That is, the voltage prediction system 10 reads the phase change memory 20 based on the read instruction and the updated predicted voltage.
[0063] In this embodiment, in response to a failure to read the phase change memory 20, the preset voltage level is switched; the predicted voltage is updated based on the switched preset voltage level and the state information, and the phase change memory 20 is read based on the read instruction and the updated predicted voltage. In the above manner, by switching the preset voltage level to update the predicted voltage, and reading the phase change memory 20 using the updated predicted voltage, the success rate of reading the phase change memory 20 by the voltage prediction system 10 can be improved, and the stability of the phase change memory 20 can be further improved.
[0064] According to some embodiments of this application, see Figure 5 As shown, Figure 5 yes Figure 4FIG. 1 is a flow chart of an embodiment of step S304 in FIG. 1. In this embodiment, step S304 includes the following steps: S401 : In response to a failure in reading the phase change memory 20 , counting the number of failures in reading the phase change memory 20 .
[0065] In response to a failure to read the phase change memory 20, the number of failed reads of the phase change memory 20 is counted and compared with a preset number; in response to the number being less than the preset number, the process proceeds to step S302; in response to the number being greater than or equal to the preset number, the process ends.
[0066] Specifically, in response to the failure to read the phase change memory 20, the voltage prediction system 10 counts the number of failed reads of the phase change memory 20. The voltage prediction system 10 is pre-set with a preset number of times and compares the number of times with the preset number of times; in response to the number of times being less than the preset number of times, step S302 is entered.
[0067] For example, after the voltage prediction system 10 obtains the predicted voltage based on the state information, the voltage prediction system 10 counts the number of failed reads of the phase change memory 20 as 1 in response to a failure in reading the phase change memory 20 .
[0068] Optionally, in response to a successful read of the phase change memory 20 , the number of times is cleared.
[0069] S402: In response to the number being less than a preset number, switching to a preset voltage level.
[0070] In response to the number of times being less than the preset number of times, the preset voltage level is switched; in response to the number of times being less than the preset number of times, the voltage prediction system 10 switches the preset voltage level.
[0071] In this embodiment, in response to a failure to read the phase change memory 20, the number of failed reads of the phase change memory 20 is counted; in response to the number being less than a preset number, the preset voltage level is switched. In this way, the number of failed reads of the phase change memory 20 by the voltage prediction system 10 is limited, thereby reducing the wear on the phase change memory 20.
[0072] According to some embodiments of the present application, the status information of this embodiment includes at least one of an address wear value, a read / write timestamp, and a PCM particle temperature corresponding to the read address.
[0073] Among them, a timestamp refers to a complete and verifiable data that can indicate that a piece of data already exists at a specific point in time; the read and write timestamps include a read timestamp and a write timestamp, the read timestamp refers to the completion of reading data from the phase change memory 20 at a specific point in time, and the write timestamp refers to the completion of writing data from the phase change memory 20 at a specific point in time; the PCM particle temperature corresponding to the read address refers to the temperature of the PCM particle in the phase change memory 20 corresponding to the read address.
[0074] For example, the status information includes the address wear value, the read / write timestamp, and the PCM particle temperature corresponding to the read address. The voltage prediction system 10 calculates the status information through a voltage prediction model to obtain a predicted voltage, that is, the voltage prediction system 10 calculates the address wear value multiplied by a first coefficient, the read / write timestamp multiplied by a second coefficient, and the PCM particle temperature multiplied by a third coefficient to obtain the predicted voltage, wherein the first coefficient, the second coefficient, and the third coefficient are coefficients pre-set by the voltage prediction system 10.
[0075] According to some embodiments of the present application, the operation instruction of this embodiment includes a write instruction, and the related address includes a second related address. Step S101 includes: obtaining a write address from the write instruction, obtaining an address wear value corresponding to the write address, and the state information includes the address wear value.
[0076] The voltage prediction system 10 obtains the write address from the write instruction and obtains the address wear value corresponding to the write address. That is, the voltage prediction system 10 receives the write instruction from the read-write device 30, and the write instruction includes the write address, which refers to the address written by the voltage prediction system 10 to the phase change memory 20. The address wear value corresponding to the write address refers to the number of times the write address of the phase change memory 20 is written.
[0077] Step S102 includes: generating a second correlation address based on the write address and the address wear value.
[0078] The voltage prediction system 10 generates a second related address based on the write address and the address wear value. For example, the voltage prediction system 10 generates a second related address based on the write address and the address wear value through a related address prediction model. The second related address is an address related to the write address, such as an address adjacent to the write address.
[0079] Step S103 includes: operating the phase change memory 20 based on the second related address.
[0080] The voltage prediction system 10 writes to the phase change memory 20 based on the second related address.
[0081] Optionally, the voltage prediction system 10 compares the address wear value corresponding to the write address with a preset wear value; in response to the address wear value corresponding to the write address being greater than or equal to the preset wear value, that is, the write address wear reaches a preset level, the voltage prediction system 10 writes to the phase change memory 20 based on the second related address.
[0082] In this embodiment, a second relevant address is generated based on the write address and the address wear value, and the phase change memory 20 is written based on the second relevant address. In this way, the second relevant address of the phase change memory 20 can be rewritten, the write crosstalk is reduced, and the stability of the phase change memory 20 is improved.
[0083] According to some embodiments of this application, see Figure 6 and Figure 2 As shown, Figure 6 1 is a flow chart of another embodiment of the control method of the phase change memory of the present application. The voltage prediction system 10 of the present embodiment includes an equalization module 13, and the equalization module 13 is connected to the phase change memory 20 via a write bus. Figure 1 Based on the control method shown in the figure, the control method of this embodiment further includes the following steps: S501: Perform balancing processing on write data corresponding to the write instruction.
[0084] The operation instruction of this embodiment includes a write instruction, the write instruction includes write data, and the write data corresponding to the write instruction is subjected to equalization processing; that is, the voltage prediction system 10 performs equalization processing on the write data through the equalization module 13 .
[0085] For example, the write data is 1111100, and the voltage prediction system 10 performs equalization processing on the write data through the equalization module 13, and the equalized write data is 010101, achieving the balance of 0 and 1. The equalization module 13 performs equalization processing on the write data using the equalization algorithm of the prior art, which will not be described in detail.
[0086] S502 : Writing the equalized write data into the phase change memory 20 .
[0087] The equalized write data is written into the phase change memory 20 , that is, the voltage prediction system 10 writes the equalized write data into the phase change memory 20 .
[0088] In this embodiment, the write data is balanced by the balance module 13 and the balanced write data is written into the phase change memory 20 . In this way, the 0 and 1 of the write data are balanced, which can improve the service life of the phase change memory 20 .
[0089] The present application also provides a voltage prediction system 10, such as Figure 2As shown, the voltage prediction system 10 of this embodiment includes a state information generation module 11 and an address prediction module 14 , and the address prediction module 14 is connected to the state information generation module 11 and the phase change memory 20 , respectively.
[0090] The state information generation module 11 is connected to the read / write device 30, for example, the read / write device 30 is connected to the state information generation module 11 via a read / write bus. The state information generation module 11 is used to receive an operation instruction for the phase change memory 20 from the read / write device 30 and obtain state information based on the operation instruction.
[0091] The address prediction module 14 is used to generate a relevant address based on the operation instruction and the state information, and to operate the phase change memory 20 based on the relevant address.
[0092] Optionally, the operation instruction includes a read instruction, the related address includes a first related address, the status information generation module 11 is used to obtain the read address from the read instruction, and obtain the address wear value corresponding to the read address; the address prediction module 14 is used to generate a first related address based on the read address and the address wear value, and write to the phase change memory 20 based on the first related address.
[0093] Optionally, the operation instruction includes a write instruction, the related address includes a second related address, the status information generation module 11 is used to obtain the write address from the write instruction, and obtain the address wear value corresponding to the write address; the address prediction module 14 is used to generate a second related address based on the write address and the address wear value, and write to the phase change memory 20 based on the second related address.
[0094] The state information generation module 11 of this embodiment is used to receive an operation instruction for the phase change memory 20 from the read / write device 30, and obtain state information based on the operation instruction; the address prediction module 14 is used to generate a relevant address based on the operation instruction and the state information, and operate the phase change memory 20 based on the relevant address. In the above manner, the stability of the relevant address of the phase change memory 20 is improved, the crosstalk is reduced, and the stability of the phase change memory 20 is improved.
[0095] According to some embodiments of the present application, the voltage prediction system 10 of this embodiment further includes a voltage prediction module 12 , and the voltage prediction module 12 is connected to the state information generation module 11 and the phase change memory 20 , respectively.
[0096] The operation instruction includes a read instruction, and the voltage prediction module 12 is used to obtain a predicted voltage based on the state information, and read the phase change memory 20 based on the read instruction and the predicted voltage. The address prediction module 14 and the voltage prediction module 12 can be set in the same module. In other embodiments, the address prediction module 14 can be set independently of the voltage prediction module 12, which will not be repeated here.
[0097] The voltage prediction module 12 of this embodiment is used to obtain the predicted voltage based on the state information, and read the phase change memory 20 based on the read instruction and the predicted voltage. In this way, the electrical parameter drift of the phase change memory 20 can be avoided and the stability of the phase change memory 20 can be improved.
[0098] Optionally, the voltage prediction system 10 further includes an equalization module 13, and the voltage prediction module 12 is connected to the phase change memory 20 via the equalization module 13. The voltage prediction system 10 is also used for responding to receiving a write instruction, and the equalization module 13 is used for equalizing the write data to write the equalized write data into the phase change memory 20.
[0099] According to some embodiments of the present application, the voltage prediction system 10 of this embodiment is also connected to the configuration device 40, and the state information generation module 11 is connected to the configuration device 40, for example, the configuration device 40 is connected to the state information generation module 11 via a configuration bus.
[0100] The configuration device 40 is used to configure the recording method of the address wear value and the read and write timestamp, the refresh interval of the PCM particle temperature, the voltage prediction model, the preset voltage level, the related address prediction model and at least one of the equalization algorithms. The configuration device 40 can be flexibly set to adapt to different application scenarios.
[0101] This application also provides a computer-readable storage medium, see Figure 7 , Figure 7 Schematic diagram of a computer-readable storage medium according to an embodiment of the present invention. Figure 7 As shown, the computer-readable storage medium 70 stores program instructions 71 that can be executed by a processor, and the program instructions 71 are used to implement the steps in any of the above control method embodiments.
[0102] In some embodiments, the functions or modules included in the device provided by the embodiments of the present disclosure can be used to execute the method described in the above method embodiments. The specific implementation can refer to the description of the above method embodiments, and for the sake of brevity, it will not be repeated here.
[0103] The above description of various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other, and for the sake of brevity, they will not be repeated herein.
[0104] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device implementation described above is only schematic. For example, the division of modules or units is only a logical function division. There may be other division methods in actual implementation, such as units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0105] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0106] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of each implementation method of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code.
[0107] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application. In particular, as long as there is no structural conflict, the various technical features mentioned in the various embodiments can be combined in any way. The present application is not limited to the specific embodiments disclosed herein, but includes all technical solutions that fall within the scope of the claims.
Claims
1. A control method of a phase change memory, characterized in that: include: receiving an operation instruction for the phase change memory, and obtaining state information based on the operation instruction; generating a relevant address based on the operation instruction and the status information; The phase change memory is operated based on the associated address.
2. The method according to claim 1, characterized in that: The operation instruction includes a read instruction, and the relevant address includes a first relevant address; The step of obtaining status information based on the operation instruction comprises: Acquire a read address from the read instruction, and acquire an address wear value corresponding to the read address, wherein the state information includes the address wear value; The step of generating the relevant address based on the operation instruction and the status information comprises: generating the first correlation address based on the read address and the address wear value; The step of operating the phase change memory based on the relevant address comprises: The phase change memory is written based on the first associated address.
3. The method according to claim 1 or 2, characterized in that: The operation instruction includes a read instruction, and the method further includes: Obtaining a predicted voltage based on the state information, wherein the state information further includes temperature information of a read address; The phase change memory is read based on the read instruction and the predicted voltage.
4. The method according to claim 3, characterized in that: The method further comprises: Acquire a plurality of preset voltage levels, wherein the predicted voltage corresponds to one of the plurality of preset voltage levels; In response to a failure in reading the phase change memory, switching the preset voltage level; Update the predicted voltage based on the switched preset voltage level and the state information; The phase change memory is read based on the read instruction and the updated prediction voltage.
5. The method according to claim 4, characterized in that In response to a failure in reading the phase change memory, the step of switching the preset voltage level comprises: In response to a failure to read the phase change memory, counting the number of failures to read the phase change memory; In response to the number being less than a preset number, the preset voltage level is switched.
6. The method according to claim 1, characterized in that The operation instruction includes a write instruction, and the relevant address includes a second relevant address; and the step of obtaining the status information based on the operation instruction includes: Acquire a write address from the write instruction, and acquire an address wear value corresponding to the write address; The step of generating the relevant address based on the operation instruction and the status information comprises: generating the second correlation address based on the write address and the address wear value; The step of operating the phase change memory based on the relevant address comprises: Writing is performed to the phase change memory based on the second associated address.
7. The method according to claim 6, characterized in that The method further comprises: Performing balanced processing on the write data corresponding to the write instruction; The equalized write data is written into the phase change memory.
8. A voltage prediction system, characterized in that: include: A state information generating module, used for receiving an operation instruction for the phase change memory from a read-write device, and obtaining state information based on the operation instruction; The address prediction module is connected to the state information generation module and the phase change memory respectively, and is used to generate a relevant address based on the operation instruction and the state information, and operate the phase change memory based on the relevant address.
9. The voltage prediction system according to claim 8, characterized in that: The operation instruction includes a read instruction, and the voltage prediction system also includes a voltage prediction module, which is respectively connected to the state information generation module and the phase change memory. The voltage prediction module is used to obtain a predicted voltage based on the state information, and read the phase change memory based on the read instruction and the predicted voltage.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program can implement the control method according to any one of claims 1 to 7 when executed by a processor.
Citation Information
Patent Citations
Pcm memories for storage bus interfaces
CN101887350A
Quick-response phase change memory wear-leveling method
CN102981971A
Method and device for writing data into phase change memory
CN103151072A
Method, apparatus and system to determine access information for a phase change memory
CN105374392A
Access method and access device of storage unit and terminal equipment
CN114880251A
