Multi-bit multiplication and addition operation circuit based on 6T-SRAM and control method of multi-bit multiplication and addition operation circuit

By designing a multi-bit multiplication and addition computing circuit based on 6T-SRAM in the von Neumann architecture, in-memory computing is realized, and the computing speed problem caused by the separation of the computing circuit and the storage circuit is solved, which significantly improves the computing efficiency.

CN119068948AActive Publication Date: 2024-12-03ANHUI UNIV

Patent Information

Application Number
CN202411171601.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-26
Publication Date
2024-12-03
Estimated Expiration
2044-08-26

AI Technical Summary

Technical Problem

In the traditional von Neumann architecture, the computing circuit is separated from the memory circuit, resulting in limited computing speed.

Method used

Design a multi-bit multiplication and addition calculation circuit based on 6T-SRAM. By configuring multiple memory units and calculation units in one piece, in-memory calculation is realized, and switching control is used for multi-bit multiplication. Addition operation.

Benefits of technology

This greatly improves the computing speed and solves the computing speed limit problem caused by the separation of computing circuits and storage circuits in the traditional von Neumann architecture.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119068948A_ABST
    Figure CN119068948A_ABST
Patent Text Reader

Abstract

The invention relates to a 6T-SRAM (6T-Static Random Access Memory)-based multi-bit multiplication and addition operation circuit and a control method thereof. The circuit comprises a plurality of 6T-SRAM units, a control unit and a calculation unit, the plurality of 6T-SRAM units are arranged in parallel and are respectively controlled by different word lines, the first ends of the plurality of 6T-SRAM units are connected with the same first local bit line, and the second ends of the plurality of 6T-SRAM units are communicated with the same second local bit line; the calculation unit comprises fifth to eighth PMOS tubes and seventh to tenth NMOS tubes; the source electrode of the fifth PMOS tube and the drain electrode of the eighth NMOS tube are used for outputting nodes, the drain electrode of the seventh PMOS tube and the drain electrode of the eighth PMOS tube are used for accessing uncertain level signals, and the grid electrode of the ninth NMOS tube and the grid electrode of the tenth NMOS tube are signal input nodes; the grid electrode of the fifth PMOS tube and the grid electrode of the eighth NMOS tube are respectively connected with the second local bit line and the first local bit line through a control unit, and the control unit is used for realizing switch control. And the storage unit and the calculation unit are configured together, so that in-storage calculation is realized, and the calculation speed is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of integrated circuits, and in particular to a multi-bit multiplication and addition operation circuit based on 6T-SRAM and a control method thereof. Background Art

[0002] With the development of the times, artificial intelligence technology has been widely used. During its use, the requirements for computing efficiency and energy consumption are getting higher and higher. In the traditional von Neumann architecture, the computing module and the storage module are separated. When data is needed, it is necessary to read data from the memory to the computing module for use. The current development process of the computing power of the computing module has far exceeded the development process of the memory access speed. A large amount of running time and power consumption are used for data access, and very little is actually used for computing.

[0003] In order to solve the problem that the computing circuit and storage circuit are separated in the traditional von Neumann architecture, which in turn limits the computing speed, more solutions are currently needed. Summary of the invention

[0004] The present invention provides a multi-bit multiplication and addition operation circuit based on 6T-SRAM and a control method thereof to solve the problem that the operation circuit and the storage circuit are separated in the traditional von Neumann architecture, which will limit the operation speed.

[0005] In a first aspect, the present invention provides a multi-bit multiplication and addition operation circuit based on 6T-SRAM, the circuit comprising a plurality of 6T-SRAM units, a control unit and a calculation unit;

[0006] The plurality of 6T-SRAM cells are arranged in parallel and are respectively controlled by different word lines, the first ends of the plurality of 6T-SRAM cells are connected to the same first local bit line, and the second ends of the plurality of 6T-SRAM cells are connected to the same second local bit line;

[0007] The calculation unit includes a fifth PMOS tube, a sixth PMOS tube, a seventh PMOS tube, an eighth PMOS tube, a seventh NMOS tube, an eighth NMOS tube, a ninth NMOS tube and a tenth NMOS tube, the source and drain of the fifth PMOS tube are respectively connected to the drain and source of the seventh NMOS tube, the source and drain of the sixth PMOS tube are respectively connected to the drain and source of the eighth NMOS tube, the source and drain of the seventh PMOS tube are respectively connected to the drain and source of the ninth NMOS tube, the source and drain of the eighth PMOS tube are respectively connected to the drain and source of the tenth NMOS tube, the source of the seventh PMOS tube is connected to the drain of the fifth PMOS tube, the source of the eighth PMOS tube is connected to the drain of the sixth PMOS tube, the gate of the seventh NMOS tube is connected to the gate of the eighth NMOS tube, and the gate of the sixth PMOS tube is connected to the gate of the fifth PMOS tube;

[0008] The source of the fifth PMOS tube and the drain of the eighth NMOS tube are signal output nodes, the drain of the seventh PMOS tube and the drain of the eighth PMOS tube are used to access the indeterminate level signal, and the gate of the ninth NMOS tube and the gate of the tenth NMOS tube are signal input nodes;

[0009] The gate of the fifth PMOS tube and the gate of the eighth NMOS tube are respectively connected to the second local bit line and the first local bit line through the control unit, and the control unit is used to realize switch control.

[0010] In a second aspect, the present invention provides a control method for a multi-bit multiplication and addition operation circuit based on 6T-SRAM, which is applied to the multi-bit multiplication and addition operation circuit based on 6T-SRAM described in the first aspect, and the control method includes a multi-bit multiplication and addition operation step, and the multi-bit multiplication and addition operation step includes:

