Random Number Generator

The random number generator uses MTJ elements to stochastically invert magnetization and implement controlled sequences and feedback, addressing the limitations of pseudo-random algorithms by producing high-quality true random numbers efficiently.

JP7553293B2Active Publication Date: 2024-09-18TOHOKU UNIV +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2020152266
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-10-18
Filing Date
2020-09-10
Publication Date
2024-09-18
Estimated Expiration
2040-09-10

AI Technical Summary

Technical Problem

Existing random number generation methods using mathematical algorithms produce pseudo-random numbers with periodicity and vulnerabilities, necessitating the development of true random numbers without periodicity and with high quality at low cost.

Method used

A random number generator utilizing a magnetic tunnel junction (MTJ) element that stochastically inverts magnetization through current, incorporating a sequence control circuit to manage write, read, and erase operations with extended standby times to improve random number quality, and feedback control to maintain magnetization reversal probability at 50%, enhancing efficiency and stability.

Benefits of technology

Generates high-quality true random numbers with reduced hardware and power consumption by leveraging the stochastic magnetization reversal in MTJ elements, ensuring aperiodicity and improved random number quality through controlled sequence and feedback mechanisms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007553293000002
    Figure 0007553293000002
  • Figure 0007553293000007
    Figure 0007553293000007
  • Figure 0007553293000013
    Figure 0007553293000013
Patent Text Reader

Abstract

To generate a random number of high quality.SOLUTION: A random number generator includes a writing unit, a reading unit, and a signal output unit. The writing unit stochastically inverts magnetization of a magnetic layer by passing a current through the magnetic layer of a magnetic tunnel junction element. The reading unit reads the magnetization. The signal output unit generates a random number based on the magnetization read by the reading unit. The random number generator includes a sequence control unit for controlling the writing unit and the reading unit. The sequence control unit controls to cause the writing unit to flow a current during a first period, and to cause the reading unit to read the magnetization after an elapse of a second period which is longer than the first period after an end of the first period.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] SUMMARY OF THE DISCLOSURE The embodiments disclosed herein relate to a random number generator. [Background technology]

[0002] One method for generating random numbers is to use a mathematical algorithm.

[0003] However, the random numbers generated by these mathematical algorithms are pseudo-random numbers based on deterministic calculations, so they are not truly random numbers (called true random numbers) and have a certain periodicity. In addition, they are inherently vulnerable in that if the initial value is identified, the random numbers can be perfectly reproduced. From this perspective, it is essential for practical use to generate true random numbers that do not have a certain periodicity. [Prior art documents] [Non-patent literature]

[0004] [Non-Patent Document 1] S. Mukaida, N. Onizawa, and T. Hanyu, “Design of a low-powerMTJ-based true random number generator using a multi-voltage / current converter”, 2018 IEEE 48th International Symposium on Multiple-Valued Logic (ISMVL), May 2018, pp. 156-161 Summary of the Invention [Problem to be solved by the invention]

[0005] One of the problems that the embodiments disclosed in this specification etc. aim to solve is to generate high-quality (i.e., highly random) random numbers at the lowest possible cost (i.e., with a small amount of hardware and with hardware that consumes little power). However, the problems solved by the embodiments disclosed in this specification etc. are not limited to the above problem. Problems corresponding to the effects of each configuration shown in the embodiments described below can also be positioned as other problems solved by the embodiments disclosed in this specification etc. [Means for solving the problem]

[0006] A random number generator according to an embodiment includes a writing unit, a reading unit, and a signal output unit. The writing unit stochastically reverses the magnetization of a magnetic layer of a magnetic tunnel junction element by passing a current through the magnetic layer. The reading unit reads the magnetization. The signal output unit generates a random number based on the magnetization read by the reading unit. The random number generator includes a sequence control unit that controls the writing unit and the reading unit, and the sequence control unit controls the writing unit to pass a current during a first period, and after the first period ends, causes the reading unit to read the magnetization after a second period that is longer than the first period has elapsed. [Brief description of the drawings]

[0007] [Figure 1] FIG. 1 is a diagram illustrating a random number generator according to an embodiment. [Diagram 2] FIG. 2 is a diagram illustrating a magnetic tunnel junction element used in the random number generator according to the embodiment. [Diagram 3] FIG. 3 is a diagram illustrating an example of a sequence chart of a random number generator according to a comparative example. [Figure 4] FIG. 4 is a diagram illustrating the accumulation of charge in an MTJ element in a random number generator according to a comparative example. [Diagram 5] FIG. 5 is a diagram illustrating an example of a sequence chart of the random number generator according to the embodiment. [Figure 6]FIG. 6 is a diagram illustrating the accumulation of charge in an MTJ element in a random number generator according to an embodiment. [Figure 7] FIG. 7 is a diagram showing an example of a circuit of a random number generator according to an embodiment in the case where one MTJ element is used. [Figure 8] FIG. 8 is a diagram illustrating an example of a circuit of a random number generator according to an embodiment in the case where free layer terminals of a plurality of MTJ elements are connected in series to each other. [Figure 9] FIG. 9 is a diagram showing an example of a sequence chart of the random number generator according to the embodiment in the case where the free layer terminals of a plurality of MTJ elements are connected in series to each other. [Figure 10] FIG. 10 is a diagram showing the configuration of a signal output circuit in a random number generator according to an embodiment. [Figure 11] FIG. 11 is a diagram illustrating the background according to the embodiment. [Figure 12A] FIG. 12A is a diagram illustrating an example of a signal output circuit in a random number generator according to an embodiment. [Figure 12B] FIG. 12B is a diagram illustrating an example of a circuit of a differential amplifier in the random number generator according to the embodiment. [Figure 12C] FIG. 12C is a diagram illustrating an example of a circuit of a reference circuit in a random number generator according to an embodiment. [Figure 13] FIG. 13 is a diagram showing an example of a signal output circuit of a random number generator according to an embodiment in which a plurality of MTJ elements connected in series are further connected in parallel. [Figure 14A] FIG. 14A is a diagram illustrating an example of a sequence chart of the random number generator according to the embodiment. [Figure 14B] FIG. 14B is a diagram illustrating an example of a sequence chart of the random number generator according to the embodiment. [Figure 15] FIG. 15 is a diagram showing another example of a sequence chart of the random number generator according to the embodiment. [Figure 16] FIG. 16 is a diagram illustrating an example of a circuit of a random number generator according to an embodiment. [Figure 17]FIG. 17 is a diagram illustrating an example of a circuit of a random number generator according to an embodiment. [Figure 18] FIG. 18 is a diagram showing a configuration of a feedback processing circuit of a random number generator according to an embodiment. [Figure 19] FIG. 19 is a flowchart showing the flow of feedback control processing performed by the random number generator according to the embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0008] Hereinafter, an embodiment of a random number generator will be described in detail with reference to the drawings. Here, the same components are denoted by the same reference numerals, and duplicated explanations will be omitted.

