Magnetic storage key generation method and magnetic storage

By adopting a dual-pulse writing method and a reference voltage buffer circuit in magnetic memory, the problem of MRAM flip probability is solved to be sensitive to temperature, and the probability of flipping is maintained in a wide temperature range is realized, and the stability of the key is improved. reliability.

CN118627144BActive Publication Date: 2024-11-19青岛海存微电子有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411110415.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-11-19
Estimated Expiration
2044-08-14

AI Technical Summary

Technical Problem

The flip probability of MRAM is sensitive to temperature with the change of voltage, and it is difficult to maintain a flip probability of about 50% within a wide temperature range, resulting in poor practicality of MRAM PUF.

Method used

By introducing a dual pulse writing method in the magnetic memory, two write voltages are generated using the reference voltage buffer circuit and the write driver to ensure that the flip probability of about 50% is maintained within the entire working temperature range, and the key is generated.

Benefits of technology

The write voltage range is widened, the stability and reliability of the key are improved, so that the generated key can be reproduced stably within a certain temperature range, and the practicality of the magnetic memory is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118627144B_ABST
    Figure CN118627144B_ABST
Patent Text Reader

Abstract

The present application provides a magnetic memory key generation method and a magnetic memory, which relate to the field of information security technology. The method comprises: obtaining the amplitude of a first pulse and the amplitude of a second pulse from a PUF built-in memory; there is a voltage difference between the amplitude of the first pulse and the amplitude of the second pulse determined based on the working temperature range of the magnetic memory; a reference voltage buffer circuit processes the amplitude of the first pulse and the amplitude of the second pulse based on the reference voltage, and outputs two write voltages; and after the two write voltages are input into a write driver, a key is generated. In this way, since the two write voltages can cause about 50% of the magnetic memory devices to flip, and the other devices do not flip, and can be stably reproduced within a certain temperature range, the key generated based on the two write voltages has good stability and reliability, and the key generated by the magnetic memory is practical.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of information security technology, and in particular to a magnetic storage key generation method and a magnetic storage. Background Art

[0002] Magnetic Random Access Memory (MRAM) is one of the main candidates for the next generation of memory technology. The flip probability of MRAM increases monotonically with the write voltage. A higher write voltage makes it easier to write MRAM. However, for MRAM, there is a critical write voltage Vc, which makes about 50% of MRAM devices flip and the other devices do not flip. Therefore, under a given global Vc, the flip probability of some storage cells is very high, while that of others is very low. This means that after each application of Vc, although the overall flip probability of MRAM is 50%, some storage cells still have a stable tendency to be written as 1 or 0. This tendency is certain inside the chip, but it is unpredictable between different chips of the same batch made under the same process. Generating a chip's "fingerprint" based on these unpredictable tendencies is the working principle of the Physical Unclonable Function (PUF).

[0003] In the existing technology, a unique key can be generated by extracting the inherent process deviation of the chip, that is, the unpredictable tendency within the chip, and used for security aspects such as identity authentication and key encryption to ensure information security.

[0004] However, the relationship between the switch probability (Psw) of MRAM and voltage is sensitive to temperature. It is difficult to find a stable write voltage Vc so that it always has a switch probability of about 50% within a wide temperature range, resulting in poor practicality of MRAM PUF. Summary of the invention

[0005] The present application provides a magnetic memory key generation method and a magnetic memory, which are used to solve the problem that the relationship between the Psw of the existing MRAM and the voltage change is sensitive to temperature, and it is difficult to find a stable write voltage Vc so that it always has a flip probability of about 50% in a wide temperature range, resulting in poor practicality of the MRAM PUF.

[0006] In a first aspect, the present application provides a method for generating a key of a magnetic memory, wherein the magnetic memory includes a physically unclonable function PUF built-in memory, a reference voltage buffer circuit, and a write driver; the method includes:

[0007] Acquire the amplitude of the first pulse and the amplitude of the second pulse from the built-in memory of the PUF; there is a voltage difference between the amplitude of the first pulse and the amplitude of the second pulse determined based on the operating temperature range of the magnetic memory;

[0008] The reference voltage buffer circuit processes the amplitude of the first pulse and the amplitude of the second pulse based on the reference voltage, and outputs two write voltages;

[0009] A key is generated after the two write voltages are input into the write driver.

[0010] Optionally, the first pulse and the second pulse have opposite polarity; the voltage difference is determined based on a target flip probability function; the target flip probability function is related to a first flip probability function corresponding to the amplitude of the first pulse and a second flip probability function corresponding to the amplitude of the second pulse.

[0011] Optionally, the process of determining the voltage difference includes:

[0012] When the flip probability Psw of the magnetic memory is (50±a)%, the first flip probability function and the second flip probability function are determined; a is a positive number;

[0013] determining a target function based on the first flip probability function, the second flip probability function, and the target flip probability function;

[0014] The voltage difference is solved based on the objective function.

[0015] Optionally, the PUF built-in memory stores the amplitude of the first pulse and the amplitude of the second pulse in advance; the amplitude of the first pulse is determined based on the interval size of the flip probability and the flip probability curve of the magnetic memory, and the amplitude of the second pulse is determined based on the amplitude of the first pulse and the corresponding voltage difference.