[0011] Connecting a first signal and a second signal to the gate of a ninth NMOS tube and a gate of a tenth NMOS tube respectively, wherein the first signal and the second signal represent a first 2-bit number and a second 2-bit number respectively;

[0012] Outputting a result signal of a multi-bit multiplication and addition operation through the source of the fifth PMOS tube and the drain of the eighth NMOS tube, wherein the result signal of the multi-bit multiplication and addition operation is obtained by adding the product results of the first 2-bit number and the second 2-bit number and the first 1-bit weight respectively;

[0013] Among them, when the first storage node is at a high level, the second storage node is at a low level, and the indeterminate level signal is at a high level, the first 1-bit weight is +1; when the first storage node is at a high level, the second storage node is at a low level, and the indeterminate level signal is at a low level, the first 1-bit weight is -1; when the first storage node is at a low level and the second storage node is at a high level, the first 1-bit weight is 0.

[0014] In a third aspect, the present invention provides a computing chip, which integrates the multi-bit multiplication and addition computing circuit based on 6T-SRAM described in the first aspect.

[0015] In a fourth aspect, the present invention provides a computing module encapsulated with the computing chip described in the third aspect.

[0016] In a fifth aspect, the present invention provides an electronic device comprising the computing module described in the fourth aspect.

[0017] Compared with the related art, the multi-bit multiplication and addition operation circuit based on 6T-SRAM provided by the present invention configures multiple storage units and a computing unit together to realize in-memory calculation. Compared with the structure in which the operation circuit and the storage circuit are separated, the operation speed is greatly improved, and the problem that the operation circuit and the storage circuit are separated in the traditional von Neumann architecture, which will limit the operation speed, is solved.

[0018] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a diagram of a multi-bit multiplication and addition circuit based on 6T-SRAM in some embodiments of the present invention;

[0020] Figure 2 is a diagram of a storage unit in some embodiments of the present invention;

[0021] Figure 3 is the signal timing of a multi-bit multiplication and addition circuit based on 6T-SRAM in some embodiments of the present invention;

[0022] Figure 4 is a diagram of multi-bit multiplication and addition results of a multi-bit multiplication and addition circuit based on 6T-SRAM in some embodiments of the present invention;

[0023] Figure 5 is a schematic diagram representing an input signal in some embodiments of the present invention;

[0024] Figure 6 It is a diagram of the structure of a 6T-SRAM-based computing module in some embodiments of the present invention. DETAILED DESCRIPTION

[0025] In order to more clearly understand the purpose, technical solutions and advantages of the present application, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments.

[0026] Unless otherwise defined, the technical terms or scientific terms involved in this application shall have the general meaning understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the", "these" and the like in this application do not represent quantitative restrictions, and they can be singular or plural. The terms "include", "comprise", "have" and any variants thereof involved in this application are intended to cover non-exclusive inclusions; for example, a process, method and system, product or device comprising a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether directly or indirectly. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: A exists alone, A and B exist at the same time, and B exists alone. Usually, the character " / " indicates that the objects associated with each other are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0027] In an embodiment of the present invention, a multi-bit multiplication and addition circuit based on 6T-SRAM is provided.

[0028] like Figure 1 and Figure 2 As shown, the circuit includes a plurality of 6T-SRAM cells (storage cells), a control unit and a calculation unit.

[0029] Multiple 6T-SRAM cells are arranged in parallel and are controlled by different word lines WL, respectively, the first ends of the multiple 6T-SRAM cells are connected to the same first local bit line BL, and the second ends of the multiple 6T-SRAM cells are connected to the same second local bit line BLB. Exemplarily, there may be eight 6T-SRAM cells.

[0030] In some embodiments, the 6T-SRAM unit includes a first PMOS tube P1, a second PMOS tube P2, a first NMOS tube N1, a second NMOS tube N2, a third NMOS tube N3 and a fourth NMOS tube N4; the source and drain of the first PMOS tube P1 are respectively connected to the power supply VDD and the drain of the first NMOS tube N1, the source and drain of the second PMOS tube P2 are respectively connected to the power supply VDD and the drain of the second NMOS tube N2, the gate of the first PMOS tube P1 and the gate of the first NMOS tube N1 are both connected to the drain of the second PMOS tube P2 and form The first storage node Q, the gate of the second PMOS tube P2 and the gate of the second NMOS tube N2 are all connected to the drain of the first PMOS tube P1 and constitute the second storage node QB, the source of the first NMOS tube N1 and the source node of the second NMOS tube N2 are both grounded VSS, the source and drain of the third NMOS tube N3 are respectively connected to the second local bit line BLB and the second storage node QB, the source and drain of the fourth NMOS tube N4 are respectively connected to the first local bit line BL and the first storage node Q, and the gate of the third NMOS tube N3 and the gate of the fourth NMOS tube N4 are connected to the same word line WL.

[0031] The computing unit includes a fifth PMOS tube P5, a sixth PMOS tube P6, a seventh PMOS tube P7, an eighth PMOS tube P8, a seventh NMOS tube N7, an eighth NMOS tube N8, a ninth NMOS tube N9 and a tenth NMOS tube N10. The source and drain of the fifth PMOS tube P5 are respectively connected to the drain and source of the seventh NMOS tube N7, the source and drain of the sixth PMOS tube P6 are respectively connected to the drain and source of the eighth NMOS tube N8, the source of the seventh PMOS tube P7 is respectively connected to the drain and source of the eighth NMOS tube N8, and the source of the seventh PMOS tube P7 is respectively connected to the drain and source of the eighth NMOS tube N8. The gate electrode of the seventh NMOS tube N7 is connected to the gate electrode of the eighth NMOS tube N8, and the gate electrode of the sixth PMOS tube P6 is connected to the gate electrode of the fifth PMOS tube P5.

