Method, system and chip for providing write-in voltage

By grouping and voltage adjustment of the memory cells of magnetic random memory, the problems of inconsistent write voltage and damage to the insulation layer are solved, and the life and write efficiency of the memory are improved.

CN119091940APending Publication Date: 2024-12-06ZHEJIANG HIKSTOR TECHOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310665400.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-06
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

During the writing process, the magnetic random memory breakdown occurs due to damage to the insulating layer, which affects the life of the memory cell. The uniformity of the MTJ resistance is affected by the defects in the thin film structure and the lattice of the material, resulting in inconsistent writing voltage and some memory cells fail.

Method used

By grouping the memory cells in the magnetic random memory according to different new write voltages, testing the failed memory cells using standard write voltages, determining the address of the memory cell that was successfully written, and burning it into the memory module. to provide appropriate new write voltage, reduce write voltage, thereby improving memory life.

Benefits of technology

It effectively improves the life of magnetic random memory, ensures that the memory cell is written at the smallest possible write voltage, and avoids the problems of insulating layer breakdown and voltage inconsistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119091940A_ABST
    Figure CN119091940A_ABST
Patent Text Reader

Abstract

The invention provides a method, a system and a chip for providing a write-in voltage. The method comprises the following steps: magnetizing a memory cell in a magnetic random access memory to a low resistance state or a high resistance state; carrying out voltage writing on all the storage units by adopting a preset standard writing voltage; a first judgment step: judging whether the storage unit with the write voltage failure exists or not, and if yes, recording the address of the storage unit with the write voltage failure; repeatedly executing the test step until the new write-in voltage reaches the highest preset write-in voltage; the testing step comprises the following steps of: increasing a new write-in voltage, and performing write-in voltage on the memory unit with the failed write-in voltage in the previous step by adopting the increased new write-in voltage; and a burning step: grouping the addresses recorded in the first judgment step according to a result of executing the test step each time, and respectively burning the addresses of the storage units in different groups to different areas in the storage module. The service life of the magnetic random access memory can be prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of memory technology, and in particular to a method for providing a write voltage and a system and chip thereof. Background Art

[0002] The data of magnetic random access memory is stored in a storage bit array composed of magnetoresistive elements, each magnetoresistive element represents a bit.

[0003] Take magnetoresistive random access memory (MRAM) as an example. MRAM is a new type of magnetic random access memory with non-volatility and fast random read and write. The magnetic tunnel junction (MTJ) in MRAM consists of a magnetic fixed layer, an insulating layer and a magnetic free layer. The parallel and anti-parallel magnetization directions of the magnetic free layer and the magnetic fixed layer correspond to the low resistance state (Rp) and high resistance state (Rap), respectively, thereby recording 0 or 1. Each magnetoresistive element contains a group of MTJs.

[0004] The process of reading MRAM is to measure the resistance of MTJ. The process of writing MRAM uses the spin torque effect to flip the magnetic moment of the memory layer to a direction parallel to the magnetic moment of the reference layer through a top-down current in the MTJ, or to set it to an anti-parallel direction through a bottom-up current. The write voltage drop on the above MTJ is called the write voltage of MRAM, which is an important technical indicator that determines the write speed, write accuracy, service life and operating power consumption of MRAM.

[0005] Among them, for storage chips using MRAM, during the writing process, when the current flows through the insulating layer, it will cause cumulative insulation layer damage. When the insulation layer damage accumulates to a certain extent, it will cause the insulation layer to break down and the MRAM to fail.

[0006] However, the deposition thickness, characteristic dimension (CD) and material lattice defects of the thin film structure in the MTJ will affect the uniformity of the MTJ resistance, thereby affecting the consistency of the write voltage of the storage unit in the MRAM. This will result in that when sufficient write voltage is applied to some storage units, the write voltage at this time will be higher than the write voltage requirement of other storage units, thereby accelerating the failure of other storage units.

[0007] Therefore, how to improve the life of magnetic random access memory has become a difficult problem that needs to be solved urgently. Summary of the invention

[0008] To solve the above problems, the present invention provides a method for providing a write voltage, a system and a chip, which group the addresses of storage cells that fail to write using a standard write voltage according to the corresponding new write voltages that can successfully write, so that the storage cells can be written at the smallest possible write voltage, thereby improving the life of the magnetic random access memory.

[0009] In a first aspect, the present invention provides a method for providing a write voltage, the method comprising:

[0010] Magnetization step: magnetizing the memory cell in the magnetic random access memory to a low resistance state or a high resistance state;

[0011] Writing step: using a preset standard writing voltage to write voltage to all memory cells;

[0012] The first judgment step: judging whether there is a storage unit with a write voltage failure, and if so, recording the address of the storage unit with a write voltage failure;

[0013] Looping steps: Repeating the test steps until the new write voltage reaches the highest preset write voltage;

[0014] The test steps include: increasing the new write voltage, using the increased new write voltage to write the memory cell whose write voltage failed in the previous step, and determining the address of the memory cell whose write voltage succeeded at the current step;

[0015] Burning step: According to the result of each execution of the test step, the addresses recorded in the first judgment step are grouped according to the corresponding new write voltages that can successfully perform the write voltage, and the addresses of storage cells in different groups are burned to different areas in the storage module respectively, so as to provide the corresponding new write voltage for the storage cells recorded in the first judgment step to complete the write voltage.

[0016] Optionally, the method further comprises:

[0017] Writing step: When writing data to the magnetic random access memory, determine whether the target address of the written data is consistent with the address stored in the storage module. If so, use the new write voltage corresponding to the target address for writing voltage. If not, use the standard write voltage for writing voltage.

[0018] Optionally, the method further comprises:

[0019] Replacement step: When the new write voltage Vn reaches the highest preset write voltage, the redundant address is used to replace the address where the current write voltage fails, and the replaced redundant address is burned into the area corresponding to the highest preset write voltage in the storage module.

[0020] Optionally, the method further comprises:

[0021] The second judgment step: when the new write voltage Vn reaches the highest preset write voltage, judging whether the number of failed bits corresponding to the storage unit with the current write voltage failure is less than the preset repair threshold;

[0022] The burning step also includes: when the result of the second judgment step is yes, the address of the storage unit whose current write voltage fails is burned into the area in the storage module corresponding to the highest preset write voltage; when the result of the second judgment step is no, the address of the storage unit whose current write voltage fails is replaced with a redundant address, and the replaced redundant address is burned into the area in the storage module corresponding to the highest preset write voltage.

[0023] Optionally, the testing step further includes:

[0024] Increase the new write voltage;

[0025] Using the increased new write voltage to write the memory cell whose write voltage failed in the previous step;

[0026] Recording the address of the storage unit where the current write voltage fails;

[0027] The address of the memory cell with the current write voltage failure is removed from the addresses of the memory cells with the write voltage failure in the previous step, and the remaining addresses of the memory cells with the write voltage failure in the previous step are used as the addresses of the memory cells with the current write voltage success.

[0028] Optionally, before the magnetizing step, the method further comprises:

[0029] The third judgment step: judging whether the minimum write voltage required for the magnetic random access memory to successfully write all the memory cells in the low resistance state is less than the minimum write voltage required for the magnetic random access memory to successfully write all the memory cells in the high resistance state;

