A carry-less multiplication storage array based on SRAM

By using a carry-free multiplication storage array composed of SRAM and an XOR tree in the storage array, and using two-input NAND gates for parallel calculations, the problems of high delay and high energy consumption in the traditional computing architecture are solved, and efficient carry-free computing is achieved. Carry multiplication calculation.

CN118034643BActive Publication Date: 2024-09-13ZHEJIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410087862.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-22
Publication Date
2024-09-13
Estimated Expiration
2044-01-22

AI Technical Summary

Technical Problem

The traditional von Neumann computing architecture causes high latency and high energy consumption problems, especially the bottleneck of memory in data processing. Existing carry-free multiplication technology has deficiencies in computing efficiency and resource usage.

Method used

A carry-free multiplication storage array based on SRAM is designed, which is composed of storage units and XOR trees. Parallel calculations are performed through two-input NAND gates, which reduces the number of transistors and power consumption and improves computing efficiency.

Benefits of technology

It significantly improves the efficiency of carry-free multiplication calculations, reduces the number of calculation cycles and power consumption, reduces the circuit size, improves the energy efficiency ratio and calculation density, and is suitable for a variety of application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118034643B
    Figure CN118034643B
Patent Text Reader

Abstract

The present invention provides a carry-free multiplication storage and calculation array based on SRAM, including m×m storage and calculation units based on SRAM structure and N×m XOR trees; the single-bit streams generated by the multipliers input by the storage and calculation units in the same row are the same, each row of storage and calculation units simultaneously inputs N single-bit streams generated by the multipliers, and each column of storage and calculation units outputs N×m calculation result values ​​in one calculation cycle, and the N×m calculation result values ​​are used as input data of N m-input XOR trees, and N single-bit calculation results are finally obtained through the calculation of the XOR trees, and the carry-free multiplication storage and calculation array finally obtains N×m single-bit data calculation results. The present invention greatly improves the efficiency of carry-free multiplication calculation by combining in-memory calculation technology; and uses NAND gates instead of AND gates to complete the AND operation required for carry-free multiplication, further reducing the number of transistors required, and reducing the power consumption and resource usage required for calculation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of storage-computing integration and brain-like computing, and specifically relates to a carry-free multiplication storage-computing array based on SRAM (static random access memory). Background Art

[0002] Today's society has higher and higher requirements for data, computing power, and chip performance, and it is urgent to improve computing power and data efficiency. The von Neumann system running on traditional computers includes two parts: storage units and computing units, that is, storage and computing separation architecture. Therefore, when traditional computers implement operations, they need to first store data in the main memory, and then take out instructions from the main memory in order to execute them in sequence. Data needs to be frequently migrated between the processor and the memory, and the energy consumed by reading and writing data in the memory once is hundreds of times more than the energy consumed by calculating data once. The high latency and high energy consumption caused by the traditional von Neumann architecture have become problems that need to be solved urgently, and the short board memory has become the main bottleneck restricting the improvement of data processing speed. Storage and computing integration is to embed computing power in the memory, and perform two-dimensional and three-dimensional matrix multiplication / addition operations with a new computing architecture, that is, to use the memory to calculate the data, thereby avoiding the "storage wall" and "power consumption wall" generated by data transfer, and improving data parallelism and efficiency. The existing technology for calculating carry-less multiplication mainly accelerates the carry-less multiplication operation by adding additional instructions to the processor or using FPGA to implement a customized multiplier. Adding additional instructions to the processor does not improve the efficiency of carry-less multiplication calculations much. For example, in the BIKE (bit flip key encapsulation technology) algorithm that uses carry-less multiplication, the BIKE team has made some optimizations for x86 machines, but the speed of completing carry-less multiplication is heavily dependent on the use of carry-less multiplication instructions (such as pclmulqdq), and it still takes tens of thousands of cycles to complete a single carry-less multiplication calculation. Although using FPGA to implement a custom multiplier reduces the number of calculation cycles, it also consumes a lot of resources. Summary of the invention

[0003] The present invention provides a carry-free multiplication storage and calculation array based on SRAM, comprising m columns of storage and calculation unit groups constructed based on SRAM and m columns of XOR tree groups; the storage and calculation unit group is composed of m storage and calculation units, and the XOR tree group is composed of N XOR trees; m is an integer greater than or equal to 2, N = 1, 2, 4, 8, ... 2 q , q is a natural number;