[0032] The source of the fifth PMOS tube P5 and the drain of the eighth NMOS tube N8 are signal output nodes (used to output the result signal VS), the drain of the seventh PMOS tube P7 and the drain of the eighth PMOS tube P8 are used to access the indeterminate level signal X, the gate of the ninth NMOS tube N9 and the gate of the tenth NMOS tube N10 are signal input nodes (used to receive input signals IN1 and IN2, respectively), and the gate of the seventh PMOS tube P7 and the gate of the eighth PMOS tube P8 are used to receive the inverted input signals IN1N and IN2N, respectively. Wherein: IN1N is opposite to IN1, and IN2N is opposite to IN2.

[0033] The gate of the fifth PMOS transistor P5 and the gate of the eighth NMOS transistor N8 are respectively connected to the second local bit line BLB and the first local bit line BL through the control unit, and the control unit is used to realize switch control.

[0034] Among them, the control unit includes a third PMOS tube P3, a fourth PMOS tube P4, a fifth NMOS tube N5 and a sixth NMOS tube N6; the drain and source of the fifth NMOS tube N5 are respectively connected to the second local bit line BLB and the gate of the fifth PMOS tube P5, the source and drain of the fourth PMOS tube P4 are respectively connected to the first local bit line BL and the gate of the eighth NMOS tube N8, the source and drain of the third PMOS tube P3 are respectively connected to the second global bit line GBLB and the gate of the fifth PMOS tube P5, the source and drain of the sixth NMOS tube N6 are respectively connected to the first global bit line GBL and the gate of the eighth NMOS tube N8; the gate of the fifth NMOS tube N5 is used to access the first calculation control signal CEN, the gate of the fourth PMOS tube P4 is used to access the second calculation control signal CENB, the gate of the sixth NMOS tube N6 is used to access the first pre-control signal RAP, and the gate of the third PMOS tube P3 is used to access the second pre-control signal RAPB.

[0035] In the above technical solution, multiple storage units and one computing unit are configured together to realize in-memory computing. Compared with the structure in which the computing circuit and the storage circuit are separated, the computing speed is greatly improved, and the problem that the computing circuit and the storage circuit are separated in the traditional von Neumann architecture, which will limit the computing speed, is solved.

[0036] As follows, taking 8 6T-SRAM cells as an example, a multi-bit multiplication and addition circuit based on 6T-SRAM is specifically described. In the following, for the convenience of description, each device, signal and signal line is simplified by using its corresponding character mark, and a high level signal is represented by a number 1, and a low level signal is represented by a number 0.

[0037] In the above technical solution, a circuit structure for multi-bit multiplication and addition based on 6T-SRAM is provided, which is used to realize the multi-bit multiplication and addition function in memory. Figure 1 , the circuit structure includes: a storage unit (6T-SRAM unit), a control unit, and a computing unit. The storage unit is used to store weights, and the computing unit is used to perform basic operations. Eight storage units are connected to a control unit and a computing unit, a control unit includes two PMOS tubes and two NMOS tubes, and a computing unit includes four PMOS tubes and four NMOS tubes. The local bit lines BLB and BL of multiple storage units are connected together (multiple storage units share the same local bit lines BLB and BL), and the global bit lines GBLB and GBL of the entire array are connected together (multiple circuit structures share the same global bit lines GBLB and GBL).

[0038] Specifically, refer to Figure 2 , the 6T-SRAM cell includes four NMOS transistors and two PMOS transistors, the four NMOS transistors are sequentially recorded as N1-N4, and the two PMOS transistors are sequentially recorded as P1-P2. Among them: P1, P2 and N1, N2 have a cross-coupling structure, that is, the gate of P1 is electrically connected to the gate of N1, the drain of P1 is electrically connected to the drain of N1, the gate of P2 is electrically connected to the gate of N2, the drain of P2 is electrically connected to the drain of N2, the gate of P1 is electrically connected to the drain of P2, and the gate of P2 is electrically connected to the drain of P1, so that the data of the storage nodes Q and QB are latched. P1 and P2 act as pull-up tubes, that is, the source of P1 is electrically connected to the source of P2 and connected to VDD, thereby opening the Q and QB nodes to the power supply path. N1 and N2 act as pull-down tubes, that is, the source of N1 is electrically connected to the source of N2 and connected to VSS, thereby opening the Q and QB nodes to the ground path. The two storage nodes Q and QB are connected to the bit lines BLB and BL respectively through N3 and N4, and N3 and N4 are controlled by the word line WL. N1, N2, N3, N4, P1, and P2 form a 6Tcell as a storage unit.

[0039] See also Figure 2 The multi-bit multiplication and addition circuit based on 6T-SRAM includes a storage unit, a control unit, and a calculation unit. The storage unit is used to store weights, the calculation control unit is used to control the opening and closing of calculations, and the calculation unit is used to perform multiplication and addition operations.

[0040] More specifically, the connection relationship between the transistors in the 6T-SRAM unit, the control unit, and the computing unit is as follows:

[0041] The gate of P1 is electrically connected to the gate of N1, the drain of N4, and the drain of P2, and the drain of P1 is electrically connected to the drain of N1 and the drain of N3.

[0042] The gate of P2 is electrically connected to the gate of N2, the drain of N3, and the drain of P1, and the drain of P2 is electrically connected to the drain of N2 and the drain of N4.