[0030] The magnetizing step also includes: magnetizing the memory cells in the magnetic random access memory to a low resistance state when the minimum write voltage required for all memory cells in the magnetic random access memory to be successfully written in a low resistance state is less than the minimum write voltage required for all memory cells in the magnetic random access memory to be successfully written in a high resistance state; and magnetizing the memory cells in the magnetic random access memory to a high resistance state when the minimum write voltage required for all memory cells in the magnetic random access memory to be successfully written in a low resistance state is greater than the minimum write voltage required for all memory cells in the magnetic random access memory to be successfully written in a high resistance state.

[0031] Optionally, before the magnetizing step, the method further comprises:

[0032] Fourth judgment step: judging whether the number of memory cells that fail to write voltage when the magnetic random access memory is in a low resistance state and uses a specified write voltage is less than the number of memory cells that fail to write voltage when the magnetic random access memory is in a high resistance state and uses a specified write voltage;

[0033] The magnetizing step also includes: magnetizing the storage cells in the magnetic random access memory to a low resistance state when the number of storage cells that fail to write voltage when the magnetic random access memory uses a specified write voltage in a low resistance state is less than the number of storage cells that fail to write voltage when the magnetic random access memory uses a specified write voltage in a high resistance state; and magnetizing the storage cells in the magnetic random access memory to a high resistance state when the number of storage cells that fail to write voltage when the magnetic random access memory uses a specified write voltage in a low resistance state is greater than the number of storage cells that fail to write voltage when the magnetic random access memory uses a specified write voltage in a high resistance state.

[0034] In a second aspect, the present invention provides a system for providing a write voltage, the system comprising:

[0035] A magnetization module, configured to magnetize the storage cells in the magnetic random access memory to the same resistance state;

[0036] A write voltage module is configured to write voltages to all storage cells using a preset standard write voltage;

[0037] A first judgment module is configured to judge whether there is a storage unit with a write voltage failure, and if so, record the address of the storage unit with the write voltage failure;

[0038] a cycle module configured to repeatedly execute the test module until the new write voltage reaches a maximum preset write voltage;

[0039] A test module is configured to increase a new write voltage, use the increased new write voltage to write a memory cell whose write voltage failed in the last write voltage execution, and determine an address of a memory cell whose write voltage succeeded at the current write voltage execution;

[0040] The burning module is configured to group the addresses recorded in the first judgment module according to the results of executing the test module according to the corresponding new write voltages that can successfully perform the write voltage, and burn the addresses of storage cells in different groups to different areas in the storage module respectively, so as to provide the storage cells recorded in the first judgment module with corresponding new write voltages for completing the write voltage.

[0041] Optionally, the system further comprises:

[0042] The write module is configured to determine whether the target address of the write data is consistent with the address stored in the storage module when writing data to the magnetic random access memory. If so, a new write voltage corresponding to the target address is used as the write voltage; if not, a standard write voltage is used as the write voltage.

[0043] Optionally, the system further comprises:

[0044] A replacement module, configured to replace an address where a current write voltage fails with a redundant address when a new write voltage Vn reaches a maximum preset write voltage;

[0045] The burning module is further configured to burn the replaced redundant address into an area corresponding to the highest preset write voltage in the storage module.

[0046] Optionally, the system further comprises:

[0047] A second judgment module is configured to judge whether the number of failed bits corresponding to the storage unit with the current write voltage failure is less than a preset repair threshold when the new write voltage Vn reaches the highest preset write voltage;

[0048] The burning module is also configured to, when the judgment result of the second judgment module is yes, burn the address of the storage unit whose current write voltage fails into the area corresponding to the highest preset write voltage in the storage module; when the judgment result of the second judgment module is no, use a redundant address to replace the address of the storage unit whose current write voltage fails, and burn the replaced redundant address into the area corresponding to the highest preset write voltage in the storage module.

[0049] Optionally, the test module includes:

[0050] An increasing submodule, configured to increase a new write voltage;

[0051] a write electronic module configured to use the increased new write voltage to write a memory cell for which the write voltage failed during the last write voltage execution;

[0052] A recording submodule, configured to record the address of the storage unit whose current write voltage fails;

[0053] The removal module is configured to remove the addresses of the storage cells whose current write voltage fails from the addresses of the storage cells whose write voltage failed in the last write voltage execution process, and use the remaining addresses of the storage cells whose write voltage failed in the last write voltage execution process as the addresses of the storage cells whose current write voltage succeeds.

[0054] Optionally, the system further comprises:

[0055] A third judgment module is configured to judge, before executing the magnetization module, whether a minimum write voltage required for the magnetic random access memory to successfully write all storage cells in a low resistance state is less than a minimum write voltage required for the magnetic random access memory to successfully write all storage cells in a high resistance state;

[0056] The magnetization module is further configured to magnetize the storage cells in the magnetic random access memory to a low resistance state when the minimum write voltage required for all storage cells in the magnetic random access memory to be successfully written in a low resistance state is less than the minimum write voltage required for all storage cells in the magnetic random access memory to be successfully written in a high resistance state; and to magnetize the storage cells in the magnetic random access memory to a high resistance state when the minimum write voltage required for all storage cells in the magnetic random access memory to be successfully written in a low resistance state is greater than the minimum write voltage required for all storage cells in the magnetic random access memory to be successfully written in a high resistance state.

[0057] Optionally, the method further comprises:

[0058] A fourth judgment module is configured to judge, before executing the magnetization module, whether the number of storage cells that fail to write voltage when the magnetic random access memory is written using a specified write voltage in a low resistance state is less than the number of storage cells that fail to write voltage when the magnetic random access memory is written using a specified write voltage in a high resistance state;

[0059] The magnetization module is further configured to magnetize the storage cells in the magnetic random access memory to a low resistance state when the number of storage cells that fail to write voltage when the magnetic random access memory adopts a specified write voltage in a low resistance state is less than the number of storage cells that fail to write voltage when the magnetic random access memory adopts a specified write voltage in a high resistance state; and magnetize the storage cells in the magnetic random access memory to a high resistance state when the number of storage cells that fail to write voltage when the magnetic random access memory adopts a specified write voltage in a low resistance state is greater than the number of storage cells that fail to write voltage when the magnetic random access memory adopts a specified write voltage in a high resistance state.

[0060] In a third aspect, the present invention provides a chip, the chip comprising:

[0061] at least one processor; and

[0062] a memory communicatively connected to at least one processor; wherein,

[0063] The memory stores instructions that can be executed by at least one processor, and the instructions are executed by at least one processor to enable the at least one processor to perform any of the above methods.

[0064] Optionally, the processor further includes: a control module, a storage module, an address acquisition module and an address comparison module;

[0065] The control module is connected to the storage module for communication, and the address comparison module is connected to the storage module and the address acquisition module for communication respectively;

[0066] The control module is used to execute the burning steps;

[0067] The address comparison module is used to determine whether the target address of the written data is consistent with the address stored in the storage module when writing data to the magnetic random access memory.

[0068] Optionally, the chip further includes: a decoding module, a voltage adjustment module and a magnetic random access memory;

[0069] The decoding module is connected to the address comparison module in communication, and the voltage adjustment module is connected to the decoding module and the magnetic random access memory in communication respectively;

[0070] The decoding module is used to output different voltage signals according to different judgment results of the address comparison module;

[0071] The voltage adjustment module is used to generate different write voltages according to different voltage signals so as to write voltages to storage cells in the magnetic random access memory.

[0072] Optionally, the voltage adjustment module includes a plurality of adjustment units;

[0073] Each adjustment unit is respectively connected to all the storage units on a bit line, the adjustment unit corresponds to the bit line in the magnetic random access memory one by one, and the storage unit and the adjustment unit are connected in series between the power supply terminal and the ground terminal;