[0016] Optionally, the voltage difference is determined based on traversing the write voltages of the magnetic storage corresponding to the temperatures at two end points of a preset temperature range and calculating the intersection.

[0017] Optionally, the magnetic memory further comprises a reference voltage generating circuit; the reference voltage generating circuit is used to generate a reference voltage; the reference voltage generating circuit is a bandgap reference circuit, and the reference voltage generated by the bandgap reference circuit is the reference voltage;

[0018] The reference voltage buffer circuit processes the amplitude of the first pulse and the amplitude of the second pulse based on the reference voltage, and outputs two write voltages.

[0019] Optionally, the magnetic memory further includes a PUF array; and the step of generating a key after inputting the two write voltages into the write driver includes:

[0020] After the two write voltages are input into the write driver, a key is generated based on the PUF array.

[0021] Optionally, the method further includes:

[0022] After the PUF array is initialized, a reconfigurable voltage is input to the write driver to write data to the PUF array based on the write driver.

[0023] Optionally, the magnetic storage includes a plurality of storage units, and the process of generating the key includes:

[0024] For each storage unit in the magnetic storage, determining a subkey of the storage unit;

[0025] The subkeys corresponding to the plurality of storage units are processed using a predefined algorithm to obtain a key.

[0026] In a second aspect, the present application provides a magnetic memory, the magnetic memory comprising: a physical unclonable function PUF built-in memory, a reference voltage buffer circuit, a write driver and a processor;

[0027] The processor is used to obtain the amplitude of the first pulse and the amplitude of the second pulse from the built-in memory of the PUF; there is a voltage difference between the amplitude of the first pulse and the amplitude of the second pulse determined based on the operating temperature range of the magnetic memory;

[0028] The reference voltage buffer circuit is used to process the amplitude of the first pulse and the amplitude of the second pulse based on the reference voltage, and output two write voltages to the write driver;

[0029] The write driver is used to receive the two write voltages so that the magnetic memory generates a key.

[0030] In summary, the present application provides a magnetic memory key generation method and a magnetic memory, by considering the factor of the change of Psw with temperature, determining two write voltages that can cause Psw to flip with a probability of about 50% in the entire operating temperature range, and then the determined two write voltages can be input into the write drive to generate a key based on the magnetic memory; wherein, the relationship between the double pulses satisfies |V2|=|V1|±β, V1 is the amplitude of the first pulse, V2 is the amplitude of the second pulse, and β is the voltage difference determined based on the operating temperature range of the magnetic memory; the V1 and V2 can be stored in the PUF built-in memory in advance, and can be directly called when generating the key of the magnetic memory; therefore, the present application adopts a dual-pulse writing method to widen the write voltage range, and because the two write voltages will cause about 50% of the magnetic memory devices to flip, and the other devices will not flip, and can be stably reproduced within a certain temperature range, the key generated based on the two write voltages has good stability and reliability, so the key generated by the magnetic memory is practical. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0032] Figure 1 Schematic diagram of Psw-V curve at different temperatures;

[0033] Figure 2 A schematic diagram of an application scenario provided for an embodiment of the present application;

[0034] Figure 3 A schematic diagram of a flow chart of a magnetic storage key generation method provided in an embodiment of the present application;

[0035] Figure 4 A pulse waveform diagram provided in an embodiment of the present application;

[0036] Figure 5 A schematic diagram of the structure of a magnetic storage device provided in an embodiment of the present application;

[0037] Figure 6 A schematic diagram of the relationship between Psw and V provided in an embodiment of the present application;

[0038] Figure 7 A distribution curve diagram of F provided in an embodiment of the present application;

[0039] Figure 8 It is the distribution curve of F under different V and β values;

[0040] Fig. 9 A schematic structural diagram of an optional magnetic storage device is provided for the present application.

[0041] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0042] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. For example, the first device and the second device are only used to distinguish different devices, and their order is not limited. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit them to be different.

[0043] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0044] In this application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0045] The basic storage unit of MRAM is the Magnetic Tunnel Junction (MTJ). The core structure of MTJ is a sandwich structure formed by two ferromagnetic layers sandwiching an oxide barrier layer. The magnetization direction of one ferromagnetic layer remains unchanged and is called the fixed layer; the magnetization direction of the other ferromagnetic layer can be changed by external stimulation, such as by write voltage stimulation, and is called the free layer. When the magnetization direction of the free layer is parallel or anti-parallel to that of the fixed layer, the MTJ is in a low resistance or high resistance state, respectively, and the two resistance states can represent binary data "0" and "1" respectively.

[0046] Due to the influence of uncontrollable process fluctuations such as thermal noise fluctuations and different local etching rates, the Vc of each storage unit is slightly different. Therefore, PUF can generate a unique key based on the inherent deviation caused by the process fluctuations of the extracted chip, avoiding the process of storing the key in the storage unit.

[0047] The key to PUF is to extract the stably reproducible randomness generated by process deviations in the chip. If the Psw of MRAM deviates too much, the function of MRAM PUF will be affected and information security will no longer be guaranteed. This requires that MRAM needs to generate a flip of about 50% based on Vc when working, such as a 1 / 0 distribution of 50%±3%.