[0004] Each of the storage and calculation units is composed of an SRAM and N two-input NAND gates. The SRAM outputs one bit of information of the stored multiplicand. The output of the SRAM is used as the input of one of the input ends of the N two-input NAND gates. The other input ends of the N two-input NAND gates are respectively input with N single-bit streams generated by the multiplier. The N two-input NAND gates respectively output the result of the NAND of the two inputs, that is, output N single-bit binary numbers.

[0005] The N single-bit binary numbers output by each storage unit of the j-th column storage unit group are respectively input into each XOR tree of the j-th column XOR tree group, j=1, 2, ..., m, each XOR tree receives a total of m single-bit binary numbers, and outputs a single-bit binary number result of the XOR of the m single-bit binary numbers;

[0006] Each column of storage and computing units outputs N×m single-bit binary numbers in one calculation cycle. The N×m single-bit binary numbers are used as input data of N m-input XOR trees. N single-bit calculation results are finally obtained through the calculation of the XOR tree. The m columns of the storage and computing unit group obtain a total of N×m single-bit calculation results. In one calculation cycle, the carry-less multiplication storage and computing array finally obtains N×m single-bit data calculation results.

[0007] Furthermore, the multiplicand is stored in the SRAM of the storage and calculation array in the form of single-bit information, each SRAM outputs different one-bit information of the same multiplicand, a two-input NAND gate calculates the NAND result of a single bit of the single-bit stream generated by the multiplier and the one-bit information of the multiplicand, and completes the product operation between single bits in the carry-less multiplication; the XOR tree further performs an XOR operation on the product output by the two-input NAND gate, completes the carry-less operation in the carry-less multiplication, and finally outputs a partial product result.

[0008] Furthermore, the N single-bit streams generated by the multipliers input into the storage and computing units in the same row are the same, and each row of storage and computing units simultaneously inputs the N single-bit streams generated by the multipliers, and the N single-bit streams generated by the multipliers are respectively input into the N two-input NAND gates of each storage and computing unit in the row.

[0009] Furthermore, the binary representation of the multiplier is a n-1 a n-2 a n-3 …a2a1a0, the kth row of the carry-less multiplication storage array, cyclically shift the binary representation of the multiplier to the left by m*(k-1) bits to obtain a new binary number, k=1,2,3,…,m; fill the high bits of the new binary number with zeros to make it a binary number x with a length of g*N g*N-1 x g*N-2 xg*N-3 …x2x1x0, where g=ceil(n / N), and the ceil() function is a round-up function; the i-th two-input NAND gate of the k-th row storage unit of the carry-less multiplication storage array, i=1,2,3,…,N, has a single-bit stream x as its input. i-1 ,x i-1+N ,x i-1+2*N ,x i-1+3*N ,…,x i-1+(g-1)*N .

[0010] Furthermore, all the SRAMs in each column respectively output different one-bit information of the same multiplicand stored therein, and each SRAM outputs the one-bit information of the stored multiplicand to N two-input NAND gates in the storage unit where it is located, and the other input ends of the N two-input NAND gates respectively input N single-bit streams generated by the multiplier, and each column of storage units outputs N×m single-bit binary numbers to N m-input XOR trees in one calculation cycle, and the N XOR trees output N single-bit calculation results. After one calculation cycle, the SRAM-based carry-free multiplication storage array outputs N×m single-bit calculation results, and the N×m single-bit calculation results are represented by a matrix O of size N×m; in a column of storage units, the result of the calculation of the i-th two-input NAND gate of each storage unit will be output to the same XOR tree, i=1,2,…,N, and the column of storage units is the j-th column, j=1,2,…,m, then the single-bit calculation result output by the XOR tree at this time is the element O in the matrix O. ij The corresponding value.

[0011] The present invention also provides a carry-free multiplication operation method using the SRAM-based storage and calculation array to calculate the carry-free multiplication of A×B, the multiplicand B is stored in the SRAM of the storage and calculation array in the form of single-bit information, the SRAM outputs one-bit information of the multiplicand B, in each row of the storage and calculation array, N single-bit streams generated by the multiplier A and the output of the SRAM are input into the two-input NAND gate of the storage and calculation unit where the SRAM is located; in a calculation cycle, the result output by the two-input NAND gate is the product of the single-bit information of B stored in the SRAM and the single-bit data in the single-bit stream generated by the multiplier A input in the cycle, the results output by the two-input NAND gates of all the storage and calculation units are input into the corresponding XOR tree to perform mutual XOR operation, and the result finally output by the XOR tree is the partial product result of the carry-free multiplication calculation of A×B.