[0074] The power supply end is used to provide voltage to the circuit composed of the adjustment unit and the magnetic random access memory. The adjustment unit is used to provide a voltage drop for the circuit where the storage unit is located to provide the storage unit with a corresponding write voltage for writing. The write voltage includes: a mark write voltage and / or a new write voltage.

[0075] Optionally, the adjustment unit includes at least one gating circuit;

[0076] When the adjustment unit includes a plurality of gating circuits, different gating circuits generate different voltage drops after being gated, and the plurality of gating circuits in the adjustment unit are connected in parallel.

[0077] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method as described in any one of the above items is implemented.

[0078] The method for providing write voltage and its system and chip provided in the embodiment of the present invention can group the addresses of storage cells that fail to perform write voltage using standard write voltage according to the corresponding new write voltages that can successfully perform write voltage by executing magnetization step, write voltage step, first judgment step, cycle step and burning step, so as to provide the storage cells in the magnetic random access memory with the smallest possible write voltage for performing write voltage, thereby improving the life of the magnetic random access memory. BRIEF DESCRIPTION OF THE DRAWINGS

[0079] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0080] Figure 1 A schematic flow chart of a method for providing a write voltage according to an embodiment of the present application;

[0081] Figure 2 A schematic flow chart of a method for providing a write voltage according to an embodiment of the present application;

[0082] Figure 3 This is a schematic flow chart of writing data according to an embodiment of the present application;

[0083] Figure 4 A schematic structural diagram of a method for providing a write voltage according to an embodiment of the present application;

[0084] Figure 5 A schematic structural diagram of a chip according to an embodiment of the present application;

[0085] Figure 6 An embodiment of the present application is a schematic structural diagram of a chip portion that reflects the connection relationship between the voltage adjustment module and the magnetic random access memory;

[0086] Figure 7 is a schematic structural diagram of a first adjustment unit according to an embodiment of the present application;

[0087] Figure 8 is a schematic structural diagram of a second adjustment unit according to an embodiment of the present application;

[0088] Fig. 9 4 is a schematic structural diagram of a third adjustment unit according to an embodiment of the present application.

[0089] Reference numerals

[0090] 100, a system for providing a write voltage; 101, a magnetization module; 102, a write module; 103, a first judgment module; 104, a circulation module; 105, a test module; 106, a burning module;

[0091] 1. Processor; 11. Control module; 12. Storage module; 13. Address acquisition module; 14. Address comparison module; 15. Register module; 2. Decoding module; 3. Voltage adjustment module; 31. Adjustment unit; 4. Magnetic random access memory; 41. Storage unit. DETAILED DESCRIPTION

[0092] In order to facilitate understanding of the present application, the present application will be described more fully below with reference to the relevant drawings. Embodiments of the present application are provided in the drawings. However, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these embodiments is to make the disclosure of the present application more thorough and comprehensive.

[0093] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.

[0094] Spatially relative terms such as "under," "beneath," "below," "under," "above," "above," and the like may be used herein to describe the relationship of an element or feature shown in the figures to other elements or features. It should be understood that, in addition to the orientations shown in the figures, spatially relative terms also include different orientations of the device in use and operation. For example, if the device in the accompanying drawings is flipped, an element or feature described as "under other elements" or "under it" or "under it" will be oriented as being "above" the other elements or features. Thus, the exemplary terms "under" and "under" may include both upper and lower orientations. In addition, the device may also include additional orientations (e.g., rotated 90 degrees or other orientations), and the spatial descriptors used herein are interpreted accordingly.

[0095] It should be noted that when an element is referred to as being "fixedly connected" to another element, it may be directly on the other element or there may also be a central element. When an element is considered to be "connected" to another element, it may be directly connected to the other element or there may be a central element at the same time. In contrast, when an element is referred to as being "directly on" another element, there is no intermediate element. The terms "vertical", "horizontal", "left", "right" and similar expressions used herein are for illustrative purposes only.

[0096] When used herein, the singular forms "a", "an", and "said / the" may also include plural forms, unless the context clearly indicates otherwise. It should also be understood that the terms "include / comprise" or "have" etc. specify the presence of stated features, wholes, steps, operations, components, parts or combinations thereof, but do not exclude the possibility of the presence or addition of one or more other features, wholes, steps, operations, components, parts or combinations thereof.

[0097] First, see Figure 1 An embodiment of the present invention provides a method for providing a write voltage, the method comprising a magnetization step, a write voltage step, a first judgment step, a cycle step, a test step and a burn step, which are specifically as follows:

[0098] Magnetization step: magnetize the memory cell in the magnetic random access memory to a low resistance state or a high resistance state.

[0099] The magnetic random access memory is an MRAM, which includes a main array, a redundant repair array and an ECC (Error-Correcting Code) array. The main array is composed of storage cells, the redundant repair array is composed of redundant storage cells, and the ECC array is composed of ECC storage cells. The storage cells include magnetic tunnel junctions.

[0100] Writing step: Use a preset standard writing voltage to write voltage to all storage cells.

[0101] The first judgment step is to judge whether there is a memory cell with a write voltage failure, and if so, record the address of the memory cell with a write voltage failure.

[0102] In addition, if there is no memory cell with a write voltage failure in the first determination step, the process of the method is terminated, and the memory cell in the magnetic random access memory is written with a standard write voltage.

[0103] Loop step: Repeat the test step until the new write voltage reaches the highest preset write voltage.

[0104] The test steps include: increasing the new write voltage, using the increased new write voltage to write the memory cell whose write voltage failed in the previous step, and determining the address of the memory cell whose write voltage succeeded at the current write voltage.

[0105] The new write voltage may be increased by gradually reducing the increment of the new write voltage in the previous cycle, such as the new write voltage for the first test step is 1.7 V, the new write voltage for the second test step is 1.8 V, the new write voltage for the third test step is 1.85 V, the new write voltage for the fourth test step is 1.88 V, and the new write voltage for the fifth test step is 1.9 V. The new write voltage may also be increased by increasing the new write voltage in the same increment, such as the new write voltage for the first test step is 1.7 V, the new write voltage for the second test step is 1.8 V, and the new write voltage for the third test step is 1.9 V, but is not limited thereto.

[0106] In this embodiment, the method of increasing the new write voltage is to increase the new write voltage by the same increment. Specifically, take the standard write voltage as V1 and the new write voltage as Vn as an example. The test steps include: using the new write voltage Vn=V1+ΔV*(n-1) to write the voltage to the storage unit whose write voltage failed in the previous step, and determining the address of the storage unit whose current write voltage succeeded, n=n+1; wherein V1 is 1.7V, ΔV is 0.1V, the initial value of n is 2, and ΔV is greater than zero.

[0107] It should be noted that, for the method of determining the address of the storage cell that successfully writes the current voltage, the address of the storage cell that successfully writes the current voltage can be directly queried; or the address of the storage cell that fails the current write voltage can be first queried, and the address of the storage cell that fails the write voltage is set A, and the storage cell that performs the current write voltage is recorded as set B, and the address in set C obtained by subtracting set A from set B is used as the address of the storage cell that successfully writes the current voltage, that is, the difference set C = BA.

[0108] In an optional embodiment, the test step uses the above-mentioned difference set method to determine the address of the storage unit that successfully writes the current voltage. The details are as follows:

[0109] Increase the new write voltage; use the increased new write voltage to write the storage unit whose write voltage failed in the previous step; record the address of the storage unit whose current write voltage failed; remove the address of the storage unit whose current write voltage failed from the address of the storage unit whose write voltage failed in the previous step, and use the remaining address of the storage unit whose write voltage failed in the previous step as the address of the storage unit whose current write voltage succeeded.

[0110] Compared with the addresses of the storage cells whose current write voltage succeeds, the number of addresses of the storage cells whose current write voltage fails is relatively small. Therefore, by using the above-mentioned difference set method to determine the addresses of the storage cells whose current write voltage succeeds, the efficiency of providing new write voltages for the corresponding storage cells can be improved.

[0111] Burning step: According to the result of each execution of the test step, the addresses recorded in the first judgment step are grouped according to the corresponding new write voltages that can successfully perform the write voltage, and the addresses of storage cells in different groups are burned to different areas in the storage module respectively, so as to provide the corresponding new write voltage for the storage cells recorded in the first judgment step to complete the write voltage.

[0112] In this embodiment, the storage module is an eFuse (one-time programmable memory), but is not limited thereto.

[0113] In an optional embodiment, in combination Figure 2 and Figure 3 , the method further comprises:

[0114] Writing step: When writing data to the magnetic random access memory, determine whether the target address of the written data is consistent with the address stored in the storage module. If so, use the new write voltage corresponding to the target address for writing voltage. If not, use the standard write voltage for writing voltage.

[0115] By determining whether the target address of the written data is consistent with the address stored in the storage module when writing data to the magnetic random access memory, a suitable write voltage can be accurately provided to the corresponding storage unit, effectively avoiding damage to the storage unit due to excessively high write voltage.

[0116] In an optional embodiment, the method further includes:

[0117] Replacement step: When the new write voltage Vn reaches the highest preset write voltage, the redundant address is used to replace the address where the current write voltage fails, and the replaced redundant address is burned into the area corresponding to the highest preset write voltage in the storage module.

[0118] Among them, the redundant address is the address of the spare storage unit in the magnetic random access memory; the maximum preset write voltage is set by the designer according to the performance of the magnetic random access memory, and it can ensure that all storage units in the magnetic random access memory will not be damaged when the write voltage is applied with the maximum preset write voltage.

[0119] In an optional embodiment, the method further includes:

[0120] The second judgment step: when the new write voltage Vn reaches the highest preset write voltage, it is judged whether the number of failure bits corresponding to the storage unit where the current write voltage fails is less than the preset repair threshold. The failure bit is the bit in the storage unit where the write voltage fails, and the repair threshold is determined by the error correction capability of the chip where the magnetic random access memory is located, that is, the ECC repair in the chip, which is not specifically limited in this embodiment.

[0121] The burning step also includes: when the result of the second judgment step is yes, burning the address of the storage unit whose current write voltage fails to be burned into the area in the storage module corresponding to the highest preset write voltage; when the result of the second judgment step is no, replacing the address of the storage unit whose current write voltage fails with a redundant address, and burning the replaced redundant address into the area in the storage module corresponding to the highest preset write voltage.

[0122] The storage cells that fail to be written with the highest preset write voltage are divided into two categories, one is the storage cells that can meet the error correction capability, and the other is the storage cells that do not meet the error correction capability, and the addresses of the storage cells that can meet the error correction capability are burned into the area corresponding to the highest preset write voltage in the storage module, and the addresses of the storage cells that fail to be written with the current write voltage are replaced with redundant addresses, and the replaced redundant addresses are burned into the area corresponding to the highest preset write voltage in the storage module, so that the storage cells in the magnetic random access memory are fully utilized.

[0123] In an optional embodiment, before the magnetizing step, the method further comprises:

[0124] The third judgment step is to judge whether the minimum write voltage required for the magnetic random access memory to successfully write all the memory cells in the low resistance state is less than the minimum write voltage required for the magnetic random access memory to successfully write all the memory cells in the high resistance state.

[0125] The magnetizing step also includes: magnetizing the memory cells in the magnetic random access memory to a low resistance state when the minimum write voltage required for all memory cells in the magnetic random access memory to be successfully written in a low resistance state is less than the minimum write voltage required for all memory cells in the magnetic random access memory to be successfully written in a high resistance state; and magnetizing the memory cells in the magnetic random access memory to a high resistance state when the minimum write voltage required for all memory cells in the magnetic random access memory to be successfully written in a low resistance state is greater than the minimum write voltage required for all memory cells in the magnetic random access memory to be successfully written in a high resistance state.

[0126] In this optional embodiment, it is determined whether the minimum write voltage required to be applied to the magnetic random access memory is smaller in the low resistance state or in the high resistance state, based on the condition that all the storage cells in the magnetic random access memory are successfully written. At the same time, in the magnetization step, the entire array of all the storage cells in the magnetic random access memory is magnetized to a resistance state where a smaller write voltage is required. The write voltage required to be applied in the high resistance state is smaller, and the operation in this embodiment can ensure that when the storage cell is converted from the high resistance state to the low resistance state, all the bits in the storage cell can be flipped to the low resistance state accordingly.

[0127] In an optional embodiment, before the magnetizing step, the method further comprises:

[0128] The fourth judgment step is to judge whether the number of storage cells that fail to write voltage when the magnetic random access memory is in a low resistance state using a specified write voltage is less than the number of storage cells that fail to write voltage when the magnetic random access memory is in a high resistance state using a specified write voltage, wherein the specified write voltage is greater than the highest preset write voltage.

[0129] The magnetizing step also includes: magnetizing the storage cells in the magnetic random access memory to a low resistance state when the number of storage cells that fail to write voltage when the magnetic random access memory uses a specified write voltage in a low resistance state is less than the number of storage cells that fail to write voltage when the magnetic random access memory uses a specified write voltage in a high resistance state; and magnetizing the storage cells in the magnetic random access memory to a high resistance state when the number of storage cells that fail to write voltage when the magnetic random access memory uses a specified write voltage in a low resistance state is greater than the number of storage cells that fail to write voltage when the magnetic random access memory uses a specified write voltage in a high resistance state.

[0130] In this optional embodiment, under the condition of the same write voltage, it is determined whether the minimum write voltage required to be applied to the magnetic random access memory is smaller in the low resistance state or in the high resistance state. At the same time, in the magnetization step, the entire array of all storage cells in the magnetic random access memory is magnetized to a resistance state where the minimum write voltage required to be applied is smaller. The write voltage required to be applied in the low resistance state is smaller, and the operation in this embodiment can ensure that when the storage cell is converted from the low resistance state to the high resistance state, all bits in the storage cell can be flipped to the high resistance state accordingly.

[0131] The method provided by the present invention performs a magnetization step, a writing step, a first judgment step, a cycle step and a burning step, and groups the addresses of the storage cells that fail to write using a standard writing voltage according to the corresponding new writing voltages that can successfully write, so as to provide the storage cells in the magnetic random access memory with a writing voltage as small as possible for writing, thereby improving the life of the magnetic random access memory.

[0132] In a second aspect, an embodiment of the present invention provides a method for providing a write voltage, see Figure 2 , the method comprising:

[0133] Step 1: When it is determined that the write voltage to be applied when writing the low resistance state is greater than the write voltage to be applied when writing the high resistance state, the entire MRAM array is magnetized to the high resistance state.

[0134] Step 2: Use a write voltage of 1.7V to write 0 to the entire array and read 0. If a storage unit fails at this time, the address of the failed storage unit is recorded.

[0135] Step 3: Use a write voltage of 1.8V to write 0 to the failed address recorded in step 2 and read 0. At this time, there is no failed storage unit or the failed storage unit is within the ECC error correction capability range.