[0048] However, the relationship between the Psw and voltage of MRAM is sensitive to temperature, that is, the single pulse Psw-V curve of MRAM will change with the temperature. For example, Figure 1 is a schematic diagram of the Psw-V curve at different temperatures, such as Figure 1 As shown in the figure, the horizontal solid line is the Psw range that PUF can accept, such as Psw=50%±3%. To AP and To P represent two sample curves of positive and negative voltages, respectively. Each sample curve corresponds to a Psw-V curve at -40°C and a Psw-V curve at 125°C. V represents the write voltage, which can also be called the write voltage. The vertical solid line and the vertical dotted line are the write voltages required to be applied to MRAM as PUF at two temperatures, respectively. It can be seen that the two voltage intervals do not overlap.

[0049] Depend on Figure 1 It can be seen that due to the device characteristic of MRAM PUF that Psw drifts with temperature, it is difficult to find a stable write voltage Vc so that it can always maintain a flip probability of about 50% in a wide temperature range, resulting in poor practicality of MRAM PUF.

[0050] In response to the above problems, the present application provides a method for generating a magnetic memory key. By considering the factor of the change of Psw with temperature, two write voltages that can cause Psw to flip with a probability of about 50% in the entire operating temperature range are determined, and then the determined two write voltages can be input into the write drive to generate a key based on the magnetic memory; wherein, the relationship between the two pulses satisfies |V2|=|V1|±β, V1 is the amplitude of the first pulse, V2 is the amplitude of the second pulse, and β is the voltage difference determined based on the operating temperature range of the magnetic memory; the V1 and V2 can be stored in the PUF built-in memory in advance and can be directly called when generating the key of the magnetic memory; therefore, the present application adopts a dual-pulse writing method to widen the write voltage range, and because the two write voltages will cause about 50% of the magnetic memory devices to flip and the other devices will not flip, and can be stably reproduced within a certain temperature range, the key generated based on the two write voltages has good stability and reliability, so the key generated by the magnetic memory is practical.

[0051] For example, Figure 2 A schematic diagram of an application scenario provided in an embodiment of the present application, such as Figure 2 As shown, the application scenario can be applied to the security authentication of magnetic electronic devices, and the application scenario includes: a manufacturer 201, a verification device 202 and a PUF chip 203; the verification device 202 has a built-in database, which is used to store the "fingerprint" of the PUF chip, that is, the key.

[0052] Manufacturer 201 can install a PUF chip 203 when the product leaves the factory, and store the key of the PUF chip 203 in a database. When manufacturer 201 receives the "returned product", it can verify based on the verification device 202 whether the key of the PUF chip 203 of the "returned product" is consistent with the key of the PUF chip 203 in the database, and determine whether the product is really produced by the manufacturer.

[0053] It can be understood that the magnetic storage key generation method provided in the present application can be widely used in multiple scenarios requiring security, such as data encryption, identity authentication, digital signature, key management, hardware security module, blockchain, Internet of Things security, smart cards and security chips, as well as cloud computing and virtualization security. The embodiments of the present application do not limit the specific application scenarios.

[0054] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0055] For example, Figure 3A flowchart of a method for generating a magnetic storage key provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the magnetic memory includes a physical unclonable function PUF built-in memory, a reference voltage buffer circuit and a write driver; the method includes:

[0056] S301, acquiring an amplitude of a first pulse and an amplitude of a second pulse from a built-in memory of the PUF; there is a voltage difference between the amplitude of the first pulse and the amplitude of the second pulse determined based on an operating temperature range of the magnetic memory.

[0057] In the embodiment of the present application, the amplitude of the pulse may refer to the maximum value of the current or voltage in the pulse signal. In MRAM, the amplitude of the pulse is a key parameter, which can directly affect the efficiency of the spin transfer torque (Spin-Transfer Torque, STT) or spin-orbit torque (Spin-Orbit Torque, SOT) effect, thereby determining the success rate and speed of the magnetization direction reversal, that is, affecting the numerical value of Psw.

[0058] In some embodiments, due to the use of a dual-pulse writing method, the amplitude of the second pulse is β smaller than the amplitude of the first pulse, that is, |V2|=|V1|-β, V1 is the amplitude of the first pulse; V2 is the amplitude of the second pulse, β is a voltage difference determined based on the operating temperature range of the magnetic storage device. Therefore, based on the design of |V2|=|V1|-β, a writing voltage that can make Psw around 50% in a certain operating temperature range, such as Psw=50%±3%, can be found, thereby broadening the writing voltage range of the magnetic storage device. The operating temperature range is an applicable operating temperature range for the magnetic storage device, such as -40℃-125℃. The embodiment of the present application does not specifically limit the upper and lower limits of the operating temperature range, which can be determined based on the actual application scenario.

[0059] In other embodiments, the amplitude can be set in a manner such that the amplitude of the second pulse is β greater than the amplitude of the first pulse, that is, |V2|=|V1|+β. The embodiment of the present application does not specifically limit the size of the amplitude of the second pulse corresponding to the amplitude of the first pulse, and it can satisfy the condition of |V2|=|V1|±β.