[0012] The advantages of the present invention are as follows:

[0013] The present invention greatly improves the efficiency of carry-less multiplication calculation by combining in-memory computing technology; uses NAND gates instead of AND gates to complete the AND operation required for carry-less multiplication, further reducing the number of transistors required, and reducing the power consumption and resource usage required for calculation; at the same time, a single memory unit is used to use N two-input NAND gates for parallel calculation, which can greatly reduce the number of cycles required for calculation; the configurable parameter array size m and the number of parallel calculations N also make its application scenarios more extensive.

[0014] (1) For carry-less multiplication operations, a carry-less multiplication storage and calculation array based on SRAM is proposed. The storage and calculation array uses NAND gates instead of AND gates to complete the AND operation required for carry-less multiplication. The gate circuits used use a smaller number of transistors, which effectively reduces the scale of the circuit, reduces the power consumption and area of ​​the circuit, and improves the energy efficiency and computing density.

[0015] (2) By making a single storage and computing unit use N two-input NAND gates for parallel computing, the computational complexity of a single computing cycle is significantly improved, which can effectively reduce the complexity of the operation and the number of computing cycles.

[0016] (3) The parameter m in the size of the SRAM-based carry-less multiplication storage array and the parameter N of the parallel computing amount are configurable variables, and both can select corresponding values ​​according to specific needs. Therefore, the array can be configured according to the calculation requirements of carry-less multiplication in different application scenarios, with higher flexibility and wider application range. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 Schematic diagram of the structure of a 128-input XOR tree;

[0018] Figure 2 The structure diagram of the jth column of the carry-less multiplication storage array;

[0019] Figure 3 The overall architecture diagram of the carry-less multiplication storage array;

[0020] Figure 4 Schematic diagram of the architecture of polynomial multiplication calculation in the BIKE algorithm. DETAILED DESCRIPTION

[0021] The present invention is further described and illustrated below in conjunction with specific embodiments. The embodiments are merely exemplary of the present disclosure and do not define the scope of limitation. The technical features of each embodiment of the present invention may be combined accordingly without conflicting with each other.

[0022] Among the methods for implementing in-memory computing, SRAM has simple and clear storage logic, and is easier to integrate with current digital processor technology. At the same time, SRAM is close to the CPU and has a greater read and write performance advantage. Carry-free multiplication, that is, multiplication without carry operation, is mathematically defined as Galois Field GF(2 n ), define the polynomial where a i ,b i ∈{0,1}, c i =Σ j+k=i a j b k mod 2∈{0,1}. In the design of in-memory computing, each storage and computing unit not only stores data but also performs operations on data. The storage and computing array mainly completes the partial product operation of carry-less multiplication. The fully expanded storage and computing array can complete the partial product calculation of carry-less multiplication at one time and output the corresponding calculation results. For the entire device array, it has the characteristics of fast speed, high parallelism and good energy efficiency. It is suitable for applications that require a large number of carry-less multiplication operations, such as post-quantum cryptography BIKE (bit flip key encapsulation technology), HQC (Hamming quasi-cyclic key encapsulation technology) and other algorithms.

[0023] The present invention provides a carry-free multiplication storage array based on SRAM, which is suitable for Galois field GF(2 n ). The carry-less multiplication storage array is composed of storage units and XOR trees based on SRAM. The size of the carry-less multiplication storage array is m×m (m=16,32,64,128,…), that is, it is composed of m×m storage units and XOR trees. In particular, in order to store all the multipliers in the storage units, m×m≥n is required. Taking the calculation of carry-less multiplication C=A×B as an example, where a i ,b i ∈{0,1}, c i =Σ j+k=i a j b k mod 2∈{0,1}. The input of the carry-less multiplication storage array is a single bit stream generated by the multiplier A, and the data stored in the storage unit is the multiplicand B. The specific array architecture design is introduced as follows:

[0024] A storage unit consists of an SRAM and N (N = 1, 2, 4, 8, ...) two-input NAND gates. The XOR tree is a tree structure built by two-input XOR gates. Its input is m single-bit binary numbers, and its output is the single-bit binary number result of the XOR of these m single-bit binary numbers. An m-input XOR tree consists of multiple two-input XOR gates. Taking m = 128 as an example, its tree structure is as follows Figure 1 As shown. To calculate the result of mutual XOR of m single-bit binary numbers, ceil(log2(m)) levels of XOR trees are required, and the ceil() function is a rounding function; the m single-bit binary numbers are input into the two-input XOR gates of the first level of the XOR tree, and two-by-two XOR calculations are performed. The input of each level of two-input XOR gates starting from the second level depends on the output of the two-input XOR gates of the previous level, that is, the two inputs of a two-input XOR gate of the next level are the output results of the two two-input XOR gates of the previous level, and so on. The output result of the two-input XOR gate of the last level is the output result of the entire XOR tree, that is, the result of mutual XOR of the m single-bit binary inputs.

[0025] The data output by the SRAM is input to one of the input terminals of the N two-input NAND gates, and the data input to the other input terminal of the NAND gate is a single bit stream generated by the multiplier A. In particular, the single bit stream generated by the multiplier A input to the storage units in the same row of the carry-free multiplication storage array is the same, and each row of storage units simultaneously inputs N single bit streams generated by the multipliers A. The size of the carry-free multiplication storage array is m×m, that is, each column of storage units outputs N×m calculation result values ​​in one calculation cycle. These N×m calculation result values ​​will be used as input data of N m-input XOR trees, and N single-bit data calculation results will eventually be obtained through the calculation of the XOR tree. The j-th (j=1, 2,…, m) column structure (i.e., single column structure) of the carry-free multiplication storage array is as follows: Figure 2 As shown. In particular, within one calculation cycle, in a column of storage units, the result of calculation by the i-th (i=1, 2, ..., N) two-input NAND gate of each storage unit will be output to the same XOR tree. A carry-less multiplication storage array of size m×m has a total of m columns of storage units, so the carry-less multiplication storage array has a total of N×m m-input XOR trees. Within one calculation cycle, the carry-less multiplication storage array finally obtains N×m single-bit data calculation results. The overall architecture of the carry-less multiplication storage array is shown as follows. Figure 3 As shown, the final output result can be represented by a matrix O of size N×m, where in a column of storage units, since the result of the calculation of the i-th (i=1,2,…,N) two-input NAND gate of each storage unit will be output to the same XOR tree, if the column of storage units is the j-th (j=1,2,…,m) column, then the single-bit data result output by the XOR tree is the element O in the matrix O.ij The corresponding value.

[0026] BIKE is a code-based key encapsulation mechanism based on QC-MDPC (quasi-cyclic medium-density parity check) codes. The quasi-cyclic code used in the BIKE algorithm allows all matrix operations to be treated as polynomial operations. According to performance analysis results, polynomial multiplication is one of the most expensive operations in the BIKE algorithm. The polynomial multiplication in the BIKE algorithm is performed on the cyclic polynomial ring F2[x] / (x r -1), where F2 represents a binary finite field. Therefore, assuming A = a0 + a1x + ... + a r-1 x r-1 , B=b0+b1x+…+b r-1 x r-1 , where a i ,b i ∈{0,1}, the polynomial multiplication in the BIKE algorithm is C=(A×B)%(x r –1), where A×B is the carry-less multiplication operation, and C is the carry-less multiplication operation of A×B and the irreducible polynomial (x r –1). The reduction operation is to move the part of the term with a degree greater than or equal to r in the result of the A×B carry-free multiplication operation to the part with a lower degree, and perform an XOR operation on the two parts. The output calculation result is the polynomial multiplication C=(A×B)%(x r –1).