[0136] Step 4: Burn the failed storage unit address recorded in step 2 into Efuse.

[0137] Step 5: When writing data to the MRAM, determine whether the address to be written is consistent with the address burned in the Efuse. If they are consistent, in step 6, a write voltage of 1.8V is used to write the corresponding storage unit; if they are inconsistent, in step 6, a write voltage of 1.7V is used to write the corresponding storage unit.

[0138] Step six: output the write voltage determined in step five to the corresponding memory cell in the MRAM array.

[0139] In a third aspect, an embodiment of the present invention provides a method for providing a write voltage, see Figure 2 , the method comprising:

[0140] Step 1: When it is determined that the write voltage to be applied when writing the low resistance state is greater than the write voltage to be applied when writing the high resistance state, the entire MRAM array is magnetized to the high resistance state.

[0141] Step 2: Use a write voltage of 1.6V to write 0 to the entire array and read 0. At this time, a storage unit fails. Record the address of the failed storage unit at this time and record it as set A.

[0142] Step 3: Use a write voltage of 1.7V to write 0 to the failed address recorded in step 2, and read 0. If a storage unit fails again, the address of the failed storage unit is recorded and recorded as set B.

[0143] Step 4: Use a write voltage of 1.8V to write 0 to the failed address recorded in step 3 and read 0. At this time, there is no failed storage unit or the failed storage unit is within the ECC error correction capability range.

[0144] Step 5: Burn the address set C=AB of the storage unit into the area A of the Efuse, and burn the address set B of the storage unit into the area B of the Efuse. Among them, area A corresponds to 1.7V, and area B corresponds to 1.8V.

[0145] Step 6: When writing data to the MRAM, determine whether the address to be written is consistent with the address burned in the Efuse. If they are consistent, and the address to be written is in area A, then in step 7, a write voltage of 1.7V is used to write the corresponding storage unit; if they are consistent, and the address to be written is in area B, then in step 7, a write voltage of 1.8V is used to write the corresponding storage unit; if they are inconsistent, then in step 7, a write voltage of 1.6V is used to write the corresponding storage unit.

[0146] Step 7: Output the write voltage determined in step 6 to the corresponding memory cell in the MRAM array.

[0147] In a fourth aspect, an embodiment of the present invention provides a method for providing a write voltage, see Figure 2 , the method comprising:

[0148] Step 1: When it is determined that the write voltage to be applied when writing the low resistance state is smaller than the write voltage to be applied when writing the high resistance state, the entire MRAM array is magnetized to the low resistance state.

[0149] Step 2: Use a write voltage of 1.7V to write 1 to the entire array and read 1. At this time, a storage unit fails, and the address of the failed storage unit is recorded.

[0150] Step 3: Use a write voltage of 1.8V to write 1 to the failed address recorded in step 2 and read 1. At this time, there is no failed storage unit or the failed storage unit is within the ECC error correction capability range.

[0151] Step 4: Burn the failed storage unit address recorded in step 2 into Efuse.

[0152] Step 5: When writing data to the MRAM, determine whether the address to be written is consistent with the address burned in the Efuse. If consistent, in step 6, use a write voltage of 1.8V to write the corresponding storage unit; if inconsistent, use a write voltage of 1.7V to write the corresponding storage unit.

[0153] Step six: output the write voltage determined in step five to the corresponding memory cell in the MRAM array.

[0154] Fifth, see Figure 4 An embodiment of the present invention provides a system 100 for providing a write voltage, and the system is used to implement any of the above-mentioned methods for providing a write voltage. The system 100 for providing a write voltage includes:

[0155] The magnetization module 101 is configured to magnetize the storage cells in the magnetic random access memory to the same resistance state;

[0156] The write voltage module 102 is configured to write voltages to all storage cells using a preset standard write voltage;

[0157] A first judgment module 103 is configured to judge whether there is a storage unit with a write voltage failure, and if so, record the address of the storage unit with the write voltage failure;

[0158] A loop module 104 is configured to repeatedly execute the test module 105 until the new write voltage reaches a maximum preset write voltage;

[0159] The test module 105 is configured to increase the new write voltage, use the increased new write voltage to write the memory cell whose write voltage failed in the last write voltage execution, and determine the address of the memory cell whose write voltage succeeded at the current write voltage execution;

[0160] The burning module 106 is configured to group the addresses recorded in the first judgment module 103 according to the corresponding new write voltages that can successfully perform the write voltage according to the result of executing the test module 105, and burn the addresses of storage cells in different groups to different areas in the storage module respectively, so as to provide the storage cells recorded in the first judgment module 103 with corresponding new write voltages for completing the write voltage.

[0161] In an optional embodiment, the system 100 for providing a write voltage further includes:

[0162] The write module is configured to determine whether the target address of the write data is consistent with the address stored in the storage module when writing data to the magnetic random access memory. If so, a new write voltage corresponding to the target address is used as the write voltage; if not, a standard write voltage is used as the write voltage.

[0163] In an optional embodiment, the system 100 for providing a write voltage further includes:

[0164] A replacement module, configured to replace an address where a current write voltage fails with a redundant address when a new write voltage Vn reaches a maximum preset write voltage;

[0165] The burning module 106 is further configured to burn the replaced redundant address into an area corresponding to the highest preset write voltage in the storage module.

[0166] In an optional embodiment, the system 100 for providing a write voltage further includes:

[0167] A second judgment module is configured to judge whether the number of failed bits corresponding to the storage unit with the current write voltage failure is less than a preset repair threshold when the new write voltage Vn reaches the highest preset write voltage;

[0168] The burning module 106 is also configured to, when the judgment result of the second judgment module is yes, burn the address of the storage unit whose current write voltage fails into the area corresponding to the highest preset write voltage in the storage module; when the judgment result of the second judgment module is no, use a redundant address to replace the address of the storage unit whose current write voltage fails, and burn the replaced redundant address into the area corresponding to the highest preset write voltage in the storage module.

[0169] In an optional embodiment, the testing module 105 includes:

[0170] An increasing submodule, configured to increase a new write voltage;

[0171] a write electronic module configured to use the increased new write voltage to write a memory cell for which the write voltage failed during the last write voltage execution;

[0172] A recording submodule, configured to record the address of the storage unit whose current write voltage fails;

[0173] The removal module is configured to remove the addresses of the storage cells whose current write voltage fails from the addresses of the storage cells whose write voltage failed in the last write voltage execution process, and use the remaining addresses of the storage cells whose write voltage failed in the last write voltage execution process as the addresses of the storage cells whose current write voltage succeeds.

[0174] In an optional embodiment, the system 100 for providing a write voltage further includes:

[0175] A third judgment module is configured to judge whether a minimum write voltage required for the magnetic random access memory to successfully write all storage cells in a low resistance state is less than a minimum write voltage required for the magnetic random access memory to successfully write all storage cells in a high resistance state before executing the magnetization module 101;

[0176] The magnetization module 101 is further configured to magnetize the storage cells in the magnetic random access memory to a low resistance state when the minimum write voltage required for all storage cells in the magnetic random access memory to be successfully written in a low resistance state is less than the minimum write voltage required for all storage cells in the magnetic random access memory to be successfully written in a high resistance state; and magnetize the storage cells in the magnetic random access memory to a high resistance state when the minimum write voltage required for all storage cells in the magnetic random access memory to be successfully written in a low resistance state is greater than the minimum write voltage required for all storage cells in the magnetic random access memory to be successfully written in a high resistance state.