[0060] Optionally, the first pulse and the second pulse have opposite polarity; the voltage difference is determined based on a target flip probability function; the target flip probability function is related to a first flip probability function corresponding to the amplitude of the first pulse and a second flip probability function corresponding to the amplitude of the second pulse.

[0061] In some embodiments, V1 can be a positive number; V2 can be a negative number; β is based on the target flip probability function Determine; y1 is the first flip probability function corresponding to V1, and y2 is the second flip probability function corresponding to V2.

[0062] For example, a double pulse writing method of one positive and one negative can be adopted. Figure 4 A pulse waveform diagram provided in an embodiment of the present application, such as Figure 4 As shown, V1 is a positive value; V2 is a negative value; in this way, the stress and thermal effects in the magnetic material can be balanced based on the positive and negative dual pulse writing method, so that stable writing performance can be maintained within a wider temperature range, and the magnetic storage device can work reliably under various environmental conditions.

[0063] It should be noted that the embodiment of the present application does not specifically limit the numerical values ​​and quantities of V1 and V2. Optionally, the amplitude of the first pulse can be negative and the amplitude of the second pulse can be positive, that is, V1 is negative and V2 is positive.

[0064] Optionally, a double-pulse multiple-write method of one positive and one negative can be adopted, that is, there are multiple first pulses, and adaptively, there are also multiple second pulses. Through multiple writes, the stability of the magnetic storage device can be further enhanced, and the write voltage can be flexibly adjusted; wherein, the number and interval of multiple writes can be adjusted according to specific needs, and the embodiments of the present application do not make specific limitations on this.

[0065] In this step, the probability corresponding to V1 is recorded as y1; the probability corresponding to V2 when the amplitude is |V1|±β is recorded as y2. After the MRAM is initialized to 1, the final state F after two writes has an algebraic relationship with y1 and y2 , where the probability that MRAM is still 1 after V1 is written is 1-y1, y1 is the probability of successful writing after one time, and under the state of 1-y1, the power of successful writing for the second time is , so after two writes, the probability of success is , which corresponds to the target flip probability function.

[0066] Therefore, the embodiment of the present application uses the target flip probability function , the flip probability during the writing process can be precisely controlled, which can ensure that the magnetic storage device maintains a consistent writing probability under different temperature or voltage conditions, thereby improving the consistency and reliability of data writing. By precisely controlling the amplitude and writing probability of positive and negative pulses, the occurrence of erroneous writing can be reduced, and the integrity of data and the stability of the writing process can be improved. The β-based design can enable the magnetic storage device to maintain stable writing performance over a wider temperature range.

[0067] It should be noted that the amplitude of the first pulse and the amplitude of the second pulse are predetermined values. For each characteristic of the magnetic memory, the temperature of the MRAM can be set to -40°C and 125°C for working tests before the magnetic memory leaves the factory, such as performing a Shmoo test to obtain the corresponding Psw-V curve. V1 and V2 are obtained by finding the intersection of the corresponding Psw-V curves at the two temperatures, and V1 and V2 are written into the PUF built-in memory.

[0068] Among them, Shmoo test refers to the execution of Shmoo Plot Test. Shmoo plot is a two-dimensional chart used to show the performance and reliability of electronic devices under different operating conditions, such as voltage, frequency, temperature and other operating conditions.

[0069] For example, the curve functions of V1 and β at temperatures of -40°C and 125°C can be plotted respectively when Psw≈50% , and then determine two V1-β phase diagrams with a target flip probability function near 50% from these two curve functions, and find the intersection of these two V1-β phase diagrams to obtain the V1 and β values ​​that allow the MRAM to achieve Psw writing near 50% within the operating temperature range, and then determine V2.

[0070] It should be noted that the characteristics of the magnetic storage may be age characteristics, device characteristics, etc. of the magnetic storage. The embodiments of the present application do not specifically limit the characteristics. Different characteristics of the magnetic storage correspond to different amplitudes of the first pulse and the amplitudes of the second pulse.

[0071] S302 . The reference voltage buffer circuit processes the amplitude of the first pulse and the amplitude of the second pulse based on the reference voltage, and outputs two write voltages.

[0072] In the embodiment of the present application, the reference voltage buffer circuit is used to output a stable reference voltage to the write circuit, and the output voltage can be changed by adjusting the gain of the operational amplifier. Therefore, the embodiment of the present application obtains the amplitude of the first pulse and the amplitude of the second pulse based on the reference voltage buffer circuit, and then performs a series of internal processing based on the reference voltage to output the write voltages corresponding to V1 and V2 respectively. Through the processing of the reference voltage buffer circuit, it can be ensured that the amplitude of the pulse remains stable under different temperature conditions, thereby improving the environmental adaptability of the magnetic storage device.

[0073] It should be noted that the embodiments of the present application do not specifically limit the internal processing process of the reference voltage buffer circuit and the circuit structure of the reference voltage buffer circuit. It can be implemented based on existing circuits and redesigned new circuits, or any other circuit that can perform a similar function to the reference voltage buffer circuit can replace the reference voltage buffer circuit.

[0074] S303 , generating a key after inputting the two write voltages into the write driver.