[0043] The gate of P3 is connected to the precharge control signal RAPB, the drain of P3 is electrically connected to the source of N5 and the gate of P5, and the source of P3 is connected to the global bit line GBLB.

[0044] The gate of P4 is connected to the calculation control signal CENB, the source of P4 is electrically connected to the local bit line BL, and the drain of P4 is electrically connected to the gate of N8 and the drain of N6.

[0045] The gate of P5 is electrically connected to the source of N5, the source of P5 is electrically connected to the drain of N7, the drain of N8, and the source of P6, and the drain of P5 is electrically connected to the source of N7, the drain of N9, and the source of P7.

[0046] The gate of P6 is electrically connected to the source of N5, the drain of P6 is electrically connected to the source of N8, the source of P8, and the drain of N10, and the source of P6 is electrically connected to the source of P5, the drain of N7, and the drain of N8.

[0047] The gate of P7 is connected to the input signal IN1N, the source of P7 is electrically connected to the drain of P5 and the drain of N9, and the drain of P7 is electrically connected to the source of N9.

[0048] The gate of P8 is connected to the input signal IN2N, the source of P8 is electrically connected to the source of N8 and the drain of P6, and the drain of P8 is electrically connected to the source of N10.

[0049] The gate of N1 is electrically connected to the gate of P1, the drain of P2, and the drain of N4, and the drain of N1 is electrically connected to the drain of P1, the drain of N3, and the gate of N2.

[0050] The gate of N2 is electrically connected to the gate of P2, the drain of P1, and the drain of N3, and the drain of N2 is electrically connected to the drain of P2, the drain of N4, and the gate of N1.

[0051] The drain of N3 is electrically connected to the drain of N1 and the gate of N2 , the gate of N3 is electrically connected to the word line WL, and the source of N3 is electrically connected to the bit line BLB.

[0052] The drain of N4 is electrically connected to the drain of N2 and the gate of N1 , the gate of N4 is electrically connected to the word line WL, and the source of N4 is electrically connected to the bit line BL.

[0053] The gate of N5 is connected to the calculation control signal CEN, the drain of N5 is electrically connected to the local bit line BLB, and the source of N5 is electrically connected to the gate of P5 and the drain of P3.

[0054] The gate of N6 is connected to the pre-control signal RAP, the drain of N6 is electrically connected to the source of P4 and the gate of N8, and the source of N6 is connected to the global bit line GBL.

[0055] The gate of N7 is electrically connected to the source of P4, the source of N7 is electrically connected to the drain of P5, the drain of N9, and the source of P7, and the drain of N7 is electrically connected to the drain of N8, the source of P5, and the source of P6.

[0056] The gate of N8 is electrically connected to the drain of P4 and the drain of N6. The drain of N8 is electrically connected to the source of P6, the source of P5, and the drain of N7. The source of N8 is electrically connected to the drain of P6, the source of P8, and the drain of N10.

[0057] The gate of N9 is connected to the input signal IN1, the drain of N9 is electrically connected to the source of P7, the source of N7, and the drain of P5, and the source of N9 is electrically connected to the drain of P7.

[0058] The gate of N10 is connected to the input signal IN2 , the drain of N10 is electrically connected to the source of N8 and the drain of P6 , and the source of N10 is electrically connected to the drain of P8 .

[0059] On the basis of the above 6T-SRAM, a multi-bit multiplication and addition circuit structure is constructed, wherein eight storage cells share the same bit line BL, BLB, and the entire column shares a global bit line GBL, GBLB.

[0060] The circuit structure provided in this embodiment has three working modes, namely, SRAM mode, multiplication-accumulation mode, and multi-bit multiplication-addition mode.

[0061] 1.SRAM mode

[0062] Reference Figure 1 , taking the structure of a single 6T-SRAM as an example:

[0063] (1) Keep operating.

[0064] While the memory cell is retaining data, the word line WL remains at a low level, causing N3 and N4 to be turned off, and the bit lines BL and BLB to be precharged to a high level. The internal circuit remains in its initial state and the circuit does not work.

[0065] (2) Write operation.

[0066] In the data writing stage, the word line WL of the 6T-SRAM cell being written is set to a high level, the calculation control signal CEN is set to a high level, the calculation control signal CENB is set to a high level, the pre-control signals RAPB and RAP are set to a low level and a high level respectively. If the global bit line GBL is a high level and the global bit line GBLB is a low level, "1" is written to the storage cell through P3, P4, N5, and N6; if the global bit line GBL is a low level and the global bit line GBLB is a high level, "0" is written to the storage cell through P3, P4, N5, and N6.

[0067] (3) Read operation.

[0068] In the data reading stage, first, the word lines WL0-WL7 of all storage cells are low, the global bit lines GBL and GBLB are set to high, and the control signals RAPB and CENB are set to low, and the control signals RAP and CEN are set to high. After BLB and BL are all pre-charged to high levels, the word line WL of the storage cell to be read is turned on; if the data stored in the circuit is "0", that is, "Q=0, QB=1", the global bit line GBL is discharged to the ground through N6 and P4, and a voltage difference is generated between the global bit lines GBLB and GBL, and "0" is output through the sensitive amplifier SA; if the data stored in the circuit is "1", that is, "Q=1, QB=0", the global bit line GBLB is discharged to the ground through N5 and P3, and a voltage difference is generated between the global bit lines GBLB and GBL, and "1" is output through the sensitive amplifier SA.

[0069] 2. Multiply-accumulate mode

