A matrix multiplier circuit and method based on SRAM IMC

By using a matrix multiplier circuit based on SRAM IMC in memory calculation, using switch tubes and controllable current sources to form a matrix and current vector, the chip area and power consumption increase caused by programmable resistors in the prior art is solved, and the chip area and power consumption increase is achieved. More efficient memory calculation.

CN118484622BActive Publication Date: 2024-11-08SUZHOU AIPLE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410925295.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-11-08
Estimated Expiration
2044-07-11

AI Technical Summary

Technical Problem

The use of a large number of programmable resistors in existing memory computing has resulted in a significant increase in chip area, an increase in hardware costs and system power consumption, limiting the feasibility and economicality of memory computing.

Method used

Using a matrix multiplier circuit based on SRAM IMC, N branches are set, each branch includes N switch tubes and a controllable current source, and the substrate control voltage of the switch tube is used to form an N×N matrix, and controllable The current source forms an N×1 current vector, implementing matrix multiplication, reducing hardware costs and system power consumption.

Benefits of technology

Matrix multiplier is implemented, which reduces hardware cost and system power consumption compared to programmable resistors, reduces chip area, and improves the feasibility and economicality of memory computing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118484622B_ABST
    Figure CN118484622B_ABST
Patent Text Reader

Abstract

The present invention provides a matrix multiplier circuit and method based on SRAM IMC, including N branches arranged between a power supply voltage and a reference ground, N≥2; each branch includes N switch tubes and a controllable current source, the reference ground is connected to the power supply voltage through N switch tubes connected in series and a controllable current source, the common end connected to the Nth switch tube and the controllable current source is used as a row output end to generate a row output voltage, the gate of each switch tube is connected to a gate control voltage, and the substrate of each switch tube is respectively connected to a corresponding substrate control voltage. The present invention can reduce hardware costs and system power consumption, reduce chip area, and improve the feasibility and economy of memory computing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of semiconductor technology, and in particular to a matrix multiplier circuit and method based on SRAM IMC. Background Art

[0002] In recent years, neural networks have been widely used in artificial intelligence, image recognition, speech recognition, natural language processing and other fields. The computing power data has increased exponentially, the structure of neural networks has become more and more complex, and the number of parameters included has also increased dramatically. There is an urgent need for high-computing-power computing devices to meet the growing demand for neural networks.

[0003] With the innovation and progress of modern science and technology, in-memory computing (IMC) based on static random access memory (SRAM) has achieved rapid development. In-memory computing has very high information processing efficiency and good timeliness. It can directly read data from the memory and calculate and integrate the data. It is very suitable for use in computing environments with large and complex data, especially neural networks with huge computing requirements.

[0004] Existing memory computing uses a single memory array to complete the multiplication of a matrix and a vector in one computing cycle. Its structure is as follows: Figure 1 As shown, a 3×3 matrix is ​​formed by the transconductance of 9 programmable resistors, and a 3×1 voltage vector is applied to the column. Each cross node of the memory array will generate a current, which is collected through the row lines, and finally a 3×1 output current vector is formed. That is, the output current vector is the product of the transconductance matrix and the voltage vector.

[0005] However, the use of a large number of programmable resistors inside the memory array leads to a significant increase in chip area, an increase in hardware costs and system power consumption, limiting the feasibility and economy of existing in-memory computing. Summary of the invention

[0006] In view of the above problems, the present invention is proposed to provide a matrix multiplier circuit and method based on SRAM IMC, which can reduce hardware cost and system power consumption, reduce chip area, and improve the feasibility and economy of memory computing.

[0007] The invention discloses a matrix multiplier circuit based on SRAM IMC, comprising N branches arranged between a power supply voltage and a reference ground, N≥2;

[0008] Each branch includes N switching tubes and a controllable current source. The reference ground is connected to the power supply voltage through N switching tubes connected in series and a controllable current source. The common end connected to the Nth switching tube and the controllable current source serves as the row output end to generate a row output voltage. The gate of each switching tube is connected to the same gate control voltage, and the substrate of each switching tube is connected to the corresponding substrate control voltage.