[0075] Exemplarily, after two write voltages are input to the write driver, about 50% of the MRAM devices can be flipped while the other devices cannot be flipped, that is, Psw≈50%. Then, a key can be generated based on the signal corresponding to the deflection of 1 or 0 in the memory corresponding to Psw≈50%, so as to perform identity authentication or security verification based on the key.

[0076] Therefore, the embodiment of the present application determines the voltage difference based on the operating temperature range of the magnetic storage device, considers the factor of the change of Psw with temperature, broadens the temperature range of the PUF of the magnetic storage device, and can ensure the stability and reliability of the writing process under different temperature conditions. By precisely controlling the amplitude of the pulse and the writing voltage, the magnetization reversal process can be accelerated and the writing speed can be improved. The present application can also adapt to magnetic storage devices with different characteristics. By obtaining the amplitude of a specific pulse from the built-in memory of the PUF, it is ensured that various magnetic storage devices can be applied to the method of the present application, thereby having higher practical value.

[0077] Optionally, the magnetic memory also includes a reference voltage generating circuit; the reference voltage generating circuit is used to generate a reference voltage; the reference voltage generating circuit is a bandgap reference circuit, and the reference voltage generated by the bandgap reference circuit is a reference voltage; it should be noted that the reference voltage generating circuit can also be other circuits that can generate a reference voltage, and the embodiments of the present application do not limit the specific circuit structure corresponding to the reference voltage generating circuit.

[0078] For example, Figure 5 A schematic diagram of the structure of a magnetic storage device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the magnetic memory includes a PUF built-in memory, a reference voltage buffer circuit, a write driver, a bandgap reference circuit and a PUF array; the PUF array is an internal storage unit of the magnetic memory.

[0079] Optionally, S302 specifically includes:

[0080] The reference voltage buffer circuit processes the amplitude of the first pulse and the amplitude of the second pulse based on the reference voltage, and outputs two write voltages.

[0081] Specifically, inputting a reference voltage into the reference voltage buffer circuit based on the bandgap reference circuit;

[0082] After the reference voltage buffer circuit obtains the amplitude of the first pulse and the amplitude of the second pulse from the PUF built-in memory, it outputs two write voltages based on the reference voltage, the amplitude of the first pulse and the amplitude of the second pulse.

[0083] In an embodiment of the present application, a bandgap reference circuit generates two voltages with opposite temperature variation trends by combination, but generates a reference voltage whose value does not substantially vary with temperature. The bandgap reference circuit has good temperature compensation characteristics and can provide a stable reference voltage within a wide temperature range.

[0084] It should be noted that the embodiment of the present application does not specifically limit the circuit structure of the bandgap reference circuit. It can be implemented based on an existing circuit or a newly designed circuit. Alternatively, any other circuit that can perform a similar function to the bandgap reference circuit can replace the bandgap reference circuit.

[0085] In addition, the reference voltage can also be generated based on an external circuit, such as an external voltage source, and then a reference voltage of a fixed value is input into the reference voltage buffer circuit. The embodiment of the present application does not limit the structure of the external circuit, and any external circuit that can perform similar functions can replace the bandgap reference circuit to generate the reference voltage.

[0086] Exemplarily, the reference voltage buffer circuit obtains the specific values ​​of V1 and V2 corresponding to the magnetic memory from the PUF built-in memory storing the values ​​of V1 and V2, and generates two write voltages corresponding to V1 and V2 based on the reference voltage input by the bandgap reference circuit, such as 1V, and inputs the two write voltages into the write driver. Furthermore, after the two write voltages are input into the write driver, the magnetic memory is flipped, and a key can be generated.

[0087] Therefore, the reference voltage generating circuit can generate a stable reference voltage. For example, the bandgap reference circuit can provide a stable reference voltage that is not affected by temperature, process and power supply voltage changes, so that the reference voltage buffer circuit can accurately generate the required write voltage to ensure the accuracy of the write operation. Furthermore, the high-precision write voltage can ensure the consistency of each write operation, reducing data errors and inconsistencies.

[0088] Optionally, the process of determining the voltage difference includes:

[0089] When the flip probability Psw of the magnetic memory is (50±a)%, the first flip probability function and the second flip probability function are determined; a is a positive number;

[0090] determining a target function based on the first flip probability function, the second flip probability function, and the target flip probability function;

[0091] The voltage difference is solved based on the objective function.

[0092] The first flip probability function is related to the amplitude of the first pulse; the second flip probability function is related to the amplitude of the second pulse.

[0093] In the embodiment of the present application, the curve of Psw changing with the write voltage usually presents an S-shape. Since Psw changes rapidly with the write voltage near Psw=50%, if it is assumed that Psw near Psw=50% is linearly related to the write voltage, the first flip probability function of y1 and the second flip probability function of y2 can be determined. Further, the first flip probability function of y1 and the second flip probability function of y2 are substituted into the algebraic relationship of F, and F can be obtained as a quadratic equation with y1 as the independent variable, that is, the target function. In this way, if the value range of V needs to be widened, the value range of Psw needs to be widened, that is, within the interval of Psw=(50±a)%, the widest possible F curve can be made to fall within this interval, and then the vertex value can be used to solve the specific value of the voltage difference β.

[0094] Among them, Psw is a value close to 50%, and optionally, a is 3. The embodiment of the present application does not limit the specific value corresponding to a.

