Physical unclonable memory computing circuit and operation method thereof

By designing physically unclonable in-memory computing circuits in IoT devices, using memristor arrays and physically unclonable function modules, we solve the problems of high power consumption and difficult intellectual property protection in traditional computing architectures, and realize the processing of neural network data. Security protection.

CN118761447AActive Publication Date: 2024-10-11PEKING UNIV

Patent Information

Application Number
CN202410892355.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-10-11
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

The traditional computing architecture that separates storage and calculation consumes high power when running on IoT devices, resulting in short battery life, and the non-volatile nature of memristor storage makes it difficult to protect the intellectual property rights of neural network developers.

Method used

A physically unclonable in-memory computing circuit is designed. It uses a memristor array with a 1T1R unit structure and a physical unclonable function module to construct unclonable programming, readout and in-memory computing operations through differential storage and decoding modules to ensure that data is stored in the memory. Be protected while working.

Benefits of technology

Effectively prevent unauthorized data reading, protect the neural network intellectual property on the IoT chip, and ensure that data can only be used normally through authorized physical unclonable functions when reading.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118761447A_ABST
    Figure CN118761447A_ABST
Patent Text Reader

Abstract

The invention discloses a physical unclonable in-memory computing circuit and an operation method thereof, which are used for protecting neural network intellectual property in a memory-computing integrated system. The storage mode of original data is rearranged by utilizing the physical unclonable characteristic of the memristor, and physical unclonable programming, reading and in-memory calculation operations are constructed, so that the data in the in-memory calculation module can be protected in the working process. The in-memory computing array based on the 1T1R unit structure in the physical unclonable in-memory computing circuit can perform read operation and in-memory computing operation without being influenced; the decoding module is completely composed of combinatorial logic, and the calculation does not occupy an additional clock period. By constructing the physical unclonable in-memory computing circuit disclosed by the invention, the data stored in the memristor array can be effectively prevented from being read in an unauthorized manner, so that the neural network intellectual property in the memory-computing integrated chip is protected.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of semiconductor and complementary metal oxide semiconductor (CMOS) hybrid integrated circuits, and specifically relates to a memristor storage and computing integrated system and a working method suitable for a neuromorphic computing system of brain-inspired computing. Background Art

[0002] With the rapid development of IoT technology, the need to efficiently run AI algorithms on edge devices has become increasingly prominent. However, the computing architecture based on traditional storage and computing separation faces the "power consumption wall" and "storage wall" problems in AI computing. Traditional computing architectures consume high power and have short battery life when running on IoT devices, which hinders practical applications. At present, the emerging storage and computing integration technology can avoid the overhead caused by frequent data transfer and greatly improve the energy efficiency of running AI algorithms. It is expected to become an efficient solution for edge AI in the future.

[0003] Memristors can be used as a medium for implementing a storage-computing architecture. Memristors are resistive switching memory devices. They store the data to be stored in the form of resistance. The resistance state of a memristor can be controlled by an external excitation voltage. It is a non-volatile memory whose resistance can be maintained when no external excitation is applied. The memristor itself has a certain randomness during the programming process, and the resistance state obtained by programming presents a specific probability distribution. Therefore, memristors can also be used to generate random numbers and physically unclonable functions.

[0004] During use, memristors can be connected with transistors to form a 1T1R structural unit. Transistors can be used to gate and limit current, and can also control the target programming resistance state during programming. In actual use, memristor units are integrated into memristor arrays to achieve high-density storage and computing functions.

[0005] Since memristors are non-volatile memories, the data they store will not disappear when the chip is powered off. Users can also read the neural network model stored in the memristor array through a simple memory read operation. This is not conducive to protecting the intellectual property rights of neural network developers. Therefore, there is an urgent need to develop a storage and computing technology that can effectively protect the intellectual property rights on each IoT chip. Summary of the invention

[0006] The purpose of the present invention is to provide a physically unclonable in-memory computing circuit to protect the intellectual property rights of neural networks in a storage and computing integrated system.

[0007] The present invention utilizes the physical uncloning property of the memristor itself to rearrange the storage mode of the original data, constructs physical uncloning programming, reading and in-memory computing operations, and can protect the data in the in-memory computing module during the working process. Specifically, the technical solution adopted by the present invention is as follows:

[0008] A physically unclonable in-memory computing circuit includes an in-memory computing array based on a 1T1R unit structure, a physically unclonable function module, a BL module, a WL module, an SL module and a decoding module, wherein the circuit module design is as follows: Figure 1 As shown. The in-memory computing array has a scale of P rows and 2Q columns, each column is provided with a bit line (BL) and a source line (SL), each row is provided with a word line (WL), and the entire array uses a total of P word lines, 2Q bit lines and 2Q source lines. The in-memory computing array uses a differential storage method, and each row uses 2Q bit lines and 2Q source lines to store Q data. The array is a physically unclonable computing array, and the required physically unclonable response length is 2Q bits. The physically unclonable response includes Q 1s and Q 0s.

[0009] The physical unclonable function module can be a memristor array based on a 1T1R unit structure, a memristor array based on a 2T2R unit structure, or a memristor array of other unit structures, which is used to generate a physical unclonable function response. The physical unclonable function response is a data string containing equal amounts of 0 and 1, and its data distribution is random and repeatable. When using a memristor array to construct a physical unclonable function, a fixed programming voltage pulse is first used to program each unit in the entire array, and each unit in the array will present a certain random distribution of resistance states due to the randomness of the device itself. Based on this random distribution of resistance states, using a given threshold, the units in the memristor array can be divided into the same number of 0 or 1. When generating a physical unclonable function response, an address is input to the physical unclonable function module, and a string of random data of a 2Q-bit address can be read at the corresponding address. The physical unclonable function module generates a 2Q-bit physical unclonable function response (including Q bit 0 and Q bit 1) in the in-memory calculation array data writing, physical unclonable reading, and physical unclonable in-memory calculation stages. The physical unclonable function response is random, and the physical unclonable functions generated in different stages are completely consistent.

[0010] The BL module includes a 2Q output decoder, which is used to select the corresponding bit line according to the given address when in use. The BL module can connect the selected bit line to the outside world, and the outside world applies a signal. The 2Q output ports of the BL module are respectively connected to the 2Q bit lines of the in-memory computing array. The BL module has log 2(2Q) input ports are used to input a given address. The physical unclonable function module is connected to the in-memory computing array through the BL module, and the data is preprocessed in the BL module before being written.

[0011] The WL module includes a P-output decoder, which is used to select the corresponding word line according to the given address when in use. The WL module can connect the selected word line to the outside world, and the outside world applies a signal. The P output ports of the WL module are respectively connected to the P word lines of the in-memory computing array. The WL module has log 2 (P) input ports for inputting given addresses.

[0012] The SL module includes a 2Q output decoder, which is used to select the corresponding source line according to the given address when in use. The SL module can connect the selected source line to the outside world, and the outside world applies a signal. The 2Q output ports of the SL module are respectively connected to the 2Q source lines of the in-memory computing array. The SL module has log 2 (2Q) input ports for inputting given addresses.

[0013] The decoding module has 2Q column input ports, an input port of a 2Q-bit physical unclonable function response, and Q output ports, and outputs Q channel data after decoding. The 2Q column input ports are respectively connected to the outputs of 2Q source lines through the SL module, and the decoding module is regulated by the 2Q-bit physical unclonable function response, and restores the 2Q-bit data output stored in the in-memory calculation array to 2Q-bit differential data, and adds the adjacent 2Q-bit differential data in pairs to form Q calculation result data, which are output through the Q output ports.

[0014] Further, such as Figure 2 As shown, the decoding circuit of the decoding module includes a 2Q-Q asynchronous router and a Q channel register, and the 2Q column input ports and the input ports of the 2Q-bit physical unclonable function response are connected to the 2Q-Q asynchronous router. At the same time, the 2Q-Q asynchronous router is regulated by the 2Q-bit physical unclonable function response, and is used to restore the 2Q-bit data output stored in the in-memory calculation array to 2Q-bit differential data under the regulation of the physical unclonable function, and add the adjacent 2Q-bit differential data to form Q calculation result data. The Q calculation result data are stored in the Q channel register. In the data output stage, the decoding module outputs the Q calculation result data through the Q output ports.