[0009] Further, in the first branch, the reference ground is connected to the power supply voltage through the first switch tube of the first row, the second switch tube of the first row to the Nth switch tube of the first row and the first controllable current source I1 which are connected in series in sequence, and the common end of the first controllable current source I1 connected to the Nth switch tube of the first row is used as the first row output end to generate the first row output voltage V1, and the gates of the first switch tube of the first row, the second switch tube of the first row to the Nth switch tube of the first row are connected to the gate control voltage V0, and their substrates are respectively connected to the first substrate control voltage VG of the first row. 11 , the first row second substrate control voltage VG 12 To the first row N substrate control voltage VG 1N ;

[0010] In the nth branch, the reference ground is connected in series through the first switch tube in the nth row, the second switch tube in the nth row, the Nth switch tube in the nth row, and the nth controllable current source I n Connected to the supply voltage, the nth controllable current source I n The common terminal connected to the Nth switch tube in the nth row is used as the output terminal of the nth row, generating the output voltage V n The gates of the first switch tube in the nth row, the second switch tube in the nth row, and the Nth switch tube in the nth row are connected to the gate control voltage V0, and their substrates are respectively connected to the first substrate control voltage VG in the nth row. n1 , the second substrate control voltage VG of the nth row n2 To the Nth row Nth substrate control voltage VG nN , 1<n<N;

[0011] In the Nth branch, the reference ground is connected in series through the first switch tube in the Nth row, the second switch tube in the Nth row, the Nth switch tube in the Nth row, and the Nth controllable current source I N Connected to the supply voltage, the Nth controllable current source I N The common terminal connected to the Nth switch tube in the Nth row is used as the output terminal of the Nth row, generating the output voltage V N The gates of the first switch tube in the Nth row, the second switch tube in the Nth row, and the Nth switch tube in the Nth row are connected to the gate control voltage V0, and their substrates are respectively connected to the first substrate control voltage VG in the Nth row. N1 , the second substrate control voltage VG of the Nth row N2 To the Nth row Nth substrate control voltage VG NN .

[0012] Furthermore, N=3.

[0013] Furthermore, the output voltage of the first row, the output voltage of the second row, and the output voltage of the third row are expressed as:

[0014] ;

[0015] Among them, R ds11 , R ds12 , R ds13 are the on-resistances of the first switch tube in the first row, the second switch tube in the first row, and the third switch tube in the first row, respectively. ds21 , R ds22 , R ds23 are the on-resistances of the first switch tube in the second row, the second switch tube in the second row, and the third switch tube in the second row, respectively. ds31 , R ds32 , R ds33 are the on-resistances of the first switch tube in the third row, the second switch tube in the third row, and the third switch tube in the third row, respectively; V2 is the output voltage of the second row, and V3 is the output voltage of the third row. is the second controllable current source, is the third controllable current source.

[0016] Furthermore, the output voltage of the first row, the output voltage of the second row, and the output voltage of the third row are expressed as:

[0017] ;

[0018] Among them, VG 13 The third substrate control voltage of the first row, VG 21 , VG 22 , VG 23 are the first substrate control voltage of the second row, the second substrate control voltage of the second row, and the third substrate control voltage of the second row, respectively. 31 , VG 32 , VG 33 They are respectively the first substrate control voltage of the third row, the second substrate control voltage of the third row, and the third substrate control voltage of the third row.

[0019] Furthermore, the SRAM IMC includes a multiplier and a data IO unit; the multiplier is used to implement a matrix multiplier circuit to perform matrix multiplication; the data IO unit is used to receive externally transmitted substrate control voltage, gate control voltage, and control signal of a controllable current source, and transmit them to the multiplier to perform matrix multiplication, and transmit the output voltage vector after the matrix multiplication operation to the outside.

[0020] The present invention also discloses a matrix multiplier method based on SRAM IMC, comprising:

[0021] Step S1, setting N branches between the power supply voltage and the reference ground, N≥2, each branch includes N switch tubes and a controllable current source, the reference ground is connected to the power supply voltage through N switch tubes connected in series and a controllable current source, the common end connected to the Nth switch tube and the controllable current source is used as the row output end to generate a row output voltage, the gate of each switch tube is connected to the same gate control voltage, and the substrate of each switch tube is respectively connected to the corresponding substrate control voltage;