[0095] It should be noted that since Psw near Psw=50% is linearly related to the write voltage, and Psw changes rapidly with V, a linear approximation can be made, that is, y1 and y2 are approximated as different straight lines, and different slopes and intercepts are given. The embodiment of the present application does not limit the specific values ​​corresponding to the slope and the intercept, and the slope and the intercept may also be equal. Optionally, in order to be closer to a curve near Psw=50%, y1 and y2 may also be approximated as different curves, and the embodiment of the present application does not specifically limit this.

[0096] For example, Figure 6 In the S-curve shown, the relationship between Psw and V is approximately linear near Psw=50%. (dashed line in the figure), accordingly, taking the slope and intercept as an example, determine the first flip probability function of y1 and the second flip probability function of y2 , since |V2|=|V1|±β, we can deduce Substitute it into The objective function is obtained: .

[0097] like Figure 7As shown, F is a quadratic function about y1, and its opening is upward. Therefore, after the above transformation, Figure 6 to Figure 7 The Psw changes from a high-slope linear change to a horizontal change near the quadratic function vertex, and the Psw range is expanded. Further, if you want to solve the β value, you only need to make the quadratic function vertex between 47% and 53%, and then you can use the quadratic function to find the vertex formula F=(4ac-b 2 ) / 4a=1-1 / 4( ) 2 To solve the β value, since k is known, such as k can be determined based on the properties of the magnetic storage device, F is between 47% and 53%, the β value can be obtained by substituting it into the above formula.

[0098] Therefore, the embodiment of the present application uses the target flip probability function to clarify the mathematical relationship between the various parameters in the target flip probability function, thereby ensuring the accuracy of solving the β value, and further ensuring that the expected write probability is achieved under specific conditions.

[0099] Optionally, the PUF built-in memory stores the amplitude of the first pulse and the amplitude of the second pulse in advance; the amplitude of the first pulse is determined based on the interval size of the flip probability and the flip probability curve of the magnetic memory, and the amplitude of the second pulse is determined based on the amplitude of the first pulse and the corresponding voltage difference.

[0100] In the embodiment of the present application, since the amplitude of the first pulse and the amplitude of the second pulse are stored in advance in the PUF built-in memory, it can be ensured that the magnetic memory directly calls the corresponding pulse amplitude combination, thereby improving the writing rate and reliability.

[0101] Optionally, V1 and V2 can be dynamically adjusted in an adaptive manner to meet the needs of the magnetic storage device. Since the values ​​of V1 and V2 can be written for each characteristic device when the PUF chip of the magnetic storage device leaves the factory, the present application is highly robust to process fluctuations.

[0102] For example, Figure 8 As shown, Figure 8 The distribution curve of F under different V and β values. Compared with the previous S-shaped curve, the voltage range of Psw=50% is widened under double pulse writing. Each curve corresponds to a flip probability curve of the magnetic memory. V is determined based on the interval size of the flip probability and the flip probability curve of the magnetic memory. For example, the flip probability interval is Figure 8In the interval shown by the two horizontal lines in , the flip probability curve of the magnetic memory is the S-shaped curve of the defined magnetic memory, that is, the curve of Psw changing with the write voltage, corresponding to the Gaussian distribution function, and then based on the determined flip probability interval, the given value of V1 of about Psw=50% can be read from the figure, and then based on |V2|=|V1|±β, the value of V2 is determined.

[0103] It should be noted that the embodiment of the present application does not specifically limit the interval size of the flip probability, which can be set artificially, such as Psw is 0.43-0.57. In addition, the flip probability curve of the magnetic storage is determined by the characteristics of the magnetic storage, and each magnetic storage has a corresponding S-shaped curve. Therefore, the flip probability curve of the magnetic storage can be obtained and determined in advance.

[0104] Therefore, the embodiment of the present application can reduce the need to calculate or adjust the amplitude of the pulse during operation by storing the amplitude of the first pulse and the amplitude of the second pulse in advance, thereby improving the stability and reliability of the magnetic storage device. Since the amplitude of the first pulse is determined based on the interval size of the flip probability and the flip probability curve of the magnetic storage device, it can ensure that under specific conditions, the flip probability of the magnetic storage device is known and controllable, thereby also ensuring the stability of determining the amplitude of the first pulse, which helps to generate a reliable key.

[0105] Optionally, the voltage difference is determined based on traversing the write voltages of the magnetic storage corresponding to the temperatures at two end points of a preset temperature range and calculating the intersection.

[0106] In the embodiment of the present application, the preset temperature range may refer to a pre-set operating temperature range applicable to the magnetic storage device, but the preset temperature range must be greater than or equal to the actual operating temperature range of the magnetic storage device. Therefore, in the actual process, for the magnetic storage device, the suitable operating temperature range and write voltage can be found by traversing the write voltage at the temperatures at the two end points of the preset temperature range.

[0107] Exemplarily, the Shmoo test is performed by a brute force method, which directly traverses the write voltages at the two end points of a preset temperature range, and then obtains the β value by finding the intersection of the write voltages at the two end points. There is no need to adjust and verify the write voltage for each temperature condition separately, and only the write voltage at the two end points needs to be tested, thereby reducing design complexity and testing workload.