[0027] The above scheme is further explained by taking the carry-less multiplication operation in the BIKE algorithm as an example. Since the BIKE algorithm can be instantiated with three different parameter sets to meet the different security levels recommended by NIST (National Institute of Standards and Technology), this embodiment will calculate the carry-less multiplication used by the BIKE algorithm when the security level is 1, that is, the parameter r = 12323. Therefore, assuming A = a0 + a1x + ... + a 12322 x 12322 , B=b0+b1x+…+b 12322 x 12322 , where a i ,b i ∈{0,1}. The following will use binary bits to represent the specific values ​​of A, B, and C, that is, a 12322 a 12321 …a1a0 represents the multiplier A, with b 12322 b 12321 ...b1b0 represents the multiplicand B, with c 12322 c 12321…c1c0 represents the multiplication result C. The storage array size parameter m=128 selected in this embodiment, the number of parallel calculations parameter N=4, and the SRAM-based carry-less multiplication storage array only needs g=ceil(r / N)=ceil(12323 / 4)=3081 calculation cycles to complete a polynomial multiplication calculation. The ceil() function here is a rounding up function, which returns an integer greater than or equal to the function parameter and closest to it. Using the SRAM-based carry-less multiplication storage array described in the present invention, the polynomial multiplication C=(A×B)%(x r –1) The overall structure is as follows Figure 4 As shown, the calculation operation method is as follows.

[0028] In this embodiment, a storage and calculation array is formed according to the value of the multiplicand B. The specific form of storing B in the storage and calculation array is: every 97 bits of B (if less than 97 bits, the high bits are filled with 0) are stored in the same row of the storage and calculation array, and the high bits are filled with 0, and the storage operation of a total of 128 rows is completed in sequence. For the kth (k = 1, 2, 3, ..., 126, 127) row storage and calculation unit of the storage and calculation array, the 128 data stored are 0, 0, ..., 0, 0, b respectively. 97*(k-1)+96 ,b 97*(k-1)+95 ,…,b 97*(k-1)+2 ,b 97*(k-1)+1 ,b 97*(k-1) ; For the last row (k=128) of the storage and calculation array, the 128 data stored are 0, 0, ..., 0, 0, b 12322 ,…,b 97*127+1 ,b 97*127 That is, the data stored in the first row of 128 storage units of the storage array are 0, 0, ..., 0, 0, b respectively. 96 ,b 95 ,…,b2,b1,b0, the data stored in the second row of 128 storage units are 0,0,…,0,0,b 194 ,b 193 ,…,b 99 ,b 98 ,b 97 , and so on, the data stored in the last row of 128 storage units are 0,0,…,0,0,0,b 12322 ,b 12321 ,b 12320 ,b 12319 .

[0029] In this embodiment, the input of the storage and calculation array is formed according to the value of the multiplier A. For the storage and calculation unit of the kth row (k = 1, 2, 3, ..., 126, 127, 128) of the storage and calculation array, the input data is formed as follows.12322 a 12321 …a1a0 represents the multiplier A, and the binary number is cyclically shifted left by 97*(k-1) bits to obtain a new binary number

[0030] A i =a 12323-97*(k-1)-1 a 12323-97*(k-1)-2 …a2a1a0a 12322 a 12321 …a 12323-97*(k-1)+2 a 12323-97*(k-1)+ 1a 12323-97*(k-1) For the convenience of description, the following uses binary number x 12322 x 12321 …x1x0 represents the new binary number obtained by cyclically shifting the binary number of the multiplier A to the left. The high bits of the binary number are filled with zeros to make it a binary number A with a length of g*N. i =x g*N-1 x g*N-2 …x1x0. The number of parallel computations is N, so a row of storage and computation units has N inputs. The N inputs are constructed as follows: for the i-th (i=1,2,3,…,N) input, the input bit stream is x i-1 ,x i-1+N ,x i-1+2*N ,x i-1+3*N ,…,x i-1+(g-1)*N , a total of g = 3081 bits. In this embodiment, the parameter of the number of parallel calculations is N = 4, and a row of storage units has N = 4 inputs. Therefore, the bit stream of the i-th (i = 1, 2, 3, 4) input of the row of storage units is x i-1 ,x i+3 ,x i+7 ,…,x i+12311 ,x i+12315 ,x i+12319 is constructed and input into the corresponding input end of the storage and calculation array.

[0031] In this embodiment, each storage unit of the storage unit array performs operations on the input, and the calculation results of the storage unit will be input into the XOR tree for XOR operation. Finally, after a calculation cycle, the SRAM-based carry-less multiplication storage unit array of the present invention will output 4×128 single-bit data calculation results, which can be represented by a matrix O of size 4×128.