[0022] Step S2, adjusting the substrate control voltage of each switch tube in each branch to form an N×N matrix;

[0023] Step S3, adjusting the controllable current source in each branch to form an N×1 current vector;

[0024] Step S4, collecting the row output voltages in each branch to form an N×1 output voltage vector.

[0025] Further, in the first branch, the reference ground is connected to the power supply voltage through the first switch tube of the first row, the second switch tube of the first row to the Nth switch tube of the first row and the first controllable current source I1 which are connected in series in sequence, and the common end of the first controllable current source I1 connected to the Nth switch tube of the first row is used as the first row output end to generate the first row output voltage V1, and the gates of the first switch tube of the first row, the second switch tube of the first row to the Nth switch tube of the first row are connected to the gate control voltage V0, and their substrates are respectively connected to the first substrate control voltage VG of the first row. 11 , the first row second substrate control voltage VG 12 To the first row N substrate control voltage VG 1N ;

[0026] In the nth branch, the reference ground is connected in series through the first switch tube in the nth row, the second switch tube in the nth row, the Nth switch tube in the nth row, and the nth controllable current source I n Connected to the supply voltage, the nth controllable current source I n The common terminal connected to the Nth switch tube in the nth row is used as the output terminal of the nth row, generating the output voltage V n The gates of the first switch tube in the nth row, the second switch tube in the nth row, and the Nth switch tube in the nth row are connected to the gate control voltage V0, and their substrates are respectively connected to the first substrate control voltage VG in the nth row. n1 , the second substrate control voltage VG of the nth row n2 To the Nth row Nth substrate control voltage VG nN , 1<n<N;

[0027] In the Nth branch, the reference ground is connected in series through the first switch tube in the Nth row, the second switch tube in the Nth row, the Nth switch tube in the Nth row, and the Nth controllable current source I NConnected to the supply voltage, the Nth controllable current source I N The common terminal connected to the Nth switch tube in the Nth row is used as the output terminal of the Nth row, generating the output voltage V N The gates of the first switch tube in the Nth row, the second switch tube in the Nth row, and the Nth switch tube in the Nth row are connected to the gate control voltage V0, and their substrates are respectively connected to the first substrate control voltage VG in the Nth row. N1 , the second substrate control voltage VG of the Nth row N2 To the Nth row Nth substrate control voltage VG NN .

[0028] Furthermore, N=3.

[0029] Furthermore, the output voltage of the first row, the output voltage of the second row, and the output voltage of the third row are expressed as:

[0030] ;

[0031] Among them, V2 is the output voltage of the second row, V3 is the output voltage of the third row, is the second controllable current source, is the third controllable current source, VG 13 The third substrate control voltage of the first row, VG 21 , VG 22 , VG 23 are the first substrate control voltage of the second row, the second substrate control voltage of the second row, and the third substrate control voltage of the second row, respectively. 31 , VG 32 , VG 33 They are respectively the first substrate control voltage of the third row, the second substrate control voltage of the third row, and the third substrate control voltage of the third row.

[0032] The beneficial effects of the present invention are:

[0033] The present invention provides a matrix multiplier circuit and method based on SRAM IMC, which utilizes substrate control voltages of N×N switch tubes to form an N×N matrix, utilizes N controllable current sources to form an N×1 current vector, generates an N×1 output voltage vector, and realizes a matrix multiplier. Compared with programmable resistors, the circuit reduces hardware cost and system power consumption, reduces chip area, and improves the feasibility and economy of memory computing. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0035] Figure 1 is a structural block diagram of an existing memory array;

[0036] Figure 2 A block diagram of a matrix multiplier circuit based on SRAM IMC provided by the present invention;

[0037] Figure 3 An interface block diagram of a matrix multiplier circuit based on SRAM IMC provided by the present invention;

[0038] Figure 4 A flow chart of a matrix multiplier method based on SRAM IMC provided by the present invention. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0040] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two, but does not exclude the inclusion of at least one.

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

[0042] First embodiment

[0043] like Figure 2 As shown, the present invention provides a matrix multiplier circuit based on SRAM IMC. The matrix multiplier circuit includes three branches arranged between a power supply voltage and a reference ground.