[0108] Since the performance of magnetic storage devices is different at different temperatures, by traversing the temperatures at the two end points of the temperature range, the voltage value that can operate stably within the entire temperature range can be determined, and then the write voltage that is effective under all temperature conditions is found by the intersection method, and then the β value is determined to ensure that the β value can adapt to the entire temperature range. The write voltage determined based on the determined β value can ensure the stability of the write voltage under different temperature conditions.

[0109] Optional, such as Figure 5 As shown, the magnetic memory further includes a PUF array; the generating of a key after inputting the two write voltages into the write driver includes:

[0110] After the two write voltages are input into the write driver, a key is generated based on the PUF array.

[0111] In an embodiment of the present application, after two write voltages are input into the write driver, about 50% of the MRAM devices are flipped, and the other devices are not flipped, and then a key is generated based on the above process, that is, after two write voltages are input into the write driver, the written PUF array is used as the key.

[0112] Optionally, after the key is generated based on the written PUF array, the key generation result can be read, and then the key generation result can be written into another PUF array based on the write driver, that is, the key generation result is stored in another PUF array.

[0113] Among them, the PUF array can provide a stable storage environment, which can ensure that the key can be reliably stored and read under various operating conditions, such as temperature, voltage fluctuations and other operating conditions. Therefore, after generating the key based on the written PUF array, the key can also be written into the PUF array based on the write driver, and then the next time it is used, such as when performing security verification, the key can be directly called from the PUF array, simplifying the verification process, eliminating the need to regenerate the key, and thus improving the verification rate.

[0114] In this way, by writing the key into the PUF array, the key can be prevented from being stolen or tampered with during transmission and storage, further improving security. The key can also be read quickly when needed, improving response speed and performance.

[0115] Therefore, the present application can increase the complexity and unpredictability of the PUF response by using two different write voltages, thereby generating a key based on the PUF array and improving the reliability of key generation.

[0116] Optionally, the method further includes:

[0117] After the PUF array is initialized, a reconfigurable voltage is input to the write driver to write data to the PUF array based on the write driver.

[0118] In the embodiment of the present application, in addition to being a PUF unit, the PUF array can also be used as a memory unit, that is, a reconfigurable voltage can be input to the write driver so that data can be written to the PUF array based on the write driver; accordingly, the PUF built-in memory can also be manufactured by MRAM process.

[0119] It should be noted that the embodiment of the present application does not limit the specific value corresponding to the reconfigurable voltage, which can be determined based on the actual application scenario. The reconfigurable voltage enables the same PUF array to be used for different types of data storage and processing.

[0120] Therefore, the method provided in the present application does not affect the function of the magnetic memory as a memory, is compatible with the existing process flow of the magnetic memory, is easy to implement, and has strong compatibility with process-voltage-temperature (PVT) fluctuations.

[0121] Optionally, the magnetic storage includes a plurality of storage units, and the process of generating the key includes:

[0122] For each storage unit in the magnetic storage, determining a subkey of the storage unit;

[0123] The subkeys corresponding to the plurality of storage units are processed using a predefined algorithm to obtain a key.

[0124] In the embodiment of the present application, the predefined algorithm may be an accumulation algorithm, a weighted algorithm, a random selection algorithm, etc., and the embodiment of the present application does not specifically limit this, such as selecting sub-keys corresponding to several storage units in the magnetic storage to generate a key.

[0125] Optionally, by distributing the processing of subkeys of each storage unit, the impact of single point failures can be reduced and the stability of the writing process can be improved.

[0126] Exemplarily, after applying write voltage processing corresponding to the amplitude of the first pulse and the amplitude of the second pulse to all storage cells in the magnetic storage, sub-keys corresponding to the target storage cells can be selected from the magnetic storage at preset step sizes for aggregation, and then a key can be generated based on the aggregated key. This fine-grained sub-key processing can be used for dynamic key generation to prevent the key from being predicted or reproduced, thereby enhancing anti-tampering and anti-counterfeiting capabilities.

[0127] Therefore, the embodiment of the present application can achieve more fine-grained processing by determining a subkey for each storage unit. Based on this fine-grained subkey processing, the security and flexibility of key generation can be improved.

[0128] For example, Fig. 9 A schematic diagram of the structure of an optional magnetic storage device is provided for this application, such as Fig. 9 As shown, the magnetic memory includes: a physical unclonable function PUF built-in memory, a reference voltage buffer circuit, a write driver and a processor;

[0129] The processor is used to obtain the amplitude of the first pulse and the amplitude of the second pulse from the built-in memory of the PUF; there is a voltage difference between the amplitude of the first pulse and the amplitude of the second pulse determined based on the operating temperature range of the magnetic memory;

[0130] The reference voltage buffer circuit is used to process the amplitude of the first pulse and the amplitude of the second pulse based on the reference voltage, and output two write voltages to the write driver;

[0131] The write driver is used to receive the two write voltages so that the magnetic memory generates a key.

[0132] It should be noted that when the magnetic memory is initialized, there are two ways to generate a reconfigurable challenge-response pair (CRP), magnetic and electrical. However, it is difficult to integrate CRP in the magnetic method, and the electrical method does not consider the change of Psw with temperature. The magnetic memory provided in this application not only broadens the operating temperature range of the magnetic memory, but is also easy to integrate CRP, and has higher practical value.