[0177] In an optional embodiment, the system 100 for providing a write voltage further includes:

[0178] A fourth judgment module is configured to judge, before executing the magnetization module 101, whether the number of storage cells that fail to write voltage when the magnetic random access memory is in a low resistance state using a specified write voltage is less than the number of storage cells that fail to write voltage when the magnetic random access memory is in a high resistance state using a specified write voltage;

[0179] The magnetization module 101 is further configured to magnetize the storage cells in the magnetic random access memory to a low resistance state when the number of storage cells that fail to write voltage when the magnetic random access memory adopts a specified write voltage in a low resistance state is less than the number of storage cells that fail to write voltage when the magnetic random access memory adopts a specified write voltage in a high resistance state; and magnetize the storage cells in the magnetic random access memory to a high resistance state when the number of storage cells that fail to write voltage when the magnetic random access memory adopts a specified write voltage in a low resistance state is greater than the number of storage cells that fail to write voltage when the magnetic random access memory adopts a specified write voltage in a high resistance state.

[0180] Sixth, see Figure 5 An embodiment of the present invention provides a chip, the chip comprising:

[0181] at least one processor 1; and

[0182] A memory connected in communication with at least one processor 1; wherein,

[0183] The memory stores instructions that can be executed by at least one processor 1 , and the instructions are executed by at least one processor 1 so that the at least one processor 1 can perform the method in any of the above aspects.

[0184] In an optional embodiment, the processor 1 further includes: a control module 11 , a storage module 12 , an address acquisition module 13 and an address comparison module 14 .

[0185] The control module 11 is connected to the storage module 12 in communication, and the address comparison module 14 is connected to the storage module 12 and the address acquisition module 13 in communication. The control module 11 is used to perform the burning step;

[0186] The address comparison module 14 is used to determine whether the target address of the written data is consistent with the address stored in the storage module 12 when writing data to the magnetic random access memory 4. The storage module 12 is used to group and store the addresses recorded in the first judgment step according to the corresponding new write voltages that can be successfully written.

[0187] In an optional embodiment, the chip further includes: a decoding module 2 , a voltage adjustment module 3 and a magnetic random access memory 4 .

[0188] The decoding module 2 is connected to the address comparison module 14 for communication, and the voltage adjustment module 3 is connected to the decoding module 2 and the magnetic random access memory 4 for communication respectively.

[0189] The decoding module 2 is used to output different voltage signals according to different determination results of the address comparison module 14 ; the voltage adjustment module 3 is used to generate different write voltages according to different voltage signals to write voltages to the storage unit 41 in the magnetic random access memory 4 .

[0190] It should be noted that the decoding module 2 and the address comparison module 14 can work simultaneously, that is, the decoding module 2 and the address comparison module 14 work in an asynchronous working mode. Specifically, while the decoding module 2 decodes the target address corresponding to the previous round of write data, the address comparison module 14 compares the target address corresponding to the current round of write data with the address stored in the storage module 12.

[0191] In this optional embodiment, the decoding module 2 is a decoder. The setting value voltage adjustment module 3 can sequentially configure the storage unit 41 in the magnetic random access memory 4 with a suitable write voltage, thereby increasing the life of the magnetic random access memory 4.

[0192] In an optional embodiment, the processor 1 further includes: a storage module 15 .

[0193] The register module 15 is respectively connected to the control module 11, the address comparison module 14 and the storage module 12. The control module 11 is also used to store the addresses stored in the storage module 12 in the register module 15 in sequence, and control the address comparison module 14 to read the addresses stored in the register module 15, and clear the data stored in the register module 15 after the address comparison module 14 reads the addresses stored in the register module 15.

[0194] The address comparison module 14 is also used to determine whether the target address of the written data is consistent with the address in the register module 15 when writing data to the magnetic random access memory 4 .

[0195] In this optional embodiment, the register module 15 is a register. By providing the register module 15, the address comparison module 14 can quickly compare the addresses stored in the storage module 12 with the target address one by one, thereby improving the efficiency of providing the write voltage to the storage unit 41.

[0196] Combination Figure 6 In an optional embodiment, the voltage adjustment module 3 includes a plurality of adjustment units 31, each adjustment unit 31 is respectively connected to all storage units 41 on a bit line, and the adjustment unit 31 corresponds to the bit line in the magnetic random access memory 4 one by one;

[0197] The storage unit 41 and the adjustment unit 31 are connected in series between the power supply end and the ground end. The power supply end is used to provide a voltage to the circuit composed of the adjustment unit 31 and the magnetic random access memory 4. The adjustment unit 31 is used to provide a voltage drop for the circuit where the storage unit 41 is located, so as to provide a corresponding write voltage to the storage unit 41 for writing voltage. The write voltage includes: a mark write voltage and / or a new write voltage.

[0198] It should be noted that when the write voltage confirmed by the method in the above aspect for all the storage cells 41 on the same bit line is the same, the write voltage at this time may be a mark write voltage or a new write voltage. When the write voltage confirmed by the method in the above aspect for all the storage cells 41 on the same bit line is multiple, the write voltage at this time may include the mark write voltage and at least one new write voltage, or include multiple new write voltages.

[0199] Further, combined with Figure 7 , Figure 8 and Fig. 9 The adjustment unit 31 includes at least one gating circuit. When the adjustment unit 31 includes multiple gating circuits, different gating circuits generate different voltage drops after gating, and the multiple gating circuits in the adjustment unit 31 are connected in parallel.

[0200] In this optional embodiment, one end of the N gating circuits is electrically connected to the power supply terminal VWR LDO or the ground terminal VSS, and the other end is electrically connected to the magnetic random access memory 4. N is determined by the number of groups in the burning step; the N parallel gating circuits can generate different voltage drops through different numbers of field effect transistors connected in series, or can generate different voltage drops through the same number of field effect transistors and resistors with different resistance values.

[0201] In the present invention, three adjustment units 31 are provided, which are divided into a first adjustment unit 31, a second adjustment unit 31 and a third adjustment unit 31. The voltage adjustment module 3 may include at least one of the first adjustment unit 31, the second adjustment unit 31 and the third adjustment unit 31 at the same time.

[0202] Taking the first adjustment unit 31 applied to the method for providing write voltage in the second aspect as an example, the first adjustment unit 31 includes: a first gating circuit and a second gating circuit. Among them, one end of the first gating circuit and the second gating circuit are both electrically connected to the power supply end; the other ends of the first gating circuit and the second gating circuit are both electrically connected to the storage unit 41 through the corresponding bit line; the storage unit 41 is electrically connected to the ground end; the first gating circuit includes three groups of first field effect transistors connected in series, and the three groups of first field effect transistors are electrically connected to the first gating end CSL_1; the second gating circuit includes a group of second field effect transistors, and the second field effect transistors are electrically connected to the second gating end CSL_2.

[0203] If the address comparison module 14 compares the target address and finds that it is consistent with an address stored in the storage module 12, the decoder will enable CSL_2 in the adjustment unit 31 connected to the storage unit 41 corresponding to the address, so that the corresponding adjustment unit 31 uses 1.8V to write the voltage to the storage unit 41 corresponding to the target address; if they are inconsistent, the decoder will enable CSL_1 in the adjustment unit 31 connected to the storage unit 41 corresponding to the address, so that the corresponding adjustment unit 31 uses 1.7V to write the voltage to the storage unit 41 corresponding to the target address.

