Signed multiplication and multiply-accumulate operation circuit based on 14T-TFET-SRAM unit circuit
By designing the 14T-TFET-SRAM unit circuit, using independent data read channels and reasonable voltage control, the problem of high static power consumption of the TFET-SRAM unit circuit is solved, low power consumption and efficient read and write operations are achieved, and support Multi-bit multiplication and multiply-accumulate operations.
Patent Information
- Application Number
- CN202410826278.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-25
AI Technical Summary
Existing TFET-SRAM unit circuits have problems with high static power consumption, and traditional MOSFET devices have physical limits in low-voltage and low-power applications, resulting in limited applications in ultra-low-power chips.
A 14T-TFET-SRAM unit circuit is designed, which realizes read and write separation through an independent data read channel, avoiding the read damage problem of traditional 6T-SRAM, and the drain voltage of transistor N5 is always not lower than the source voltage. This avoids forward bias current in the TFET tube that is not controlled by the gate, thereby reducing static power consumption.
It effectively reduces the static power consumption of the TFET-SRAM unit circuit, solves the problem of read corruption, and supports multi-bit multiplication and multiply-accumulate operations between signed and unsigned numbers, improving the efficiency and stability of the circuit.
Smart Images

Figure CN118711630A
Abstract
Description
Technical Field
[0001] The present application relates to the field of integrated circuits, and in particular to a signed multiplication and multiplication-accumulation operation circuit based on a 14T-TFET-SRAM unit circuit. Background Art
[0002] In order to overcome the problem that the data transmission rate between the memory and the processor (CPU) in the von Neumann architecture computer system cannot keep up with the ultra-high data processing rate of the processor, thus causing a bottleneck in the data processing efficiency of the computer system, technicians have proposed a new computing mechanism that can complete calculations in the memory, namely, computing-in-memory (CIM). The CIM architecture can be implemented based on a variety of storage devices.
[0003] Among the various memory chips that support storage and computing architectures, static random access memory (SRAM) has been proven to be one of the mature structures in the CIM system due to its excellent characteristics of low power consumption and high speed. Most of the existing SRAMs are based on CMOS technology; however, affected by the Boltzmann distribution, the subthreshold swing of traditional MOSFET devices has physical limits in low-voltage applications, which greatly affects the switching characteristics of MOSFET devices. Its leakage current increases exponentially with the decrease in voltage, which greatly hinders its application in ultra-low power chips. At the same time, the existing various CIM chips based on the dual-port 6T-CMOS-SRAM structure design generally have read corruption problems that cannot be ignored;
[0004] Compared with MOSFET devices, tunneling field effect transistors (TFETs), as non-Boltzmann distribution devices, have higher switching ratios and lower subthreshold swings, which makes TFET devices have broad application prospects in the field of low voltage and low power consumption, and have great potential in replacing MOSFET devices. However, due to the uneven doping of the source and drain of TEFT devices and their unidirectional conductivity, forward bias currents that are not controlled by the gate voltage may occur during operation, which will increase the static power consumption of the TFET-SRAM unit circuit and SRAM, and destroy the voltage stability of the storage node.
[0005] Currently, no effective solution has been proposed to solve the problem of high static power consumption of existing TFET-SRAM unit circuits. Summary of the invention
[0006] The present invention provides a 14T-TFET-SRAM unit circuit, an operation circuit, a CIM chip and a memory to solve the problem of high static power consumption of the existing TFET-SRAM unit circuit.
[0007] In a first aspect, the present invention provides a 14T-TFET-SRAM unit circuit, wherein the 14T-TFET-SRAM unit circuit includes a first NTFET to a seventh NTFET and a first PTFET to a seventh PTFET;
[0008] The source, drain and gate of the first PTFET transistor P0 are electrically connected to the drain of the fifth PTFET transistor P4 and the drain and gate of the first NTFET transistor N0 respectively, and the drain of the first PTFET transistor P0 is provided with a first storage node Q;
[0009] The source, drain and gate of the second PTFET transistor P1 are electrically connected to the power supply VDD, the drain and gate of the second NTFET tube N1 respectively, and the drain of the second PTFET transistor P1 is provided with a second storage node QB;
[0010] The source, drain and gate of the third PTFET transistor P2 are electrically connected to the drain of the fourth PTFET transistor P3, the drain of the third NTFET transistor N2 and the gate of the fifth NTFET transistor N4 respectively;
[0011] The source and gate of the fourth PTFET transistor P3 are electrically connected to the power supply VDD and the first row write control signal line WLB respectively;
[0012] The source and gate of the fifth PTFET transistor P4 are electrically connected to the power supply VDD and the gate of the third NTFET transistor N2 respectively;
[0013] The source, drain and gate of the sixth PTFET transistor P5 are electrically connected to the drain of the seventh PTFET transistor P6, the first bit line RBLB and the drain of the second NTFET transistor N1, respectively;
[0014] The source and gate of the seventh PTFET transistor P6 are electrically connected to the power supply VDD and the first input word line INWLB respectively;
[0015] The source of the first NTFET transistor N0 is electrically connected to the drain of the fifth NTFET transistor N4;
[0016] The source of the second NTFET transistor N1 is electrically connected to the ground line VSS;
[0017] The source and gate of the third NTFET transistor N2 are electrically connected to the drain of the fourth NTFET transistor N3 and the first column write control signal BLB, respectively;
[0018] The source and gate of the fourth NTFET transistor N3 are electrically connected to the ground line VSS and the second row write control signal line WL respectively;
[0019] The source and gate of the fifth NTFET transistor N4 are electrically connected to the ground line VSS and the second column write control signal line BL respectively;
[0020] The source, drain and gate of the sixth NTFET transistor N5 are electrically connected to the ground line VSS, the source of the seventh NTFET transistor N6 and the drain of the third NTFET transistor N2 respectively;
[0021] The drain and gate of the seventh NTFET transistor N6 are electrically connected to the second bit line RBL and the second input word line INWL, respectively.
[0022] In a second aspect, the present invention provides a 14T-TFET-SRAM unit circuit array, wherein the 14T-TFET-SRAM unit circuit array comprises a plurality of 14T-TFET-SRAM unit circuits according to the first aspect distributed in an array.
[0023] In the third aspect, the present invention provides a signed multiplication and multiplication-accumulation operation circuit based on a 14T-TFET-SRAM unit circuit, wherein the signed multiplication and multiplication-accumulation operation circuit comprises the 14T-TFET-SRAM unit circuit array described in the second aspect, and the 14T-TFET-SRAM unit circuit array comprises M×N 14T-TFET-SRAM unit circuits.
[0024] In a fourth aspect, the present invention provides a 14T-TFET-SRAM operation method, which is applied to the signed multiplication and multiplication-accumulation operation circuit based on the 14T-TFET-SRAM unit circuit described in the third aspect;
[0025] The operation method comprises:
[0026] The M×N 14T-TFET-SRAM cell circuit array is evenly divided into a plurality of Mi×N sub-arrays from top to bottom, and each Mi×N sub-array uses an independent first bit line RBLB and a second bit line RBL;
[0027] The data to be pre-stored are stored in different Mi×N sub-arrays from top to bottom in the order of the least significant bit to the most significant bit;
[0028] The second bit line RBL of each column is precharged to a high level and the first bit line RBLB is precharged to a low level, and the signed number and the unsigned number are input through the second input word line INWL and the first input word line INWLB respectively, and signals with different pulse widths are generated according to the numerical values;
[0029] When the discharge / charge results of the first bit line RBLB and the second bit line RBL are stable, the switches between the first global bit line GBLN and the second global bit line GBLP and each Mi×N sub-array are opened in sequence to share charges, and the voltages on the first global bit line GBLN and the second global bit line GBLP are quantized respectively to obtain the result of multiplication and accumulation;
[0030] Subtract the negative value from the quantized positive value to get the final multiplication and accumulation result.
[0031] In a fifth aspect, a CIM chip is provided in the present invention, wherein the CIM chip integrates a plurality of signed multiplication and multiplication-accumulation operation circuits based on the 14T-TFET-SRAM unit circuit described in the third aspect and peripheral circuits cooperating with the signed multiplication and multiplication-accumulation operation circuits.
[0032] Compared with the related art, the 14T-TFET-SRAM unit circuit provided by the present invention realizes read-write separation by providing an independent data read channel, which can prevent the read damage problem caused by opening multiple rows of the traditional 6T-SRAM, and can simultaneously support multi-bit multiplication and multiplication-accumulation operations between signed and unsigned numbers. In addition, the drain voltage of transistor N5 is always not lower than the source voltage of transistor N5, thereby avoiding the forward bias current of the TFET tube that is not controlled by the gate, reducing the static power consumption of the unit circuit, and solving the problem of high static power consumption of the existing TFET-SRAM unit circuit.
[0033] 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
[0034] Figure 1 is a structural diagram of a 14T-TFET-SRAM unit circuit provided in an embodiment of the present invention;
[0035] Figure 2 is a working timing diagram of a 14T-TFET-SRAM unit circuit provided in an embodiment of the present invention;
[0036] Figure 3 is a structural diagram of a 2×2 unit circuit array provided in an embodiment of the present invention;
[0037] Figure 4 It is a data comparison diagram of the static power consumption of a 2×2 unit circuit array provided in an embodiment of the present invention and the static power consumption of other arrays with the same structure;
[0038] Figure 5It is a structural diagram of a signed multiplication and multiplication-accumulation operation circuit based on a 14T-TFET-SRAM unit circuit provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0039] 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.
[0040] 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.
[0041] The present invention provides a 14T-TFET-SRAM unit circuit. Figure 1 14T-TFET-SRAM unit circuit provided in an embodiment of the present invention, such as Figure 1 As shown, the 14T-TFET-SRAM unit circuit includes the first NTFET transistor to the seventh NTFET transistor and the first PTFET transistor to the seventh PTFET transistor.
[0042] The source, drain and gate of the first PTFET transistor P0 are electrically connected to the drain of the fifth PTFET transistor P4, the drain and gate of the first NTFET transistor N0, respectively, and the drain of the first PTFET transistor P0 is provided with a first storage node Q; the source, drain and gate of the second PTFET transistor P1 are electrically connected to the power supply VDD, the drain and gate of the second NTFET transistor N1, respectively, and the drain of the second PTFET transistor P1 is provided with a second storage node QB; the source, drain and gate of the third PTFET transistor P2 are electrically connected to the drain of the fourth PTFET transistor P3, the drain of the third NTFET transistor N2 and the gate of the fifth NTFET transistor N4, respectively; the source and gate of the fourth PTFET transistor P3 are electrically connected to the power supply VDD and the first row write control signal line WLB, respectively; the source and gate of the fifth PTFET transistor P4 are electrically connected to the power supply VDD and the gate of the third NTFET transistor N2, respectively; the source, drain and gate of the sixth PTFET transistor P5 are electrically connected to the drain of the seventh PTFET transistor P6, the first bit line RBLB is electrically connected to the drain of the second NTFET transistor N1; the source and gate of the seventh PTFET transistor P6 are electrically connected to the power supply VDD and the first input word line INWLB respectively; the source of the first NTFET transistor N0 is electrically connected to the drain of the fifth NTFET transistor N4; the source of the second NTFET transistor N1 is electrically connected to the ground line VSS; the source and gate of the third NTFET transistor N2 are electrically connected to the drain of the fourth NTFET transistor N3 and the first column write control signal BLB respectively; the source and gate of the fourth NTFET transistor N3 are electrically connected to the ground line VSS and the second row write control signal line WL respectively; the source and gate of the fifth NTFET transistor N4 are electrically connected to the ground line VSS and the second column write control signal line BL respectively; the source, drain and gate of the sixth NTFET transistor N5 are electrically connected to the ground line VSS, the source of the seventh NTFET transistor N6 and the drain of the third NTFET transistor N2 respectively; the drain and gate of the seventh NTFET transistor N6 are electrically connected to the second bit line RBL and the second input word line INWL respectively.
[0043] Among them, the sixth NTFET transistor N5 and the seventh NTFET transistor N6 constitute the read operation and the signed number calculation part; the first PTFET transistor P0 and the first NTFET transistor N0 constitute an inverter, the second PTFET transistor P1 and the second NTFET transistor N1 constitute another inverter, and the two inverters constitute a latch structure; the fifth PTFET transistor P4 and the fifth NTFET transistor N4 are write auxiliary transistors, the third PTFET transistor P2, the fourth PTFET transistor P3, the third NTFET transistor N2, and the fourth NTFET transistor N3 are write transistors, and the sixth PTFET transistor P5 and the seventh PTFET transistor P6 constitute the unsigned number calculation part.
[0044] See also Figure 2 , is a working timing diagram of the 14T-TFET-SRAM unit circuit in this embodiment.
[0045] (1) In the hold state, the row write control signal line WL and the column write control signal line BLB are at a low level, the row write control signal line WLB and the column write control signal line BL are at a high level, transistors N2, N3, P2, and P3 are turned off, transistors N4 and P4 are turned on, and the latch structure is in a latched state, ensuring the stability of the SRAM cell in the hold state. The bit line RBL is at a low level, the bit line RBLB is at a high level, the input word line INWL is at a low level, and the input word line INWLB is at a high level. Transistors N6 and P6 are turned off, and the read path and the symbol number calculation part are turned off.
[0046] In addition, the drain voltage of the transistor N5 is always not lower than the source voltage of the transistor N5, thereby preventing the TFET tube from having a forward bias current that is not controlled by the gate, thereby reducing the static power consumption of the unit circuit.
[0047] (2) In the read operation phase, the bit line RBL is connected to a sense amplifier, the write control signal lines WLB and BL are high, the write control signal lines WL and BLB are low, the input word lines INWL and INWLB are set to high, and the bit lines RBL and RBLB are pre-charged to high.
[0048] If the stored data is "1", that is, "Q = 1, QB = 0", the bit line RBL is discharged through transistors N5 and N6, and the sense amplifier detects the change in the level of the bit line RBL and reads the output "0 (not Q)";
[0049] If the stored data is "0", that is, "Q=0, QB=1", the bit line RBL maintains a high level, the sense amplifier detects that the level of the bit line RBL has not changed, and reads the output "1 (not Q)".
[0050] For the sense amplifier, its input terminal 1 is connected to the bit line RBL, its input terminal 2 is connected to the reference voltage, and its output terminal is used to output a read value.
[0051] (3) In the write operation phase, the input word line INWL is at a low level, the input word line INWLB is at a high level, the row write control signal line WL is at a high level, and the row write control signal line WLB is at a low level. Depending on the write data, the state of the control signal is different.
[0052] When the stored data is "1", that is, "Q=1, QB=0", when performing a write "0" operation, the column write control signal lines BL and BLB are high, the row write control signal line WL is high, and the row write control signal line WLB is low, transistors N2, N3, and N4 are turned on, transistors P2 and P4 are turned off, and transistor P3 is turned on. The storage node Q is discharged to the ground through transistors N2 and N3, and the level of the storage node QB is flipped through the latch structure; the power supply VDD charges the storage node QB through transistor P1, so that the voltage of the storage node QB quickly rises to a high level, completing the write "0" operation.
[0053] When the stored data is "0", that is, "Q=0, QB=1", when performing a write "1" operation, the column write control signal lines BL and BLB are at a low level, the row write control signal line WL is at a high level, and the row write control signal line WLB is at a low level, transistors P2, P3, and P4 are turned on, transistors N2 and N4 are turned off, and transistor N3 is turned on. The power supply VDD charges the storage node Q through transistors P2 and P3, and flips the level of the storage node QB through the latch structure; the storage node QB discharges to the ground line VSS through transistor N1, so that the voltage of the storage node QB quickly drops to a low level, completing the write "1" operation.
[0054] After the write operation is completed, the row write control signal line WL is set to a low level, the row write control signal line WLB is set to a high level, the column write control signal line BL is set to a high level, the column write control signal line BLB is set to a low level, transistors P4 and N4 are turned on, and the latch structure returns to the latched state.
[0055] (4) In the calculation stage, the row write control signal line WL is at a low level, the row write control signal line WLB is at a high level, the column write control signal line BL is at a high level, the column write control signal line BLB is at a low level, the bit line RBL is pre-charged to a high level, and the bit line RBLB is pre-charged to a low level. The strategy for implementing the multiplication operation between positive and negative numbers and single-bit weights is as follows:
[0056] Step S1, pre-storing a value representing a single-bit weight in a storage node of a 14T-TFET-SRAM unit circuit.
[0057] Step S2, divide the single-bit or multi-bit positive and negative numbers into positive and negative parts, generate input signals with different pulse widths according to the numerical values of the positive part or the negative part, the negative part is input through the input word line INWL, and the positive part is input through the input word line INWLB.
[0058] Step S3, sampling and quantizing the discharge / charge voltage of the bit line RBL / RBLB, generating the value of the product result according to the discharge / charge voltage, and determining the sign bit of the product result according to the source. When the discharge voltage from the bit line RBL is sampled, it indicates that the product result is a negative number; when the charge voltage from the bit line RBLB is sampled, it indicates that the product result is a positive number.
[0059] When the stored data is "0", that is, "Q = 0, QB = 1", it indicates that the single-bit weight is 0, transistors N5 and P5 are turned off, and the bit lines RBL / RBLB are not discharged / charged. When the stored data is "1", that is, "Q = 1, QB = 0", it indicates that the single-bit weight is 1, transistors N5 and P5 are turned on, and the bit lines RBL / RBLB are discharged / charged according to the input of the input word lines INWL / INWLB.
[0060] As mentioned above, the basic principle of the 14T-TFET-SRAM unit circuit provided by the present invention has been relatively completely introduced. The 14T-TFET-SRAM unit circuit adopts an independent data read channel to realize read-write separation, which can prevent the read damage problem caused by opening multiple rows of the traditional 6T-SRAM, and can simultaneously support multi-bit multiplication and multiplication-accumulation operations between signed and unsigned numbers. In addition, the drain voltage of transistor N5 is always not lower than the source voltage of transistor N5, thereby avoiding the TFET tube from having a forward bias current that is not controlled by the gate, reducing the static power consumption of the unit circuit, and solving the problem of high static power consumption of the existing TFET-SRAM unit circuit.
[0061] Furthermore, the 14T-TFET-SRAM unit circuit can be expanded into a circuit array. When it is expanded into the circuit array, the fourth PTFET transistor P3 and the fourth NTFET transistor N3 are row-shared transistors; the fifth PTFET transistor P4 and the fifth NTFET transistor N4 are column-shared transistors. Therefore, the 14T-TFET-SRAM unit circuit supports the expansion of transistor sharing to an array structure, reducing the chip area.
[0062] The present invention further provides a 14T-TFET-SRAM unit circuit array, which includes a plurality of 14T-TFET-SRAM unit circuits provided by the present invention distributed in an array.
[0063] Among them, multiple 14T-TFET-SRAM unit circuits in the same row share the fourth PTFET transistor P3 and the fourth NTFET transistor N3; multiple 14T-TFET-SRAM unit circuits in the same column share the fifth PTFET transistor P4 and the fifth NTFET transistor N4. Multiple 14T-TFET-SRAM unit circuits in the same row are connected to the same first input word line INWLB and the second input word line INWL; multiple 14T-TFET-SRAM unit circuits in the same column are electrically connected to the same first bit line RBLB and the second bit line RBL.
[0064] As follows, taking a 2×2 unit circuit array as an example, the 14T-TFET-SRAM unit circuit array provided by the present invention is specifically described.
[0065] Reference Figure 3 The 2×2 array uses transistor row sharing and column sharing to reduce the area. The transistors connected to the row write control signal lines WL and WLB are row-shared transistors, and the column write control signal lines BL <0> and BL <1> The source of the connected PTFET tubes is connected to the R1 node. At the same time, the row write control signal line WLB <0> The drain of the connected PTFET transistor is also connected to this node. In this way, the row control signal line WLB can control the write "1" path of the two unit circuits in the same row; similarly, the row control signal WL can control the write "0" path of the two unit circuits in the same row through this connection method.
[0066] Similarly, the gate and column write control signal BLB <0> The drain of the PTFET tube electrically connected to the power source VDD is electrically connected to the source of the two PTFET tubes, and this node is recorded as J1; the same is true for the K1 node; through column sharing, the write-assist TFET tube can be shared by the units in the same column, reducing the area of the array. The larger the array area, the closer the average area of the unit is to 10T after the transistor row sharing and column sharing.
[0067] See also Figure 4, which is a data comparison diagram of the static power consumption of a 2×2 array composed of a 14T-TFET-SRAM unit circuit through transistor sharing and the static power consumption of an array with the same structure composed of other structures. It specifically shows that under a power supply voltage of 0.5V to 0.9V, the 2×2 array composed of the 14T-TFET-SRAM unit circuit is denoted as 14T TFET; the 2×2 array of the traditional read-write separation 8T CMOSSRAM is denoted as 8T(1W1R); the 2×2 array of 8T-CMOS-SRAM based on current accumulation operation is denoted as 8TCICC'2020; the 2×2 array of 10T-CMOS-SRAM based on voltage accumulation operation is denoted as 10T ISSCC'2018; the 2×2 array of 10T-CMOS-SRAM applied to positive and negative number calculation is denoted as 10T TCASII'2023. The static power consumption (denoted as Static Power) data of the arrays of these structures are compared.
[0068] Static power consumption is the overall power consumption of the unit in the hold state. Figure 4 It can be seen that 14T-TFET has lower static power consumption than 8T(1W1R), 8TCICC'2020, 10T ISSCC'2018, and 10T TCASII'2023: for example, when the voltage is 0.8V, the static power consumption of 14T TFET is 7.721nW, compared with the static power consumption of 44.79nW of 8T(1W1R) and 46.29nW of 8T CICC'2020, which are reduced by 82.76% and 82.89%, respectively.
[0069] The present invention also provides a signed multiplication and multiplication-accumulation operation circuit based on a 14T-TFET-SRAM unit circuit. The signed multiplication and multiplication-accumulation operation circuit based on a 14T-TFET-SRAM unit circuit includes a 14T-TFET-SRAM unit circuit array provided by the present invention. The 14T-TFET-SRAM unit circuit array includes M×N 14T-TFET-SRAM unit circuits. On the basis of the signed multiplication circuit (2×2 unit circuit array) of 14T-TFET-SRAM, a multiplication-accumulation circuit (operation circuit) based on 14T-TFET-SRAM is further provided. The entire multiplication-accumulation array is an M×N array composed of 14T-TFET-SRAM through transistor sharing. When performing a multiplication-accumulation operation, each column in the storage and calculation array is used as a basic unit for performing a multiplication operation, and the entire storage and calculation array realizes the accumulation of the multiplication operation results of each column.
[0070] The present invention also provides a 14T-TFET-SRAM operation method, which is applied to the signed multiplication and multiplication-accumulation operation circuit based on the 14T-TFET-SRAM unit circuit provided by the present invention. The operation method includes:
[0071] Step S1, dividing the M×N 14T-TFET-SRAM unit circuit array from top to bottom into a plurality of Mi×N (i=0, 1, 2 . . . ) sub-arrays, each Mi×N sub-array using an independent first bit line RBLB and second bit line RBL.
[0072] Step S2, store the data to be pre-stored in different Mi×N sub-arrays from top to bottom in the order of the least significant bit (LSB) to the most significant bit (MSB); taking the binary number "1100" as an example, the MSB is the leftmost "1", the LSB is the rightmost "0", and "1100" is pre-stored in M4×N to M1×N, and the pre-stored values are located in the same position of different Mi×N arrays in the same column.
[0073] Step S3, pre-charge the second bit line RBL of each column to a high level and the first bit line RBLB to a low level, input the signed number and the unsigned number through the second input word line INWL and the first input word line INWLB respectively, and generate signals with different pulse widths according to the numerical values;
[0074] Step S4, when the discharge / charge results of the first bit line RBLB and the second bit line RBL are stable, the switches between the first global bit line GBLN and the second global bit line GBLP and each Mi×N sub-array are opened in sequence to share charge, and the voltages on the first global bit line GBLN and the second global bit line GBLP are quantized respectively to obtain the result of multiplication and accumulation; wherein, when the quantized voltage comes from the first global bit line GBLN, it indicates that the result of multiplication and accumulation is a negative number; when the quantized voltage comes from the second global bit line GBLP, it indicates that the result of multiplication and accumulation is a positive number. It should be noted that the bit lines RBL of multiple unit circuits in the same sub-array are connected to the same local bit line MBLN, and the bit lines RBLB of multiple unit circuits are connected to the same local bit line MBLP. The local bit lines MBLN of different sub-arrays are connected to the same global bit line GBLN through switches s, and the local bit lines MBLP of different sub-arrays are connected to the same global bit line GBLP through switches s.
[0075] Step S5, subtracting the negative value from the positive value quantized by the ADC to obtain the final multiplication and accumulation operation result.
[0076] The following will be a Figure 5Taking an array of 64×4, i.e., 64 rows and 4 columns of shared 14T-TFET-SRAM unit circuits (denoted as CAU) as an example, the implementation process of multiplication and accumulation operations of multiple 4-bit signed numbers is described in detail.
[0077] First, the storage array should be divided into four 16×4 arrays (denoted as LAU#0, LAU#1, LAU#2, and LAU#3) from top to bottom according to the weights, from LSB to MSB. A LAU contains 16 rows and 4 columns, and a serial multi-bit scheme is used to support the accumulation of up to 16 product results. Because the storage array contains 4 LAUs, it supports up to 4-bit signed product or multiplication and accumulation operations.
[0078] In this embodiment, the number of rows of the storage and calculation array is defined as r, and the number of columns is defined as c; r = 0, 1, 2 ... 63, c = 0, 1, 2, 3. r is 0-15 corresponding to LAU#0, r is 16-31 corresponding to LAU#1, r is 32-47 corresponding to LAU#2, and r is 48-63 corresponding to LAU#3. When the stored data is "1", that is, "Q = 1, QB = 0", it indicates that the single-bit weight is 1, transistors N5 and P5 are turned on, and the bit lines RBL / RBLB are discharged / charged according to the input of the input word lines INWL / INWLB. When the stored data is "0", that is, "Q = 0, QB = 1", it indicates that the single-bit weight is 0, transistors N5 and P5 are turned off, and the voltage of the bit lines RBL / RBLB remains unchanged.
[0079] Next, this embodiment will implement "accumulation" of the multiplication results on the positive phase or negative phase by switching the switches between the bit lines in turn. Figure 5 As shown, each LAU corresponds to a switch s and a local bit line MBLN / MBLP and a global bit line GBLN / GBLP. The switch s is set between the local bit line and the global bit line. The capacitance between each bit line is
[0080] C RBL =C RBLB >>C MBLN =C MBLP =C GBLN =C GBLP . Local bit line MBLN / MBLP
[0081] Connected to the selected bit line RBL / RBLB, at this time, V RBL =V MBLN , V RBLB =V MBLP ; The voltage of GBLN is precharged to V (VDD), and the voltage of GBLP is precharged to 0 (VSS).
[0082] After the calculation is completed, the bit line voltage comparison table for each bit line before charge sharing is shown in the following table:
[0083] Table 1 Comparison of bit line voltages for each bit line before charge sharing
[0084]
[0085] Step 1: Close switch s#0, open switches s#1, s#2, s#3; bit lines GBLN and MBLN#0 share charge, bit lines GBLP and MBLP#0 share charge; after time T, open switches s#0-s#3 again. At this time, the voltage on the global bit line is:
[0086]
[0087] Step 2: Close switch s#1, open switches s#0, s#2, and s#3; bit lines GBLN and MBLN#1 share charge, and bit lines GBLP and MBLP#1 share charge; after time T, open switches s#0-s#3 again. At this time, the voltage on the global bit line is:
[0088]
[0089] Step 3: Close switch s#2, open switches s#0, s#1, s#3; bit lines GBLN and MBLN#2 share charge, bit lines GBLP and MBLP#2 share charge; after time T, open switches s#0-s#3 again. At this time, the voltage on the global bit line is:
[0090]
[0091] Step 4: Close switch s#3, open switches s#0, s#1, s#2; bit lines GBLN and MBLN#3 share charge, bit lines GBLP and MBLP#3 share charge; after time T, open switches s#0-s#3 again. At this time, the voltage on the global bit line is:
[0092]
[0093] By analyzing the above formula, we can find that after multiple charge sharing, GBLN / GBLP is connected to the ADC, the ADC is enabled, and the output result of the multiplication and accumulation on the global bit line is read out. Among them, GBLN quantizes the cumulative sum of all negative numbers in the multiplication and accumulation process, and GBLP quantizes the cumulative sum of all positive numbers in the multiplication and accumulation process. The final multiplication and accumulation result can be obtained by subtracting the result quantized on GBLP from the result quantized on GBLN.
[0094] In summary, the signed multiplication and multiplication-accumulation operation circuit based on the 14T-TFET-SRAM unit circuit provided by the present invention can realize multiplication-accumulation operation.
[0095] The present invention also provides a CIM chip, which integrates multiple signed multiplication and multiplication-accumulation operation circuits based on 14T-TFET-SRAM unit circuits provided by the present invention and peripheral circuits that cooperate with the signed multiplication and multiplication-accumulation operation circuits based on 14T-TFET-SRAM unit circuits.
[0096] When realizing the data storage function, the required peripheral circuits include: word line driver, address decoder, precharge circuit, timing control module, mode switching circuit, read-write control circuit. The word line driver is used to control the opening of each word line WL, WLB, INWL, INWLB. The address decoder is connected to the word line driver, and the address decoder is used to decode the address signal and transmit it to the word line driver. The precharge circuit is used to precharge the signal lines such as the bit lines BL and BLB. The timing control module is used to generate the various clock signals required to perform data storage tasks or perform multiplication and multiplication-accumulation operations. The mode switching circuit is used to switch the working mode of the CIM circuit.
[0097] When performing logical operation tasks, the necessary peripheral circuits include at least: a channel selection circuit for selecting the corresponding input signal to be input to the input word line INWL or INWLB according to the sign bit of the input data; a pulse width modulation circuit for generating different numerical inputs; a signal sampling circuit and an ADC quantization circuit for obtaining calculation results; a subtractor for accumulating positive and negative data quantized on different bit lines, and so on.
[0098] 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.
[0099] 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 14T-TFET-SRAM unit circuit, characterized in that: The 14T-TFET-SRAM unit circuit includes the first NTFET to the seventh NTFET and the first PTFET to the seventh PTFET; The source, drain and gate of the first PTFET transistor P0 are electrically connected to the drain of the fifth PTFET transistor P4 and the drain and gate of the first NTFET transistor N0 respectively, and the drain of the first PTFET transistor P0 is provided with a first storage node Q; The source, drain and gate of the second PTFET transistor P1 are electrically connected to the power supply VDD, the drain and gate of the second NTFET tube N1 respectively, and the drain of the second PTFET transistor P1 is provided with a second storage node QB; The source, drain and gate of the third PTFET transistor P2 are electrically connected to the drain of the fourth PTFET transistor P3, the drain of the third NTFET transistor N2 and the gate of the fifth NTFET transistor N4 respectively; The source and gate of the fourth PTFET transistor P3 are electrically connected to the power supply VDD and the first row write control signal line WLB respectively; The source and gate of the fifth PTFET transistor P4 are electrically connected to the power supply VDD and the gate of the third NTFET transistor N2 respectively; The source, drain and gate of the sixth PTFET transistor P5 are electrically connected to the drain of the seventh PTFET transistor P6, the first bit line RBLB and the drain of the second NTFET transistor N1, respectively; The source and gate of the seventh PTFET transistor P6 are electrically connected to the power supply VDD and the first input word line INWLB respectively; The source of the first NTFET transistor N0 is electrically connected to the drain of the fifth NTFET transistor N4; The source of the second NTFET transistor N1 is electrically connected to the ground line VSS; The source and gate of the third NTFET transistor N2 are electrically connected to the drain of the fourth NTFET transistor N3 and the first column write control signal BLB, respectively; The source and gate of the fourth NTFET transistor N3 are electrically connected to the ground line VSS and the second row write control signal line WL respectively; The source and gate of the fifth NTFET transistor N4 are electrically connected to the ground line VSS and the second column write control signal line BL respectively; The source, drain and gate of the sixth NTFET transistor N5 are electrically connected to the ground line VSS, the source of the seventh NTFET transistor N6 and the drain of the third NTFET transistor N2 respectively; The drain and gate of the seventh NTFET transistor N6 are electrically connected to the second bit line RBL and the second input word line INWL, respectively.
2. The 14T-TFET-SRAM unit circuit according to claim 1, characterized in that: The fourth PTFET transistor P3 and the fourth NTFET transistor N3 are row-common transistors; The fifth PTFET transistor P4 and the fifth NTFET transistor N4 are column-common transistors.
3. A 14T-TFET-SRAM unit circuit array, characterized in that: The 14T-TFET-SRAM unit circuit array includes a plurality of 14T-TFET-SRAM unit circuits as claimed in claims 1 to 2 distributed in an array.
4. The 14T-TFET-SRAM computing array according to claim 3, characterized in that: A plurality of 14T-TFET-SRAM unit circuits in the same row share the fourth PTFET transistor P3 and the fourth NTFET transistor N3; Multiple 14T-TFET-SRAM unit circuits in the same column share the fifth PTFET transistor P4 and the fifth NTFET transistor N4.
5. The 14T-TFET-SRAM computing array according to claim 4, characterized in that: A plurality of 14T-TFET-SRAM unit circuits in the same row are connected to the same first input word line INWLB and second input word line INWL; A plurality of 14T-TFET-SRAM unit circuits in the same column are electrically connected to the same first bit line RBLB and second bit line RBL.
6. A signed multiplication and multiplication-accumulation operation circuit based on a 14T-TFET-SRAM unit circuit, characterized in that: The signed multiplication and multiplication-accumulation operation circuit comprises a 14T-TFET-SRAM unit circuit array as claimed in any one of claims 3 to 5, wherein the 14T-TFET-SRAM unit circuit array comprises M×N 14T-TFET-SRAM unit circuits.
7. A 14T-TFET-SRAM operation method, characterized in that: The signed multiplication and multiplication-accumulation operation circuit based on the 14T-TFET-SRAM unit circuit as claimed in claim 6; The operation method comprises: The M×N 14T-TFET-SRAM cell circuit array is evenly divided into a plurality of Mi×N sub-arrays from top to bottom, and each Mi×N sub-array uses an independent first bit line RBLB and a second bit line RBL; The data to be pre-stored are stored in different Mi×N sub-arrays from top to bottom in the order of the least significant bit to the most significant bit; The second bit line RBL of each column is precharged to a high level and the first bit line RBLB is precharged to a low level, and the signed number and the unsigned number are input through the second input word line INWL and the first input word line INWLB respectively, and signals with different pulse widths are generated according to the numerical values; When the discharge / charge results of the first bit line RBLB and the second bit line RBL are stable, the switches between the first global bit line GBLN and the second global bit line GBLP and each Mi×N sub-array are opened in sequence to share charges, and the voltages on the first global bit line GBLN and the second global bit line GBLP are quantized respectively to obtain the result of multiplication and accumulation; Subtract the negative value from the quantized positive value to get the final multiplication and accumulation result.
8. A CIM chip, characterized in that: The CIM chip integrates a plurality of signed multiplication and multiplication-accumulation operation circuits based on the 14T-TFET-SRAM unit circuit as described in claim 6 and peripheral circuits cooperating with the signed multiplication and multiplication-accumulation operation circuits.
Citation Information
Patent Citations
14T radiation-proof SRAM (Static Random Access Memory) unit based on polarity reinforcement, circuit structure, chip and module
CN116417041A
Sparse tracking ADC-based charge domain memory calculation circuit and calculation method thereof
CN117130978A
TFET-SRAM unit circuit, packaging method of TFET-SRAM unit circuit, array circuit and electronic equipment
CN118136069A
Memory cell having built-in write assist
US20150043270A1
Apparatus for improving read stability
US9922702B1