[0070] Circuit diagram Figure 1 , see the timing diagram Figure 3 , the gates of transistors N9 and N10 serve as the data input Input of the circuit, and the storage nodes Q and QB serve as the weight Weight; the input signals IN1 and IN2 represent the high and low bits of the 2-bit input respectively; when IN1=0, IN2=0, the 2-bit data represented by the input is "00"; when IN1=0, IN2=1, the 2-bit data represented by the input is "01"; when IN1=1, IN2=0, the 2-bit data represented by the input is "10"; when IN1=1, IN2=1, the 2-bit data represented by the input is "11"; when the storage node Q=1, QB=0, and X=VDD, the Weight is "1"; when the storage node Q=0, QB=1, and X=VDD, the Weight is "0".

[0071] When the input is "00", the result VS is VDD regardless of the value stored in the weight; when the weight is "0", the result VS is VDD regardless of the input value; when the input is "01" and the weight is "1", the result VS is VDD-1ΔV; when the input is "10" and the weight is "1", the result VS is VDD-2ΔV; when the input is "11" and the weight is "1", the result VS is VDD-3ΔV.

[0072] 3. Multi-bit multiplication and addition mode

[0073] The gates of transistors N9 and N10 serve as the data input of the circuit, and the storage nodes Q and QB serve as weights. The input signals IN1 and IN2 use different high-level durations to represent different 2-bit numbers. Figure 5 For example, when the input signal is continuously at a low level, it represents "00", when the input signal is continuously at a high level for 100ps, it represents "01", when the input signal is continuously at a high level for 200ps, it represents "10", and when the input signal is continuously at a high level for 300ps, it represents "11"; when the storage node Q=1, QB=0, and X=1, the Weight is "+1"; when the storage node Q=1, QB=0, and X=0, the Weight is "-1"; when the storage node Q=0, QB=1, and X=0 / 1, the Weight is "0".

[0074] The initial value of the result signal VS is set to 1 / 2VDD. If IN1 and IN2 are both low level, N5, N10, P5, and P6 are in the off state. At this time, no matter what the value of Weight is, the multiplication and addition result is "0".

[0075] If IN1 is high and IN2 is low, N9 and P7 are in the on state, N10 and P8 are in the off state, and the Weight is "+1", when the IN1 turn-on time is 1Δt, the multiplication and addition result is that VS increases by 1ΔV, that is, VS is 1 / 2VDD+1ΔV, when the IN1 turn-on time is 2Δt, the multiplication and addition result is that VS increases by 2ΔV, that is, VS is 1 / 2VDD+2ΔV, when the IN1 turn-on time is 3Δt, the multiplication and addition result is that VS increases by 3ΔV, that is, VS is 1 / 2VDD+3ΔV.

[0076] If IN1 is at a low level and IN2 is at a high level, N9 and 75 are in the off state, N10 and P8 are in the on state, and the Weight is "+1", when the IN2 turn-on time is 1Δt, the multiplication and addition result is that VS increases by 1ΔV, that is, VS is 1 / 2VDD+1ΔV; when the IN2 turn-on time is 2Δt, the multiplication and addition result is that VS increases by 2ΔV, that is, VS is 1 / 2VDD+2ΔV; when the IN2 turn-on time is 3Δt, the multiplication and addition result is that VS increases by 3ΔV, that is, VS is 1 / 2VDD+3ΔV.

[0077] If IN1 is high level, IN2 is high level, N9 and P7 are in the on state, N10 and P8 are in the on state, and the Weight is "+1", when the turn-on time of IN1 is 1Δt and the turn-on time of IN2 is 1Δt, the multiplication and addition result is that VS increases by 2ΔV, that is, VS is 1 / 2VDD+2ΔV; when the turn-on time of IN1 is 1Δt and the turn-on time of IN2 is 2Δt, the multiplication and addition result is that VS increases by 3ΔV, that is, VS is 1 / 2VDD+3ΔV; when the turn-on time of IN1 is 1Δt and the turn-on time of IN2 is 3Δt, the multiplication and addition result is that VS increases by 4ΔV, that is, VS is 1 / 2VDD+4ΔV.

[0078] If IN1 is high level, IN2 is high level, N9 and P7 are in the on state, N10 and P8 are in the on state, and the Weight is "+1", when the turn-on time of IN1 is 2Δt and the turn-on time of IN2 is 1Δt, the multiplication and addition result is that VS increases by 3ΔV, that is, VS is 1 / 2VDD+3ΔV; when the turn-on time of IN1 is 2Δt and the turn-on time of IN2 is 2Δt, the multiplication and addition result is that VS increases by 4ΔV, that is, VS is 1 / 2VDD+4ΔV; when the turn-on time of IN1 is 2Δt and the turn-on time of IN2 is 3Δt, the multiplication and addition result is that VS increases by 5ΔV, that is, VS is 1 / 2VDD+5ΔV.

[0079] If IN1 is high level, IN2 is high level, N9 and P7 are in the on state, N10 and P8 are in the on state, and the Weight is "+1", when the turn-on time of IN1 is 3Δt and the turn-on time of IN2 is 1Δt, the multiplication and addition result is that VS increases by 4ΔV, that is, VS is 1 / 2VDD+4ΔV; when the turn-on time of IN1 is 3Δt and the turn-on time of IN2 is 2Δt, the multiplication and addition result is that VS increases by 5ΔV, that is, VS is 1 / 2VDD+5ΔV; when the turn-on time of IN1 is 3Δt and the turn-on time of IN2 is 3Δt, the multiplication and addition result is that VS increases by 6ΔV, that is, VS is 1 / 2VDD+6ΔV.