[0204] Taking the second adjustment unit 31 applied to the method for providing write voltage in the third aspect as an example, the second adjustment unit 31 includes: a third gating circuit, a fourth gating circuit and a fifth gating circuit. Among them, one end of the third gating circuit, the fourth gating circuit and the fifth gating circuit is electrically connected to the power supply end; the other ends of the third gating circuit, the fourth gating circuit and the fifth gating circuit are electrically connected to the storage unit 41 through the corresponding bit line; the storage unit 41 is electrically connected to the ground end; the third gating circuit, the fourth gating circuit and the fifth gating circuit all include a field effect transistor and a resistor connected in series with each other, which are respectively a third field effect transistor, a first resistor R1, a fourth field effect transistor, a second resistor R2, a fifth field effect transistor and a third resistor R3, the resistance of R1 is greater than the resistance of R2, the resistance of R2 is greater than the resistance of R3, and the third field effect transistor, the fourth field effect transistor and the fifth field effect transistor are electrically connected to the third gating terminal CSL_3, the fourth gating terminal CSL_4 and the fifth gating terminal CSL_5 respectively.

[0205] If the address comparison module 14 compares that the target address is consistent with an address stored in area A of the storage module 12, the decoder will enable CSL_4 in the adjustment unit 31 connected to the storage unit 41 corresponding to the address, so that the corresponding adjustment unit 31 uses 1.7V to write the voltage to the storage unit 41 corresponding to the target address; if the address comparison module 14 compares that the target address is consistent with an address stored in area B of the storage module 12, the decoder will enable CSL_5 in the adjustment unit 31 connected to the storage unit 41 corresponding to the address, so that the corresponding adjustment unit 31 uses 1.8V to write the voltage to the storage unit 41 corresponding to the target address; if they are inconsistent, the decoder will enable CSL_3 in the adjustment unit 31 connected to the storage unit 41 corresponding to the address, so that the corresponding adjustment unit 31 uses 1.6V to write the voltage to the storage unit 41 corresponding to the target address.

[0206] Taking the third adjustment unit 31 applied to the method for providing a write voltage in the fourth aspect as an example, the third adjustment unit 31 includes: a sixth gating circuit and a seventh gating circuit. One end of the sixth gating circuit and the seventh gating circuit are both electrically connected to the ground terminal; the other ends of the sixth gating circuit and the seventh gating circuit are both electrically connected to the storage unit 41 through the corresponding source line SL; the sixth gating circuit includes three groups of sixth field effect transistors connected in series, and the three groups of sixth field effect transistors are electrically connected to the sixth gating terminal CSL_6; the seventh gating circuit includes a group of seventh field effect transistors, and the seventh field effect transistor is electrically connected to the seventh gating terminal CSL_7.

[0207] If the address comparison module 14 compares the target address and finds that it is consistent with an address stored in the storage module 12, the decoder will enable CSL_7 in the adjustment unit 31 connected to the storage unit 41 corresponding to the address, so that the corresponding adjustment unit 31 uses 1.8V to write the voltage to the storage unit 41 corresponding to the target address; if they are inconsistent, the decoder will enable CSL_6 in the adjustment unit 31 connected to the storage unit 41 corresponding to the address, so that the corresponding adjustment unit 31 uses 1.7V to write the voltage to the storage unit 41 corresponding to the target address.

[0208] In an optional embodiment, the control module 11 is also connected to the address comparison module 14, the register module 15, the decoding module 2, the voltage adjustment module 3 and the magnetic random access memory 4. The control module 11 is used to control the address comparison module 14, the register module 15, the decoding module 2, the voltage adjustment module 3 and the magnetic random access memory 4 to perform the method in any of the above aspects.

[0209] The chip provided by the present invention has a simple structure and convenient manufacturing process. By applying a write voltage matching the required voltage to different storage units 41, the life of the magnetic random access memory 4 is effectively improved.

[0210] In a seventh aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method as described in any one of the above items is implemented.

[0211] In the description of this specification, the description with reference to the terms "some embodiments", "other embodiments", "ideal embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic descriptions of the above terms do not necessarily refer to the same embodiment or example.

[0212] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are 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.

[0213] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for providing a write voltage, characterized in that: The method comprises: Magnetization step: magnetizing the memory cell in the magnetic random access memory to a low resistance state or a high resistance state; Writing step: using a preset standard writing voltage to write voltage to all the storage cells; The first judgment step: judging whether there is the storage unit with write voltage failure, and if so, recording the address of the storage unit with write voltage failure; Looping steps: Repeating the test steps until the new write voltage reaches the highest preset write voltage; The test step includes: increasing the new write voltage, using the increased new write voltage to write the memory cell whose write voltage failed in the previous step, and determining the address of the memory cell whose write voltage succeeded at the current write voltage; Burning step: According to the result of each execution of the test step, the addresses recorded in the first judgment step are grouped according to the corresponding new write voltages that can successfully perform the write voltage, and the addresses of the storage cells in different groups are burned to different areas in the storage module respectively, so as to provide the storage cells recorded in the first judgment step with corresponding new write voltages for completing the write voltage.

2. The method according to claim 1, characterized in that The method further comprises: Writing step: when writing data to the magnetic random access memory, determine whether the target address of the written data is consistent with the address stored in the storage module. If so, use the new write voltage corresponding to the target address as the write voltage; if not, use the standard write voltage as the write voltage.

3. The method according to claim 1, characterized in that The method further comprises: Replacement step: when the new write voltage Vn reaches the highest preset write voltage, a redundant address is used to replace the address where the current write voltage fails, and the replaced redundant address is burned into the area corresponding to the highest preset write voltage in the storage module.

4. The method according to claim 1, characterized in that: The method further comprises: The second judgment step: when the new write voltage Vn reaches the highest preset write voltage, judging whether the number of failed bits corresponding to the storage unit with the current write voltage failure is less than a preset repair threshold; The burning step also includes: when the result of the second judgment step is yes, burning the address of the storage unit whose current write voltage fails to the area corresponding to the highest preset write voltage in the storage module; when the result of the second judgment step is no, replacing the address of the storage unit whose current write voltage fails with a redundant address, and burning the replaced redundant address to the area corresponding to the highest preset write voltage in the storage module.

5. The method according to claim 1, characterized in that The testing steps also include: Increase the new write voltage; Using the increased new write voltage to write the memory cell whose write voltage failed in the previous step; Recording the address of the storage unit where the current write voltage fails; The address of the storage unit with the current write voltage failure is removed from the addresses of the storage unit with the write voltage failure in the previous step, and the remaining addresses of the storage unit with the write voltage failure in the previous step are used as the addresses of the storage unit with the current write voltage success.

6. The method according to any one of claims 1 to 5, characterized in that: Prior to the magnetizing step, the method further comprises: The third judgment step: judging whether the minimum write voltage required for the magnetic random access memory to successfully write all the memory cells in the low resistance state is less than the minimum write voltage required for the magnetic random access memory to successfully write all the memory cells in the high resistance state; The magnetization step also includes: magnetizing the storage cells in the magnetic random access memory to a low resistance state when the minimum write voltage required for all storage cells in the magnetic random access memory to be successfully written in a low resistance state is less than the minimum write voltage required for all storage cells in the magnetic random access memory to be successfully written in a high resistance state; and magnetizing the storage cells in the magnetic random access memory to a high resistance state when the minimum write voltage required for all storage cells in the magnetic random access memory to be successfully written in a low resistance state is greater than the minimum write voltage required for all storage cells in the magnetic random access memory to be successfully written in a high resistance state.