[0015] In the above-mentioned memristor array of the in-memory computing array and the physical unclonable function module, the memristor constituting the array unit can be a memristor based on a metal-semiconductor-semiconductor-metal structure, or a memristor based on a metal-insulator-insulator-metal structure; the transistor is an N-type field effect transistor. The connection method of the memristor and the transistor in the 1T1R unit of the in-memory computing array is as follows Figure 3 As shown, one end of the memristor is connected to the bit line in the array, and the other end is connected to the drain of the transistor; the drain of the transistor is connected to the memristor, the source of the transistor is connected to the source line in the array, and the gate of the transistor is connected to the word line in the array.

[0016] When the above-mentioned in-memory computing array performs physically unclonable computing, the required physically unclonable response can be generated by a physically unclonable function module on the same chip, or by a physically unclonable function made by an external additional chip.

[0017] The physical unclonable in-memory computing circuit of the present invention can effectively prevent unauthorized weight reading. Combined with the application method of the physical unclonable in-memory computing circuit described below, unauthorized reading can be effectively prevented when performing artificial intelligence calculations, and thus the intellectual property rights of neural networks on IoT devices can be more effectively protected.

[0018] The in-memory computing array in the physically unclonable in-memory computing circuit of the present invention can perform read operations and in-memory computing operations without being affected. The decoding module is completely composed of combinational logic, and its calculation does not occupy additional clock cycles.

[0019] The physically unclonable in-memory computing circuit of the present invention supports multiple array efficient physically unclonable read and write methods, including the following modes:

[0020] 1) Data writing: For an in-memory computing array of size P rows and 2Q columns (P and Q are positive integers), write one row of data at a time. A total of Q data are written in one row, and each data is split into 2-bit differential units for storage (each data is split into positive units and negative units), so a total of 2Q bits of data are written. Before writing the data, the data is preprocessed first, and the 2Q-bit differential data is reorganized according to the 2Q-bit physical unclonable function response to obtain 2Q-bit reorganized data. During the data reorganization process, each positive unit corresponds to the position of each 1 in the physical unclonable function response, and each negative unit corresponds to the position of each 0 in the physical unclonable function response. The order between each positive unit remains unchanged, and the order between each negative unit remains unchanged.

[0021] 2) Physically unclonable read: For an in-memory computing array of size P rows and 2Q columns (P and Q are positive integers), the address p to be read is given to the array (p is an integer ranging from 0 to P-1), and the address p points to the p-th row of data in the in-memory computing array. After the address is given to the WL module, the p-th row of data in the array is selected, and the SL module reads out 2Q bits of data based on the address and inputs the data into the decoding module. The decoding module receives the 2Q bits of data and the response of the physically unclonable function, reorganizes the 2Q bits of data into Q result data, and completes the physically unclonable read operation.

[0022] 3) Physically unclonable in-memory calculation: For an in-memory calculation array of size P rows and 2Q columns (P and Q are positive integers), the address p to be read and the input vector Input[0:n-1] are fed into the array, where n is the length of the input vector. Address p points to the pth row of data in the in-memory calculation array. When the array performs in-memory calculation, rows p to p+n-1 are opened at the same time. Each column performs multiplication and accumulation calculations according to Kirchhoff's law. After the calculation is completed, the SL module reads out 2Q partial sum data according to the address and inputs the data into the decoding module. The decoding module receives the 2Q partial sum data and the physical unclonable function response, reorganizes the 2Q partial sum data into Q multiplication and accumulation result data, and completes the physical unclonable in-memory calculation operation.

[0023] Beneficial effects of the present invention:

[0024] By constructing the physically unclonable in-memory computing circuit of the present invention, it is possible to effectively prevent the data stored in the memristor array from being read without authorization, thereby protecting the intellectual property rights of the neural network in the integrated storage and computing chip. During the use of the chip, the physically unclonable function it possesses is unpredictable and cannot be copied. Although the user can read the data stored in the memristor array by reading the memory, the internal order of the data cannot be known to the outside world. That is, it can only be used normally when the read data is decoded by the authorized physically unclonable function. Therefore, in combination with the physically unclonable in-memory computing circuit proposed in the present invention, the data and intellectual property rights therein can be protected in the integrated storage and computing architecture. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1 It is a schematic diagram of the module structure of the physically unclonable in-memory computing circuit of the present invention.