[0009] (First embodiment) 1 is a diagram showing a random number generator 100 according to the first embodiment and peripheral devices connected to the random number generator 100. The random number generator 100 includes an MTJ element 110, a sequence control circuit 160, an MTJ control circuit 200, a signal output circuit 150, a buffer 190, and a feedback control circuit 180, and is appropriately connected to an input device 201, a memory 210, a display 220, and a processing circuit 230. The MTJ control circuit 200 includes a VI converter 115, a write circuit 120, a read circuit 130, and an erase circuit 140. The sequence control circuit 160, the write circuit 120, the read circuit 130, the erase circuit 140, the signal output circuit 150, and the feedback control circuit 180 are examples of a sequence control unit, a write unit, a read unit, an erase unit, a signal output unit, and a feedback control unit, respectively.

[0010] The MTJ element 110 is an element that uses a magnetic tunnel junction, which will be described later. The write circuit 120, the read circuit 130, and the erase circuit 140 are each configured, for example, by a circuit that controls writing, reading, and erasing for the MTJ element 110. The sequence control circuit 160 is configured, for example, by an electronic circuit, and controls the operations of the write circuit 120, the read circuit 130, and the erase circuit 140. Here, when controlling the write circuit 120, the sequence control circuit 160 applies a voltage to a VI converter 115 configured by a predetermined electronic circuit, and the VI converter 115 converts the applied voltage into a current, thereby controlling the write circuit 120. The sequence control circuit 160 typically includes a DAC (Digital Analog Converter) that converts a digital input into an analog signal. The signal output circuit 150, the buffer 190, and the feedback control circuit 180 are each composed of a specific electronic circuit, etc., and each performs the process of reading the voltage value when a read current is passed through the MTJ element 110 and generating a random number bit value, the process of temporarily storing the output random number, and the process of performing feedback control of the random number generator 100, respectively.

[0011] The input device 201 is an input device that receives various instructions and information input from an operator, and is, for example, a pointing device such as a mouse or a trackball, a selection device such as a mode changeover switch, or a keyboard. The memory 210 is a memory that stores random numbers generated by the random number generator 100 and various data, and is, for example, a random access memory (RAM), a semiconductor memory element such as a flash memory, a hard disk, an optical disk, etc. The display 220 is a display that displays various analysis results, etc. to the user, and is, for example, a display device such as a liquid crystal display.

[0012] The random numbers generated by the random number generator 100 are used in the programs executed by the processing circuit 230. The processing circuit 230 is a processor that realizes functions corresponding to each program by reading the programs from the memory 210 and executing them. Note that the term "processor" here means a circuit such as a CPU (Central Processing Unit), a GPU (Graphical Processing Unit), an Application Specific Integrated Circuit (ASIC), a programmable logic device (e.g., a Simple Programmable Logic Device (SPLD), a Complex Programmable Logic Device (CPLD), and a Field Programmable Gate Array (FPGA)). The processor realizes functions by reading and executing the programs stored in the memory 230.

[0013] Each part will be described in detail below with reference to FIGS.

[0014] As for the overall configuration of this specification, first, the operation of the magnetic tunnel junction (MTJ) element 110 and the principle of random number generation are described with reference to FIG. 2. In FIG. 3 to FIG. 7, a configuration in which a deactivation time is used when a sequence is executed in the random number generator 100 according to the first embodiment is described. In FIG. 8 and FIG. 9, a configuration in which a plurality of magnetic tunnel junction elements 110 are connected in series is described. In FIG. 10 to FIG. 12C, a configuration in which differential amplification is performed in the signal processing of the signal output circuit 150 is described. In FIG. 13 to FIG. 15, a configuration in which the magnetic tunnel junction elements 110 connected in series are further connected in parallel is described. In FIG. 16 to FIG. 17, further embodiments are described. In FIG. 18 to FIG. 19, feedback control of the random number generator, particularly three-state feedback control, is described.

[0015] First, the operation of the magnetic tunnel junction (MTJ) element 110 and the principle of how the random number generator 100 according to the embodiment generates random numbers will be described with reference to FIG.

[0016] FIG. 2 shows the configuration of a magnetic tunnel junction (MTJ) 110. The MTJ element 110 is configured with a laminated structure in which a nanometer-scale thin insulating layer is sandwiched between two ferromagnetic layers, and typically includes a reference layer 11, which is a ferromagnetic layer whose magnetization direction is difficult to reverse, a free layer 10, which is a ferromagnetic layer whose magnetization direction is easy to reverse, and an insulator 12 (tunnel barrier) between them. Here, due to the tunnel magnetoresistance (TMR) effect, the electrical resistance between the reference layer 11 and the free layer 10 changes depending on the magnetization direction of the free layer 10 relative to the magnetization of the reference layer 11. Specifically, if the magnetization directions are the same, the resistance is low, and if they are opposite, the resistance is high. By utilizing this, the MTJ element 110 can be used as, for example, a memory.

[0017] Incidentally, the magnetization direction of the free layer 10 of the MTJ element 110 can be reversed by spin injection magnetization reversal. That is, in FIG. 2, if the write circuit 120 flows a write current 16 from the terminal 14 to the terminal 15, for example, from left to right, to the free layer 10 of the MTJ element 110, the magnetization direction of the free layer 10 is reversed with a certain probability according to the current flow. Here, when the magnetization direction of the free layer 10 is reversed, the electric resistance between the reference layer 11 and the free layer 10 changes, so that the read circuit 130 flows a read current 17 between the terminal 13 and the terminal 14 and the terminal 15, that is, between the reference layer 11 and the free layer 10 with the insulator 12 sandwiched therebetween, and measures the voltage value between the terminal 13 and the terminal 14 or the terminal 15, thereby reading out the electric resistance between the reference layer 11 and the free layer 10. The probability that the magnetization direction of the free layer 10 is reversed varies depending on the magnitude of the current passed by the write circuit 120. At the limit of a small current, the probability that the magnetization direction is reversed is close to 0%, and at the limit of a large current, the probability that the magnetization direction is reversed is close to 100%. In other words, by appropriately selecting the magnitude of the current passed by the write circuit 120, the probability that the magnetization direction of the free layer 10 is reversed can be adjusted to approximately 50%. As will be described later, when the MTJ element 110 is used as a random number generator, the value of the current passed by the write circuit 120 during writing is set to a value that makes the probability that the magnetization direction of the free layer 10 is reversed approximately 50%.

[0018] In addition, the erase circuit 140 can reset the magnetization of the free layer 10 by, for example, passing a sufficiently large current through the free layer 10 of the MTJ element 110 in the opposite direction to the write current, i.e., a current such that the probability that the magnetization direction of the free layer 10 will reverse and return to its original state is nearly 100%.

[0019] Next, random number generation using the MTJ element 110 will be described.

[0020] One method for generating random numbers is to use a predetermined mathematical algorithm to generate random numbers. However, the random numbers generated by these mathematical algorithms are pseudo-random numbers generated by deterministic calculations, and therefore are not true random numbers but have a certain periodicity. From this perspective, it is desirable to generate random numbers that do not have a certain periodicity. Here, for example, if the phenomenon of magnetization reversal when a current is passed through is used to generate random numbers, the non-periodicity of the generated random numbers is physically guaranteed, since the reversal of magnetization when a current is passed through is a probabilistic process given by quantum mechanics.