[0080] If IN1 is high level, IN2 is low level, N9 and P7 are in the on state, N10 and P8 are in the off state, and the Weight is "-1", when the IN1 turn-on time is 1Δt, the multiplication and addition result is that VS decreases by 1ΔV, that is, VS is 1 / 2VDD-1ΔV, when the IN1 turn-on time is 2Δt, the multiplication and addition result is that VS decreases by 2ΔV, that is, VS is 1 / 2VDD-2ΔV, when the IN1 turn-on time is 3Δt, the multiplication and addition result is that VS decreases by 3ΔV, that is, VS is 1 / 2VDD-3ΔV.

[0081] If IN1 is low level, IN2 is high level, N9 and P7 are in the off state, N10 and P8 are in the on state, and the Weight is "-1", when the IN2 turn-on time is 1Δt, the multiplication and addition result is that VS decreases by 1ΔV, that is, VS is 1 / 2VDD-1ΔV, when the IN2 turn-on time is 2Δt, the multiplication and addition result is that VS decreases by 2ΔV, that is, VS is 1 / 2VDD-2ΔV, when the IN2 turn-on time is 3Δt, the multiplication and addition result is that VS decreases by 3ΔV, that is, VS is 1 / 2VDD-3ΔV.

[0082] If IN1 is high level, IN2 is high level, N9 and P7 are in the on state, N10 and P8 are in the on state, and the Weight is "-1", when the turn-on time of IN1 is 1Δt and the turn-on time of IN2 is 1Δt, the multiplication and addition result is that VS decreases by 2ΔV, that is, VS is 1 / 2VDD-2ΔV; when the turn-on time of IN1 is 1Δt and the turn-on time of IN2 is 2Δt, the multiplication and addition result is that VS decreases by 3ΔV, that is, VS is 1 / 2VDD-3ΔV; when the turn-on time of IN1 is 1Δt and the turn-on time of IN2 is 3Δt, the multiplication and addition result is that VS decreases by 4ΔV, that is, VS is 1 / 2VDD-4ΔV.

[0083] If IN1 is high level, IN2 is high level, N9 and P7 are in the on state, N10 and P8 are in the on state, and the Weight is "-1", when the turn-on time of IN1 is 2Δt and the turn-on time of IN2 is 1Δt, the multiplication and addition result is that VS decreases by 3ΔV, that is, VS is 1 / 2VDD-3ΔV; when the turn-on time of IN1 is 2Δt and the turn-on time of IN2 is 2Δt, the multiplication and addition result is that VS decreases by 4ΔV, that is, VS is 1 / 2VDD-4ΔV; when the turn-on time of IN1 is 2Δt and the turn-on time of IN2 is 3Δt, the multiplication and addition result is that VS decreases by 5ΔV, that is, VS is 1 / 2VDD-5ΔV.

[0084] If IN1 is high level, IN2 is high level, N9 and P7 are in the on state, N10 and P8 are in the on state, and the Weight is "-1", when the turn-on time of IN1 is 3Δt and the turn-on time of IN2 is 1Δt, the multiplication and addition result is that VS decreases by 4ΔV, that is, VS is 1 / 2VDD-4ΔV; when the turn-on time of IN1 is 3Δt and the turn-on time of IN2 is 2Δt, the multiplication and addition result is that VS decreases by 5ΔV, that is, VS is 1 / 2VDD-5ΔV; when the turn-on time of IN1 is 3Δt and the turn-on time of IN2 is 3Δt, the multiplication and addition result is that VS decreases by 6ΔV, that is, VS is 1 / 2VDD-6ΔV.

[0085] When the storage node Q=0, QB=1, that is, the weight is "0", no matter what the input signals IN1 and IN2 are, the multiplication and addition result VS is not discharged or charged to the ground, and remains at the initial value 1 / 2VDD, which means that the multiplication and addition result is 0.

[0086] It should be noted that the on-time of the signal above is the duration of the high level in the signal.

[0087] After simulating 32 calculation input combinations, the results are as follows: Figure 4 shown.

[0088] In summary, the multi-bit multiplication and addition operation circuit based on 6T-SRAM provided by the present invention includes a storage unit and a local calculation circuit (control unit and calculation unit). The circuit structure of the present invention has two calculation functions. Function 1: multiplication and accumulation operation, a local calculation circuit can multiply 2 bits (circuit input) and 1 bit (weight), and can be applied to convolutional neural networks in conjunction with shift registers; Function 2: multi-bit multiplication and addition operation, a local calculation circuit can realize the multiplication of two 2 bits (circuit input) and 1 bit (weight) and then add them, which can be applied to grayscale edge detection of images.

[0089] Based on the multi-bit multiplication and addition operation circuit provided by the present invention, the present invention also provides a control method for the multi-bit multiplication and addition operation circuit based on 6T-SRAM, which is used to control the circuit to execute different working modes.

[0090] In some embodiments, the control method includes a multi-bit multiplication and addition operation step, a multiplication and accumulation operation step and an access step, and various steps are used to control the circuit to execute a multi-bit multiplication and addition mode, a multiplication and accumulation mode and an SRAM mode respectively.

[0091] The steps of multi-bit multiplication and addition operations include:

[0092] The first signal and the second signal are connected to the gate of the ninth NMOS tube and the gate of the tenth NMOS tube respectively, and the first signal and the second signal represent the first 2-bit number and the second 2-bit number respectively.

[0093] The result signal of the multi-bit multiplication and addition operation is output through the source of the fifth PMOS tube and the drain of the eighth NMOS tube. The result signal of the multi-bit multiplication and addition operation is obtained by adding the product results of the first 2-bit number and the second 2-bit number and the first 1-bit weight respectively.