[0044] Each branch includes three switching tubes and a controllable current source. The reference ground is connected to the power supply voltage through three switching tubes connected in series and a controllable current source. The common end connected to the third switching tube and the controllable current source serves as the row output end to generate a row output voltage. The gate of each switching tube is connected to the gate control voltage V0, and the substrate of each switching tube is connected to the corresponding substrate control voltage.

[0045] Specifically, in the first branch, the reference ground is connected to the power supply voltage through the first row of first switch tubes, the first row of second switch tubes, the first row of third switch tubes and the first controllable current source I1 which are connected in series in sequence, and the common end of the first controllable current source I1 connected to the first row of third switch tubes is used as the first row output end to generate the first row output voltage V1, and the gates of the first row of first switch tubes, the first row of second switch tubes and the first row of third switch tubes are connected to the gate control voltage V0, and their substrates are respectively connected to the first row of first substrate control voltage VG 11 , the first row second substrate control voltage VG 12 , the first row third substrate control voltage VG 13 .

[0046] Due to the substrate bias effect of the switch tube, the on-resistance of the switch tube can be adjusted by the substrate control voltage. The on-resistance of the switch tube is calculated by formula (1)-(2). On the basis of other fixed parameters, the on-resistance of the switch tube is determined by the substrate control voltage. By adjusting the substrate control voltages of the first switch tube in the first row, the second switch tube in the first row, and the third switch tube in the first row, the output voltage V1 of the first row can be adjusted. The output voltage V1 of the first row can be expressed as formula (3).

[0047]

[0048] Among them, R dson is the on-resistance of the switch tube, μ s is the electron mobility, C ox is the capacitance of the gate oxide layer, W is the channel width, L is the channel length, V GS is the gate-source voltage, V TH is the threshold voltage, λ is the channel length modulation coefficient, V TH0 is the basic threshold voltage, γ is the body effect coefficient, Φ F is the reverse bias potential, V SB is the source-substrate potential difference, R ds11 , R ds12 , R ds13 They are respectively the on-resistances of the first switch tube in the first row, the second switch tube in the first row, and the third switch tube in the first row.

[0049] In the second branch, the reference ground is connected to the power supply voltage through the first switch tube of the second row, the second switch tube of the second row, the third switch tube of the second row and the second controllable current source I2 connected in series in sequence, and the common end of the second controllable current source I2 connected to the third switch tube of the second row is used as the second row output end to generate the second row output voltage V2, and the gates of the first switch tube of the second row, the second switch tube of the second row and the third switch tube of the second row are connected to the gate control voltage V0, and their substrates are respectively connected to the first substrate control voltage VG of the second row 21 , the second row second substrate control voltage VG 22 , the second row third substrate control voltage VG 23 .

[0050] By adjusting the substrate control voltages of the first switch tube in the second row, the second switch tube in the second row, and the third switch tube in the second row, the output voltage V2 of the second row can be adjusted. The output voltage V2 of the second row can be expressed as formula (4).

[0051]

[0052] Among them, R ds21 , R ds22 , R ds23 They are respectively the on-resistances of the first switch tube in the second row, the second switch tube in the second row, and the third switch tube in the second row.

[0053] In the third branch, the reference ground is connected to the power supply voltage through the first switch tube in the third row, the second switch tube in the third row, the third switch tube in the third row and the third controllable current source I3 connected in series in sequence, and the common end of the third controllable current source I3 connected to the third switch tube in the third row is used as the third row output end to generate the third row output voltage V3, and the gates of the first switch tube in the third row, the second switch tube in the third row and the third switch tube in the third row are connected to the gate control voltage V0, and their substrates are respectively connected to the first substrate control voltage VG in the third row. 31 , the third row second substrate control voltage VG 32 , the third row third substrate control voltage VG 33 .

[0054] By adjusting the substrate control voltages of the first switch tube in the third row, the second switch tube in the third row, and the third switch tube in the third row, the output voltage V3 of the third row can be adjusted. The output voltage V3 of the third row can be expressed as formula (5).

[0055]