[0026] Figure 2 Schematic diagram of a data decoding circuit of a physically unclonable in-memory computing circuit of the present invention.

[0027] Figure 3 The figure is a schematic diagram of a process of writing physically unclonable data to a physically unclonable in-memory computing circuit according to an embodiment of the present invention.

[0028] Figure 4 Schematic diagram of the data reading process of the memory of the physical non-clonable in-memory computing circuit according to an embodiment of the present invention.

[0029] Figure 5 Schematic diagram of the integrated storage and computing process of the physically unclonable in-memory computing circuit described in an embodiment of the present invention. DETAILED DESCRIPTION

[0030] The present invention will be further described below through specific embodiments in conjunction with the accompanying drawings.

[0031] The following embodiment uses a memristor array with a 1T1R unit structure to perform physical unclonable reading and in-memory computing to construct a physical unclonable in-memory computing circuit of the present invention. The structure of the physical unclonable in-memory computing circuit is as follows: Figure 1 As shown in FIG. 1 , the peripheral circuit of the memristor array of the 1T1R unit structure includes a BL module, an SL module, a WL module, a physical unclonable function module and a decoding module. Figure 2 As shown, the decoding circuit of the decoding module includes 2Q column input ports, 2Q physical unclonable function response input ports and Q output ports, wherein the 2Q column input ports are respectively connected to the outputs of the 2Q source lines of the SL module. In the decoding circuit, the 2Q column input ports are further connected to the 2Q-Q asynchronous router. At the same time, the 2Q-Q asynchronous router is regulated by the 2Q physical unclonable function response, and is used to restore the 2Q memristor data output to 2Q bit differential data under the regulation of the physical unclonable function, and add the 2Q bit differential data adjacent to each other to form Q calculation result data. The Q calculation result data are stored in the Q channel register. In the data output stage, the decoding module outputs the Q calculation result data through Q channels. In the embodiment, three positive integer variables M, Q, and P are used to describe the topological structure of the array. These three variables are independently valued and must satisfy M≥P. The present invention supports customized M, Q, and P positive integer values.

[0032] The operations imposed by the key programming steps of the above physically unclonable in-memory computing circuit are given below:

[0033] 1) Physical unclonable function generation: The memristor array (M rows and 2Q columns) of the physical unclonable function module on the chip can be used to generate the physical unclonable function. The memristor array is programmed to extract the resistance state distribution differences between its devices and construct a physical unclonable function. When using the memristor array to construct the physical unclonable function, a fixed programming voltage pulse is first used to program each unit in the entire array. Each unit in the array will present a certain resistance state random distribution due to the randomness of the device itself. Based on this resistance state random distribution, using a given threshold, the units in the memristor array can be divided into the same number of 0 or 1. Each row in the physical unclonable function array includes Q bits 1 and Q bits 0, which is called a physical unclonable function response. When the physical unclonable function response is needed, the array is input with address m (m is an integer ranging from 0 to M-1), the address m selects the mth row of the physical unclonable function memristor array, and the physical unclonable function response stored in the 2Q units of the row is read out, and the array outputs a 2Q-bit physical unclonable function response. The random data is repeatable, that is, when the same address is input into the physical unclonable function module, the output result remains the same.

[0034] 2) Data writing of the memristor array with 1T1R unit structure: Figure 3 As shown, for a memristor array of size P rows and 2Q columns (P and Q are positive integers), one row of data is written each time. In order to complete the writing of the entire array, a total of P writes are required. When writing the pth row of data, it is necessary to read the response of the pth row from the physical unclonable function module at the same time, and use the response to pre-process the data to be written through the BL module. A total of Q data are written in one row (each data is split into 2-bit differential unit storage), and a total of 2Q bits of data are written. By traversing the write address p from 0 to P-1, a total of P addresses are traversed to complete the data writing of the entire array.