7. The method according to any one of claims 1 to 5, characterized in that: Prior to the magnetizing step, the method further comprises: Fourth judgment step: judging whether the number of storage cells of the magnetic random access memory that fail to write voltage when the specified write voltage is used in the low resistance state is less than the number of storage cells of the magnetic random access memory that fail to write voltage when the specified write voltage is used in the high resistance state; The magnetization step also includes: when the number of storage cells that fail to write voltage when the magnetic random access memory uses a specified write voltage in a low resistance state is less than the number of storage cells that fail to write voltage when the magnetic random access memory uses the specified write voltage in a high resistance state, magnetizing the storage cells in the magnetic random access memory to a low resistance state; when the number of storage cells that fail to write voltage when the magnetic random access memory uses a specified write voltage in a low resistance state is greater than the number of storage cells that fail to write voltage when the magnetic random access memory uses the specified write voltage in a high resistance state, magnetizing the storage cells in the magnetic random access memory to a high resistance state.

8. A system for providing a write voltage, characterized in that: The system comprises: A magnetization module, configured to magnetize the storage cells in the magnetic random access memory to the same resistance state; A write voltage module, configured to write voltage to all the storage cells using a preset standard write voltage; A first judgment module is configured to judge whether there is a storage unit with a write voltage failure, and if so, record the address of the storage unit with a write voltage failure; a cycle module configured to repeatedly execute the test module until the new write voltage reaches a maximum preset write voltage; The test module is configured to increase the new write voltage, use the increased new write voltage to write the storage unit whose write voltage failed in the last write voltage execution, and determine the address of the storage unit whose write voltage succeeded at the current write voltage execution; The burning module is configured to group the addresses recorded in the first judgment module according to the results of executing the test module according to the corresponding new write voltages that can successfully perform the write voltage, and burn the addresses of the storage cells in different groups to different areas in the storage module respectively, so as to provide the storage cells recorded in the first judgment module with corresponding new write voltages for completing the write voltage.

9. The system according to claim 8, characterized in that The system further comprises: The write module is configured to determine whether the target address of the write data is consistent with the address stored in the storage module when writing data to the magnetic random access memory. If so, a new write voltage corresponding to the target address is used as the write voltage; if not, the standard write voltage is used as the write voltage.

10. The system according to claim 8, characterized in that The system further comprises: A replacement module, configured to replace the address where the current write voltage fails with a redundant address when the new write voltage Vn reaches the highest preset write voltage; The burning module is further configured to burn the replaced redundant address into an area corresponding to the highest preset write voltage in the storage module.

11. The system according to claim 8, characterized in that The system further comprises: A second judgment module is configured to judge whether the number of failed bits corresponding to the storage unit with the current write voltage failure is less than a preset repair threshold when the new write voltage Vn reaches the highest preset write voltage; The burning module is further configured to, when the judgment result of the second judgment module is yes, burn the address of the storage unit whose current write voltage fails into the area corresponding to the highest preset write voltage in the storage module; when the judgment result of the second judgment module is no, replace the address of the storage unit whose current write voltage fails with a redundant address, and burn the replaced redundant address into the area corresponding to the highest preset write voltage in the storage module.

12. The system according to claim 8, characterized in that The test module includes: An increasing submodule, configured to increase a new write voltage; a write electronic module configured to use the increased new write voltage to write a memory cell for which the write voltage failed during the last write voltage execution; A recording submodule, configured to record the address of the storage unit where the current write voltage fails; The removal module is configured to remove the address of the storage cell where the current write voltage fails from the address of the storage cell where the write voltage failed in the process of the last write voltage execution, and use the remaining address of the storage cell where the write voltage failed in the process of the last write voltage execution as the address of the storage cell where the current write voltage succeeds.

13. The system according to any one of claims 8 to 12, characterized in that The system further comprises: A third judgment module is configured to judge, before executing the magnetization module, whether a minimum write voltage required for the magnetic random access memory to successfully write all storage cells in a low resistance state is less than a minimum write voltage required for the magnetic random access memory to successfully write all storage cells in a high resistance state; The magnetization module is further configured to magnetize the storage cells in the magnetic random access memory to a low resistance state when the minimum write voltage required for all storage cells in the magnetic random access memory to be successfully written in a low resistance state is less than the minimum write voltage required for all storage cells in the magnetic random access memory to be successfully written in a high resistance state; and to magnetize the storage cells in the magnetic random access memory to a high resistance state when the minimum write voltage required for all storage cells in the magnetic random access memory to be successfully written in a low resistance state is greater than the minimum write voltage required for all storage cells in the magnetic random access memory to be successfully written in a high resistance state.

14. The system according to any one of claims 8 to 12, characterized in that The method further comprises: a fourth judgment module, configured to judge, before executing the magnetization module, whether the number of storage cells of the magnetic random access memory that fail write voltage when the magnetic random access memory adopts the specified write voltage in the low resistance state is less than the number of storage cells of the magnetic random access memory that fail write voltage when the magnetic random access memory adopts the specified write voltage in the high resistance state; The magnetization module is further configured to magnetize the storage cells in the magnetic random access memory to a low resistance state when the number of storage cells that fail write voltage when the magnetic random access memory adopts a specified write voltage in a low resistance state is less than the number of storage cells that fail write voltage when the magnetic random access memory adopts the specified write voltage in a high resistance state; and magnetize the storage cells in the magnetic random access memory to a high resistance state when the number of storage cells that fail write voltage when the magnetic random access memory adopts a specified write voltage in a low resistance state is greater than the number of storage cells that fail write voltage when the magnetic random access memory adopts the specified write voltage in a high resistance state.

15. A chip, characterized in that: The chip comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 7.

16. The chip according to claim 15, characterized in that: The processor also includes: a control module, a storage module, an address acquisition module and an address comparison module; The control module is connected to the storage module for communication, and the address comparison module is connected to the storage module and the address acquisition module for communication respectively; The control module is used to execute the burning step; The address comparison module is used to determine whether the target address of the written data is consistent with the address stored in the storage module when writing data to the magnetic random access memory.

17. The chip according to claim 16, characterized in that: The chip also includes: a decoding module, a voltage adjustment module and a magnetic random access memory; The decoding module is connected to the address comparison module in communication, and the voltage adjustment module is connected to the decoding module and the magnetic random access memory in communication, respectively; The decoding module is used to output different voltage signals according to different judgment results of the address comparison module; The voltage adjustment module is used to generate different write voltages according to different voltage signals so as to write voltages to the storage units in the magnetic random access memory.

18. The chip according to claim 17, characterized in that: The voltage adjustment module includes a plurality of adjustment units; Each of the adjustment units is respectively connected to all the storage units on a bit line, the adjustment units correspond to the bit lines in the magnetic random access memory one by one, and the storage units and the adjustment units are connected in series between a power supply terminal and a ground terminal; The power supply end is used to provide voltage to the circuit composed of the adjustment unit and the magnetic random access memory, and the adjustment unit is used to provide a voltage drop for the circuit where the storage unit is located, so as to provide the storage unit with a corresponding write voltage for writing, and the write voltage includes: a mark write voltage and / or a new write voltage.

19. The chip according to claim 18, characterized in that: The adjustment unit includes at least one gating circuit; Wherein, when the adjustment unit includes a plurality of the gating circuits, different gating circuits generate different voltage drops after being gated, and the plurality of the gating circuits in the adjustment unit are connected in parallel.

20. A computer-readable storage medium, wherein: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 7 is implemented.