[0032] In this embodiment, the row vectors of the matrix O are represented by binary numbers. Considering that only the last 97 columns of the storage and calculation array in this embodiment store data, in order to reduce the amount of calculation and facilitate calculation, the values ​​of the four row vectors are represented as 100-bit binary numbers O1, O2, O3 and O4, respectively, where the lower 97 bits are the last 97 bits of the values ​​of each row of the matrix O, and the remaining upper 3 bits are filled with zeros, and these four binary numbers are input into the shift XOR module. In the shift XOR module, O2 is shifted left by 1 bit, O3 is shifted left by 2 bits, and O4 is shifted left by 3 bits, and the lower bits are filled with zeros. The three newly obtained binary numbers are XORed together with O1, and finally a 100-bit binary number result P is output.

[0033] In this embodiment, P is input into the register module, and the length of the register module is 100+4*C n Bit, the C here n Indicates that every time C n Each calculation cycle will perform a write operation on the memory. This register module mainly implements the "calculation + storage" function. It first writes the output result R of the register module in the previous calculation cycle to the memory. last Perform a logical right shift of N = 4 bits and convert the shifted R last The high 100 bits of the register are XORed with the output result P of this calculation cycle, and finally a new register output result R is obtained. now . R now The low bits are data that have been calculated but not written into the memory, and the high bits are data that have not been calculated yet.