[0035] 3) Physically unclonable read: Figure 4 As shown, for a memristor array of size P rows and 2Q columns (P and Q are positive integers), one row of data is read out each time. In order to complete the readout of the entire array, a total of P readouts are required. When reading out the pth row of data, it is necessary to simultaneously read the response of the pth row from the physical unclonable function module, and use the response to reorganize the data to be read out. During the reorganization process, the data to be read out and the physical unclonable function are both input into the decoding circuit and reorganized into Q readout data.

[0036] 4) Physically unclonable in-memory computing: Figure 5As shown, for a memristor array of size P rows and 2Q columns (P and Q are positive integers), the address p to be read and the input vector Input[0:n-1] are fed into the array, where n is the length of the input vector. In order to complete the in-memory calculation of the entire array, a total of P / n readouts are required. When rows p to p+n-1 are simultaneously opened for in-memory calculation, the response of the pth row needs to be read from the physical unclonable function array at the same time, and the response is used to reorganize the calculation result data. Outside the array, a total of Q groups of registers are used to store partial sums. After each calculation of rows p to p+n-1 is completed, the Q results generated by the reorganization are respectively accumulated in the Q groups of registers.

[0037] The above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit the same. A person skilled in the art may modify or make equivalent substitutions for the technical solutions of the present invention without departing from the spirit and scope of the present invention. The protection scope of the present invention shall be subject to the claims.

Claims

1. A physically unclonable in-memory computing circuit, comprising an in-memory computing array based on a 1T1R unit structure, a physically unclonable function module, a BL module, a WL module, an SL module and a decoding module, wherein: The in-memory computing array based on the 1T1R cell structure is composed of P rows and 2Q columns of 1T1R cells, each column is provided with a bit line and a source line, and each row is provided with a word line; The in-memory computing array is a physical unclonable computing array, and the required physical unclonable response length is 2Q bits; the in-memory computing array adopts a differential storage method, and each row uses 2Q bit lines and 2Q source lines to store Q data; wherein P and Q are positive integers; The physical unclonable function module is used to generate a 2Q-bit physical unclonable function response, wherein the physical unclonable response includes Q 1s and Q 0s; The BL module includes a 2Q-output decoder, whose 2Q output ports are respectively connected to the 2Q bit lines of the in-memory computing array, and is used to select the corresponding bit line according to a given address when in use; The WL module includes a P-output decoder, whose P output ports are respectively connected to P word lines of the in-memory computing array, and is used to select the corresponding word line according to a given address when in use; The SL module includes a 2Q-output decoder, whose 2Q output ports are respectively connected to the 2Q source lines of the in-memory computing array, and is used to select the corresponding source line according to a given address when in use; The decoding module has 2Q column input ports, an input port of a 2Q-bit physical unclonable function response and Q output ports, wherein the 2Q column input ports are respectively connected to the outputs of 2Q source lines through an SL module; the decoding module is regulated by the 2Q-bit physical unclonable function response, restores the 2Q-bit data output stored in the in-memory calculation array to 2Q-bit differential data, and adds the adjacent 2Q-bit differential data in pairs to form Q calculation result data, which are output through the Q output ports.

2. The physically unclonable in-memory computing circuit according to claim 1, characterized in that: In the in-memory computing array, the memristor constituting the 1T1R unit is a memristor based on a metal-semiconductor-semiconductor-metal structure, or a memristor based on a metal-insulator-insulator-metal structure; The transistor is an N-type field effect transistor; One end of the memristor is connected to a bit line in the array, and the other end is connected to a drain end of a transistor. The source end of the transistor is connected to a source line in the array, and the gate of the transistor is connected to a word line in the array.

3. The physically unclonable in-memory computing circuit according to claim 1, characterized in that: The BL module has log2(2Q) input ports for inputting a given address, the WL module has log2(P) input ports for inputting a given address, and the SL module has log2(2Q) input ports for inputting a given address.

4. The physically unclonable in-memory computing circuit according to claim 1, characterized in that: The physical unclonable function module is a memristor array based on a 1T1R unit structure or a 2T2R unit structure, and is composed of M rows and 2Q columns of array units, wherein M is a positive integer greater than or equal to P.