[0056] Among them, R ds31 , R ds32 , R ds33 They are respectively the on-resistances of the first switch tube in the third row, the second switch tube in the third row, and the third switch tube in the third row.

[0057] Combining formulas (3)-(5), we can obtain:

[0058]

[0059] On the basis of other parameters of the switch tube being fixed, since the on-resistance of the switch tube is determined by the substrate control voltage, formula (6) can be transformed into:

[0060]

[0061] In this embodiment of the present invention, the matrix multiplier circuit based on SRAM IMC uses the substrate control voltage of 9 switching tubes to form a 3×3 matrix, and uses 3 controllable current sources to form a 3×1 current vector, thereby generating a 3×1 output voltage vector, thereby realizing a matrix multiplier. Compared with programmable resistors, this reduces hardware costs and system power consumption, reduces chip area, and improves the feasibility and economy of memory computing.

[0062] Furthermore, the matrix multiplier circuit based on SRAM IMC can be expanded, using switch tubes to form an N×N matrix, using N controllable current sources to form an N×1 current vector, generating an N×1 output voltage vector, and realizing a matrix multiplier, N≥2.

[0063] The SRAM IMC-based matrix multiplier circuit includes N branches arranged between a power supply voltage and a reference ground;

[0064] Each branch includes N switching tubes and a controllable current source. The reference ground is connected to the power supply voltage through N switching tubes connected in series and a controllable current source. The common end connected to the Nth switching tube and the controllable current source serves as the row output end to generate a row output voltage. The gate of each switching tube is connected to the gate control voltage V0, and the substrate of each switching tube is connected to the corresponding substrate control voltage.

[0065] Specifically, in the first branch, the reference ground is connected to the power supply voltage through the first switch tube of the first row, the second switch tube of the first row to the Nth switch tube of the first row and the first controllable current source I1 which are connected in series in sequence, and the common end of the first controllable current source I1 connected to the Nth switch tube of the first row is used as the first row output end to generate the first row output voltage V1, and the gates of the first switch tube of the first row, the second switch tube of the first row to the Nth switch tube of the first row are connected to the gate control voltage V0, and their substrates are respectively connected to the first substrate control voltage VG of the first row. 11 , the first row second substrate control voltage VG 12 To the first row N substrate control voltage VG 1N .

[0066] In the nth branch, the reference ground is connected in series through the first switch tube in the nth row, the second switch tube in the nth row, the Nth switch tube in the nth row, and the nth controllable current source I n Connected to the supply voltage, the nth controllable current source I n The common terminal connected to the Nth switch tube in the nth row is used as the output terminal of the nth row, generating the output voltage V n The gates of the first switch tube in the nth row, the second switch tube in the nth row, and the Nth switch tube in the nth row are connected to the gate control voltage V0, and their substrates are respectively connected to the first substrate control voltage VG in the nth row. n1 , the second substrate control voltage VG of the nth row n2 To the Nth row Nth substrate control voltage VG nN , 1<n<N.

[0067] In the Nth branch, the reference ground is connected in series through the first switch tube in the Nth row, the second switch tube in the Nth row, the Nth switch tube in the Nth row, and the Nth controllable current source I N Connected to the supply voltage, the Nth controllable current source I N The common terminal connected to the Nth switch tube in the Nth row is used as the output terminal of the Nth row, generating the output voltage V N The gates of the first switch tube in the Nth row, the second switch tube in the Nth row, and the Nth switch tube in the Nth row are connected to the gate control voltage V0, and their substrates are respectively connected to the first substrate control voltage VG in the Nth row. N1 , the second substrate control voltage VG of the Nth row N2 To the Nth row Nth substrate control voltage VG NN .

[0068] In this embodiment of the present invention, the matrix multiplier circuit based on SRAM IMC uses the substrate control voltage of N×N switching tubes to form an N×N matrix, and uses N controllable current sources to form an N×1 current vector, thereby generating an N×1 output voltage vector, thereby realizing a matrix multiplier. Compared with programmable resistors, this reduces hardware costs and system power consumption, reduces chip area, and improves the feasibility and economy of memory computing.

[0069] Further, such as Figure 3 As shown, the present invention also provides a matrix multiplier circuit based on SRAM IMC, wherein the SRAM IMC includes a multiplier and an adder and a data IO unit.

