A 7t split wordline based multi-bit all digital in-memory computing unit
By using a multi-bit all-digital in-memory computing unit based on 7T split word lines, and utilizing split word lines to control bit lines and combinational logic shifting and addition, the problem of low throughput in digital domain in-memory computing is solved, and efficient multi-bit convolutional neural network computing is realized.
Patent Information
- Application Number
- CN202310535080.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-12
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2043-05-12
AI Technical Summary
Existing digital domain in-memory computing has low throughput, making it difficult to efficiently handle the computational demands of large-scale convolutional neural networks.
It employs a multi-bit all-digital in-memory computing unit based on 7T split word lines, including an adder circuit, bit lines, bit lines, AND gate array and SRAM cells. It uses split word lines to control each bit line and combines half adders, compressors and full adders to perform multi-bit multiply-accumulate operations.
It completes multi-bit result calculations within one clock cycle, improving throughput and being more stable and accurate than analog circuits, thus broadening the applicability of digital in-memory computing circuits.
Smart Images

Figure CN116705106B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of in-memory computing, and more particularly to a multi-bit all-digital in-memory computing unit based on 7T split word lines. Background Technology
[0002] With the development of convolutional neural networks in the field of artificial intelligence, the increasing amount of data processing has become an irreversible fact. The high latency and high power consumption caused by data transfer have become the main bottlenecks restricting the development of neural networks, while using in-memory computing structures can solve this problem well.
[0003] In the development of in-memory computing, the initial analog domain in-memory computing suffered from low precision in some application scenarios with high accuracy requirements. Digital domain in-memory computing architecture can solve this problem well. Digital domain in-memory computing structure has high precision and strong robustness, but the multi-bit shifting and addition will lead to a low throughput. Summary of the Invention
[0004] The purpose of this invention is to overcome the shortcomings of the prior art and provide a multi-bit all-digital in-memory computing unit based on 7T split word lines to solve the problem of low throughput of existing digital domain in-memory computing.
[0005] To solve the above-mentioned technical problems, the present invention is implemented using the following solution:
[0006] This invention provides a multi-bit all-digital in-memory computing unit based on a 7T split word line, including an adder circuit, bit lines BL, BLB, RBL, an AND gate array, and multiple SRAM cells. Each SRAM cell includes two inverters and three N-type transistors. The two inverters are cross-coupled, and the three N-type transistors are connected to the two inverters and respectively connected to bit lines BL, BLB, and RBL from the Q terminal. The gates of the two N-type transistors connected to bit lines BL and BLB are controlled by ANDing WL and SP / SN, respectively. The N-type transistor connected to RBL from the Q terminal is controlled by ANDing SP, SN, or NOT with WL. The AND gate array includes multiple AND gates, one input of which is an IN signal, and the other input is connected to bit line RBL, BL, or BLB for bit-by-bit multiplication calculation. The input of the adder circuit is connected to the output of the AND gate array for accumulating the bit-by-bit multiplication calculation results and outputting the multi-bit calculation results.
[0007] Furthermore, there are three SRAM cells.
[0008] Furthermore, the AND gate array includes nine AND gates arranged in three rows and three columns. The input of each row of AND gates is the same bit IN signal, and the input of each column of AND gates is the same bit W signal.
[0009] Furthermore, the addition circuit includes a half adder, two compressors and a full adder, which are connected in sequence.
[0010] Furthermore, the multi-bit calculation result is a 6-bit unsigned number.
[0011] Furthermore, the computing unit is configured with a storage mode and a computing mode.
[0012] Compared with the prior art, the beneficial effects achieved by the present invention are as follows:
[0013] 1. Compared with the multi-step shift-add structure, the present invention has optimized the time, and can calculate the multi-bit result in one clock cycle, thus having higher throughput.
[0014] 2. This invention is a digital circuit, which has higher stability and accuracy compared to analog circuits, and broadens the application scope of digital in-memory computing circuits. Attached Figure Description
[0015] Figure 1 This is a schematic diagram of the structure of a multi-bit all-digital in-memory computing unit based on 7T split word lines provided in an embodiment of the present invention; Detailed Implementation
[0016] The present invention will be further described below with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and should not be used to limit the scope of protection of the present invention.
[0017] Please see Figure 1 This embodiment provides a multi-bit all-digital in-memory computing unit based on 7T split word lines, consisting of an adder circuit, bit lines BL, BLB, RBL, an AND gate array, and three SRAM cells. This unit can be used as a layer in a convolutional neural network to perform multi-bit multiplication and accumulation operations. This unit supports multiplication and accumulation of 3-bit unsigned weights and 3-bit input stimuli, where the power supply voltage VDD represents "1" and the ground voltage VSS represents "0". The unit stores the weights in the SRAM cells, storing MSB-LSB in each column from top to bottom. The 3-bit data of the input stimuli is input into the array in one clock cycle, and the on / off state of each bit line is controlled individually by the split word lines. The final output is a 6-bit unsigned number, completing the bit-by-bit multiplication and accumulation process.
[0018] Specifically, each SRAM cell includes two inverters and three N-type transistors. The two inverters are cross-coupled, and the two inverters and two N-type transistors form a traditional 6T SRAM structure. The N-type transistors are connected to BL and BLB. An additional N-type transistor connected from the Q terminal to RBL forms a 7T SRAM structure. The gate of the N-type transistor in each SRAM cell is no longer simply controlled by WL, but is controlled by ANDing WL with SN / SP. Therefore, the word lines are split. The N-type transistor controlling RBL is controlled by the signal ANDed with WL after the result of NORing SP and SN. Specifically, in each AND gate controlling BL, one input is connected to SP, the other to WL, and the output is connected to the gate of the N-type transistor. In each AND gate controlling BLB, one input is connected to SN, the other to WL, and the output is connected to the gate of the N-type transistor. In the logic controlling RBL, the two inputs of the NOR gate are SP and SN, and the output is connected to the input of the AND gate. The other input of the AND gate is WL, and the output is connected to the gate of the N-type transistor.
[0019] The nine AND gates below bit lines BL, BLB, and RBL form an AND gate array used for bitwise multiplication. Each row of AND gates receives the same IN signal as its input, and each column of AND gates receives the same W signal as its input (the W signal is stored in an SRAM cell and read from the bit lines). Specifically, the first row of AND gates receives IN as one input. <0> The other end, from left to right, consists of RBL, BL, and BLB, and the outputs, from left to right, are OUT. <0> WI20, WI10; the input of the second row AND gate is IN. <1> The other end, from left to right, consists of RBL, BL, and BLB, and the outputs, from left to right, are WI01, WI21, and WI11; the input of the third row AND gate is IN. <2> The other end has RBL, BL and BLB from left to right, and the outputs are WI02, WI22 and WI12 from left to right.
[0020] The adder circuit consists of a half adder, two compressors, and a full adder, connected sequentially. The inputs of the adder circuit are connected to the outputs of the AND gate array. It is used to accumulate the bitwise multiplication result and output a multi-bit calculation result, i.e., a 6-bit unsigned number. Specifically, the output of the bitwise multiplication is connected to the inputs of the adder, where the inputs of the half adder are WI10 and WI01, the carry output is connected to the input of the first compressor, and the sum output is OUT. <1> The other three inputs of the first compressor are WI20, WI11, and WI02. Both output carries are connected to the inputs of the second compressor in the next stage, and the output sum is OUT. <2> The other two inputs of the second compressor are WI21 and WI12, and both output carry bits are connected to a full adder. The output sum bit is OUT. <3> The other input of the full adder is WI22, and the output bit is OUT. <4> The carry-out is OUT. <5> .
[0021] Among them, WL<2:0> is the word line signal, SP<2:0> and SN<2:0> are the bit line control signals, BL, BLB, and RBL are the three bit lines, IN<2:0> is the input stimulus, WI10, WI01, WI20, WI11, WI02, WI21, WI12, and WI22 are the bit-by-bit multiplication results, and OUT<5:0> is the multiplication accumulation result.
[0022] This computing unit has two operating modes: storage mode and compute mode, as follows:
[0023] In memory mode, the operating state of the SRAM cell differs slightly due to the structural change. To ensure data can be written, both SN and SP need to be pulled high. At this time, data on BL and BLB can be written to the cross-coupled inverter via an N-transistor. The N-transistor controlling the RBL switch is off because the AND gate output is 0. Therefore, changes in RBL data in memory mode do not affect the data in the SRAM cell. In memory mode, weights are stored from top to bottom in MSB-LSB order.
[0024] Once the storage mode is complete, the weights have been written to the SRAM cells. During the calculation mode, the weight data for the three cells are loaded onto different bit lines, with the MSB loaded onto BL and 2MB loaded onto BLB. nd MSB and RBL are loaded with LSB. The input 3 bits of data are sent directly from the outside all at once, and WL<2:0> is pulled high.
[0025] When calculating the mode, SP<2:0> and SN<2:0> need to be configured. To ensure that each bit line contains only one data cell, each bit needs to be configured. For example, on BL, it's necessary to ensure that only W is present. <2> Exists, therefore W <1> and W <0> The word lines in the SRAM cell must be kept off. Therefore, the SP needs to be... <2> Set to 1, SP <1> and SP <0> All are set to 0. Similarly, only W can exist on a BLB. <1> It exists, therefore SN <1> Set to 1, and SN <2> and SN <0> All are set to 0. Due to the limitations of the first two units on RBL, SN is now... <0> and SP <0> Both are 0, but the data needs to be output from RBL, SN <0> and SP <0> The result after OR NOT is 1, which is the same as WL. <0> The result of the AND operation turns on the N-channel transistor and sends the weight data from the RBL.
[0026] Since the numbers are unsigned, bitwise multiplication can be performed directly using AND gates. The result of the bitwise multiplication has high and low weights, requiring a shift-and-add operation. Traditional shift-and-add operations require shifting and adding bits after each clock cycle using flip-flops; here, combinational logic shifting is used directly. This avoids wasted time, allowing multi-bit multiplication and accumulation to be completed within one clock cycle, thus improving system throughput. In this in-memory computation unit, the following multiplication and accumulation operation is actually performed:
[0027]
[0028] OUT <5> OUT <4> OUT <3> OUT <2> OUT <1> OUT <0>
[0029] Since the output of bitwise multiplication is given by bits, the results at corresponding bits can be directly added in the circuit to obtain the shifted addition result. The use of half-adders, full-adders, and four-input compressors in the circuit is due to the different addition structures employed at each stage, given the varying amount of data. Ultimately, the multiplication and accumulation of multi-bit unsigned numbers is completed within one clock cycle.
[0030] In summary, the multi-bit all-digital in-memory computing unit based on 7T split word lines described in this embodiment has been optimized in terms of time compared to the multi-cycle shift-add structure, calculating multi-bit results in one clock cycle and achieving higher throughput; compared to analog circuits, it has higher stability and accuracy, broadening the applicability of digital in-memory computing circuits.
[0031] The above are merely preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A multi-bit all-digital in-memory computing unit based on 7T split word lines, characterized in that, Includes adder circuit, bit line BL, bit line BLB, bit line RBL, AND gate array and multiple SRAM cells; Each SRAM cell includes two inverters and three N-type transistors. The two inverters are cross-coupled, and the three N-type transistors are connected to the two inverters and respectively connected to bit line BL, bit line BLB, and bit line RBL from the Q terminal. The gates of the two N-type transistors connected to bit line BL and bit line BLB are controlled by ANDing the word line WL and P-selected phase SP / N-selected phase SN, respectively. The N-type transistor connected to bit line RBL from the Q terminal is controlled by ANDing the P-selected phase SP, N-selected phase SN, or NOT with word line WL. In the AND gate of each control bit line BL, one input is connected to the P-selection phase SP, the other input is connected to the word line WL, and the output is connected to the gate of the N-type transistor; in the AND gate of each control bit line BLB, one input is connected to the N-selection phase SN, the other input is connected to the word line WL, and the output is connected to the gate of the N-type transistor; in the logic of control bit line RBL, the two inputs of the NOR gate are the P-selection phase SP and the N-selection phase SN, the output is connected to the input of the AND gate, the other input of the AND gate is the word line WL, and the output is connected to the gate of the N-type transistor; The AND gate array includes multiple AND gates. One input of each AND gate is an IN signal, and the other input is connected to bit line RBL, bit line BL, or bit line BLB for bit-by-bit multiplication calculation. The input of the adder circuit is connected to the output of the AND gate array to accumulate the bit-by-bit multiplication calculation results and output the multi-bit calculation results.
2. The multi-bit all-digital in-memory computing unit based on 7T split word lines according to claim 1, characterized in that, There are three SRAM cells.
3. The multi-bit all-digital in-memory computing unit based on 7T split word lines according to claim 1, characterized in that, The AND gate array consists of nine AND gates arranged in three rows and three columns. The input of each row of AND gates is the same bit IN signal, and the input of each column of AND gates is the same bit W signal.
4. The multi-bit all-digital in-memory computing unit based on 7T split word lines according to claim 1, characterized in that, The addition circuit includes a half adder, two compressors and a full adder, which are connected in sequence.
5. The multi-bit all-digital in-memory computing unit based on 7T split word lines according to claim 1, characterized in that, The result of multi-bit calculation is a 6-bit unsigned number.
6. The multi-bit all-digital in-memory computing unit based on 7T split word lines according to claim 1, characterized in that, The computing unit is configured with a storage mode and a computing mode.
Citation Information
Patent Citations
Memory cell structure and array structure of SRAM
CN112201288A
Four-transistor in-memory computing device based on separated word lines
CN112558922A