5. The physically unclonable in-memory computing circuit according to claim 1, characterized in that: The decoding module comprises a 2Q-Q asynchronous router and a Q channel register, and the 2Q column input ports of the decoding module and the input ports of the 2Q-bit physical unclonable function response are connected to the 2Q-Q asynchronous router; The 2Q-Q asynchronous router is regulated by the response of the 2Q-bit physical unclonable function, and restores the 2Q-bit data output stored in the in-memory computing array to 2Q-bit differential data, and adds the adjacent 2Q-bit differential data in pairs to form Q calculation result data, which are stored in the Q channel register; in the data output stage, the decoding module outputs the Q calculation result data through Q output ports.

6. The method for operating the physically unclonable in-memory computing circuit according to any one of claims 1 to 5, comprising: 1) Data writing: For an in-memory computing array of size P rows and 2Q columns, one row of data is written each time, and a total of Q data is written in one row. Each data is split into 2-bit differential units for storage, and a total of 2Q bits of data are written. Before writing the data, the data is preprocessed, that is, the 2Q-bit differential data is reorganized according to the 2Q-bit physical unclonable function response to obtain 2Q-bit reorganized data; 2) Physical non-clonable read: For an in-memory computing array of size P rows and 2Q columns, the address p to be read is given. The address p points to the p-th row of data in the in-memory computing array. The SL module reads out 2Q bits of data according to the address and inputs the data into the decoding module. The decoding module receives the 2Q-bit data and the physical unclonable function response, reorganizes the 2Q-bit data into Q result data, and completes the physical unclonable read operation; 3) Physically non-clonable in-memory calculation: For an in-memory calculation array of size P rows and 2Q columns, the address p to be read and the input vector Input[0:n-1] are fed into the array, where n is the length of the input vector, and the address p points to the pth row of data in the in-memory calculation array; when the array performs in-memory calculation, rows p to p+n-1 are opened at the same time, and each column performs multiplication and accumulation calculation according to Kirchhoff's law; after the calculation is completed, the SL module reads out 2Q parts and data according to the address, and inputs the data into the decoding module; The decoding module receives 2Q partial sum data and a physical unclonable function response, reorganizes the 2Q partial sum data into Q multiplication-accumulation result data, and completes the physical unclonable in-memory computing operation.

7. The operating method according to claim 6, characterized in that: The physical unclonable function response is a data string containing equal amounts of 0s and 1s. In 1) a data writing operation, each data is split into a positive unit and a negative unit. Each positive unit corresponds to the position of each 1 in the physical unclonable function response, and each negative unit corresponds to the position of each 0 in the physical unclonable function response. The order between each positive unit remains unchanged, and the order between each negative unit remains unchanged.

8. The operating method according to claim 6, characterized in that: In 1) the data writing operation, the data writing to the entire array is completed by traversing the write address p from 0 to P-1, traversing a total of P addresses; when writing the pth row of data, the response of the pth row is read from the physical unclonable function module at the same time, and the response is used to reorganize the data to be written.

9. The operating method according to claim 6, characterized in that: In 2) the physical unclonable read operation, the entire in-memory computing array needs to be read out P times; when reading out the p-th row of data, the response of the p-th row is read from the physical unclonable function module at the same time, and the data to be read and the physical unclonable function are both input into the decoding module and reorganized into Q read data.

10. The operating method according to claim 6, characterized in that: In 3) the physically unclonable in-memory computing operation, in order to complete the in-memory computing of the entire array, a total of P / n readouts are required; when rows p to p+n-1 are simultaneously opened for in-memory computing, the response of the pth row is read from the physically unclonable function array at the same time, and the computing result data is reorganized using the response.

Citation Information

Patent Citations

  • Multi-mode reconfigurable physical unclonable function circuit and method thereof

    CN113515783A

  • Generating key material for information security using a Resistive Processing Unit (RPU) accelerator array as a Physically Unclonable Function (PUF)

    US20200295953A1

Cited By

  • Storage-calculation-encryption integrated circuit with dual modes and operation method thereof

    CN119847979A