[0021] Here, as described above, when the write circuit 120 applies the above-mentioned predetermined write current, the magnetization direction of the free layer 10 is reversed with approximately a 50% probability. Therefore, after the write circuit 120 applies the write current, the read circuit 130 measures the electrical resistance between the reference layer 11 and the free layer 10, and by setting, for example, a high resistance state to "1" and a low resistance state to "0", it is possible to obtain binary signals that are "1" and "0" with a 50% probability for the write current of the write circuit 120, respectively. In this way, the MTJ element 110 can be used as a random number generator 100.

[0022] Next, a description will be given of the control performed by the sequence control circuit 160. The sequence control circuit 160 controls the MTJ element 110 by transmitting control signals to the write circuit 120, the read circuit 130, and the erase circuit 140.

[0023] First, the control performed by the sequence control circuit 160 in the random number generator 100 according to the comparative example will be described.

[0024] FIG. 3 shows an example of a sequence executed by the sequence control circuit 160 in the random number generator 100 according to the comparative example.

[0025] First, the sequence control circuit 160 applies a write voltage 1 to the VI converter 115 in the write period 5. The write circuit 120 passes the write current 16 generated by the VI converter 115 to the free layer 10 of the MTJ element 110. This causes the magnetization of the free layer 10 to be reversed with a certain probability. Then, in the read period 6 immediately after the write period 5, the read circuit 130 under the control of the sequence control circuit 160 applies a read voltage 2. This causes the resistance between the free layer 10 and the reference layer 11 to be read. The signal output circuit 150 generates a 1-bit random number 4 based on the voltage value when the read current is passed through the MTJ element 110. Then, the erase circuit 140 under the control of the sequence control circuit 160 applies an erase voltage 3 in the erase period 7, causing a current to flow in the opposite direction to the write current 16. This causes the magnetization of the free layer 10 of the MTJ element 110 to be reset. Here, the write period 5, the read period 6, and the erase period 7 are each approximately 5 ns, and these periods are approximately continuous periods.

[0026] However, in such a sequence chart of the comparative example, the quality of the generated random numbers may be degraded.

[0027] Therefore, we have focused on the accumulation of charge in the free layer 10 as one of the causes of the degradation in the quality of the random numbers generated when using the sequence chart of the comparative example in FIG.

[0028] 4 shows the results of a simulation of the charge stored in the free layer 10 in the sequence chart of the comparative example. That is, when the sequence chart of the comparative example is executed, as shown in graph 9a, in the erase period 7, the charge storage parameter changes from 0 to 1, and charge is stored. Then, as shown in graph 9b, in the write period 5, the charge storage parameter changes from 1 to -0.23. Then, as shown in graph 9c, in the read period 6, the charge storage parameter slowly recovers from -0.23.

[0029] That is, in the sequence according to the comparative example, the charge accumulation parameter takes a non-zero value at the start of the readout period 6, and some of the charge remains in the free layer 10 at the start of the readout period 6. As a result, the quality of the generated random numbers may be degraded.

[0030] The embodiment is based on such findings. That is, the random number generator 100 of the embodiment includes a write circuit 120 that stochastically reverses the magnetization of the magnetic layer of a magnetic tunnel junction element by passing a current through the magnetic layer, a read circuit 130 that reads the magnetization, a signal output circuit 150 that generates a random number based on the magnetization read by the read circuit 130, and a sequence control circuit 160 that controls the write circuit 120 and the read circuit 130, and the sequence control circuit 160 controls the write circuit 120 to pass a current during a first period, and after the first period ends and a second period has elapsed, causes the read circuit 130 to read the magnetization. Here, the second period is typically longer than the first period, for example, three times or more the first period, for example, 15 ns or more. This can improve the quality of the generated random numbers.

[0031] FIG. 5 shows an example of a sequence executed by the sequence control circuit 160 in the random number generator 100 according to the embodiment.

[0032] First, in a write period 5, which is a first period, the sequence control circuit 160 applies a write voltage 1 to the VI converter 115 and controls the write circuit 120 to pass a current. The write period 5 is, for example, 5 ns, and the write current is, for example, 100 μA.

[0033] Next, the sequence control circuit 160 makes the reading circuit 130 wait for a second period 8a, which is the time until the electric charge accumulated in the free layer 10, which is a magnetic layer, disappears. Hereinafter, the second period 8a is referred to as a waiting time (deactivation time) as necessary. The second period 8a, which is the time until the electric charge accumulated in the free layer 10, which is a magnetic layer, disappears, is typically longer than the first period 5, and is, for example, three times or more longer than the first period, for example, 15 ns.

[0034] Next, after the first period ends and the second period 8a elapses, the sequence control circuit 160 causes the read circuit 130 to apply the read voltage 2 and read the magnetization during the read period 6. The read period is, for example, 5 ns, and the read current is about 10 μA.

[0035] Next, the sequence control circuit 160 applies the erase voltage 3 to the erase circuit 140 in the erase period 7 to reset the magnetization of the free layer 10 of the MTJ element 110. Here, the erase current is approximately −600 μA.

[0036] Next, the sequence control circuit 160 causes the write circuit 120 to wait for a third period 8b, which is the time until the charge stored in the free layer 10, which is a magnetic layer, is dissipated by the erase circuit 140. The third period 8b, which is the time until the charge stored in the free layer 10, which is a magnetic layer, is dissipated by the erase circuit 140, is typically longer than the erase period 7, and is, for example, three times or more longer than the erase period, for example, 15 ns.

[0037] 6 shows the results of a simulation of the charge accumulated in the free layer 10 in the sequence chart according to the embodiment. That is, when the sequence chart according to the embodiment is executed, as shown in graph 9d, the parameter representing the charge accumulation changes from 0 to -0.5 during the write period 9d, and the charge is accumulated in the free layer 10 after the end of the write period 9d. However, by inserting a waiting time of 15 ns, as shown in curve 9e, the parameter representing the charge accumulation becomes 0 at the end of the waiting time. As a result, as shown in graph 9f, the parameter representing the charge accumulation during the readout period remains at 0. As a result, the quality of the generated random numbers is improved.

[0038] Subsequently, as shown in graph 9g, the parameter representing the charge accumulation changes from 0 to 1 by the erase period 9g, and after the erase period 9g ends, charge is accumulated in the free layer 10, but by inserting a waiting time of 15 ns, the parameter representing the charge accumulation becomes 0 at the end of the waiting time, as shown in curve 9h. In other words, the parameter representing the charge accumulation of the MTJ shown in FIG. 4, FIG. 6, and described above is defined by the magnetization reversal probability P, and when the MTJ is positively charged by the erase or write current, it exhibits an operation equal to the reversal probability P, and when the MTJ is negatively charged, it exhibits an operation equal to the reversal probability P with a negative sign. As a result, the parameter representing the charge accumulation can be started from a state of 0, improving the quality of the generated random numbers.

[0039] In this way, by incorporating the period until the electric charge accumulated in the magnetic layer disappears as a waiting time into the sequence, the quality of the generated random numbers can be improved.

[0040] Fig. 7 shows the circuit configuration of the random number generator 100 when one MTJ element is used. In Fig. 1 and Fig. 7, the configurations to which the same reference numerals are assigned correspond to each other. The differential amplifier 151 and the DAC 184 will be described in Fig. 10 and Fig. 18, respectively.