[0133] The specific implementation principle and effect of the magnetic storage provided in the embodiment of the present application can be found in the relevant description and effect corresponding to the above embodiment, and will not be elaborated here.

[0134] In the several embodiments provided in the present application, it should be understood that the disclosed modules and methods can be implemented in other ways. For example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules 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 modules can be electrical, mechanical or other forms.

[0135] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of this embodiment.

[0136] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The above-mentioned module-composed unit can be implemented in the form of hardware or in the form of hardware plus software functional units.

[0137] It should be understood that the above-mentioned memory may include high-speed random access memory (RAM), and may also include non-volatile memory (NVM), such as at least one disk storage, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a disk or an optical disk, etc.

[0138] The above-mentioned storage array can be located in any type of volatile or non-volatile storage device or a combination thereof, such as static random-access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0139] The magnetic storage key generation method can be applied to application specific integrated circuits (ASIC), which is not specifically limited in the embodiments of the present application.

[0140] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.

[0141] It should be further noted that, although the various steps in the flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.

[0142] In the above embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0143] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims.

[0144] The above is only a specific implementation of the embodiment of the present application, but the protection scope of the embodiment of the present application is not limited thereto, and any changes or replacements within the technical scope disclosed in the embodiment of the present application should be included in the protection scope of the embodiment of the present application. Therefore, the protection scope of the embodiment of the present application should be based on the protection scope of the claims.

Claims

1. A method for generating a magnetic storage key, characterized in that: The magnetic memory includes a physical unclonable function PUF built-in memory, a reference voltage buffer circuit and a write driver; the method includes: The amplitude of the first pulse and the amplitude of the second pulse are obtained from the built-in memory of the PUF; there is a voltage difference between the amplitude of the first pulse and the amplitude of the second pulse determined based on the working temperature range of the magnetic memory; the voltage difference is determined based on a target flip probability function or based on traversing the write voltages of the magnetic memory corresponding to the temperatures at the two end points of the preset temperature range and finding the intersection; The reference voltage buffer circuit processes the amplitude of the first pulse and the amplitude of the second pulse based on the reference voltage, and outputs two write voltages; A key is generated after the two write voltages are input into the write driver.

2. The method according to claim 1, characterized in that The first pulse and the second pulse have opposite polarities; the target flip probability function is related to a first flip probability function corresponding to the amplitude of the first pulse and a second flip probability function corresponding to the amplitude of the second pulse.

3. The method according to claim 2, characterized in that The process of determining the voltage difference includes: When the flip probability Psw of the magnetic memory is (50±a)%, the first flip probability function and the second flip probability function are determined; a is a positive number; determining a target function based on the first flip probability function, the second flip probability function, and the target flip probability function; The voltage difference is solved based on the objective function.

4. The method according to claim 3, characterized in that The PUF built-in memory stores the amplitude of the first pulse and the amplitude of the second pulse in advance; the amplitude of the first pulse is determined based on the interval size of the flip probability and the flip probability curve of the magnetic memory, and the amplitude of the second pulse is determined based on the amplitude of the first pulse and the corresponding voltage difference.

5. The method according to claim 1, characterized in that The magnetic memory further comprises a reference voltage generating circuit; the reference voltage generating circuit is used to generate a reference voltage; the reference voltage generating circuit is a bandgap reference circuit, and the reference voltage generated by the bandgap reference circuit is a reference voltage; The reference voltage buffer circuit processes the amplitude of the first pulse and the amplitude of the second pulse based on the reference voltage, and outputs two write voltages.

6. The method according to claim 1, characterized in that The magnetic memory further includes a PUF array; and the generating of a key after inputting the two write voltages into the write driver includes: After the two write voltages are input into the write driver, a key is generated based on the PUF array.

7. The method according to claim 6, characterized in that The method further comprises: After the PUF array is initialized, a reconfigurable voltage is input to the write driver to write data to the PUF array based on the write driver.

8. The method according to any one of claims 1 to 7, characterized in that: The magnetic storage device includes a plurality of storage units, and the process of generating a key includes: For each storage unit in the magnetic storage, determining a subkey of the storage unit; The subkeys corresponding to the plurality of storage units are processed using a predefined algorithm to obtain a key.

9. A magnetic memory, characterized in that: The magnetic memory comprises: a physical unclonable function PUF built-in memory, a reference voltage buffer circuit, a write driver and a processor; The processor is used to obtain the amplitude of the first pulse and the amplitude of the second pulse from the built-in memory of the PUF; there is a voltage difference between the amplitude of the first pulse and the amplitude of the second pulse determined based on the working temperature range of the magnetic memory; the voltage difference is determined based on the target flip probability function or based on the write voltage of the magnetic memory corresponding to the temperature at the two end points of the preset temperature range and the intersection is calculated; The reference voltage buffer circuit is used to process the amplitude of the first pulse and the amplitude of the second pulse based on the reference voltage, and output two write voltages to the write driver; The write driver is used to receive the two write voltages so as to enable the magnetic memory to generate a key.