[0034] In this embodiment, the memory read and write length is 4*Cn bits. n The lower 4*Cn bits of data stored in the register module are written into the memory in a calculation cycle. In this embodiment, the parameter C n =32 as an example, that is, the memory read and write length is 128 bits, and the data R stored in the register module last Size is 100+4*C n = 228 bits. Since the calculation of the lowest bit result of the polynomial multiplication in the BIKE algorithm is also related to the calculation result of the last shift XOR module, the lowest 128 bits of the previously calculated result need to be re-read from the memory, and then XORed and written back. The 128 bits of data re-read from the memory will be combined with the data R stored in the register module. last The middle 128 bits (i.e. R last The [227:0] and [162:35] parts (a total of 128 bits) are XORed, and the output result is written back to the corresponding position where the original lowest 128 bits of the calculation result are stored in the memory. Finally, the result stored in the memory is the result value of the polynomial multiplication C=A×B in the BIKE algorithm.

[0035] In this embodiment, the present invention reduces the number of calculation cycles of polynomial multiplication in the BIKE algorithm to 3081 cycles, which greatly reduces the amount of calculation and improves the calculation efficiency compared to the millions of cycles required for the RISCV hardware processor to complete the calculation. At the same time, the storage and calculation array of the present invention is small in scale, the circuit has low power consumption and small area, and has higher energy efficiency and calculation density.

[0036] The above-mentioned embodiments only express several implementation methods of the present invention, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the present invention. For ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention.

Claims

1. A carry-less multiplication storage array based on SRAM, characterized in that: It includes m columns of storage and computing unit groups based on SRAM and m columns of XOR tree groups; the storage and computing unit group is composed of m storage and computing units, and the XOR tree group is composed of N XOR trees; m is an integer greater than or equal to 2, N = 1, 2, 4, 8, ... 2 q , q is a natural number; Each of the storage and calculation units is composed of an SRAM and N two-input NAND gates. The SRAM outputs one bit of information of the stored multiplicand. The output of the SRAM is used as the input of one of the input ends of the N two-input NAND gates. The other input ends of the N two-input NAND gates are respectively input with N single-bit streams generated by the multiplier. The N two-input NAND gates respectively output the result of the NAND of the two inputs, that is, output N single-bit binary numbers. The N single-bit binary numbers output by each storage unit of the j-th column storage unit group are respectively input into each XOR tree of the j-th column XOR tree group, j=1, 2, ..., m, each XOR tree receives a total of m single-bit binary numbers, and outputs a single-bit binary number result of the XOR of the m single-bit binary numbers; Each column of storage and computing units outputs N×m single-bit binary numbers in one calculation cycle. The N×m single-bit binary numbers are used as input data of N m-input XOR trees. N single-bit calculation results are finally obtained through the calculation of the XOR tree. The m columns of the storage and computing unit group obtain a total of N×m single-bit calculation results. In one calculation cycle, the carry-less multiplication storage and computing array finally obtains N×m single-bit data calculation results.

2. The SRAM-based carry-less multiplication storage array according to claim 1, characterized in that: The multiplicand is stored in the SRAM of the storage and calculation array in the form of single-bit information, each SRAM outputs different one-bit information of the same multiplicand, a two-input NAND gate calculates the NAND result of a single bit of a single-bit stream generated by the multiplier and the one-bit information of the multiplicand, and completes the product operation between single bits in carry-less multiplication; the XOR tree further performs an XOR operation on the product output by the two-input NAND gate, completes the carry-less operation in carry-less multiplication, and finally outputs a partial product result.

3. The SRAM-based carry-less multiplication storage array according to claim 1, characterized in that: To calculate the result of mutual XOR of m single-bit binary numbers, ceil(log2(m)) levels of XOR trees are required, and the ceil() function is a rounding-up function; the m single-bit binary numbers are input into the two-input XOR gates of the first level of the XOR tree, and two-by-two XOR calculations are performed, and the inputs of each level of two-input XOR gates starting from the second level depend on the outputs of the two-input XOR gates of the previous level, that is, the two inputs of a two-input XOR gate of the next level are the output results of the two two-input XOR gates of the previous level, and so on. The output result of the two-input XOR gate of the last level is the output result of the entire XOR tree, that is, the result of mutual XOR of the m single-bit binary number inputs.

4. The SRAM-based carry-less multiplication storage array according to claim 1, characterized in that: The N single-bit streams generated by the multipliers input into the storage and computing units in the same row are the same, and each row of storage and computing units simultaneously inputs the N single-bit streams generated by the multipliers, and the N single-bit streams generated by the multipliers are respectively input into the N two-input NAND gates of each storage and computing unit in the row.

5. The SRAM-based carry-less multiplication storage array according to claim 1, characterized in that: The binary representation of the multiplier is a n-1 a n-2 a n-3 …a2a1a0, the kth row of the carry-less multiplication storage array, cyclically shift the binary representation of the multiplier to the left by m*(k-1) bits to obtain a new binary number, k=1,2,3,…,m; fill the high bits of the new binary number with zeros to make it a binary number x with a length of g*N g*N-1 x g*N-2 x g*N-3 …x2x1x0, where g=ceil(n / N), and the ceil() function is a round-up function; the i-th two-input NAND gate of the k-th row storage unit of the carry-less multiplication storage array, i=1,2,3,…,N, has a single-bit stream x as its input. i-1 ,x i-1+N ,x i-1+2*N ,x i-1+3*N ,…,x i-1+(g-1)*N .

6. The SRAM-based carry-less multiplication storage array according to claim 1, characterized in that: All the SRAMs in each column respectively output different one-bit information of the same multiplicand stored therein, and each SRAM outputs the one-bit information of the stored multiplicand to N two-input NAND gates in the storage unit where it is located, and the other input ends of the N two-input NAND gates respectively input N single-bit streams generated by the multiplier, and each column of storage units outputs N×m single-bit binary numbers to N m-input XOR trees in one calculation cycle, and N XOR trees output N single-bit calculation results. After one calculation cycle ends, the SRAM-based carry-free multiplication storage array outputs N×m single-bit calculation results, and the N×m single-bit calculation results are represented by a matrix O of size N×m; in a column of storage units, the result of the calculation after the i-th two-input NAND gate of each storage unit is output to the same XOR tree, i=1,2,…,N, and the column of storage units is the j-th column, j=1,2,…,m, then the single-bit calculation result output by the XOR tree at this time is the element O in the matrix O. ij The corresponding value.

7. A carry-free multiplication method using the SRAM-based storage and calculation array of claim 2, characterized in that: Calculate the carry-free multiplication of A×B, the multiplicand B is stored in the SRAM of the storage and calculation array in the form of single-bit information, the SRAM outputs one-bit information of the multiplicand B, in each row of the storage and calculation array, N single-bit streams generated by the multiplier A and the output of the SRAM are input together into the two-input NAND gate of the storage and calculation unit where the SRAM is located; in one calculation cycle, the result output by the two-input NAND gate is the product of the single-bit information of B stored in the SRAM and the single-bit data in the single-bit stream generated by the multiplier A input in the cycle, the results of the two-input NAND gate outputs of all the storage and calculation units are input into the corresponding XOR tree, and mutual XOR operation is performed, and the result finally output by the XOR tree is the partial product result of the carry-free multiplication calculation of A×B.