[0041] 5 and 7, the random number generator 100 generates random numbers using only one MTJ element 110, but the embodiment is not limited thereto. The random number generator 100 may have a plurality of MTJ elements 110 connected in series. This allows random numbers to be generated for the plurality of MTJ elements 110 by injecting a current once. A configuration in which a plurality of magnetic tunnel junction elements 110 are connected in series will be described with reference to FIGS. 8 and 9. FIG. 8 shows an example of a circuit in which a plurality of MTJ elements are connected in series, and FIG. 9 shows an example of a sequence chart in such a case.

[0042] In FIG. 8, a plurality of MTJ elements 110, MTJ1 to MTJ 10 Here, the multiple MTJ elements 110, MTJ1 to MTJ 10 are connected in series means that the free layers 10 of the elements are connected in series, and therefore, when the write circuit 120 passes a current once, the magnetization direction of each of the free layers 10 of the multiple MTJ elements 110 is reversed at once with a certain probability by the current. That is, writing to the multiple MTJ elements 110 is performed at once. In other words, the write circuit 120 passes a current through the multiple MTJ elements 110, thereby stochastically reversing the magnetization of the magnetic layer of each of the multiple MTJ elements independently of each other. Note that, since the reversal of the magnetization direction by a current is a stochastic phenomenon, for example, even if the magnetization direction of a certain MTJ element 110 is reversed, the magnetization direction of the adjacent MTJ element 110 is not necessarily reversed in the same way, and whether or not the magnetization direction is reversed is observed independently for each MTJ element 110.

[0043] 8, reading from each MTJ element 110 is performed independently for each MTJ element 110. That is, reading from the multiple MTJ elements 110 is performed sequentially for each MTJ element 110. That is, the read circuit 130 reads the magnetization (i.e., the magnitude of the resistance value according to the magnetization state) of each of the multiple MTJ elements.

[0044] FIG. 9 shows an example of a sequence chart when multiple magnetic tunnel junction elements 110 are connected in series. The configuration is the same as FIG. 5, which is a sequence chart when random numbers are generated using one magnetic tunnel junction element 110, except for the read voltage 2 applied during the read period 6, so repeated explanations will be omitted. When multiple magnetic tunnel junction elements 110 are connected in series, the read period 6 is composed of read periods 12a, 12b, 12c, ... for each MTJ element. For example, the read circuit 130 reads the first MTJ element MTJ1 during the read period 12a, reads the second MTJ element MTJ2 during the read period 12b, and reads the third MTJ element MTJ3 during the read period 12c, and these reads are performed sequentially.

[0045] In this way, since random bits are generated independently for each MTJ element, the random number generator 100 according to the embodiment can generate multiple bits of random numbers in one read period 6, thereby increasing the efficiency of random number generation.

[0046] Next, the signal processing of the signal output circuit 150 for the output signal from the MTJ element 110 will be described with reference to FIGS. 10 to 12C.

[0047] Fig. 10 is a diagram showing the configuration of a signal output circuit in a random number generator according to an embodiment. As shown in Fig. 10, in the embodiment, a differential amplifier 151 amplifies a difference between a voltage obtained by a read current that a read circuit 130 passes through an MTJ element 110 and a voltage obtained by a reference current obtained by a reference circuit 152 (described later), so that the signal output circuit 150 generates an output signal.

[0048] First, the background of the signal output circuit 150 having such a configuration will be described with reference to Fig. 11. Fig. 11 shows an example of the circuit configuration of the read circuit 130. In the circuit of Fig. 11, the output voltage 20 in the read circuit 130 and the threshold voltage V of the inverter INV1 are TH1 For example, the output voltage 20 is compared with the threshold voltage V TH1If it exceeds the output result V out becomes 1, and the output voltage 20 becomes the threshold voltage V TH1 If it is less than V, the output result is out is 0. Normally, when the MTJ element 110 has a low resistance, the output voltage 20 is equal to or lower than the threshold voltage V TH1 Conversely, when the MTJ element 110 has a high resistance, the threshold voltage V TH1 It is designed to exceed.

[0049] However, the electronic circuit of the read circuit 130 has resistance variations in elements such as the MTJ element 110 and the switching element circuit itself. As a result, even if the MTJ element 110 has a low resistance, the threshold voltage V TH1 If the MTJ element 110 has a high resistance, or conversely, if the MTJ element 110 has a high resistance, the threshold voltage V TH1 If the input voltage drops below 0, the circuit may not function properly, resulting in the output always being 0 or 1.

[0050] In view of this background, in the random number generator 100 according to the embodiment, the signal output circuit 150 is provided with a reference circuit 152 for acquiring the electrical characteristics of the magnetic tunnel junction element. Next, a differential amplifier 151 performs differential amplification between the signal output by the read circuit 130 and the signal output by the reference circuit to generate a differentially amplified signal that is the basis of the random number, and outputs the signal to the downstream circuit. This makes it possible to stabilize the operation of the read circuit 130, which is affected by the variation of the circuit itself.

[0051] An example of such a circuit configuration is shown in Figures 12A, 12B, and 12C. Figure 12A shows the overall configuration of a signal output circuit 150, and the read circuit 130 and differential amplifier 151 in Figure 12A correspond to the corresponding configurations in Figure 10, respectively. Figure 12B is a diagram showing the differential amplifier 151 and the reference circuit 152 connected to the differential amplifier 151 in more detail. As shown in Figure 12B, the differential amplifier 151 amplifies the difference between the output voltage 153 from the read circuit 130 and the output voltage from the reference circuit 152, and outputs the amplified difference to the downstream circuit. Here, the voltage output by the reference circuit 152 is calculated by dividing the voltage of the MTJ element 110 when the resistance is low by V L and the voltage V H For example, (V L +V H ) / 2. This allows the signal output circuit 150 to stably output a signal value of “0” to the downstream circuit when the MTJ element 110 has a low resistance, and to stably output a signal value of “1” to the downstream circuit when the MTJ element 110 has a high resistance.

[0052] Next, the operation of the reference circuit 152 will be described. FIG. 12C is an internal circuit diagram of a circuit 170 that determines a reference resistance value of an MTJ element in the reference circuit 152. Here, the circuit 170 in the reference circuit 152 has two MTJ elements connected in series. The series connection here is different from the above, and refers to a connection when the MTJ element is considered as a variable resistance element. As an example, as shown in FIG. 12C, in the circuit 170, an MTJ element 174 and an MTJ element 175 are arranged so as to be connected in series in a path 173 during resistance reading.

[0053] Here, the reference circuit 152 uses the write path 171 and the write path 172 to pass large currents in mutually opposite directions to the MTJ element 174 and the MTJ element 175, thereby adjusting one of the resistances of the MTJ element 174 and the MTJ element 175 so that one becomes a resistance at the time of low resistance and the other becomes a resistance at the time of high resistance. As an example, the reference circuit 152 passes currents in mutually opposite directions to the MTJ element 174 and the MTJ element 175 in the direction shown in FIG. 12C, thereby adjusting the resistance of the MTJ element 174 to a high resistance R H state, and the resistance of the MTJ element 175 is set to a low resistance R L To make it a state.