[0070] Multiplier-accumulators are used to implement matrix multiplier circuits to perform matrix multiplication.

[0071] The data IO unit is used to receive the substrate control voltage, gate control voltage, and control signal of the controllable current source transmitted externally, and transmit them to the multiplier to perform matrix multiplication, and transmit the output voltage vector after the matrix multiplication operation to the outside.

[0072] Second embodiment

[0073] like Figure 4 As shown, the present invention provides a matrix multiplier method based on SRAM IMC, which uses switch tubes to form an N×N matrix, uses N controllable current sources to form an N×1 current vector, generates an N×1 output voltage vector, and realizes a matrix multiplier, N≥2.

[0074] The matrix multiplier method includes:

[0075] Step S1, N branches are set between the power supply voltage and the reference ground, each branch includes N switching tubes and a controllable current source, the reference ground is connected to the power supply voltage through N switching tubes connected in series and a controllable current source, the common end connected to the Nth switching tube and the controllable current source is used as the row output end to generate a row output voltage, the gate of each switching tube is connected to the gate control voltage V0, and the substrate of each switching tube is respectively connected to the corresponding substrate control voltage.

[0076] Specifically, in the first branch, the reference ground is connected to the power supply voltage through the first switch tube of the first row, the second switch tube of the first row to the Nth switch tube of the first row and the first controllable current source I1 which are connected in series in sequence, and the common end of the first controllable current source I1 connected to the Nth switch tube of the first row is used as the first row output end to generate the first row output voltage V1, and the gates of the first switch tube of the first row, the second switch tube of the first row to the Nth switch tube of the first row are connected to the gate control voltage V0, and their substrates are respectively connected to the first substrate control voltage VG of the first row. 11 , the first row second substrate control voltage VG 12 To the first row N substrate control voltage VG 1N .

[0077] In the nth branch, the reference ground is connected in series through the first switch tube in the nth row, the second switch tube in the nth row, the Nth switch tube in the nth row, and the nth controllable current source I n Connected to the supply voltage, the nth controllable current source I n The common terminal connected to the Nth switch tube in the nth row is used as the output terminal of the nth row, generating the output voltage V n The gates of the first switch tube in the nth row, the second switch tube in the nth row, and the Nth switch tube in the nth row are connected to the gate control voltage V0, and their substrates are respectively connected to the first substrate control voltage VG in the nth row. n1 , the second substrate control voltage VG of the nth row n2 To the Nth row Nth substrate control voltage VG nN , 1<n<N.

[0078] In the Nth branch, the reference ground is connected in series through the first switch tube in the Nth row, the second switch tube in the Nth row, the Nth switch tube in the Nth row, and the Nth controllable current source IN Connected to the supply voltage, the Nth controllable current source I N The common terminal connected to the Nth switch tube in the Nth row is used as the output terminal of the Nth row, generating the output voltage V N The gates of the first switch tube in the Nth row, the second switch tube in the Nth row, and the Nth switch tube in the Nth row are connected to the gate control voltage V0, and their substrates are respectively connected to the first substrate control voltage VG in the Nth row. N1 , the second substrate control voltage VG of the Nth row N2 To the Nth row Nth substrate control voltage VG NN .

[0079] Step S2, adjusting the substrate control voltage of each switch tube in each branch to form an N×N matrix;

[0080] Step S3, adjusting the controllable current source in each branch to form an N×1 current vector;

[0081] Step S4, collecting the row output voltages in each branch to form an N×1 output voltage vector.

[0082] Furthermore, N=3, a 3×3 matrix is ​​formed by using switch tubes, a 3×1 current vector is formed by using three controllable current sources, and a 3×1 output voltage vector is generated, thus realizing a matrix multiplier.

[0083] The above description shows and describes several preferred embodiments of the present invention, but as mentioned above, it should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the invention concept described herein through the above teachings or the technology or knowledge of the relevant field. Changes and variations made by those skilled in the art do not depart from the spirit and scope of the present invention, and should be within the scope of protection of the claims attached to the present invention.

Claims