[0094] Among them, when the first storage node is at a high level, the second storage node is at a low level, and the indeterminate level signal is at a high level, the first 1-bit weight is +1; when the first storage node is at a high level, the second storage node is at a low level, and the indeterminate level signal is at a low level, the first 1-bit weight is -1; when the first storage node is at a low level and the second storage node is at a high level, the first 1-bit weight is 0.

[0095] The first signal and the second signal are respectively input signals IN1 and IN2 in a multi-bit multiplication and addition mode.

[0096] The control method further includes that the multiplication and accumulation operation step includes:

[0097] The third signal and the fourth signal are connected to the gate of the ninth NMOS tube and the gate of the tenth NMOS tube respectively, and the third signal and the fourth signal represent the high digit and the low digit of the third 2-bit number respectively.

[0098] The result signal of the multiplication and accumulation operation is outputted through the source of the fifth PMOS tube and the drain of the eighth NMOS tube, and the result signal of the multiplication and accumulation operation is obtained by multiplying the third 2-bit number and the second 1-bit weight.

[0099] Among them, when the first storage node is at a high level, the second storage node is at a low level, and the indeterminate level signal is at a high level, the second 1-bit weight is 1; when the first storage node is at a low level, the second storage node is at a high level, and the indeterminate level signal is at a high level, the second 1-bit weight is 0.

[0100] The third signal and the fourth signal are input signals IN1 and IN2 in the multiplication-accumulation mode, respectively.

[0101] The access steps include:

[0102] When performing the hold operation of the SRAM mode, the word line of each 6T-SRAM cell is configured to be low level;

[0103] When performing a write operation in the SRAM mode, the word line of the 6T-SRAM cell to be written is configured to be high level, the first calculation control signal and the second calculation control signal are configured to be high level, and the first pre-control signal and the second pre-control signal are configured to be high level and low level respectively;

[0104] When performing a read operation in the SRAM mode, first configure the word line signal of each 6T-SRAM unit to a low level, configure the first global bit line and the second global bit line to be high, configure the second pre-control signal and the second calculation control signal to be low, configure the first pre-control signal and the first calculation control signal to be high, then pre-charge the first local bit line and the second local bit line to be high, and after the pre-charging is completed, configure the word line signal of each 6T-SRAM unit to be high.

[0105] The control method of the multi-bit multiplication and addition operation circuit in this embodiment can be specifically referred to the description of the working mode of the multi-bit multiplication and addition operation circuit, and will not be repeated here.

[0106] The present invention also provides a computing chip, which integrates the multi-bit multiplication and addition computing circuit based on 6T-SRAM provided by the present invention.

[0107] Reference Figure 6 In the present invention, a computing module is also provided, which is packaged with the computing chip provided by the present invention. Specifically, the packaged computing module is also provided with various pins, which are respectively used to conduct input signals IN1 and IN2, inverted input signals IN1N and IN2N, storage node signals QB and Q, calculation result signal VS and indeterminate level signal X.

[0108] The present invention also provides an electronic device, comprising the computing module provided by the present invention.

[0109] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.

[0110] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.

Claims

1. A multi-bit multiplication and addition circuit based on 6T-SRAM, characterized in that: The circuit includes a plurality of 6T-SRAM cells, a control unit, and a calculation unit; The plurality of 6T-SRAM cells are arranged in parallel and are respectively controlled by different word lines, the first ends of the plurality of 6T-SRAM cells are connected to the same first local bit line, and the second ends of the plurality of 6T-SRAM cells are connected to the same second local bit line; The calculation unit includes a fifth PMOS tube, a sixth PMOS tube, a seventh PMOS tube, an eighth PMOS tube, a seventh NMOS tube, an eighth NMOS tube, a ninth NMOS tube and a tenth NMOS tube, the source and drain of the fifth PMOS tube are respectively connected to the drain and source of the seventh NMOS tube, the source and drain of the sixth PMOS tube are respectively connected to the drain and source of the eighth NMOS tube, the source and drain of the seventh PMOS tube are respectively connected to the drain and source of the ninth NMOS tube, the source and drain of the eighth PMOS tube are respectively connected to the drain and source of the tenth NMOS tube, the source of the seventh PMOS tube is connected to the drain of the fifth PMOS tube, the source of the eighth PMOS tube is connected to the drain of the sixth PMOS tube, the gate of the seventh NMOS tube is connected to the gate of the eighth NMOS tube, and the gate of the sixth PMOS tube is connected to the gate of the fifth PMOS tube; The source of the fifth PMOS tube and the drain of the eighth NMOS tube are signal output nodes, the drain of the seventh PMOS tube and the drain of the eighth PMOS tube are used to access the indeterminate level signal, and the gate of the ninth NMOS tube and the gate of the tenth NMOS tube are signal input nodes; The gate of the fifth PMOS tube and the gate of the eighth NMOS tube are respectively connected to the second local bit line and the first local bit line through the control unit, and the control unit is used to realize switch control.

2. The multi-bit multiplication and addition operation circuit based on 6T-SRAM according to claim 1, characterized in that: The control unit includes a third PMOS tube, a fourth PMOS tube, a fifth NMOS tube and a sixth NMOS tube; The drain and source of the fifth NMOS tube are respectively connected to the second local bit line and the gate of the fifth PMOS tube, the source and drain of the fourth PMOS tube are respectively connected to the first local bit line and the gate of the eighth NMOS tube, the source and drain of the third PMOS tube are respectively connected to the second global bit line and the gate of the fifth PMOS tube, and the source and drain of the sixth NMOS tube are respectively connected to the first global bit line and the gate of the eighth NMOS tube; The gate of the fifth NMOS tube is used to access the first calculation control signal, the gate of the fourth PMOS tube is used to access the second calculation control signal, the gate of the sixth NMOS tube is used to access the first pre-control signal, and the gate of the third PMOS tube is used to access the second pre-control signal.

