MRAM unit and MRAM array
By using a combination of magnetic tunnel junctions and NMOS transistors in MRAM cells, the current change rate difference is used to determine the tunnel junction state, which solves the problems of low tunnel magnetoresistance and switching ratio of traditional MRAM and achieves higher calculation accuracy and application range. .
Patent Information
- Application Number
- CN202310181581.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-23
- Publication Date
- 2024-08-23
AI Technical Summary
The tunnel magnetoresistance and switching ratio of traditional MRAM based on spin transfer torque are low, resulting in reduced calculation accuracy, and existing solutions increase circuit area and complexity, limiting their application scope.
Design an MRAM cell, including a magnetic tunnel junction and two NMOS transistors. The gate is opened under a specific operating state through the transmission characteristics of the NMOS transistor. The difference in current change rate is used to determine the parallel state or anti-parallel state of the tunnel junction, which significantly improves tunneling. Magnetoresistivity and switching ratio.
The tunnel magnetoresistance and switching ratio of the MRAM unit are improved, which is suitable for in-memory computing and neural network reasoning tasks, reduces static power consumption, simplifies the design of the computing unit, and improves the computing accuracy.
Smart Images

Figure CN118538259A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of magnetic memory, and in particular to an MRAM unit and an MRAM array. Background Art
[0002] In existing artificial intelligence computing and reasoning systems, the single task of computing a large amount of data is large and the storage memory occupancy rate is high. The traditional von Neumann computing system has gradually failed to meet the growing computing needs and low-power scenarios, such as portable computers, mobile phones, watches, etc. The storage and computing integration research of memory targets this demand and solves the data movement in the storage and computing process and the high power consumption caused by data computing.
[0003] Among them, magnetic random access memory (MRAM) has the advantages of non-volatility, high-speed reading and writing, low power consumption, and unlimited erasing and writing, and is a hot spot for storage and computing design and research based on non-volatile memory. However, the tunnel magnetoresistance (TMR) of MRAM based on spin transfer torque (STT) is usually low (100%-200%), and the low switching ratio causes the traditional 1T1R-based array to have current offset problems, reducing the calculation accuracy. The existing solutions require the setting of additional circuit subtraction or 2T-2R complementary logic units, which increases the circuit area and the calculation complexity. In addition, the complementary logic unit of 2T-2R can only be applied to binary neural network reasoning, reducing the scope of application. Summary of the invention
[0004] The invention provides an MRAM unit and an MRAM array to improve the tunnel magnetoresistance and switching ratio of the MRAM.
[0005] In a first aspect, the present invention provides an MRAM cell, which includes: a magnetic tunnel junction, a first NMOS transistor and a second NMOS transistor. One end of the magnetic tunnel junction is connected to a bit line. The drains of the first NMOS transistor and the second NMOS transistor are both connected to the other end of the magnetic tunnel junction, the gate of the second NMOS transistor is connected to the first word line, the gate of the first NMOS transistor is connected to the source of the second NMOS transistor, and the source of the first NMOS transistor is connected to the source line. When the first word line, the bit line and the source line are in a first operating state, the gate of the second NMOS transistor can be opened, and the difference in the current change rate within a set time period after the first NMOS transistor enters the first operating state can be used to determine whether the magnetic tunnel junction is in a parallel state or an anti-parallel state.
[0006] In the above scheme, by setting a magnetic tunnel junction and two NMOS transistors, using the transmission characteristics of the NMOS transistor, when the first word line, the bit line and the source line are in the first operating state, the gate of the second NMOS transistor can be opened, and the difference in the current change rate of the first NMOS transistor in a set time period after entering the first operating state can be used to determine whether the magnetic tunnel junction is in a parallel state or an anti-parallel state. That is, after the gate of the second NMOS transistor is opened, the difference in the current change rate of the first NMOS transistor during discharge in the set time period is reflected over time, which significantly improves the tunnel magnetoresistance and switching ratio of the MRAM unit.
[0007] In a specific embodiment, when the first word line, bit line and source line are in the first operating state, if the magnetic tunnel junction is in a parallel state, then at the moment of opening the gate of the second NMOS transistor, the initial voltage of the source of the second NMOS transistor can make the second NMOS transistor in a subthreshold state, thereby causing the current change rate of the first NMOS transistor to be large within a set time period after entering the first operating state. When the first word line, bit line and source line are in the first operating state, if the magnetic tunnel junction is in an antiparallel state, then at the moment of opening the gate of the second NMOS transistor, the initial voltage of the source of the second NMOS transistor can make the second NMOS transistor in a linear region, thereby causing the current change rate of the first NMOS transistor to be small within a set time period after entering the first operating state. The tunnel magnetoresistance and switching ratio of the MRAM unit are significantly improved.
[0008] In a specific embodiment, a binary multiplier is stored in the magnetic tunnel junction, wherein when the magnetic tunnel junction is in a parallel state, the multiplier is a binary "1", and when the magnetic tunnel junction is in an antiparallel state, the multiplier is a binary "0". The first word line inputs a binary multiplicand to the gate of the second NMOS transistor, wherein when the first word line inputs a high level signal that can open the gate of the second NMOS transistor, the multiplicand is a binary "1"; when the first word line inputs a low level signal that cannot open the gate of the second NMOS transistor, the multiplicand is a binary "0". When the first word line, the bit line and the source line are in the second operating state, the product of the multiplicand multiplied by the multiplier can be obtained by the difference in the current change rate of the first NMOS transistor within a set time period after entering the second operating state. The design that can improve the switching ratio of the MRAM basic unit makes it suitable for in-memory computing and neural network reasoning tasks in general scenarios. Therefore, when designing in-memory computing for non-volatile memory, the non-von Neumann architecture can be used for the integrated computing paradigm, and the weight data (multiplier) stored in the magnetic tunnel junction will not be lost due to power failure, which meets the actual requirements of almost no weight update in neural network applications and reduces static power consumption. At the same time, through 2T (two NMOS transistors) 1R (one magnetic tunnel junction), the unit and array design that facilitates calculation and result reading can significantly improve the in-memory computing unit design and in-memory computing accuracy of the computing unit switching ratio.
[0009] In a specific embodiment, when the first word line, the bit line and the source line are in the second operation state, if the first word line inputs a low level signal to the gate of the second NMOS transistor, the gates of the first NMOS transistor and the second NMOS transistor are both in the disconnected state, and the current change rate of the first NMOS transistor in the set time period after entering the second operation state is zero, indicating that the product of the multiplicand multiplied by the multiplier is binary "0". When the first word line, the bit line and the source line are in the second operation state, if the first word line inputs a high level signal to the gate of the second NMOS transistor, when the magnetic tunnel junction is in the antiparallel state "0", the current change rate of the first NMOS transistor in the set time period after entering the second operation state is small, indicating that the product of the multiplicand multiplied by the multiplier is binary "0". When the first word line, the bit line and the source line are in the second operation state, if the first word line inputs a high level signal to the gate of the second NMOS transistor, when the magnetic tunnel junction is in the parallel state "1", the current change rate of the first NMOS transistor in the set time period after entering the second operation state is large, indicating that the product of the multiplicand multiplied by the multiplier is binary "1". The unit and array design facilitates calculation and result reading, and significantly improves the in-memory calculation unit design and in-memory calculation accuracy of the calculation unit switching ratio.
[0010] In a specific implementation, the source line is grounded through an inductor unit. By detecting the output voltage of the inductor unit, the difference in the current change rate within a set time period after the first NMOS transistor enters the first operating state can be detected, and the relationship between the current change rate and time is read through the inductor unit. The output method is simple, which significantly improves the switching ratio of the MRAM unit and improves the reading and calculation accuracy.
[0011] In a specific embodiment, the magnetic tunnel junction is a magnetic tunnel junction formed by utilizing one or any combination of spin transfer torque effect, spin-orbit coupling effect or voltage-controlled magnetic anisotropy effect, so as to improve the adaptability of the MRAM unit.
[0012] In a specific embodiment, the gate of the first NMOS transistor is also connected to the second word line, and the write circuit can open the gate of the first NMOS transistor through the second word line to write parallel or antiparallel "0" and "1" into the magnetic tunnel junction. The second word line controls the opening and closing of the gate of the first NMOS transistor to write binary "0" and "1" into the magnetic tunnel junction.
[0013] In a specific embodiment, the first operating state and the second operating state both include: the voltage on the bit line side remains unchanged, and the voltage difference between the bit line and the source line is greater than the gate turn-on voltage of the first NMOS transistor and the second NMOS transistor, thereby improving the accuracy of obtaining the magnetic tunnel junction state or the multiplication result through the difference in current change rate.
[0014] In a second aspect, the present invention further provides an MRAM array, the MRAM array comprising: MRAM cells distributed in an array of M rows and N columns, wherein each MRAM cell is any one of the above-mentioned MRAM cells. It also comprises: M first word lines, N bit lines and N source lines. Among them, the gates of all second NMOS transistors in the same row of MRAM cells are connected to the same first word line; one end of all magnetic tunnel junctions in the same column of MRAM cells is connected to the same bit line, and the sources of all first NMOS transistors in the same column of MRAM cells are connected to the same source line.
[0015] In the above scheme, in each MRAM cell in the MRAM array, by setting a magnetic tunnel junction and two NMOS transistors, using the transmission characteristics of the NMOS transistor, when the first word line, the bit line and the source line are in the first operating state, the gate of the second NMOS transistor can be opened, and the difference in the current change rate of the first NMOS transistor in a set time period after entering the first operating state can be used to determine whether the magnetic tunnel junction is in a parallel state or an anti-parallel state. That is, after the gate of the second NMOS transistor is opened, the difference in the current change rate of the first NMOS transistor during discharge in the set time period is reflected over time, which significantly improves the tunnel magnetoresistance and switching ratio of the MRAM cell.
[0016] In a specific implementation, the MRAM array further includes: N inductance units, each source line is grounded through an inductance unit, and by detecting the output voltage of the inductance unit, part or all of the first NMOS transistors on the same column can be detected, and after entering the first operating state, the current change rate difference and the total column current within a set time period are set, and the relationship between the current change rate and time is read through the inductance unit. The output method is simple, the switching ratio of the MRAM unit is significantly improved, and the reading and calculation accuracy are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic diagram of the structure of an MRAM unit provided by an embodiment of the present invention;
[0018] Figure 2 A schematic diagram of the composition of an MRAM array provided by an embodiment of the present invention;
[0019] Figure 3 A schematic diagram of the change of the current in different resistance states of the magnetic tunnel junction over time after the gate of the second NMOS transistor is turned on according to an embodiment of the present invention;
[0020] Figure 4 A schematic diagram of voltage output corresponding to different magnetic tunnel junction resistance states after the source line SL provided by the embodiment of the present invention is connected to the inductor unit;
[0021] Figure 5 A schematic structural diagram of a magnetic tunnel junction writing process provided by an embodiment of the present invention;
[0022] Figure 6 A mapping diagram for performing a neural network reasoning task using the MRAM array provided by an embodiment of the present invention;
[0023] Figure 7 A schematic diagram of the structure of an inductor voltage sampling circuit provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] In order to facilitate understanding of the MRAM cell provided by the embodiment of the present invention, the application scenario of the MRAM cell provided by the embodiment of the present invention is first described below. The MRAM cell is applied to a magnetic memory. The MRAM cell is described in detail below with reference to the accompanying drawings.
[0026] refer to Figure 1 , the MRAM unit provided by the embodiment of the present invention includes: a magnetic tunnel junction, a first NMOS transistor and a second NMOS transistor. Among them, one end of the magnetic tunnel junction is connected to the bit line. The drains of the first NMOS transistor and the second NMOS transistor are both connected to the other end of the magnetic tunnel junction, the gate of the second NMOS transistor is connected to the first word line, the gate of the first NMOS transistor is connected to the source of the second NMOS transistor, and the source of the first NMOS transistor is connected to the source line. When the first word line, the bit line and the source line are in the first operating state, the gate of the second NMOS transistor can be opened, and the difference in the current change rate within the set time period after the first NMOS transistor enters the first operating state can be used to determine whether the magnetic tunnel junction is in a parallel state or an anti-parallel state.
[0027] In the above scheme, by setting a magnetic tunnel junction and two NMOS transistors, using the transmission characteristics of the NMOS transistor, when the first word line, the bit line and the source line are in the first operating state, the gate of the second NMOS transistor can be opened, and the difference in the current change rate of the first NMOS transistor in a set time period after entering the first operating state can be used to determine whether the magnetic tunnel junction is in a parallel state or an anti-parallel state. That is, after opening the gate of the second NMOS transistor, the difference in the current change rate of the first NMOS transistor during discharge in the set time period is reflected over time, which significantly improves the tunnel magnetoresistance and switching ratio of the MRAM unit. The above structures are described in detail below in conjunction with the accompanying drawings.
[0028] refer to Figure 1 The MRAM cell includes a magnetic tunnel junction and two NMOS transistors, the two NMOS transistors being a first NMOS transistor and a second NMOS transistor, Figure 1 N1 in the figure represents the first NMOS transistor. Figure 1N2 in the figure represents the first NMOS transistor, Figure 1 In the figure, S represents the source of the NMOS transistor, D represents the drain of the NMOS transistor, G represents the gate of the NMOS transistor, WL represents the first word line, BL represents the bit line, and SL represents the source line.
[0029] like Figure 1 As shown, the magnetic tunnel junction can be any type of magnetic tunnel junction. For example, the magnetic tunnel junction can be a magnetic tunnel junction formed by utilizing one or any of the spin transfer torque effect (STT), spin-orbit coupling effect (SOT) or voltage-controlled magnetic anisotropy effect (VCMA) to improve the adaptability of the MRAM unit. The magnetic tunnel junction is composed of a reference layer, a barrier layer and a free layer. The reference layer has a fixed magnetization direction, the barrier layer is used to produce a tunneling effect, and the free layer is used to produce different magnetization directions so that it has a high and low resistance state. The reference layer and the free layer of the magnetic tunnel junction are respectively located at the two ends of the magnetic tunnel junction, one end of which is connected to the bit line, and the other end of which is connected to the drain of the first NMOS transistor and the second NMOS transistor, respectively. Specifically, it can be as follows Figure 1 The free layer of the magnetic tunnel junction is connected to the bit line, and the reference layer of the magnetic tunnel junction is connected to the drain of the first NMOS transistor and the second NMOS transistor respectively. The reference layer of the magnetic tunnel junction can also be connected to the bit line, and the free layer of the magnetic tunnel junction is connected to the drain of the first NMOS transistor and the second NMOS transistor respectively.
[0030] like Figure 1As shown, the gate of the second NMOS transistor is connected to the first word line, and the first word line can control the opening or closing of the second NMOS transistor. The gate of the first NMOS transistor is connected to the source of the second NMOS transistor, and the source of the first NMOS transistor is connected to the source line. When the first word line, the bit line and the source line are in the first operating state, the gate of the second NMOS transistor can be opened, and the difference in the current change rate of the source of the first NMOS transistor within a set time period after entering the first operating state can be used to judge whether the magnetic tunnel junction is in a parallel state (i.e., P state) or an anti-parallel state (i.e., AP state). That is, the above-mentioned first operating state is a read operation for reading the parallel state or anti-parallel state stored in the magnetic tunnel junction. At this time, the parallel state stored in the magnetic tunnel junction can represent "1" in binary, and the anti-parallel state can represent "0" in binary. Of course, the opposite logical state can also be used. The above method can utilize the transmission characteristics of the NMOS transistor, and when the first word line, the bit line and the source line are in the first operating state, the gate of the second NMOS transistor can be opened, and the difference in the current change rate of the first NMOS transistor in a set time period after entering the first operating state can be used to determine whether the magnetic tunnel junction is in a parallel state or an anti-parallel state. That is, after the gate of the second NMOS transistor is opened, the difference in the current change rate of the first NMOS transistor during discharge in the set time period is reflected over time, which significantly improves the tunnel magnetoresistance and switching ratio of the MRAM unit.
[0031] The first word line, the bit line and the source line can be placed in a first operating state, at which time the first word line can open the gate of the second NMOS transistor by inputting a high-level signal to the gate of the second NMOS transistor. When the first word line, the bit line and the source line are in the first operating state, the voltage on the bit line side can be kept constant, and the voltage difference between the bit line and the source line is greater than the gate turn-on voltage of the first NMOS transistor and the second NMOS transistor, thereby improving the accuracy of obtaining the magnetic tunnel junction state or the multiplication result through the difference in the current change rate.
[0032] When the first word line, bit line and source line are in the first operating state, the magnetic tunnel junction has different voltage divisions when it is in the parallel state or the antiparallel state, so that the initial voltage value at the moment of opening the gate of the second NMOS transistor is different, which causes the second NMOS transistor to be in a subthreshold state or a linear region state, thereby causing the current change rate of the first NMOS transistor within a set time period after entering the first operating state to be different.
[0033] Specifically, when the first word line, the bit line, and the source line are in the first operating state, if the magnetic tunnel junction is in a parallel state, then at the moment when the gate of the second NMOS transistor is turned on, the initial voltage of the source of the second NMOS transistor is relatively large, far exceeding the low-level transmission threshold (0 to V) of the two NMOS transistors. th ), which can make the second NMOS transistor in a subthreshold state, thereby causing the current change rate of the first NMOS transistor in a set time period after entering the first operating state to be large (large change rate means Figure 3 The current curve has a certain slope, and the speed of reaching the equilibrium state in the subthreshold region is also relatively slow). After reaching the equilibrium state, the first NMOS transistor is a diode-connected NMOS tube, which is in the saturation region, and the current tends to be stable.
[0034] When the first word line, bit line and source line are in the first operating state, if the magnetic tunnel junction is in an antiparallel state, then at the moment of opening the gate of the second NMOS transistor, the initial voltage of the source of the second NMOS transistor is small (still greater than the threshold voltage of the two NMOS transistors), which can make the second NMOS transistor in the linear region, thereby causing the current change rate of the first NMOS transistor in the set time period after entering the first operating state to be small (the slope of the current curve is small, but the speed of entering the equilibrium state is fast because it is a linear region). Through the above control method, the tunnel magnetoresistance and switching ratio of the MRAM unit can be significantly improved. The N1 tube is in the saturation region, and the current tends to stabilize quickly.
[0035] In addition, the above-mentioned MRAM unit can also be applied to storage and computing units, that is, scenarios that include not only storage functions but also computing functions. In this case, it can be applied to scenarios such as but not limited to neural network training. In this case, multiplication operations can be performed for a single MRAM unit.
[0036] Specifically, the magnetic tunnel junction stores a binary multiplier, wherein when the magnetic tunnel junction is in a parallel state, the multiplier is a binary "1", and when the magnetic tunnel junction is in an antiparallel state, the multiplier is a binary "0". That is, the state of the magnetic tunnel junction (MTJ) represents the weight, when the magnetic tunnel junction is in a parallel state (P), i.e., a low resistance state, it represents a weight "1"; when the magnetic tunnel junction MTJ is in an antiparallel state (AP), i.e., a high resistance state, it represents a weight "0". At this time, the first word line inputs a binary multiplicand to the gate of the second NMOS transistor, wherein when the first word line inputs a high level signal that can open the gate of the second NMOS transistor, the multiplicand is a binary "1"; when the first word line inputs a low level signal that cannot open the gate of the second NMOS transistor, the multiplicand is a binary "0". When the first word line, the bit line and the source line are in the second operating state, the second operating state is a state for performing multiplication operations, and the product of the multiplicand multiplied by the multiplier can be obtained by the difference in the current change rate of the first NMOS transistor in the set time period after entering the second operating state. At this time, the role of the MRAM unit as a computing unit is to constitute a low current change rate in the high resistance state and a high current change rate in the low resistance state of the magnetic tunnel junction. By adopting the above method, the design of the switching ratio of the MRAM basic unit can be improved, so that it is suitable for in-memory computing and neural network reasoning tasks in general scenarios. Therefore, when designing in-memory computing for non-volatile memory, the storage and computing paradigm of the non-von Neumann architecture can be adopted, and the weight data (multiplier) stored in the magnetic tunnel junction will not be lost due to power failure, which meets the actual requirements that the weight is almost not updated in the neural network application, and reduces static power consumption. At the same time, through 2T (two NMOS transistors) 1R (one magnetic tunnel junction), the unit and array design that is convenient for calculation and result reading can significantly improve the in-memory computing unit design and in-memory computing accuracy of the computing unit switch ratio.
[0037] For example, when the first word line, the bit line and the source line are in the second operating state, the setting mode of the bit line side and the source line is the same as that of the first operating state, that is, the voltage on the bit line side remains unchanged, and the voltage difference between the bit line and the source line is greater than the gate turn-on voltage of the first NMOS transistor and the second NMOS transistor, thereby improving the accuracy of obtaining the state of the magnetic tunnel junction or the result of the multiplication operation through the difference in the current change rate. The main difference is that in the first operating state, the high-level signal input to the first word line is used to open the gate of the second NMOS transistor, and only after the gate of the second NMOS transistor is opened can the state of the magnetic tunnel junction be read. In the second operating state, the high-level signal and the low-level signal input to the first word line are both given the physical meaning of the multiplicand, that is, when the high-level signal is input to the first word line, it indicates that the multiplicand is "1"; when the low-level signal is input to the first word line, it indicates that the multiplicand is "0".
[0038] If the first word line input to the gate of the second NMOS transistor is a low-level signal, indicating that the first word line input to the gate of the second NMOS transistor is a binary "0", then the gates of the first NMOS transistor and the second NMOS transistor are both in the disconnected state, the circuit has no current output, and the current change rate of the first NMOS transistor within a set time period after entering the second operating state is zero, indicating that the product of the multiplicand multiplied by the multiplier is a binary "0".
[0039] When the first word line, the bit line and the source line are in the second operating state, if the first word line inputs a high-level signal to the gate of the second NMOS transistor, indicating that the first word line inputs a binary "1" to the gate of the second NMOS transistor, when the magnetic tunnel junction is in the antiparallel state of "0", the current change rate of the first NMOS transistor within a set time period after entering the second operating state is small. The reason why the current change rate is small at this time is the same as the reason under the same turn-on conditions in the above-mentioned first operating state. At this time, it indicates that the product of the multiplicand multiplied by the multiplier is a binary "0".
[0040] When the first word line, the bit line and the source line are in the second operation state, if the first word line inputs a high level signal to the gate of the second NMOS transistor, it means that the first word line inputs a binary "1" to the gate of the second NMOS transistor. When the magnetic tunnel junction is in the parallel state of "1", the current change rate of the first NMOS transistor in the set time period after entering the second operation state is large. The reason why the current change rate is large at this time is the same as the reason under the same opening conditions in the first operation state. At this time, it means that the product of the multiplicand multiplied by the multiplier is a binary "1". Through the above method, the design of the unit and array that facilitates calculation and result reading is significantly improved, and the design of the in-memory calculation unit of the calculation unit switch ratio and the in-memory calculation accuracy are significantly improved.
[0041] It needs to be explained that Figure 4 As shown, detecting the difference in the current change rate of the first NMOS transistor within a set time period after entering the first operating state or the second operating state refers to: after entering the first operating state, the current change rate measured after a period of time after the gate of the second NMOS transistor is turned on, such as Figure 4 The figure shows the average current change rate in a certain period of time between 40ns and 60ns after entering the first operating state. Of course, after entering the second operating state, since the gate of the second NMOS transistor may not necessarily be turned on, what is measured is the current change rate measured after a period of time after entering the second operating state. Figure 4 The slope of the current-time curve shown refers to the current change rate. The steeper the slope, the greater the current change rate; the slower the slope, the smaller the current change rate. It can be seen that when the magnetic tunnel junction is in the P state or the AP state, the ratio between the average current change rates in a certain period of time between 40ns and 60ns is very large. The reason is that when the magnetic tunnel junction is in the AP state, the average current change rate in a certain period of time between 40ns and 60ns is almost zero. Therefore, the solution of the present application can significantly improve the tunnel magnetoresistance and switching ratio of the MRAM unit.
[0042] refer to Figure 2 The above-mentioned source line can be grounded through the inductor unit, and by detecting the output voltage of the inductor unit, the difference in the current change rate of the first NMOS transistor within a set time period after entering the first operating state can be detected, and the relationship between the current change rate and time can be read through the inductor unit. The output method is simple, and the switching ratio of the MRAM unit is significantly improved, and the reading and calculation accuracy are improved. When multiple MRAM units on the same column are connected to the same source line, the current change rate of the first NMOS transistor in some or all of the MRAM units on the same column can be tested through the source line. Specifically, it can be: when only the gate of the second NMOS transistor in one of the multiple MRAM units in the column is turned on, at this time, the current change rate measured through the source line is the current change rate of the first NMOS transistor in the one MRAM unit. When multiple or all of the MRAM cells in the column are turned on, the current change rate measured by the source line is the current change rate of the first NMOS transistor in the multiple or all of the MRAM cells. The column current at this time can be accumulated according to Kirchhoff's law, and the total change rate of the column current is also read through the output power supply of the inductor unit. The size of the inductor unit can be 0.1nH~10mH, and the size of the inductor unit can be changed according to the process requirements and the actual voltage reading. The inductor unit is used to effectively read the current change rate and complete the calculation goal of multiplication and addition.
[0043] like Figure 2As shown, the output voltage Vout of the inductor unit is as follows:
[0044] is the column output voltage, Isum is the total column output current, dIsum / dt represents the rate of change of the total column output current, and L is the column inductance.
[0045] refer to Figure 5 , 40ns later, the output voltage generated by the branch corresponding to the magnetic tunnel junction in the antiparallel state is 0, and the output voltage generated by the magnetic tunnel junction in the parallel state presents a transient change. Figure 7 The sampling circuit shown charges the sampling capacitor and can sample the output voltage Vout of the inductor unit.
[0046] refer to Figure 3 , a second word line can also be added, such as Figure 3 WWL in the figure represents the second word line, and the gate of the first NMOS transistor is also connected to the second word line. The write circuit can open the gate of the first NMOS transistor through the second word line to write parallel or antiparallel "0" and "1" into the magnetic tunnel junction. The second word line controls the opening and closing of the gate of the first NMOS transistor to write binary "0" and "1" into the magnetic tunnel junction. Figure 3 , showing the state writing process of the magnetic tunnel junction. First, turn off all the voltage signal inputs of the first word line to distinguish it from the calculation (the transistors in the gray part are not used during writing). The input is connected to the WEN signal of different columns, and the written line selection signal (row selection signal) is determined by the second word line WWL0~WWLn. When writing the "P" state, the bit line BL is activated at a high level, the source line SL is at a low level, and the voltage applied to both sides of the magnetic tunnel junction is sufficient to make the current reach a magnetic moment reversal. When writing the "AP" state, the source line SL is at a high level and the corresponding BL is at a low level, so that the free layer and the reference layer of the magnetic tunnel junction form antiparallel magnetization. After writing is completed, the WEN signal is turned off to isolate the influence between the two MRAM cells.
[0047] refer to Figure 4 , shows the output graph of the sampling results of the MRAM cell with the magnetic tunnel junction in different resistance states. The results show that when the first word line is high level "1" after 10ns and the magnetic tunnel junction MTJ state is anti-parallel state "0", after a period of time, the output voltage is almost 0 after 30ns. When the first word line is high level "1" and the magnetic tunnel junction MTJ state is parallel state "1", the output voltage has a readable value (~2mV) after 30ns. Among them, reference Figure 4 and Figure 5The current change rate of the source of the first NMOS transistor within the set time period after entering the first operating state can specifically read an average current change rate (A / ns) of 40 to 50 ns, which can increase the TMR to about 7000%. The truth table of the multiplication operation is shown in Table 1 below.
[0048] Table 1 - Truth table for multiplication operation
[0049] <![CDATA[V WL ]]> MTJ Status Read the average current change rate (A / ns) for 40 to 50 ns 1 0(AP) <![CDATA[6.55×10 -12 ]]> 0 1(P) 0 0 0(AP) 0 1 1(P) <![CDATA[4.6×10 -10 ]]>
[0050] In the various embodiments shown above, in each MRAM cell in the MRAM array, by providing a magnetic tunnel junction and two NMOS transistors, using the transmission characteristics of the NMOS transistor, when the first word line, the bit line and the source line are in the first operating state, the gate of the second NMOS transistor can be opened, and the difference in the current change rate of the first NMOS transistor within a set time period after entering the first operating state can be used to determine whether the magnetic tunnel junction is in a parallel state or an anti-parallel state. That is, after the gate of the second NMOS transistor is opened, the difference in the current change rate of the first NMOS transistor during discharge within a set time period is reflected over time, which significantly improves the tunnel magnetoresistance and switching ratio of the MRAM cell.
[0051] In addition, an embodiment of the present invention further provides an MRAM array, referring to Figure 1 and Figure 2 , the MRAM array includes: MRAM cells distributed in an array of M rows and N columns, wherein each MRAM cell is any one of the above-mentioned MRAM cells. It also includes: M first word lines, N bit lines and N source lines. Among them, the gates of all second NMOS transistors in the same row of MRAM cells are connected to the same first word line; one end of all magnetic tunnel junctions in the same column of MRAM cells is connected to the same bit line, and the sources of all first NMOS transistors in the same column of MRAM cells are connected to the same source line.
[0052] In the above scheme, in each MRAM cell in the MRAM array, by setting a magnetic tunnel junction and two NMOS transistors, using the transmission characteristics of the NMOS transistor, when the first word line, the bit line and the source line are in the first operating state, the gate of the second NMOS transistor can be opened, and the difference in the current change rate of the first NMOS transistor in a set time period after entering the first operating state can be used to determine whether the magnetic tunnel junction is in a parallel state or an anti-parallel state. That is, after the gate of the second NMOS transistor is opened, the difference in the current change rate of the first NMOS transistor during discharge in the set time period is reflected over time, which significantly improves the tunnel magnetoresistance and switching ratio of the MRAM cell.
[0053] like Figure 2 As shown, there are M first word lines, corresponding to the number of array columns N. Each first word line connects to the gates of all second NMOS transistors on the same row, and is used to control the opening of the row and serve as an input signal for in-memory calculation. There are N bit lines and source lines, respectively, corresponding to the number of array columns N. The bit lines connect one end of all magnetic tunnel junctions on the same column (for example Figure 2 The free layer end shown in the figure), wherein the source line is connected to the source of all the first NMOS transistors in the same column. When the first operation state or the second operation state is performed, the voltage difference between the bit line and the source line is kept above the gate turn-on voltage of the first NMOS transistor, and the voltage on the BL side does not need to change according to the input and remains unchanged.
[0054] In addition, refer to Figure 2 The MRAM array may further include: N inductance units, the N inductance units correspond to the number of columns N of the array one by one, each source line is grounded through an inductance unit, and by detecting the output voltage of the inductance unit, part or all of the first NMOS transistors on the same column can be detected, and after entering the first operating state, the current change rate difference and the total column current within a set time period are set, and the relationship between the current change rate and time is read through the inductance unit. The output method is simple, the switching ratio of the MRAM unit is significantly improved, and the reading and calculation accuracy are improved.
[0055] The above-mentioned MRAM array can be applied to the neural network reasoning process. The neural network reasoning is mainly composed of matrix-vector multiplication (MAC). The multiplication of a single MRAM unit is completed through the operation in Table 1. The addition method uses Kirchhoff's law to make the column current complete the "sum" at the source line SL. The rate of change of the column current sum is tested by the micro-inductor unit L.
[0056] Figure 6 The mapping process of the calculation input and weight in the neural network is demonstrated, and the output result is transmitted back to the network after calculation. The maximum weight matrix stored in a single MRAM array in a single calculation is (M, N), that is, it does not exceed the array size. After the weights are stored in the MRAM array, they will remain unchanged unless retrained. During calculation, the feature image to be inferred is split in real time and input to the level control end of the first word line WL. Through the real-time level input of the first word line WL, the multiplication and addition operation using Ohm's law in the traditional 1T1R is transformed into the use of the current change rate. While increasing the switching ratio, the output result is generated by inductance, and the output dimension is consistent with the number of open columns used for calculation. The above calculation results are transmitted back to the neural network for the next step of calculation.
[0057] Among them, the level of the first word line WL is used as the input for the convolution operation. The high level of the first word line WL represents "1", and the low level of the first word line WL represents "0"; when the magnetic tunnel junction MTJ is in a parallel state, that is, a low resistance state, it represents a weight of "1"; when the magnetic tunnel junction MTJ is in an antiparallel state, that is, a high resistance state, it represents a weight of "0". When performing a multiplication operation, the input is used as the level of the first word line WL, and the weight is used as the state of the magnetic tunnel junction. The output contains a total of 4 states. Referring to Table 1 above, one of them is almost 0. The current output of multiple MRAM cells on the same column is summed through the current on the source line to complete the summation. The inductor is used to read the total column current and the rate of change over time to implement the output operation.
[0058] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. An MRAM cell, characterized in that: include: A magnetic tunnel junction, wherein one end of the magnetic tunnel junction is connected to a bit line; a first NMOS transistor and a second NMOS transistor; wherein the drains of the first NMOS transistor and the second NMOS transistor are both connected to the other end of the magnetic tunnel junction, the gate of the second NMOS transistor is connected to the first word line, the gate of the first NMOS transistor is connected to the source of the second NMOS transistor, and the source of the first NMOS transistor is connected to the source line; When the first word line, bit line and source line are in a first operating state, the gate of the second NMOS transistor can be opened, and the difference in the current change rate of the first NMOS transistor within a set time period after entering the first operating state can be used to determine whether the magnetic tunnel junction is in a parallel state or an anti-parallel state.
2. The MRAM cell according to claim 1, wherein: When the first word line, the bit line and the source line are in the first operating state, if the magnetic tunnel junction is in a parallel state, then at the moment when the gate of the second NMOS transistor is turned on, the initial voltage at the source of the second NMOS transistor can make the second NMOS transistor in a subthreshold state, thereby causing a larger current change rate of the first NMOS transistor within a set time period after entering the first operating state; When the first word line, bit line and source line are in the first operating state, if the magnetic tunnel junction is in an antiparallel state, then at the moment of opening the gate of the second NMOS transistor, the initial voltage at the source of the second NMOS transistor can make the second NMOS transistor in a linear region, thereby causing the current change rate of the first NMOS transistor to be smaller within a set time period after entering the first operating state.
3. The MRAM cell according to claim 1, wherein: The magnetic tunnel junction stores a binary multiplier, wherein when the magnetic tunnel junction is in a parallel state, the multiplier is a binary "1", and when the magnetic tunnel junction is in an antiparallel state, the multiplier is a binary "0"; The first word line inputs a binary multiplicand to the gate of the second NMOS transistor, wherein when the first word line inputs a high level signal capable of opening the gate of the second NMOS transistor, it indicates that the multiplicand is a binary "1"; when the first word line inputs a low level signal capable of not opening the gate of the second NMOS transistor, it indicates that the multiplicand is a binary "0"; When the first word line, bit line and source line are in a second operating state, the product of the multiplicand and the multiplier can be obtained by the difference in current change rate within a set time period after the first NMOS transistor enters the second operating state.
4. The MRAM cell according to claim 3, wherein: When the first word line, the bit line and the source line are in the second operation state, if the first word line inputs the low level signal to the gate of the second NMOS transistor, the gates of the first NMOS transistor and the second NMOS transistor are both in an off state, and the current change rate of the first NMOS transistor within a set time period after entering the second operation state is zero, indicating that the product of the multiplicand multiplied by the multiplier is binary "0"; When the first word line, the bit line and the source line are in the second operation state, if the first word line inputs the high level signal to the gate of the second NMOS transistor, when the magnetic tunnel junction is in the antiparallel state "0", the current change rate of the first NMOS transistor within a set time period after entering the second operation state is small, indicating that the product of the multiplicand multiplied by the multiplier is binary "0"; When the first word line, bit line and source line are in the second operating state, if the high-level signal input to the gate of the second NMOS transistor by the first word line is the high-level signal, when the magnetic tunnel junction is in the parallel state "1", the current change rate of the first NMOS transistor within a set time period after entering the second operating state is large, indicating that the product of the multiplicand multiplied by the multiplier is a binary "1".
5. The MRAM cell according to claim 1, wherein: The source line is grounded through an inductor unit, and by detecting the output voltage of the inductor unit, a difference in the current change rate of the first NMOS transistor within a set time period after entering the first operating state can be detected.
6. The MRAM cell according to claim 1, wherein: The magnetic tunnel junction is a magnetic tunnel junction formed by utilizing one or any combination of spin transfer torque effect, spin-orbit coupling effect or voltage-controlled magnetic anisotropy effect.
7. The MRAM cell according to claim 1, wherein: The gate of the first NMOS transistor is also connected to a second word line, and the write circuit can open the gate of the first NMOS transistor through the second word line to write parallel or antiparallel "0" and "1" into the magnetic tunnel junction.
8. The MRAM cell according to claim 3, wherein: The first operating state and the second operating state both include: The voltage on the bit line side remains unchanged, and the voltage difference between the bit line and the source line is greater than the gate turn-on voltage of the first NMOS transistor and the second NMOS transistor.
9. An MRAM array, characterized in that: include: MRAM cells arranged in an array of M rows and N columns, wherein each MRAM cell is an MRAM cell as claimed in any one of claims 1 to 8; M first word lines, the gates of all second NMOS transistors in the same row of MRAM cells are connected to the same first word line; There are N bit lines and N source lines, one end of all magnetic tunnel junctions in the same column of MRAM cells is connected to the same bit line, and the sources of all first NMOS transistors in the same column of MRAM cells are connected to the same source line.
10. The MRAM array according to claim 9, wherein: Also includes: There are N inductance units, each source line is grounded through an inductance unit, and by detecting the output voltage of the inductance unit, part or all of the first NMOS transistors on the same column can be detected, and the current change rate difference and the total column current within a set time period after entering the first operating state can be detected.