1. A matrix multiplier circuit based on SRAM IMC, characterized in that: It includes N branches arranged between a power supply voltage and a reference ground, where N≥2; Each branch includes N switch tubes and a controllable current source, the reference ground is connected to the power supply voltage through the N switch tubes and the controllable current source connected in series, the common end connected to the Nth switch tube and the controllable current source is used as the row output end to generate the row output voltage, the gate of each switch tube is connected to the same gate control voltage, and the substrate of each switch tube is connected to the corresponding substrate control voltage respectively; Among them, in the first branch, the reference ground is connected to the power supply voltage through the first switch tube of the first row, the second switch tube of the first row to the Nth switch tube of the first row and the first controllable current source I1 connected in series in sequence, the common end of the first controllable current source I1 connected to the Nth switch tube of the first row is used as the first row output end to generate the first row output voltage V1, the gates of the first switch tube of the first row, the second switch tube of the first row to the Nth switch tube of the first row are connected to the gate control voltage V0, and their substrates are respectively connected to the first substrate control voltage VG of the first row 11 , the first row second substrate control voltage VG 12 To the first row N substrate control voltage VG 1N ; In the nth branch, the reference ground is connected in series through the first switch tube in the nth row, the second switch tube in the nth row, the Nth switch tube in the nth row, and the nth controllable current source I n Connected to the supply voltage, the nth controllable current source I n The common terminal connected to the Nth switch tube in the nth row is used as the output terminal of the nth row, generating the output voltage V n The gates of the first switch tube in the nth row, the second switch tube in the nth row, and the Nth switch tube in the nth row are connected to the gate control voltage V0, and their substrates are respectively connected to the first substrate control voltage VG in the nth row. n1 , the second substrate control voltage VG of the nth row n2 To the Nth row Nth substrate control voltage VG nN , 1<n<N; In the Nth branch, the reference ground is connected in series through the first switch tube in the Nth row, the second switch tube in the Nth row, the Nth switch tube in the Nth row, and the Nth controllable current source I N Connected to the supply voltage, the Nth controllable current source I N The common terminal connected to the Nth switch tube in the Nth row is used as the output terminal of the Nth row, generating the output voltage V N The gates of the first switch tube in the Nth row, the second switch tube in the Nth row, and the Nth switch tube in the Nth row are connected to the gate control voltage V0, and their substrates are respectively connected to the first substrate control voltage VG in the Nth row. N1 , the second substrate control voltage VG of the Nth row N2 To the Nth row Nth substrate control voltage VG NN。 2. The matrix multiplier circuit according to claim 1, characterized in that: N=3。 3. The matrix multiplier circuit according to claim 2, characterized in that: The output voltage of the first row, the output voltage of the second row, and the output voltage of the third row are expressed as: ; in, , , are the on-resistances of the first switch tube in the first row, the second switch tube in the first row, and the third switch tube in the first row, respectively. , , are the on-resistances of the first switch tube in the second row, the second switch tube in the second row, and the third switch tube in the second row, respectively. , , are the on-resistances of the first switch tube in the third row, the second switch tube in the third row, and the third switch tube in the third row, respectively. is the output voltage of the second row, V3 is the output voltage of the third row, is the second controllable current source, is the third controllable current source.

4. The matrix multiplier circuit according to claim 3, characterized in that: The output voltage of the first row, the output voltage of the second row, and the output voltage of the third row are expressed as: ; in, is the third substrate control voltage of the first row, , , are the first substrate control voltage of the second row, the second substrate control voltage of the second row, and the third substrate control voltage of the second row, respectively. 31 , VG 32 , VG 33 They are respectively the first substrate control voltage of the third row, the second substrate control voltage of the third row, and the third substrate control voltage of the third row.

5. The matrix multiplier circuit according to any one of claims 1 to 4, characterized in that: The SRAM IMC includes a multiplier-accumulator and a data IO unit; The multiplier-accumulator is used to implement a matrix multiplier circuit to perform matrix multiplication; The data IO unit is used to receive the substrate control voltage, gate control voltage, and control signal of the controllable current source transmitted externally, and transmit them to the multiplier to perform matrix multiplication, and transmit the output voltage vector after the matrix multiplication operation to the outside.