3. The multi-bit multiplication and addition operation circuit based on 6T-SRAM according to claim 2, characterized in that: The 6T-SRAM unit includes a first PMOS tube, a second PMOS tube, a first NMOS tube, a second NMOS tube, a third NMOS tube and a fourth NMOS tube; The source and drain of the first PMOS tube are connected to the power supply and the drain of the first NMOS tube respectively, the source and drain of the second PMOS tube are connected to the power supply and the drain of the second NMOS tube respectively, the gate of the first PMOS tube and the gate of the first NMOS tube are both connected to the drain of the second PMOS tube and constitute a first storage node, the gate of the second PMOS tube and the gate of the second NMOS tube are both connected to the drain of the first PMOS tube and constitute a second storage node, the source of the first NMOS tube and the source node of the second NMOS tube are both grounded, the source and drain of the third NMOS tube are respectively connected to the second local bit line and the second storage node, the source and drain of the fourth NMOS tube are respectively connected to the first local bit line and the first storage node, and the gate of the third NMOS tube and the gate of the fourth NMOS tube are connected to the same word line.

4. The multi-bit multiplication and addition operation circuit based on 6T-SRAM according to claim 2, characterized in that: The number of the 6T-SRAM cells is eight.

5. A control method for a multi-bit multiplication and addition circuit based on 6T-SRAM, characterized in that: The multi-bit multiplication and addition operation circuit based on 6T-SRAM as claimed in claim 3, wherein the control method comprises a multi-bit multiplication and addition operation step, and the multi-bit multiplication and addition operation step comprises: Connecting a first signal and a second signal to the gate of a ninth NMOS tube and a gate of a tenth NMOS tube respectively, wherein the first signal and the second signal represent a first 2-bit number and a second 2-bit number respectively; Outputting a result signal of a multi-bit multiplication and addition operation through the source of the fifth PMOS tube and the drain of the eighth NMOS tube, wherein the result signal of the multi-bit multiplication and addition operation is obtained by adding the product results of the first 2-bit number and the second 2-bit number and the first 1-bit weight respectively; Among them, when the first storage node is at a high level, the second storage node is at a low level, and the indeterminate level signal is at a high level, the first 1-bit weight is +1; when the first storage node is at a high level, the second storage node is at a low level, and the indeterminate level signal is at a low level, the first 1-bit weight is -1; when the first storage node is at a low level and the second storage node is at a high level, the first 1-bit weight is 0.

6. The control method of the multi-bit multiplication and addition circuit based on 6T-SRAM according to claim 5, characterized in that: The control method further includes a multiplication-accumulation-addition operation step, wherein the multiplication-accumulation-addition operation step includes: Connecting a third signal and a fourth signal to the gate of the ninth NMOS tube and the gate of the tenth NMOS tube respectively, wherein the third signal and the fourth signal represent the high digit and the low digit of the third 2-bit number respectively; Outputting a result signal of a multiplication and accumulation operation through the source of the fifth PMOS tube and the drain of the eighth NMOS tube, wherein the result signal of the multiplication and accumulation operation is obtained by multiplying the third 2-bit number and the second 1-bit weight; Among them, when the first storage node is at a high level, the second storage node is at a low level, and the indeterminate level signal is at a high level, the second 1-bit weight is 1; when the first storage node is at a low level, the second storage node is at a high level, and the indeterminate level signal is at a high level, the second 1-bit weight is 0.

7. The control method of the multi-bit multiplication and addition circuit based on 6T-SRAM according to claim 5, characterized in that: The control method further includes an access step, wherein the access step includes: When performing the hold operation of the SRAM mode, the word line of each 6T-SRAM cell is configured to be low level; When performing a write operation in the SRAM mode, the word line of the 6T-SRAM cell to be written is configured to be high level, the first calculation control signal and the second calculation control signal are configured to be high level, and the first pre-control signal and the second pre-control signal are configured to be high level and low level respectively; When performing a read operation in the SRAM mode, first configure the word line signal of each 6T-SRAM unit to a low level, configure the first global bit line and the second global bit line to be high, configure the second pre-control signal and the second calculation control signal to be low, configure the first pre-control signal and the first calculation control signal to be high, then pre-charge the first local bit line and the second local bit line to be high, and after the pre-charging is completed, configure the word line signal of each 6T-SRAM unit to be high.

8. A computing chip, characterized in that: A multi-bit multiplication and addition operation circuit based on 6T-SRAM according to any one of claims 1 to 3 is integrated.

9. A computing module, characterized in that: The computing chip according to claim 8 is packaged therein.

10. An electronic device, characterized in that: Includes the computing module as claimed in claim 9.

Citation Information

Patent Citations

  • Multi-bit input and multi-bit weight multiply-accumulate in-memory computing unit

    CN112599165A

  • Multi-bit storage and calculation device

    CN113296734A

  • In-memory operational circuit with symbol multiplication and CIM chip

    CN118312468A

  • Digital compute-in-memory (DCIM) bit cell circuit layouts and DCIM arrays for multiple operations per column

    US20220392524A1

  • In-memory computation in homomorphic encryption systems

    WO2022243781A1

Cited By

  • Five-tube half adder circuit, digital in-memory computing array and static random access memory

    CN119248225A

  • In-memory multiplication circuit and module of SRAM (Static Random Access Memory), SRAM and electronic equipment

    CN119415475A

  • SRAM in-memory multiplication operation circuit and module, SRAM and electronic device

    CN119415475B