[0054] Next, the reference circuit 152 changes the operation of the circuit from the write path 171 and the write path 172 to the read path 173. At this time, the MTJ element 174 and the MTJ element 175 are connected in series, so the combined resistance of the circuit is R L +R H Therefore, when the read path 173 is in operation, the circuit 170 causes a current of I / 2 to flow through the read path 173, so that (V L +V R ) / 2. By adopting such a configuration, the operation of the signal output circuit 150 can be stabilized.

[0055] 13 to 15, a configuration in which the serially connected magnetic tunnel junction elements 110 are further connected in parallel will be described. By further connecting the serially connected magnetic tunnel junction elements 110 in parallel, the number of random numbers that can be generated per unit time can be increased, and the random number generation efficiency can be further improved.

[0056] Such a situation is illustrated in Figures 13, 14A and 14B.

[0057] FIG. 13 shows an example of a circuit configuration in which the magnetic tunnel junction elements 110 connected in series are further connected in parallel. That is, a random number generator 100 is connected in parallel to a plurality of MTJ elements 110 connected in series. In the example of FIG. 13, five MTJ elements 110, MTJ01, MTJ02, MTJ03, MTJ04, and MTJ05, are connected in series, and these are connected in parallel to three columns, RBG_0, RBG_1, and RBG_2. Here, for each MTJ element, the write circuit 120, the read circuit 130, and the erase circuit 140 perform the above-mentioned processes to write, read, and erase signals. Here, the write process is performed simultaneously for one column of MTJ elements, whereas the read process is performed sequentially for each MTJ element. For example, the read circuit 130 performs read processes sequentially for each of the MTJ elements, MTJ01, MTJ02, MTJ03, MTJ04, and MTJ05. Moreover, the signal output circuit 150 compares the voltage value when a read current is passed through each MTJ element with the output result of the above-mentioned reference circuit 152, performs differential amplification processing by the differential amplifier 151, and generates a random number signal, generating a column of random number signals. For example, the signal output circuit 150 compares the output voltage when a read current is passed through the MTJ element MTJ01 with the output voltage output by the reference circuit 152 corresponding to the MTJ element MTJ01, performs differential amplification processing by the differential amplifier DA01, and generates one random number signal. The signal output circuit 150 also compares the output voltage when a read current is passed through the MTJ element MTJ02 with the output voltage output by the reference circuit 152 corresponding to the MTJ element MTJ02, performs differential amplification processing by the differential amplifier DA02, and generates one random number signal. The same processing is performed for the MTJ elements MTJ03, MTJ04, MTJ05, etc., and a plurality of these single random number signals are combined to generate one column of random number signals.

[0058] Thus, as shown in FIG. 13, the signal output circuit 150 generates a column of random number signals 154a (random number sequence RN0) for column RBG_0 based on the voltage values ​​obtained when a read current is passed through MTJ elements MTJ01, MTJ02, MTJ03, MTJ04, and MTJ05, generates a column of random number signals 154b (random number sequence RN1) for column RBG_1 based on the voltage values ​​obtained when a read current is passed through MTJ elements MTJ11, MTJ12, MTJ13, MTJ14, and MTJ15, and generates a column of random number signals 154c (random number sequence RN2) for column RBG_2 based on the voltage values ​​obtained when a read current is passed through MTJ elements MTJ21, MTJ22, MTJ23, MTJ24, and MTJ25. Next, the signal output circuit 150 combines the random number signal 154a, the random number signal 154b, and the random number signal 154c at the OR gate 155 to continuously generate random numbers and outputs the result to the buffer 190. That is, the signal output circuit 150 generates random numbers by integrating information obtained from the individual MTJ elements connected in parallel. The buffer 190 temporarily stores the signal output by the signal output circuit 150, and when a random number sequence of an appropriate length is generated, it outputs the final generated random number sequence to the processing circuit 230.

[0059] The role of the buffer 190 is to equalize the time intervals of the bit strings output in multiple cycles. Since the sequence according to the embodiment includes a waiting time, the generated random number string is likely to be uneven in time, but the existence of the buffer 190 makes the generated random number string even in time.

[0060] In addition, the output terminal of the signal output circuit 150 is connected to a feedback control circuit 180, and feedback control of the current input to the MTJ element 110 is also performed.

[0061] FIG. 14A shows an example of a sequence executed by the sequence control circuit 160 when executing such a process. In a write period 1a, the write circuit 120, under the control of the sequence control circuit 160, passes a current generated based on a voltage input to the VI converter 115 through the column RBG_0, that is, through the MTJ elements MTJ01, MTJ02, etc. In a read period 2a, the read circuit 130, under the control of the sequence control circuit 160, applies a read voltage to the MTJ elements MTJ01, MTJ02, etc. after a predetermined waiting time (Deactivation Time) of 15 ns has elapsed since the write period 1a. After the read period 2a has elapsed, the erase circuit 140 resets the magnetization of the MTJ elements MTJ01, MTJ02, etc. in an erase period 3a. In addition, the write circuit 120 performs a write process again after a predetermined waiting time has elapsed since the reset of the magnetization.

[0062] In addition, for the column RBG_1 adjacent to these columns, that is, the MTJ elements MTJ11, MTJ12, etc., the write circuit 120, under the control of the sequence control circuit 160, in a write period 1b immediately after the write period 1a has elapsed, flows a current generated based on a voltage input to the VI converter 115 to the MTJ elements MTJ11, MTJ12, etc. Similarly, under the control of the sequence control circuit 160, the read circuit 130 applies a read voltage to the MTJ elements MTJ11, MTJ12, etc. in a read period 2b after a predetermined waiting time of 15 ns has elapsed since the write period 1b. After the read period 2b has elapsed, the erase circuit 140 resets the magnetization of the MTJ elements MTJ11, MTJ12, etc. in an erase period 3b. After a predetermined waiting time has elapsed since the reset of the magnetization, the write circuit 120 performs a write process again.

[0063] Similarly, for the column RBG_2, which is the next column, that is, the MTJ elements MTJ21, MTJ22, etc., the write circuit 120, under the control of the sequence control circuit 160, in a write period 1c immediately after the write period 1b has elapsed, flows a current generated based on a voltage input to the VI converter 115 to the MTJ elements MTJ21, MTJ22, etc. Similarly, under the control of the sequence control circuit 160, the read circuit 130 applies a read voltage to the MTJ elements MTJ21, MTJ22, etc. in a read period 2c after a predetermined waiting time has elapsed since the write period 1c. After the read period 2c has elapsed, the erase circuit 140 resets the magnetization of the MTJ elements MTJ21, MTJ22, etc. in an erase period 3c. After a predetermined waiting time has elapsed since the reset of the magnetization, the write circuit 120 performs a write process again.

[0064] Next, the generated random number sequence will be described with reference to Fig. 14B. The sequence chart in Fig. 14B shows the timing at which a read voltage is applied to each column and the generated random number sequence.

