Machine learning attack resistant double-layer dynamic excitation mutual selection MPUF circuit and dynamic excitation mutual selection MPUF generation method thereof
Through the design of the dual-layer dynamic excitation mutually selective MPUF circuit and obfuscated decoding circuit, the shortcomings of existing PUFs in resisting machine learning attacks and power consumption are solved, and PUF circuits with high security, low power consumption and low area overhead are realized.
Patent Information
- Application Number
- CN202411591873.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2044-11-08
AI Technical Summary
Existing CMOS PUFs and memory PUFs have insufficient security in terms of machine learning attack resistance, and traditional MRAM PUFs have insufficient power consumption and area overhead.
The dual-layer dynamic excitation mutually selective MPUF circuit is adopted, through the interaction of the first and second selection excitation modules and the spin transfer moment-magnetic random memory array, combined with the obfuscation decoding circuit, the nonlinearity between excitation and response is improved, and the anti-machine learning attack capability is enhanced.
It achieves the ability to resist machine learning attacks, reduces power consumption and area overhead, and improves the security and reconfigurability of PUFs.
Smart Images

Figure CN119538327A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of physical unclonable function generation, and in particular to a double-layer dynamic excitation mutual selection MPUF circuit resistant to machine learning attacks and a dynamic excitation mutual selection MPUF generation method thereof. Background Art
[0002] The rapid development of the Internet of Things has led to higher requirements for secure mobile device chips. As part of improving security, physical unclonable function (PUF) has important research significance. At present, PUF based on CMOS technology has been widely used in the commercial field. However, these traditional CMOS PUFs are limited by random entropy and are vulnerable to side channel attacks, fault injection attacks, and modeling attacks based on machine learning technology. In addition, a variety of memory PUF solutions have also been proposed, among which DRAM PUF and SRAM PUF are the most representative. However, when the size of memory PUF is reduced, DRAM based on semiconductor materials will generate leakage current and increase power consumption, and SRAM has a large area overhead. Therefore, it is an urgent issue to propose a low-power, high-speed, and low-area PUF that is resistant to machine learning attacks. MRAMPUF is a more suitable solution.
[0003] The Chinese patent application with publication number CN117951756A and titled A Physical Unclonable Function Based on MRAM and a Method for Generating the Same points out: A magnetic tunnel junction (MTJ) group consisting of two units is selected, and the resistance values of two target MTJs in the same group are compared. According to the comparison result of the resistance values, the corresponding response value is determined, and the execution MTJ in the two target MTJs in the same group is broken down. The execution is repeated until the PUF generation area covered by the processed MTJ group to be compared is reached. According to the response values corresponding to all the MTJ groups to be compared, the physical unclonable function based on MRAM is determined. This scheme requires breaking down the target MTJ after the comparison test, and the operation is relatively complicated. Although the repeatability of PUF is improved, the designed circuit loses its reconfigurability to a certain extent, and the number of CRPs of the stimulus response is reduced. At the same time, since the final MTJ state of this scheme is fixed and cannot be changed, it is vulnerable to side channel attacks and machine learning attacks during use, which ultimately leads to low security of PUF. After the attacker obtains a certain CRP, other CRPs can be cracked, making it invalid. The Chinese patent application with publication number CN109472169A and titled "A Method and Apparatus for Generating a Physical Unclonable Function of an MRAM Chip" points out: arbitrarily select a magnetic tunnel junction MTJ bit from the MRAM chip as a reference bit, compare the resistance of a preset number of other magnetic tunnel junction MTJ bits in the MRAM chip with the resistance of the reference bit in turn, record the comparison results, generate a logic state diagram, and use the logic state diagram to generate a physical unclonable function PUF of the MRAM chip. However, the decoding process when comparing an MTJ with a reference MTJ is relatively complicated and may cause unnecessary power consumption, and the comparison scheme has a strong regularity and is susceptible to side channel attacks and machine learning attacks, etc., which makes the PUF not very secure and has poor practicality. Summary of the invention
[0004] In response to the problems existing in the prior art, the present invention provides a double-layer dynamic excitation mutual selection MPUF circuit that is resistant to machine learning attacks and a dynamic excitation mutual selection MPUF generation method thereof, which improves the ability to resist machine learning attacks, thereby improving the security during use, and has the characteristics of high speed, small area, low power consumption and high robustness.
[0005] To achieve the above technical objectives, the present invention adopts the following technical solutions: A double-layer dynamic excitation mutual selection MPUF circuit resistant to machine learning attacks, comprising: a first selection excitation module, a first pre-charged sensing amplifier circuit, a first spin transfer torque-magnetic random access memory array, a confusion decoding circuit, a second selection excitation module, a second pre-charged sensing amplifier circuit, and a second spin transfer torque-magnetic random access memory array;
[0006] When the first selection excitation module is used as the excitation module, the second selection excitation module is used as the response module. At this time, the first selection excitation module is used to input an excitation signal to the first spin transfer torque-magnetic random access memory array, and the discharge path port of the first pre-charge sensing amplifier circuit selects two discharge paths from the first spin transfer torque-magnetic random access memory array according to the excitation signal for comparison, generates a response signal, and inputs the response signal into the confusion decoder circuit. The second selection excitation module is controlled by the confusion decoder circuit to generate an excitation signal, and the discharge path port of the second pre-charge sensing amplifier circuit selects two discharge paths from the second spin transfer torque-magnetic random access memory array for comparison according to the excitation signal generated by the second selection excitation module, and outputs a comparison result;
[0007] When the second selection excitation module is used as the excitation module, the first selection excitation module is used as the response module. At this time, the second selection excitation module is used to input an excitation signal to the second spin-transfer torque-magnetic random access memory array. The discharge path port of the second pre-charge sensing amplifier circuit selects two discharge paths from the second spin-transfer torque-magnetic random access memory array according to the excitation signal for comparison, generates a response signal, inputs the response signal into the confusion decoder circuit, and controls the first selection excitation module to generate an excitation signal through the confusion decoder circuit. The discharge path port of the first pre-charge sensing amplifier circuit selects two discharge paths from the first spin-transfer torque-magnetic random access memory array for comparison according to the excitation signal generated by the first selection excitation module, and outputs the comparison result.
[0008] Furthermore, the first selection excitation module and the second selection excitation module are both composed of a column selection excitation module group and a row selection excitation module, the column selection excitation module group is divided into a first column selection excitation module and a second column selection excitation module, the first column selection excitation module and the second column selection excitation module are both composed of n column NMOS transistors in parallel, and the row selection excitation module is composed of n row NMOS transistor groups, and each row NMOS transistor group is provided with 2n parallel row NMOS transistors.
[0009] Furthermore, the drain of each column NMOS transistor in the first column selection excitation module of the first selection excitation module is connected to the first discharge path port of the first pre-charge sensing amplifier circuit, and the drain of each column NMOS transistor in the second column selection excitation module of the first selection excitation module is connected to the second discharge path port of the first pre-charge sensing amplifier circuit; the gate of each column NMOS transistor in the first column selection excitation module and the second column selection excitation module of the first selection excitation module is connected to the confusion decoding circuit, the source of each column NMOS transistor in the first column selection excitation module of the first selection excitation module is correspondingly connected to the drain of the first n rows of NMOS transistors in each row in the row selection excitation module of the first selection excitation module, and the source of each column NMOS transistor in the second column selection excitation module of the first selection excitation module is correspondingly connected to the drain of the last n rows of NMOS transistors in each row in the row selection excitation module of the first selection excitation module; the gate of each row NMOS transistor in the row selection excitation module of the first selection excitation module is connected to the confusion decoding circuit, and the source of each row NMOS transistor in the row selection excitation module of the first selection excitation module is connected to the first spin transfer torque-magnetic random access memory array.
[0010] Furthermore, the first spin-transfer torque-magnetic random access memory array is composed of n×2n first spin-transfer torque-magnetic random access memories, each of which contains a magnetic tunnel junction, and the free end of each magnetic tunnel junction is respectively connected to the source of a row NMOS transistor of a row selection excitation module in the first selection excitation module, and the fixed end of each magnetic tunnel junction is grounded.
[0011] Furthermore, the drain of each column NMOS transistor in the first column selection excitation module of the second selection excitation module is connected to the first discharge path port of the second pre-charge sensing amplifier circuit, and the drain of each column NMOS transistor in the second column selection excitation module of the second selection excitation module is connected to the second discharge path port of the second pre-charge sensing amplifier circuit; the gate of each column NMOS transistor in the first column selection excitation module and the second column selection excitation module of the second selection excitation module is connected to the confusion decoding circuit, the source of each column NMOS transistor in the first column selection excitation module of the second selection excitation module is correspondingly connected to the drain of the first n rows of NMOS transistors in each row in the row selection excitation module of the second selection excitation module, and the source of each column NMOS transistor in the second column selection excitation module of the second selection excitation module is correspondingly connected to the drain of the last n rows of NMOS transistors in each row in the row selection excitation module of the second selection excitation module; the gate of each row NMOS transistor in the row selection excitation module of the second selection excitation module is connected to the confusion decoding circuit, and the source of each row NMOS transistor in the row selection excitation module of the second selection excitation module is connected to the second spin transfer torque-magnetic random access memory array.
[0012] Furthermore, the second spin-transfer torque-magnetic random access memory array is composed of n×2n second spin-transfer torque-magnetic random access memories, each of which contains a magnetic tunnel junction, and the free end of each magnetic tunnel junction is respectively connected to the source of a row NMOS transistor of a row selection excitation module in the second selection excitation module, and the fixed end of each magnetic tunnel junction is grounded.
[0013] Furthermore, the confusion decoder circuit includes: an XOR gate, a first column decoder group, a second column decoder group, a first row decoder group and a second row decoder group, the output end Qm of the first pre-charge sensing amplifier circuit is respectively connected to the first input end of the XOR gate and the input end of the second column decoder group, the output end of the second column decoder group is connected to the gates of all column NMOS tubes in the second selection excitation module, the output end of the XOR gate is used to control the input signals of the first row decoder group and the second row decoder group, the output end of the second row decoder group is connected to the gates of all row NMOS transistors in the second selection excitation module; the output end Qm of the second pre-charge sensing amplifier circuit is respectively connected to the second input end of the XOR gate and the input end of the first column decoder group, the output end of the first column decoder group is connected to the gates of all column NMOS tubes in the first selection excitation module, and the output end of the first row decoder group is connected to the gates of all row NMOS transistors in the first selection excitation module.
[0014] Furthermore, the present invention also provides a dynamic excitation mutual selection MPUF generation method of the double-layer dynamic excitation mutual selection MPUF circuit that resists machine learning attacks, with a first selection excitation module as an excitation module and a second selection excitation module as a response module, comprising the following steps:
[0015] Step 1, initializing all magnetic tunnel junction bits in the first spin transfer torque-magnetic random access memory array and the second spin transfer torque-magnetic random access memory array to the same state;
[0016] Step 2: selecting two discharge paths from the first spin transfer torque-magnetic random access memory array through the first pre-charge sensing amplifier circuit according to the excitation signal input by the excitation module, comparing the magnetic tunnel junction resistances in the two discharge paths, and generating a response signal;
[0017] Step 3, continuously input the excitation signal to the excitation module, repeat step 2 until the generated response signal can drive the response module to decode, input the response signal into the confusion decoding circuit, generate the excitation signal of the response module, select two discharge paths from the second spin transfer torque-magnetic random access memory array through the second pre-charge sensing amplifier circuit, compare the magnetic tunnel junction resistances in the two discharge paths, and output the comparison result.
[0018] Furthermore, the present invention also provides a method for generating a dynamic excitation mutual selection MPUF of the double-layer dynamic excitation mutual selection MPUF circuit resistant to machine learning attacks, with the second selection excitation module as the excitation module and the first selection excitation module as the response module, comprising the following steps:
[0019] Step 1, initializing all magnetic tunnel junction bits in the first spin transfer torque-magnetic random access memory array and the second spin transfer torque-magnetic random access memory array to the same state;
[0020] Step 2: selecting two discharge paths from the second spin transfer torque-magnetic random access memory array through a second pre-charge sensing amplifier circuit according to the excitation signal input by the excitation module, comparing the magnetic tunnel junction resistances in the two discharge paths, and generating a response signal;
[0021] Step 3, continuously input the excitation signal to the excitation module, repeat step 2 until the generated response signal can drive the response module to decode, input the response signal into the confusion decoding circuit, generate the excitation signal of the response module, select two discharge paths from the first spin transfer torque-magnetic random access memory array through the first pre-charge sensing amplifier circuit, compare the magnetic tunnel junction resistances in the two discharge paths, and output the comparison result.
[0022] Compared with the prior art, the present invention has the following beneficial effects:
[0023] (1) The dual-layer dynamic excitation mutual selection MPUF circuit and the dynamic excitation mutual selection MPUF generation method of the present invention resisting machine learning attacks select the discharge path according to the excitation module and response module selected by the user and the excitation signal input by the user. Compared with the prior art, due to its own state, the flipping of different units of the magnetic tunnel junction of the present invention presents a probability distribution under the same write current, so that the CRP space increases exponentially with the change of n in the excitation module, which improves the security to a certain extent and can be used as a strong PUF; and when the response module of the present invention selects two discharge paths for comparison, it does not need to traverse all discharge paths to compare with the selected discharge path, which greatly improves the speed of response generation and reduces power consumption;
[0024] (2) The dual-layer dynamic excitation mutual selection MPUF circuit and the dynamic excitation mutual selection MPUF generation method of the present invention, which are resistant to machine learning attacks, greatly improve the nonlinearity between the excitation and the response by setting a confusion decoding circuit, and have high robustness against machine learning attacks such as logistic regression, support vector machine, multilayer perceptron and random forest;
[0025] (3) The magnetic tunnel junction in the double-layer dynamic excitation mutual selection MPUF circuit and the dynamic excitation mutual selection MPUF generation method of the present invention that are resistant to machine learning attacks can achieve a reconfigurable PUF effect after writing current. Compared with the previous solution of directly breaking down the MTJ to completely fix the resistance value of the MTJ, it will have a wider range of applications and higher security. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 A schematic diagram of a double-layer dynamic excitation mutual selection MPUF circuit for resisting machine learning attacks of the present invention;
[0027] Figure 2 This is a flow chart of the dynamic excitation mutual selection MPUF generation method of the double-layer dynamic excitation mutual selection MPUF circuit that is resistant to machine learning attacks of the present invention. DETAILED DESCRIPTION
[0028] The technical solution of the present invention is further explained below in conjunction with the accompanying drawings.
[0029] like Figure 1 , the present invention provides a schematic diagram of a double-layer dynamic excitation mutual selection MPUF circuit that is resistant to machine learning attacks, the double-layer dynamic excitation mutual selection MPUF circuit comprising: a first selection excitation module, a first pre-charged sensing amplifier circuit, a first spin transfer torque-magnetic random access memory array, a confusion decoding circuit, a second selection excitation module, a second pre-charged sensing amplifier circuit, and a second spin transfer torque-magnetic random access memory array;
[0030] When the first selection excitation module is used as the excitation module, the second selection excitation module is used as the response module. At this time, the first selection excitation module is used to input an excitation signal to the first spin transfer torque-magnetic random access memory array, and the discharge path port of the first pre-charge sensing amplifier circuit is used to control the switch of the first selection excitation module to select two discharge paths from the first spin transfer torque-magnetic random access memory array for comparison, generate a response signal, input the response signal to the confusion decoder circuit, and control the second selection excitation module to generate an excitation signal through the confusion decoder circuit. The discharge path port of the second pre-charge sensing amplifier circuit is used to control the switch of the second selection excitation module to select two discharge paths from the second spin transfer torque-magnetic random access memory array for comparison, and output the comparison result;
[0031] When the second selection excitation module is used as the excitation module, the first selection excitation module is used as the response module. At this time, the second selection excitation module is used to input an excitation signal to the second spin-transfer torque-magnetic random access memory array, and the discharge path port of the second pre-charge sensing amplifier circuit is used to control the switch of the second selection excitation module to select two discharge paths from the second spin-transfer torque-magnetic random access memory array for comparison, generate a response signal, input the confusion decoder circuit, and control the first selection excitation module to generate an excitation signal through the confusion decoder circuit. The discharge path port of the first pre-charge sensing amplifier circuit is used to control the switch of the first selection excitation module to select two discharge paths from the first spin-transfer torque-magnetic random access memory array for comparison, and output the comparison result.
[0032] The present invention adopts a double-layer structure of optional excitation modules and response modules, so that the potential for confusion between the excitation modules and the response modules is large, and the discharge path is selected according to the excitation module and the response module selected by the user and the excitation signal input by the user. Compared with the prior art, due to its own state, the flipping conditions of different units of the magnetic tunnel junction of the present invention present a probability distribution under the same write current, so that the CRP space increases exponentially with the change of n in the excitation module, which improves the security to a certain extent and can be used as a strong PUF; in addition, when the response module of the present invention selects two discharge paths for comparison, it is not necessary to traverse all discharge paths for comparison with the selected discharge path, which greatly improves the speed of response generation and reduces power consumption.
[0033] In the present invention, the first selection excitation module and the second selection excitation module are both composed of a column selection excitation module group and a row selection excitation module, the column selection excitation module group is divided into a first column selection excitation module and a second column selection excitation module, the first column selection excitation module and the second column selection excitation module are both composed of n column NMOS transistors connected in parallel, wherein the column NMOS transistors of the first column selection excitation module and the second column selection excitation module in the first selection excitation module are represented as: X00, X01, ..., X0(n-1), Y00, Y01, ..., Y0(n-1), the first column selection excitation module in the second selection excitation module The column NMOS transistors of the column selection excitation module and the second column selection excitation module are represented as: X10, X11, ..., X1(n-1), Y10, Y11, ..., Y1(n-1); the row selection excitation module is composed of n row NMOS transistor groups, among which the row NMOS transistor group in the first selection excitation module is represented as: C00, C01, ..., C0(n-1), and the row NMOS transistor group in the second selection excitation module is represented as: C10, C11, ..., C1(n-1), and each row NMOS transistor group is provided with 2n parallel row NMOS transistors.
[0034] The drain of each column NMOS transistor in the first column selection excitation module of the first selection excitation module is connected to the first discharge path port of the first pre-charge sensing amplifier circuit, and the drain of each column NMOS transistor in the second column selection excitation module of the first selection excitation module is connected to the second discharge path port of the first pre-charge sensing amplifier circuit; the gate of each column NMOS transistor in the first column selection excitation module and the second column selection excitation module of the first selection excitation module is connected to the confusion decoding circuit, the source of each column NMOS transistor in the first column selection excitation module of the first selection excitation module is correspondingly connected to the drain of the first n rows of NMOS transistors in each row in the row selection excitation module of the first selection excitation module, and the source of each column NMOS transistor in the second column selection excitation module of the first selection excitation module is correspondingly connected to the drain of the last n rows of NMOS transistors in each row in the row selection excitation module of the first selection excitation module; the gate of each row NMOS transistor in the row selection excitation module of the first selection excitation module is connected to the confusion decoding circuit, and the source of each row NMOS transistor in the row selection excitation module of the first selection excitation module is connected to the first spin transfer torque-magnetic random access memory array.
[0035] The first spin transfer torque-magnetic random access memory array is composed of n×2n first spin transfer torque-magnetic random access memories, each of which contains a magnetic tunnel junction. The magnetic tunnel junction is a "sandwich" structure composed of two ferromagnetic layers and a metal oxide layer. One ferromagnetic layer that can change the magnetization direction is called a "free layer", and the other ferromagnetic layer that cannot change the magnetization direction is called a "fixed layer". By changing the magnetization direction of the free layer and comparing it with the fixed layer, two different resistance states can be obtained. When the magnetization direction of the free layer is opposite to that of the fixed layer, it is considered to be "parallel" and the magnetic tunnel junction exhibits a high resistance state. When the magnetization direction of the free layer is the same as that of the fixed layer, it is considered to be "anti-parallel" and the magnetic tunnel junction exhibits a low resistance state. The free end of each magnetic tunnel junction is respectively connected to the source of a row NMOS transistor of the row selection excitation module in the first selection excitation module, and the fixed end of each magnetic tunnel junction is grounded. Due to the state of the magnetic tunnel junction of the present invention, under the same write current, the flipping conditions of different units present a probability distribution, so that the CRP space increases exponentially with the change of n in the excitation module, which improves the security to a certain extent and can be used as a strong PUF.
[0036] Similarly, the drain of each column NMOS transistor in the first column selection excitation module of the second selection excitation module is connected to the first discharge path port of the second pre-charge sensing amplifier circuit, and the drain of each column NMOS transistor in the second column selection excitation module of the second selection excitation module is connected to the second discharge path port of the second pre-charge sensing amplifier circuit; the gate of each column NMOS transistor in the first column selection excitation module and the second column selection excitation module of the second selection excitation module is connected to the confusion decoding circuit, the source of each column NMOS transistor in the first column selection excitation module of the second selection excitation module is correspondingly connected to the drain of the first n rows of NMOS transistors in each row in the row selection excitation module of the second selection excitation module, and the source of each column NMOS transistor in the second column selection excitation module of the second selection excitation module is correspondingly connected to the drain of the last n rows of NMOS transistors in each row in the row selection excitation module of the second selection excitation module; the gate of each row NMOS transistor in the row selection excitation module of the second selection excitation module is connected to the confusion decoding circuit, and the source of each row NMOS transistor in the row selection excitation module of the second selection excitation module is connected to the second spin transfer torque-magnetic random access memory array.
[0037] The second spin-transfer torque-magnetic random access memory array is composed of n×2n second spin-transfer torque-magnetic random access memories, each of which contains a magnetic tunnel junction, and the free end of each magnetic tunnel junction is respectively connected to the source of a row NMOS transistor of a row selection excitation module in the second selection excitation module, and the fixed end of each magnetic tunnel junction is grounded.
[0038] The first selection excitation module and the second selection excitation module both have enable signals. Users can customize the selected excitation module and response module. Users only need to give one binary bit to enable the excitation module, thereby enabling the response module.
[0039] The garbled decoder circuit includes: an XOR gate, a first column decoder group, a second column decoder group, a first row decoder group and a second row decoder group. The output end Qm of the first pre-charge sensing amplifier circuit is respectively connected to the first input end of the XOR gate and the input end of the second column decoder group, the output end of the second column decoder group is connected to the gates of all column NMOS tubes in the second selection excitation module, the output end of the XOR gate is used to control the input signals of the first row decoder group and the second row decoder group, the output end of the second row decoder group is connected to the gates of all row NMOS transistors in the second selection excitation module; the output end Qm of the second pre-charge sensing amplifier circuit is respectively connected to the second input end of the XOR gate and the input end of the first column decoder group, the output end of the first column decoder group is connected to the gates of all column NMOS tubes in the first selection excitation module, and the output end of the first row decoder group is connected to the gates of all row NMOS transistors in the first selection excitation module. Since the obfuscated decoding circuit contains XOR gates, the excitation conditions of the response modules are different, which greatly improves the nonlinearity between excitation and response and has high robustness against machine learning attacks such as logistic regression, support vector machine, multilayer perceptron and random forest.
[0040] like Figure 2 The present invention also provides a method for generating a dynamic excitation mutual selection MPUF of a double-layer dynamic excitation mutual selection MPUF circuit that is resistant to machine learning attacks, comprising the following steps:
[0041] If the first selected excitation module is used as the excitation module and the second selected excitation module is used as the response module,
[0042] Step 1, initializing all magnetic tunnel junction bits in the first spin transfer torque-magnetic random access memory array and the second spin transfer torque-magnetic random access memory array to the same state;
[0043] Step 2: selecting two discharge paths from the first spin transfer torque-magnetic random access memory array through the first pre-charge sensing amplifier circuit according to the excitation signal input by the excitation module, comparing the magnetic tunnel junction resistances in the two discharge paths, and generating a response signal;
[0044] Step 3, continuously input the excitation signal to the excitation module, repeat step 2 until the generated response signal can drive the response module to decode, input the response signal into the confusion decoding circuit, generate the excitation signal of the response module, select two discharge paths from the second spin transfer torque-magnetic random access memory array through the second pre-charge sensing amplifier circuit, compare the magnetic tunnel junction resistances in the two discharge paths, and output the comparison result.
[0045] If the second selection incentive module is used as the incentive module and the first selection incentive module is used as the response module, the following steps are included:
[0046] Step 1, initializing all magnetic tunnel junction bits in the first spin transfer torque-magnetic random access memory array and the second spin transfer torque-magnetic random access memory array to the same state;
[0047] Step 2: selecting two discharge paths from the second spin transfer torque-magnetic random access memory array through a second pre-charge sensing amplifier circuit according to the excitation signal input by the excitation module, comparing the magnetic tunnel junction resistances in the two discharge paths, and generating a response signal;
[0048] Step 3, continuously input the excitation signal to the excitation module, repeat step 2 until the generated response signal can drive the response module to decode, input the response signal into the confusion decoding circuit, generate the excitation signal of the response module, select two discharge paths from the first spin transfer torque-magnetic random access memory array through the first pre-charge sensing amplifier circuit, compare the magnetic tunnel junction resistances in the two discharge paths, and output the comparison result.
[0049] The magnetic tunnel junction in the dynamic excitation mutual selection MPUF generation method of the double-layer dynamic excitation mutual selection MPUF circuit of the present invention that is resistant to machine learning attacks can achieve a reconfigurable PUF effect after writing current. Compared with the previous solution of directly breaking down the MTJ to completely fix the resistance value of the MTJ, it will have a wider range of applications and higher security.
[0050] In a technical solution of the present invention, other non-volatile memories such as resistive random access memory RRAM, phase change memory PRAM or SOT-MRAM can be used to replace STT-MRAM.
[0051] In a technical solution of the present invention, the obfuscation operation in the obfuscation decoding circuit can be performed using an encryption algorithm or a mask, etc., so that the nonlinearity between the stimulus and the response is improved.
[0052] The above are only preferred embodiments of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should be regarded as the protection scope of the present invention.
Claims
1. A dual-layer dynamic excitation mutual selection MPUF circuit resistant to machine learning attacks, characterized in that: include: A first selection excitation module, a first precharge sense amplifier circuit, a first spin transfer torque-magnetic random access memory array, a scrambling decoding circuit, a second selection excitation module, a second precharge sense amplifier circuit, and a second spin transfer torque-magnetic random access memory array; When the first selection excitation module is used as the excitation module, the second selection excitation module is used as the response module. At this time, the first selection excitation module is used to input an excitation signal to the first spin transfer torque-magnetic random access memory array, and the discharge path port of the first pre-charge sensing amplifier circuit selects two discharge paths from the first spin transfer torque-magnetic random access memory array according to the excitation signal for comparison, generates a response signal, and inputs the response signal into the confusion decoder circuit. The second selection excitation module is controlled by the confusion decoder circuit to generate an excitation signal, and the discharge path port of the second pre-charge sensing amplifier circuit selects two discharge paths from the second spin transfer torque-magnetic random access memory array for comparison according to the excitation signal generated by the second selection excitation module, and outputs a comparison result; When the second selection excitation module is used as the excitation module, the first selection excitation module is used as the response module. At this time, the second selection excitation module is used to input an excitation signal to the second spin-transfer torque-magnetic random access memory array. The discharge path port of the second pre-charge sensing amplifier circuit selects two discharge paths from the second spin-transfer torque-magnetic random access memory array according to the excitation signal for comparison, generates a response signal, inputs the response signal into the confusion decoder circuit, and controls the first selection excitation module to generate an excitation signal through the confusion decoder circuit. The discharge path port of the first pre-charge sensing amplifier circuit selects two discharge paths from the first spin-transfer torque-magnetic random access memory array for comparison according to the excitation signal generated by the first selection excitation module, and outputs the comparison result.
2. According to claim 1, a double-layer dynamic excitation mutual selection MPUF circuit resistant to machine learning attacks is characterized in that: The first selection excitation module and the second selection excitation module are both composed of a column selection excitation module group and a row selection excitation module. The column selection excitation module group is divided into a first column selection excitation module and a second column selection excitation module. The first column selection excitation module and the second column selection excitation module are both composed of n column NMOS transistors in parallel, and the row selection excitation module is composed of n row NMOS transistor groups, and each row NMOS transistor group is provided with 2n parallel row NMOS transistors.
3. According to claim 2, a double-layer dynamic excitation mutual selection MPUF circuit resistant to machine learning attacks is characterized in that: The drain of each column NMOS transistor in the first column selection excitation module of the first selection excitation module is connected to the first discharge path port of the first pre-charge sensing amplifier circuit, and the drain of each column NMOS transistor in the second column selection excitation module of the first selection excitation module is connected to the second discharge path port of the first pre-charge sensing amplifier circuit; the gate of each column NMOS transistor in the first column selection excitation module and the second column selection excitation module of the first selection excitation module is connected to the confusion decoding circuit, the source of each column NMOS transistor in the first column selection excitation module of the first selection excitation module is correspondingly connected to the drain of the first n row NMOS transistors in each row in the row selection excitation module of the first selection excitation module, and the source of each column NMOS transistor in the second column selection excitation module of the first selection excitation module is correspondingly connected to the drain of the last n row NMOS transistors in each row in the row selection excitation module of the first selection excitation module; the gate of each row NMOS transistor in the row selection excitation module of the first selection excitation module is connected to the confusion decoding circuit, and the source of each row NMOS transistor in the row selection excitation module of the first selection excitation module is connected to the first spin transfer torque-magnetic random access memory array.
4. According to claim 3, a double-layer dynamic excitation mutual selection MPUF circuit resistant to machine learning attacks is characterized in that: The first spin transfer torque-magnetic random access memory array is composed of n×2n first spin transfer torque-magnetic random access memories, each of which contains a magnetic tunnel junction, and the free end of each magnetic tunnel junction is respectively connected to the source of a row NMOS transistor of a row selection excitation module in the first selection excitation module, and the fixed end of each magnetic tunnel junction is grounded.
5. According to claim 4, a double-layer dynamic excitation mutual selection MPUF circuit resistant to machine learning attacks is characterized in that: The drain of each column NMOS transistor in the first column selection excitation module of the second selection excitation module is connected to the first discharge path port of the second pre-charge sensing amplifier circuit, and the drain of each column NMOS transistor in the second column selection excitation module of the second selection excitation module is connected to the second discharge path port of the second pre-charge sensing amplifier circuit; the gate of each column NMOS transistor in the first column selection excitation module and the second column selection excitation module of the second selection excitation module is connected to the confusion decoding circuit, the source of each column NMOS transistor in the first column selection excitation module of the second selection excitation module is correspondingly connected to the drain of the first n rows of NMOS transistors in each row in the row selection excitation module of the second selection excitation module, and the source of each column NMOS transistor in the second column selection excitation module of the second selection excitation module is correspondingly connected to the drain of the last n rows of NMOS transistors in each row in the row selection excitation module of the second selection excitation module; the gate of each row NMOS transistor in the row selection excitation module of the second selection excitation module is connected to the confusion decoding circuit, and the source of each row NMOS transistor in the row selection excitation module of the second selection excitation module is connected to the second spin transfer torque-magnetic random access memory array.
6. According to claim 5, a double-layer dynamic excitation mutual selection MPUF circuit resistant to machine learning attacks is characterized in that: The second spin-transfer torque-magnetic random access memory array is composed of n×2n second spin-transfer torque-magnetic random access memories, each of which contains a magnetic tunnel junction, and the free end of each magnetic tunnel junction is respectively connected to the source of a row NMOS transistor of a row selection excitation module in the second selection excitation module, and the fixed end of each magnetic tunnel junction is grounded.
7. A double-layer dynamic excitation mutual selection MPUF circuit resistant to machine learning attacks according to claim 6, characterized in that: The garbled decoder circuit includes: an XOR gate, a first column decoder group, a second column decoder group, a first row decoder group and a second row decoder group. The output end Qm of the first pre-charge sensing amplifier circuit is respectively connected to the first input end of the XOR gate and the input end of the second column decoder group, and the output end of the second column decoder group is connected to the gates of all column NMOS tubes in the second selection excitation module. The output end of the XOR gate is used to control the input signals of the first row decoder group and the second row decoder group, and the output end of the second row decoder group is connected to the gates of all row NMOS transistors in the second selection excitation module; the output end Qm of the second pre-charge sensing amplifier circuit is respectively connected to the second input end of the XOR gate and the input end of the first column decoder group, and the output end of the first column decoder group is connected to the gates of all column NMOS tubes in the first selection excitation module, and the output end of the first row decoder group is connected to the gates of all row NMOS transistors in the first selection excitation module.
8. A method for generating a dynamic excitation mutual selection MPUF of a double-layer dynamic excitation mutual selection MPUF circuit resistant to machine learning attacks according to any one of claims 1 to 7, characterized in that: The first selection incentive module is used as the incentive module, and the second selection incentive module is used as the response module, including the following steps: Step 1, initializing all magnetic tunnel junction bits in the first spin transfer torque-magnetic random access memory array and the second spin transfer torque-magnetic random access memory array to the same state; Step 2: According to the excitation signal input by the excitation module, two discharge paths are selected from the first spin transfer torque-magnetic random access memory array through the first pre-charge sensing amplifier circuit, and the magnetic tunnel junction resistances in the two discharge paths are compared to generate a response signal; Step 3, continuously input the excitation signal to the excitation module, repeat step 2 until the generated response signal can drive the response module to decode, input the response signal into the confusion decoding circuit, generate the excitation signal of the response module, select two discharge paths from the second spin transfer torque-magnetic random access memory array through the second pre-charge sensing amplifier circuit, compare the magnetic tunnel junction resistances in the two discharge paths, and output the comparison result.
9. A method for generating a dynamic excitation mutual selection MPUF of a double-layer dynamic excitation mutual selection MPUF circuit resistant to machine learning attacks as claimed in any one of claims 1 to 7, characterized in that: The second selection incentive module is used as an incentive module, and the first selection incentive module is used as a response module, including the following steps: Step 1, initializing all magnetic tunnel junction bits in the first spin transfer torque-magnetic random access memory array and the second spin transfer torque-magnetic random access memory array to the same state; Step 2: selecting two discharge paths from the second spin transfer torque-magnetic random access memory array through a second pre-charge sensing amplifier circuit according to the excitation signal input by the excitation module, comparing the magnetic tunnel junction resistances in the two discharge paths, and generating a response signal; Step 3, continuously input the excitation signal to the excitation module, repeat step 2 until the generated response signal can drive the response module to decode, input the response signal into the confusion decoding circuit, generate the excitation signal of the response module, select two discharge paths from the first spin transfer torque-magnetic random access memory array through the first pre-charge sensing amplifier circuit, compare the magnetic tunnel junction resistances in the two discharge paths, and output the comparison result.
Citation Information
Patent Citations
A method and apparatus for generating physically non-clonable functions of MRAM chips
CN109472169A
Physical unclonable function based on MRAM (Magnetic Random Access Memory) and generation method thereof
CN117951756A
Machine learning CRP confusion resisting method facing strong PUF
CN116522296A
Reconfigurable arbiter PUF (Physical Unclonable Function) capable of resisting machine learning attack
CN117874841A
Reconfigurable PUF device based on fully electric field-controlled domain wall motion
US20230124011A1
Cited By
Physical unclonable function generation method, circuit and generator
CN121682913A