LOW-LOSS ARITHMETIC CIRCUIT AND OPERATING METHOD OF THE SAME
20220334803 · 2022-10-20
Assignee
Inventors
Cpc classification
G11C7/1048
PHYSICS
G06F7/57
PHYSICS
G11C7/1006
PHYSICS
International classification
G06F7/57
PHYSICS
Abstract
The disclosure relates to a low-loss arithmetic circuit, which includes a plurality of arithmetic units, a plurality of storage units, and one or more reset MOSFETs. Each arithmetic unit includes 4 MOSFETs. The disclosure also relates to an operating method of the low-loss arithmetic circuit and a low-loss Processing-in-Memory circuit.
Claims
1. A low-loss arithmetic circuit, comprising: n arithmetic units (AU.sub.1, AU.sub.2, . . . AU.sub.n), where n is an integer greater than 1, and each arithmetic unit (AU.sub.1) comprises: a first MOSFET, its gate being connected to an output signal (W.sub.1) of a storage unit allocated to the arithmetic unit (AU.sub.1), a first one of its drain and source being grounded, and a second one of its drain and source being connected to a first one of the drain and source of a second MOSFET; the second MOSFET, its gate being connected to a first input signal (INL.sub.1) allocated to the arithmetic unit (AU.sub.1), and a second one of its drain and source being connected to an output signal line (OUT) of the low-loss arithmetic circuit; a third MOSFET, its gate being connected to an inversion (WB.sub.1) of the output signal of the storage unit allocated to the arithmetic unit (AU.sub.1), a first one of its drain and source being grounded (GND), and a second one of its drain and source being connected to a first one of the drain and source of a fourth MOSFET, and the fourth MOSFET, its gate being connected to a second input signal (INR.sub.1) allocated to the arithmetic unit (AU.sub.1), and a second one of its drain and source being connected to the output signal line (OUT); and a reset MOSFET, its gate being connected to a timing signal (φ.sub.PRE), a first one of its drain and source being connected to a supply voltage (VDD), and a second one of its drain and source being connected to the output signal line (OUT).
2. The low-loss arithmetic circuit according to claim 1, wherein the first to fourth MOSFETs are n-type MOSFETs and the reset MOSFET is a p-type MOSTET; or the first to fourth MOSFETs are p-type MOSFETs and the reset MOSFET is a n-type MOSFET.
3. The low-loss arithmetic; circuit according to claim 1, wherein the level of the first input signal (INL.sub.1) or the second input signal (INR.sub.1) allocated to the arithmetic unit (AU.sub.1) is set to one or more: of the following: the second input signal (INR.sub.1) is low level, wherein the low-loss arithmetic circuit is configured to perform a NAND operation of an output signal (W.sub.1) and the first input signal (INL.sub.1); the first input signal (INL.sub.1) is low level, wherein the low-loss arithmetic circuit is configured to perform an OR (OR) operation of the output signal (W.sub.1) and the inversion of the second input signal (INR.sub.1), and the first input signal (INL.sub.1) is the inversion of the second input signal (INR.sub.1), wherein the low-loss arithmetic circuit is configured to perform an XNOR operation of the output signal (W.sub.1) and the second input signal (INR.sub.1).
4. The low-loss arithmetic circuit according to claim 1, wherein the reset MOSFET is connected in series with a resistor.
5. The low-loss arithmetic circuit according to claim 1, further comprising a first arithmetic unit and a second arithmetic unit, wherein the level of the timing signal (φ.sub.PRE) and the first input signal (INL.sub.1, INL.sub.2) and the second input signal (INR.sub.1, INR.sub.2) of the first and second arithmetic units are set such that: in a first period of a first cycle, the reset MOSFET is turned on, so that an output node connected to the output signal line (OUT) is charged to high level; in a second period of the first cycle, the reset MOSFET is turned off, and the second and fourth MOSFETs of the second arithmetic unit are turned off, and the first arithmetic unit performs the corresponding operation and outputs a first operation result to the output signal line (OUT); in a first period of a second cycle, the reset MOSFET is turned on, so that the output node connected to the output signal line (OUT) is charged to a high level; and in a second period of the second cycle, the reset MOSFET is turned off, and the second and fourth MOSFETs of the first arithmetic unit are turned off, and the second arithmetic unit performs the corresponding operation and outputs a second operation result to the output signal line (OUT).
6. The low-loss arithmetic circuit according to claim 1, wherein each arithmetic unit is allocated a plurality of storage units, and each storage unit is configured to store 1-bit data, wherein the gate of the first MOSFET of the arithmetic unit is connected to the output signals (W.sub.1) of the plurality storage units allocated to the arithmetic unit, and the gate of the third MOSFET of the arithmetic unit is connected with the inversion (WB.sub.1) of the output signals of the plurality storage units allocated to the arithmetic unit (AU.sub.1).
7. A low-loss Processing-in-Memory circuit, comprising: n groups of storage units, each group of storage unit being allocated to one of n arithmetic units and including one or more storage units, where n is an integer greater than 1; and n arithmetic units (AU.sub.1, AU.sub.2, . . . AU.sub.n), wherein each arithmetic unit (AU.sub.1) comprises: a first MOSFET, its gate being connected to an output signal (W.sub.1) of a storage unit of the storage unit group allocated to the arithmetic unit (AU.sub.1), a first one of its drain and source being grounded, a second one of its drain and source being connected to a first one of the drain and source of a second MOSFET; the second MOSFET, its gate being connected to a first input signal (INL.sub.1) allocated to the arithmetic unit (AU.sub.1), and a second one of its drain and source being connected to an output signal line (OUT) of the low-loss arithmetic circuit; a third MOSFET, its gate being connected to the inversion (WB.sub.1) of the output signal of the storage unit of the storage unit group allocated to the arithmetic unit (AU.sub.1), a first one of its drain and source being grounded (GND), and a second one of its drain and sources being connected to a first one of the drain and source of a fourth MOSFET; and the fourth MOSFET, its gate being connected to a second input signal (INR.sub.1) allocated to the arithmetic unit (AU.sub.1), and a second one of its drain and source being connected to the output signal line (OUT); and a reset MOSFET, its gate being connected to a timing signal (φ.sub.PRE), a first one of its drain and source being connected to a supply voltage (VDD), and a second one of its drain and source being connected to the output signal line (OUT).
8. The low-loss Processing-in-Memory circuit according to claim 7, wherein each arithmetic unit includes 2.sup.k storage units, where k is an integer greater than 1.
9. The low-loss Processing-in-Memory circuit according to claim 7, further comprising a control circuit, configured to control the level of the timing signal (φ.sub.PRE) and the first input signal and the second input signal of each arithmetic unit, such that: in a first period of each cycle of the timing signal (φ.sub.PRE), the reset MOSFET is turned on, so that an output node connected to the output signal line (OUT) is charged to a high level; and in a second period of each cycle, the reset MOSFET is turned off, and the i-th arithmetic unit (AU.sub.1) performs the corresponding operation and outputs the operation result to the output signal line (OUT), and the second and fourth MOSFETs of the remaining arithmetic units (AU.sub.1, . . . AU.sub.i−1, AU.sub.i+l . . . AU.sub.n) are turned off, where i is an integer and 0<i≤n.
10. The low-loss Processing-in-Memory circuit according to claim 9, wherein the timing signal (φ.sub.PRE) is low in the first period and high in the second period.
11. The low-loss Processing-in-Memory circuit according to claim 7, wherein the level of the first input signal (INL.sub.1) or the second input signal (INR.sub.1) allocated to the arithmetic unit (AU.sub.1) is set to one or more of the following: the second input signal (INR.sub.1) is low level, wherein the low-loss Processing-in-Memory circuit is configured to perform a NAND operation of an output signal (W) and the first input signal (INL.sub.1); the first input signal (INL) is low level, wherein the low-loss Processing-in-Memory circuit is configured to perform an OR (OR) operation of the output signal (W) and the inversion of the second input signal (INR.sub.1); and the first input signal (INL.sub.1) is the inverse of the second input signal (INR.sub.1), wherein the low-loss Processing-in-Memory circuit is configured to perform an XNOR operation of an output signal (W.sub.1) and the second input signal (INR.sub.1).
12. A method for operating a low-loss arithmetic circuit, wherein the low-loss arithmetic circuit comprises: n arithmetic units (AU.sub.1, AU.sub.2, . . . AU.sub.n), where n is an integer greater than 1, and each arithmetic unit (AU.sub.1) comprising: a first MOSFET, its gate being connected to an output signal (W.sub.1) of a storage unit allocated to the arithmetic unit (AU.sub.1), a first one of its drain and source being grounded, and a second one of its drain and source being connected to a first one of the drain and source of a second MOSFET; the second MOSFET, its gate being connected to a first input signal (INL.sub.1) allocated to the arithmetic unit (AU.sub.1), and a second one of its drain and source being connected to an output signal line (OUT) of the low-loss arithmetic circuit; a third MOSFET, its gate being connected to an inversion (WB.sub.1) of the output signal of the storage unit allocated to the arithmetic unit (AU.sub.1), a first one of its drain and source being grounded (GND), and a second one of its drain and source being connected to a first one of the drain and source of a fourth MOSFET; and the fourth MOSFET, its gate being connected to a second input signal (INR.sub.1) allocated to the arithmetic unit (AU.sub.1), and a second one of its drain and source being connected to the output signal line (OUT); and a reset MOSFET, its gate being connected to a timing signal (φ.sub.PRE), a first one of its drain and source being connected to a supply voltage (VDD), and a second one of its drain and source being connected to the output signal line (OUT), the method comprising the following steps: in a first period of each cycle of the timing signal (φ.sub.PRE), controlling the level of the timing signal (φ.sub.PRE), such that the reset MOSFET is turned on, so that the output node connected to the output signal line (OUT) is charged to a high level; and in a second period of each cycle, controlling the level of the timing signal (φ.sub.PRE), such that the reset MOSFET is turned off, and controlling the levels of the first input signal and the second input signal of each arithmetic unit, such that the i-th arithmetic unit (AU.sub.i) performs the corresponding operation and outputs the operation result to the output signal line (OUT), and the second and fourth MOSFETs of the remaining arithmetic units (AU.sub.1, . . . AU.sub.i−1, AU.sub.i+1 . . . AU.sub.n) are turned off, where i is an integer and 0<i≤n.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The present disclosure will be further explained below with reference to the drawings in conjunction with specific embodiments.
[0021]
[0022]
[0023]
[0024]
[0025]
DETAILED DESCRIPTION
[0026] It should be pointed out that, components in the drawings may be shown in an exaggerated form for the purpose of illustration, instead of being true to scale. In the drawings, same or functionally same components are provided with same reference numbers.
[0027] In the present disclosure, unless otherwise specified, “arranged on”, “arranged above”, and “arranged over” do not exclude the presence of intermediates between them. In addition, “arranged on or above” only means the relative positional relationship between two components, and under certain circumstances, such as by inverting the direction of the product it may also be converted to “arranged under or below”, and vice versa.
[0028] In the present disclosure, each embodiment is only intended to illustrate the embodiment of the present disclosure, and should not be construed as limiting.
[0029] In the present disclosure, unless otherwise specified, the articles “a” and “an” do not exclude the scenario of multiple elements.
[0030] In the present disclosure, the term “connecting” may refer to the direct connecting, as well as the indirect connecting through an intermediate element.
[0031] It should also be noted that in the embodiments of the present disclosure, for clarity and simplicity, only a portion of the parts or components may be shown, but those of ordinary skill in the art may understand that under the teaching of the present disclosure, required parts or components may be added according to concrete scenarios. In addition, unless otherwise stated, the feature of the different embodiments of the disclosure may be combined with each other. For example, a feature in the second embodiment may be used to replace the corresponding or functionally identical or similar features of the first embodiment, and the resulting embodiment also falls within the scope of disclosure or record of the disclosure.
[0032] It should also be noted that within the scope of the present disclosure, the terms “same”, “equal”, “equal to” and other terms do not mean that the two values are absolutely equal, but allow certain reasonable errors, that is, these terms also encompass the meanings of “substantially the same”, “substantially equal”, and “substantially equal to”. For the same reason, in the present disclosure, the terms “perpendicular to”, “parallel to” and the like describing the direction also encompass the meanings of “substantially perpendicular to” and “substantially parallel to”.
[0033] In addition, the numbers of the steps of methods of the present disclosure are not intended to limit the execution order of the method steps. Unless otherwise specified, the method steps may be performed in a different order.
[0034] First of all, the principle on which the disclosure is based is described. The existing in-memory calculation and processing schemes are generally divided into two ways: simulation signal processing and all-digital processing. The two processing ways are briefly described in the following: (1) the flow of simulation signal processing is as follows: first, the digital signal read by the memory is converted into an analog signal and input to the arithmetic unit for in-memory calculation based on the analog signal, and then the analog signal is converted into digital signal to output; in this process, the data is damaged due to the quantization error in the digital-to-analog and analog-to-digital conversion process, which may cause data errors; moreover, in the signal processing process, the noise introduced by quantization increases the degree of data damage; (2) all-digital processing means that the entire storage and calculation process is completely realized by digital signals, but its disadvantage is that the circuit area is limited by the wiring complexity of the numerous signals of traditional digital circuits, so the chip area is too large in the implementation process, and too many wires are more likely to introduce noise. In the present disclosure, the inventor at least partially overcomes the above technical problems by adopting the following technical means: in the present disclosure, a combination of field effect transistors is used to implement multiple logic operations, so the signal output by the memory may directly participate in the operation in the arithmetic unit without digital-to-analog conversion, and the result of the operation does not require analog-to-digital conversion, thereby avoiding the quantization error caused by the two analog-to-digital and digital-to-analog conversions, improving precision greatly; simultaneously, the present disclosure allocates a corresponding time slot to each arithmetic unit through timing control, so that the calculation result of all the arithmetic units may be transmitted through a single output signal line, thereby avoiding the power loss caused by numerous output signal lines and avoiding the noise caused by these signal lines, and reducing the wiring complexity and chip area.
[0035] The present disclosure will be further explained below with reference to the drawings in conjunction with specific embodiments.
[0036]
[0037] As shown in
[0038] n groups of storage units, each group storage units is allocated to one of n arithmetic units and includes one or more storage units, where n is an integer greater than 1. In this embodiment, n—l. However, in other embodiments, n may be selected to be greater than 1, for example, 2, 3, 4, 6, 8, . . . , 100, and so on. In this embodiment, each storage unit includes two inverters and two MOSFETs, which are configured to store 1-bit data. However, in other embodiments, other forms of storage unit may be used. n arithmetic units (AU.sub.1, AU.sub.2, . . . .AU.sub.n), n is an integer greater than 1. In this embodiment, only one single arithmetic unit, that is, the arithmetic unit 102, is shown. The arithmetic unit 102 includes a first MOSFET 102a, its gate is connected to the output signal W of the storage unit 101 allocated to the arithmetic unit 102, the first one of its drain and source (for example, the source herein) is grounded, and the second one of its drain and source (for example, the drain herein) is connected to the first one of the drain and source (for example, the drain herein) of the second MOSFET 102b. In this embodiment, the first MOSFET 102a is an n-type MOSFET. The arithmetic unit 102 also includes the second MOSFET 102b, its gate is connected to the first input signal INL allocated to the arithmetic unit 102, and the second one of its drain and source (for example, the source herein) is connected to the output signal line OUT of the low-loss arithmetic circuit; In this embodiment, the second MOSFET 102b is an n-type MOSFET. The arithmetic unit 102 also includes a third MOSFET 102c, its gate is connected to the inversion WB of the output signal of the storage unit allocated to the arithmetic unit 102, the first one of its drain and source (for example, the source herein) is grounded (GND), and second of its drain and sources (for example, the drain herein) is connected to the first one of the drain and source (for example, the drain herein) of the fourth MOSFET. In this embodiment, the third MOSFET 102c is an n-type MOSFET. The arithmetic unit 102 further includes the fourth MOSFET 102d, its gate is connected to the second input signal (INR1) allocated to the arithmetic unit (AU1), and the second one of its drain and source (for example, the source herein) is connected to the output signal line (OUT). In this embodiment, the fourth MOSFET 102d is an n-type MOSFET.
[0039] A reset MOSFET 103, its gate is connected to the timing signal (φ.sub.PRE), the first one of its drain and source (for example, the drain herein) is connected to the supply voltage VDD, and the second one of its drain and source (for example, the source herein) is connected to the output signal line (OUT). In this embodiment, the reset MOSFET 103 is a p-type MOSFET.
[0040] Here, by setting the levels of the first input signal INL and the second input signal INR, the following logical operations may be performed NAND operation: the second input signal INR is low level, the first input signal INL is one of operation data, and the output signal W is another operation data, wherein the low-loss Processing-in-Memory circuit 100 is configured to perform a NAND operation of the output signal W and the first input signal INL; OR operation: the first input signal INL is low level, the second input signal INR is one of the operation data, and the output signal W is another operation data, wherein the low-loss Processing-in-Memory circuit 100 is configured to perform an OR (OR) operation of the output signal W and the inversion of the second input signal INR; and XNOR operation: the first input signal INL is the inversion of the second input signal INR, the second input signal INR is one of the operation data, and the output signal W is another operation data, wherein the low-loss Processing-in-Memory circuit 100 is configured to perform an XNOR operation of the output signal W and the second input signal INR.
[0041] It can be seen from the above that the low-loss Processing-in-Memory circuit 100 of the present disclosure may perform a variety of logic operations without analog-to-digital or digital-to-analog conversion, and its circuit and configuration are simple, which may avoid at the greatest extent the quantization error and noise caused by analog-to-digital or digital-to-analog conversion.
[0042]
[0043] The second embodiment of
[0044] It can be seen here that the output signals of all arithmetic units are connected with a single output signal line OUT.
[0045]
[0046] In
[0047]
[0048] The main difference between the third embodiment of
[0049] In this embodiment, each arithmetic unit may read data of the plurality storage units, for example, may read data from each of 16storage units and apply it to corresponding calculations. The output of the data of the storage unit may he controlled by, for example, the control terminal of the storage unit, for example, the on and off of two MOSFETs. At the same time, the m ×n arithmetic units in
[0050]
[0051] As shown in
[0052] Although some embodiments of the disclosure are described in the present disclosure document, those skilled in the art may understand that these embodiments are shown merely as examples. Under the teachings of the disclosure, various variations, alternatives and modifications are conceivable to those skilled in the art. The appended claims are intended to define the scope of the disclosure and hereby encompass the claims themselves and equivalent methods and structures.