[0065] First, the read circuit 130 applies a read voltage to the MTJ elements MTJ01, MTJ02, etc., for the column RBG_0 in the read period 2a, and the signal output circuit 150 generates a random number signal 154a (random number sequence RN0) accordingly. Specifically, the read circuit 130 applies a read voltage to the MTJ element MTJ01 in the read period 2a, and the signal output circuit 150 generates a random number signal 15a accordingly. The read circuit 130 applies a read voltage to the MTJ element MTJ02 in the read period 2a, and the signal output circuit 150 generates a random number signal 15b accordingly. The read circuit 130 applies a read voltage to the MTJ element MTJ03 in the read period 2a, and the signal output circuit 150 generates a random number signal 15c accordingly. Through this series of processes, the signal output circuit 150 generates a random number signal 154a (random number sequence RN0).

[0066] Similarly, for column RBG_1, the read circuit 130 applies a read voltage to the MTJ elements MTJ11, MTJ12, etc. in a read period 2b, and the signal output circuit 150 accordingly generates a random number signal 154b (random number sequence RN1). Also, for column RBG_2, the read circuit 130 applies a read voltage to the MTJ elements MTJ21, MTJ22, etc. in a read period 2c, and the signal output circuit 150 accordingly generates a random number signal 154c (random number sequence RN2).

[0067] Here, the OR gate 155 performs an OR operation between the random number sequence RN0 generated for the sequence RBG_0, the random number sequence RN1 generated for the sequence RBG_1, and the random number sequence RN2 generated for the sequence RBG_2. This allows the signal output circuit 150 to continuously generate random number sequences throughout the entire period 16, as shown in the bottom row of Fig. 14B.

[0068] The embodiment is not limited to the above example, and for example, nine MTJ elements 110 may be connected in parallel as shown in FIG. 15. The reason for connecting nine MTJ elements 110 in parallel as shown in FIG. 15 is as follows. That is, when one MTJ element 110 is focused on, one bit of random number is generated every 45 ns. Also, when one MTJ element 110 is focused on, the time required for reading is 5 ns. Therefore, if 45 ns÷5 ns=9 parallel, data is always being read from one of the MTJ elements. Therefore, by adding the digital signals of each of these parallel circuits by an OR circuit, the signal output circuit 150 can continuously generate random numbers without waiting time.

[0069] 16 shows the configuration of the random number generator 100 in which the number of MTJ elements connected in series is n, which is the maximum number that can be connected. The maximum number n is the maximum I of the write current for which the magnetization reversal probability of the MTJ, which is determined by temperature and process fluctuations, is 50%. SW_max and the minimum power supply voltage requirement V DD_min The resistance between the write electrodes of the MTJ is R w_mtj Let the source-drain voltage of each MOS along the write current path shown in the figure be V.sd_1 ,V sd_2 ,V sd_3 , V sd_4 Then, the potential drop between the write electrodes n0-n1 of the n MTJs connected in series is I SW_max ×R w_mtj ×n <V DD_min -(V sd_1 +V sd_2 +V sd_3 +V sd_4 In other words, the random number generator 100 can determine the maximum value I of the write current of the MTJ element. SW_max and the power supply voltage condition V DD_min A number n of the magnetic tunnel junction elements determined based on the above is connected in series and arranged.

[0070] 17 shows a sequence of the random number generator 100 in which n MTJ elements connected in series are arranged into m columns, which is the maximum number that can be connected in parallel. In the figure, each of the columns RBG0 to RBGG1 is composed of n MTJ elements connected in series. m-1 Write period t W , read period t R , erasure period t E The predetermined waiting time is 15ns and the read period is t R and the write period t W The timing of the operation immediately before and each read period t R The readout period per MTJ element is t RS The continuous read period of n MTJs is t R =t RS ×n, and each column RBG0 to RBG m-1 The timing of the operation is the read period t R By shifting the timing, one period is created. CYC A continuous random number sequence RN is generated from n × m MTJs during a period of t. Therefore, the maximum number m of parallel connected random number generation sequences is CYC / t R The arithmetic unit is determined as the largest integer not exceeding .

[0071] Next, the feedback control performed by the random number generator 100 according to the embodiment will be described with reference to FIGS.

[0072] Here, feedback control refers to a process of controlling the value of the current input by the write circuit 120 to the MTJ element 110 based on the signal output circuit 150. That is, the feedback control circuit 180 controls the current flowing through the magnetic layer of the MTJ element 110. More specifically, the value of the current input by the write circuit 120 to the MTJ element 110 is controlled by controlling the value of the voltage input to the VI converter 115. The feedback control circuit 180 includes a binary counter 181, a digital comparator 182, an up / down counter 183, a DAC 184, and a one hot encoder 185.

[0073] The binary counter 181 is a counter that counts the number of random numbers output from the signal output circuit 150. The digital comparator 182 is a comparator that compares the output result output from the binary counter 181 with a threshold value. The up-down counter 183 is a counter that indicates the magnitude of the voltage input to the VI converter. The up-down counter is, for example, a 10-bit counter, that is, the voltage value input to the VI converter is expressed by a 10-bit digital signal. The one-hot encoder 185 is a circuit that outputs an input in which the signal value is 1 for only one bit and the signal values ​​are 0 for all other bits. The DAC (Digital Analog Converter) 184 is a circuit that converts a digital input into an analog signal. The VI converter 115 is a circuit that converts an input voltage into a current and outputs it. In the following embodiment, a case will be described in which the VI converter 115 is a multi-VI converter that can operate with 8 modes of different VI conversion characteristics. The binary counter 181, the digital comparator 182, the up / down counter 183, the DAC 184, and the VI converter 115 are realized as, for example, predetermined electronic circuits.

[0074] First, the reason why feedback control is necessary in the random number generator 100 using the MTJ element 110 will be briefly explained.

[0075] The operating principle of the random number generator 100 using the MTJ element 110 is that the magnetization reversal of the free layer 10 when a current I is injected into the MTJ element 110 is a stochastic process. Here, the magnetization reversal probability P changes sensitively with respect to the current I injected into the free layer 10 of the MTJ element 110. That is, the range of the current I where the magnetization reversal probability P is exactly 50% is small. The magnetization reversal probability P also changes depending on the environment such as the temperature T. Here, if the magnetization reversal probability P deviates from 50%, it affects the quality of the random number, so it is important that the magnetization reversal probability P is 50% with high accuracy. Therefore, it is important to maintain the state where the magnetization reversal probability P is 50% with high accuracy using some kind of negative feedback mechanism.

[0076] In light of this background, the random number generator of the embodiment uses a binary counter 181 and a digital comparator 182 to determine whether the magnetization reversal probability P is greater than, less than, or equal to 50%, and controls the input voltage to the VI converter 115 accordingly, thereby realizing such a feedback mechanism.

[0077] Next, the procedure of the feedback control process executed by the random number generator 100 according to the embodiment will be described with reference to FIG.

[0078] First, in step S100, the signal output circuit 150 generates a 1-bit random number, and in step S110 outputs it to the binary counter 181. The binary counter 181 accepts the count of the number of random numbers output from the signal output circuit 150, for example, until the number of random numbers output from the signal output circuit 150 reaches a specified count value. Here, the specified count value is, for example, 1024, 2048, 4096, 8192, etc.

[0079] If the count value is too large, it takes a long time for feedback, while if it is too small, the feedback becomes inappropriate. In other words, when N random numbers are generated, even if 0 and 1 are generated with equal probability of 50%, the number of 0s and 1s generated will vary by about the square root of N due to statistical error. If this result is mistakenly judged to mean that the probability of generating 0 and 1 deviates from 50% and the probability of generating 0 and 1 is changed, control will become unstable. Therefore, it is desirable for the specified count value to be a relatively large value, for example, 8192. On the other hand, if the specified count value is too large, it will take a long time for feedback to work, so the count value is selected taking into account these effects.

[0080] Furthermore, the binary counter 181 counts the number of pieces of data whose value is "1" and the number of pieces of data whose value is "0" out of the received counts.

[0081] If the binary counter 181 has not reached the specified count value (No in step S120), the binary counter 181 continues to accept input of data. On the other hand, if the binary counter 181 has reached the specified count number (Yes in step S120), then in step S130, the binary counter 181 outputs the accumulated count value, i.e., the number of data pieces whose value is "1" or the number of data pieces whose value is "0", to the digital comparator 182.

[0082] Next, in step S140, the digital comparator 182 compares the count number obtained from the binary counter 181 in step S130 with a threshold value. That is, the feedback control circuit 180 compares the count value, which is a count value obtained from a binary signal generated based on magnetization, with the threshold value. Here, the threshold value is, for example, a value obtained by multiplying the specified count value in step S120 by 0.5. For example, if the specified count number in step S120 is "4096", the threshold value with which the digital comparator 182 compares the count value is "2048". That is, in this case, the subsequent feedback control is performed depending on whether the count number of data that is "1" among the specified count number of 4096 data is greater than, less than, or equal to 2048.

[0083] Here, if the count value is smaller than the threshold value, the process proceeds to step S150A, the value of the up-down counter is incremented by 1, and voltage control of VI converter 115 is performed in the direction to increase the count value. On the other hand, if the count value is larger than the threshold value, the process proceeds to step S150B, the value of the up-down counter is decremented by 1, and voltage control of VI converter 115 is performed in the direction to decrease the count value. That is, when the count value obtained from the binary signal generated based on the magnetization is below the threshold value, feedback control circuit 180 controls the current passed by write circuit 120 so that the count value increases, and conversely, when the count value is above the threshold value, controls the current passed by write circuit 120 so that the count value decreases.

[0084] Note that up / down counter 183 is a digital signal for controlling the input voltage to VI converter 115. For example, the larger the value of up / down counter 183, the larger the count value in step S130. Conversely, when the value of up / down counter 183 becomes smaller, the count value in step S130 becomes smaller.

[0085] In the following embodiment, a case will be described in which VI converter 115 is a multi-VI converter capable of switching the VI characteristics between eight modes, and up / down counter 183 is a 10-bit digital signal. Here, the 10 bits of up / down counter 183 consist of 3-bit digital data representing the VI characteristic mode of VI converter 115, which is a multi-VI converter, and 7-bit digital data representing the magnitude of the voltage input to VI converter 115 in that mode.

[0086] Here, for example, when the most significant three bits are "000", VI converter 115 operates in the first mode, when the most significant three bits are "001", VI converter 115 operates in the second mode, and when the most significant three bits are "010", VI converter 115 operates in the third mode. Here, VI converter 115 operating in the Nth mode means that VI converter 115 operates with the Nth VI characteristic. Also, for example, the magnitude of the voltage input to VI converter 115 when the value of up-down counter 183 is "0010000000" is close to the magnitude of the voltage input to VI converter 115 when the value of up-down counter 183 is "0001111111". Furthermore, the magnitude of the voltage input to VI converter 115 when the value of up-down counter 183 is "0100000000" is close to the magnitude of the voltage input to VI converter 115 when the value of up-down counter 183 is "0111111111." In this way, when the value of up-down counter 183 changes continuously from "0000000000" to "1111111111," the current input to MTJ element 110 changes continuously while the operation mode of VI converter 115 is switched as necessary.

[0087] Thus, when the VI converter 115 is a multi-VI converter operating with VI characteristics in N modes, compared to a single VI converter, if the error in the output current of the VI converter is constant, the error in the count value of step S130 and the input voltage to the VI converter is tolerated up to approximately N times, and the input current to the MTJ element 110 can be controlled with high precision.

[0088] Based on the above, in step S160, the up / down counter 183 transmits the lower 7-bit value of the counter value of the up / down counter to the DAC 184 based on the value of the lower 7-bit value of the updated counter value of the up / down counter, and the DAC 184 calculates the input voltage V in In step S170, the up-down counter 183 transfers the upper 3-bit value of the updated counter value of the up-down counter to the One-hot encoder 185, and the One-hot encoder 185 controls the operation mode of the VI converter 115 based on the transferred information. By performing such processing, the feedback control circuit 180 according to the embodiment can perform control to reduce the generation rate of "1" when the rate of "1" is more than 50%, and conversely, to increase the generation rate of "1" when the rate of "1" is 50% or less, and can maintain the generation rate of "0" and "1" close to 50%.

[0089] Next, a process in step S140 when the count value in step S130 is equal to the threshold value will be described. In step S140, when the count values ​​in step S130 are equal, the digital comparator 182 maintains the value of the input voltage input to the VI converter 115 and the value of the current input by the write circuit 120 to the MTJ element 110. In other words, when the count value is equal to the count value obtained from the binary signal generated based on the magnetization, the feedback control circuit 180 maintains the current flowing by the write circuit 120. That is, the digital comparator 182 compares the count number output by the binary counter with the threshold value, and performs three types of control when the count value is smaller than the threshold value, larger than the threshold value, and equal to the threshold value.

[0090] Here, the reason for introducing the third type of control, which is a process of maintaining the value of the input voltage input to the VI converter 115 and the value of the current input to the MTJ element by the write circuit 120 when the count number is equal to the threshold, is to stabilize the feedback control. Even in the case of only two types of control, which does not include the control when the count number is equal to the threshold, it is theoretically possible to perform feedback control. However, in reality, even if signals of "1" and "0" are generated with completely equal probability, for example, statistical variation will cause variation in the number of "1" signals generated and the number of "0" signals generated. Therefore, it is considered that excessive optimization for such variation and processing will rather impair the stability of the feedback control.

[0091] In this specification, "equal" does not only mean completely identical, but may be within a certain error range, for example, a count difference of 2 or less, and three types of control may be performed. As an example, in step S140, if the count number is 3 or more smaller than the threshold, the process of step S150A is performed, if the count number is 3 or more larger than the threshold, the process of step S150B is performed, and if the difference between the count number and the threshold is 2 or less, the current state is maintained. In this way, by performing control including a process that does not perform control from the current state, the stability of the feedback control can be improved.

[0092] The embodiment is not limited to the above-mentioned example. In the embodiment, the case where VI converter 115 is a multi-VI converter that operates with VI characteristics in multiple modes has been described, but the embodiment is not limited to this, and VI converter 115 may be a single VI converter that operates with VI characteristics in one mode. In addition, the operation mode of VI converter 115 does not have to be eight modes, and the configuration of up / down counter 183 may be appropriately changed depending on the number of operation modes of VI converter 115.

[0093] As described above, the reversal probability P of the magnetization of the MTJ element 110 also changes depending on the environment, such as the temperature T. In order to maintain the reversal probability P at 50% from the initial operation stage of the device, a temperature sensor for detecting the temperature T of the MTJ element 110 may be newly provided, and the initial operation mode of the VI converter 115 may be determined based on the temperature detected by the temperature sensor. In other words, the random number generator 100 according to this embodiment includes a VI converter 115 that receives an input of a voltage and converts the voltage into a current in a predetermined operation mode to output the current, and a sequence control circuit 160 that controls the VI converter 115 to flow a current by inputting a voltage to the VI converter 115. The feedback control circuit 180 includes a conversion unit (not shown) capable of switching between a plurality of the operation modes. The feedback control circuit 180 includes a temperature sensor (not shown) that detects the temperature in a range including at least the MTJ element 110, and switches the operation mode of the VI converter 115 by the function of the conversion unit based on the temperature detected by the temperature sensor.

[0094] Specifically, a table that associates the temperature T detected by the temperature sensor with the initial operation mode of the VI converter 115 is stored separately, and the feedback control circuit 180 determines the initial value of the upper three bits of the up-down counter 183 based on the temperature T detected by the temperature sensor. Next, the feedback control circuit 180 switches the operation mode of the VI converter 115 based on the determined initial value of the upper three bits of the up-down counter 183 by the function of the conversion unit. Since the operation mode of the VI converter 115 is determined by the upper three bits of the up-down counter 183, it is possible to determine the optimum operation mode of the VI converter 115 according to the environmental temperature, resulting in a more stable initial operation. Note that after the random number generator starts operating, the operation mode of the VI converter 115 changes dynamically by the feedback control described in paragraph "0085", not by the temperature detection by the temperature sensor.

[0095] At least one of the random number generators described above can generate high-quality random numbers.

[0096] Although some embodiments have been described, these embodiments are presented as examples and are not intended to limit the scope of the invention. These embodiments can be implemented and performed in various other forms, and various omissions, substitutions, modifications, and combinations of embodiments can be made without departing from the spirit of the invention. These embodiments and their modifications are included in the scope of the invention and its equivalents as described in the claims, as well as in the scope and spirit of the invention. [Explanation of symbols]

[0097] 110 MTJ element 115 VI Converter 120 Write circuit 130 Readout circuit 140 Erasing circuit 150 Signal output circuit 160 Sequence control circuit 180 Feedback control circuit 190 Buffer

Claims

1. a writing unit for stochastically reversing the magnetization of a magnetic layer of a magnetic tunnel junction element by passing a current through the magnetic layer; A reading unit that reads the magnetization; a signal output unit that generates a random number based on the magnetization read by the read unit; A random number generator comprising: The random number generator a sequence control unit that controls the writing unit and the reading unit, The sequence control unit Controlling the writing unit to pass the current during a first period; After the first period ends, and after a second period that is longer than the first period has elapsed, the readout unit is caused to read the magnetization; The random number generator includes a plurality of the magnetic tunnel junction elements connected in series, the writing unit stochastically reverses the magnetization of the magnetic layer of each of the plurality of magnetic tunnel junction elements independently of each other by passing the current through the plurality of magnetic tunnel junction elements; The reading unit reads the magnetization of each of the plurality of magnetic tunnel junction elements. Random number generator.

2. The random number generator according to claim 1 , wherein the second period is a period until the electric charge accumulated in the magnetic layer disappears.

3. The random number generator of claim 1 , wherein the second period is at least three times longer than the first period.

4. 2. The random number generator of claim 1, wherein the second period of time is greater than or equal to 15 ns.

5. The random number generator includes a feedback control unit that controls the current, The feedback control unit is A count value obtained from a binary signal generated based on the magnetization is compared with a threshold value; 2. The random number generator of claim 1, wherein when the count value is below the threshold, the current flowed by the writing unit is controlled so that the count value increases, when the count value is above the threshold, the current flowed by the writing unit is controlled so that the count value decreases, and when the count value is equal to the threshold, the current flowed by the writing unit is maintained.

6. The random number generator includes a plurality of the magnetic tunnel junction elements connected in series in parallel, The random number generator according to claim 1 , wherein the signal output section combines information obtained from each of the plurality of magnetic tunnel junction elements connected in parallel to generate the random number.

7. The random number generator according to claim 1 , further comprising a buffer that temporarily stores the signal output by the signal output unit.

8. The signal output unit includes a reference circuit for acquiring electrical characteristics of the magnetic tunnel junction element; a differential amplifier that performs differential amplification between the signal output by the readout unit and the signal output by the reference circuit to generate a differential amplified signal that is the basis of the random number; The random number generator of claim 1 , comprising:

9. The random number generator of claim 8 , wherein the reference circuit comprises two of the magnetic tunnel junction elements connected in series.

10. 2. The random number generator according to claim 1, wherein the plurality of magnetic tunnel junction elements are arranged in series connection, the number of the magnetic tunnel junction elements being determined based on a maximum value of a write current of the magnetic tunnel junction element and a power supply voltage condition.

11. A writing unit for stochastically reversing the magnetization of a magnetic layer of a magnetic tunnel junction element by passing a current through the magnetic layer; A reading unit that reads the magnetization; a signal output unit that generates a random number based on the magnetization read by the read unit; A random number generator comprising: The random number generator a sequence control unit that controls the writing unit and the reading unit, The sequence control unit Controlling the writing unit to pass the current during a first period; After the first period ends, and after a second period that is longer than the first period has elapsed, the readout unit is caused to read the magnetization; The random number generator includes a feedback control unit that controls the current, The feedback control unit is A count value obtained from a binary signal generated based on the magnetization is compared with a threshold value; When the count value is below the threshold value, the current flowing by the writing unit is controlled so that the count value increases, when the count value is above the threshold value, the current flowing by the writing unit is controlled so that the count value decreases, and when the count value is equal to the threshold value, the current flowing by the writing unit is maintained; the random number generator has a VI converter that receives a voltage input and converts the voltage into a current in a predetermined operation mode to output the current; The sequence control unit controls the current to flow by inputting a voltage to the VI converter, The feedback control unit is capable of switching between a plurality of the operation modes, The feedback control unit has a temperature sensor that detects the temperature in an area including at least the magnetic tunnel junction element, and switches the operation mode of the VI converter based on the temperature detected by the temperature sensor. A random number generator.

12. A writing unit for stochastically reversing the magnetization of a magnetic layer of a magnetic tunnel junction element by passing a current through the magnetic layer; A reading unit that reads the magnetization; a signal output unit that generates a random number based on the magnetization read by the read unit; A random number generator comprising: The random number generator a sequence control unit that controls the writing unit and the reading unit, The random number generator includes a plurality of the magnetic tunnel junction elements connected in series, the writing unit stochastically reverses the magnetization of the magnetic layer of each of the plurality of magnetic tunnel junction elements independently of each other by passing the current through the plurality of magnetic tunnel junction elements; The read unit reads the magnetization of each of the plurality of magnetic tunnel junction elements. A random number generator.

Citation Information

Patent Citations

  • Random number generating device, random number generation method, and security chip

    JP2011113136A

  • Entropy source with magnetoresistive element for random number generator

    JP2014531669A