A configurable digital computing circuit and logic gate
By introducing configurable pull-up and pull-down switches and PMOS/NMOS tube combinations into digital in-memory computing circuits, the functions of AND gates and XOR gates are realized, which solves the problem of single logic of traditional multiplication units and improves the versatility of computing circuits. ity and applicability.
Patent Information
- Application Number
- CN202311509611.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-13
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-11-13
AI Technical Summary
The traditional digital in-memory computing multiplication unit has a single calculation logic, which is difficult to apply to different application scenarios and lacks flexibility and versatility.
A configurable digital computing circuit is designed. Different computing logics can be switched by configuring signals to realize the functions of AND gate and XOR gate. The computing circuit can be flexibly configured to suit the requirements by using pull-up and pull-down switches and PMOS and NMOS tube combinations. Different needs.
By configuring signals, the versatility of the computing circuit is increased, and the computing logic can be flexibly configured according to needs to meet the needs of different application scenarios and improve the applicability of the computing circuit.
Smart Images

Figure CN117725022B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of integrated circuits, and in particular to a configurable digital computing circuit and a logic gate. Background Art
[0002] In recent years, in-memory computing technology has developed rapidly, among which digital in-memory computing technology has attracted wide attention due to its high precision and good reliability. In digital in-memory computing, the input signal needs to be multiplied by the stored weight through a multiplication unit, but the traditional digital in-memory computing multiplication unit usually has only a single calculation logic, which is difficult to apply to different application scenarios. Summary of the invention
[0003] The purpose of the present invention is to provide a configurable digital computing circuit and logic gate, which can be flexibly configured into different computing logics according to requirements, thereby greatly increasing the versatility of the computing circuit.
[0004] In order to solve the above technical problems, the present invention adopts the following technical solutions:
[0005] An aspect of an embodiment of the present invention provides a configurable digital computing circuit, the configurable digital computing circuit comprising: a first high-level circuit and a pull-up switch, the input end of the pull-up switch is connected to a power supply, the output end of the pull-up switch is connected to the input end of the first high-level circuit, and the control end of the pull-up switch is used to receive a configuration signal; a second high-level circuit, the input end of the second high-level circuit is connected to a power supply; a first low-level circuit, the input end of the first low-level circuit is grounded; a second low-level circuit and a pull-down switch, the input end of the pull-down switch and the first input end of the second low-level circuit are both grounded, the second input end of the second low-level circuit is connected to the output end of the pull-down switch, and the control end of the pull-down switch is used to receive a configuration signal; the second control end of the first high-level circuit and the first control end of the first low-level circuit both receive a first input signal, the first control end of the first high-level circuit and the second control end of the second low-level circuit are used to receive a second input signal, the second control end of the second high-level circuit and the first control end of the second low-level circuit The control ends both receive the inverted first input signal, and the first control end of the second high-level circuit and the second control end of the first low-level circuit both receive the inverted second input signal; when the first control end and the second control end of the first high-level circuit both receive a low level, the first high-level circuit is turned on, otherwise it is turned off; when the first control end and the second control end of the second high-level circuit both receive a low level, the second high-level circuit is turned on, otherwise it is turned off; when the first control end and the second control end of the first low-level circuit both receive a high level, the first low-level circuit is turned on, otherwise it is turned off; when the first control end of the second low-level circuit receives a high level, and the second control end of the second low-level circuit receives a high level and / or the pull-down switch is turned on, the second low-level circuit outputs a low level, otherwise it does not output; the output end of the first high-level circuit is connected to the output end of the second high-level circuit, the output end of the first low-level circuit and the output end of the second low-level circuit, so as to output the operation result electrical signal.
[0006] In some embodiments, the pull-up switch uses a pull-up PMOS tube, the source of the pull-up PMOS tube is connected to a power supply, the drain of the pull-up PMOS tube is connected to the input end of the first high-level circuit, and the gate of the pull-up PMOS tube is used to receive a configuration signal. The pull-down switch uses a pull-down NMOS tube, the source of the pull-down NMOS tube is grounded, the drain of the pull-down NMOS tube is connected to the second input end of the second low-level circuit, and the gate of the pull-down NMOS tube is used to receive a configuration signal.
[0007] In some embodiments, the first high-level circuit includes a first PMOS tube and a second PMOS tube, the source of the first PMOS tube is connected to the output end of the pull-up switch, the drain of the first PMOS tube is connected to the source of the second PMOS tube, the gate of the first PMOS tube is used to receive the second input signal, and the gate of the second PMOS tube is used to receive the first input signal.
[0008] In some embodiments, the second high-level circuit includes a third PMOS tube and a fourth PMOS tube, the source of the third PMOS tube is connected to a power supply, the drain of the third PMOS tube is connected to the source of the fourth PMOS tube, the gate of the third PMOS tube is used to receive an inverted second input signal, and the gate of the fourth PMOS tube is used to receive an inverted first input signal.
[0009] In some embodiments, the first low-level circuit includes a first NMOS tube and a second NMOS tube, the source of the second NMOS tube is grounded, the drain of the second NMOS tube is connected to the source of the first NMOS tube, the gate of the first NMOS tube is used to receive a first input signal, and the gate of the second NMOS tube is used to receive an inverted second input signal.
[0010] In some embodiments, the second low-level circuit includes a third NMOS tube and a fourth NMOS tube, the source of the fourth NMOS tube is grounded, the drain of the fourth NMOS tube is connected to the source of the third NMOS tube and the output end of the pull-down switch, the gate of the third NMOS tube is used to receive the inverted first input signal, and the gate of the fourth NMOS tube is used to receive the second input signal; the drain of the third NMOS tube is connected to the drain of the first NMOS tube, the drain of the second PMOS tube and the drain of the fourth PMOS tube, so as to output the operation result electrical signal.
[0011] In some embodiments, the configurable digital computing circuit also includes a first inverter and a second inverter, the input end of the first inverter is used to receive the first input signal, the output end of the first inverter is used to output the inverted first input signal, the input end of the second inverter is used to receive the second input signal, and the output end of the second inverter is used to output the inverted second input signal.
[0012] In some embodiments, when the configuration signal is at a high level, the configurable digital computing circuit is configured as an AND gate; when the configuration signal is at a low level, the configurable digital computing circuit is configured as an XNOR gate.
[0013] An aspect of an embodiment of the present invention provides a configurable logic gate, wherein the configurable logic gate includes the configurable digital computing circuit as described above.
[0014] A configurable digital computing circuit and logic gate according to an embodiment of the present invention has at least the following beneficial effects: the traditional digital in-memory computing multiplication unit has only a single computing logic, which is difficult to apply to different application scenarios. The present application adds a logic configuration signal, and the computing circuit can be configured into different computing logics through the configuration signal to meet the needs of different applications, thereby greatly increasing the versatility of the computing circuit.
[0015] It is to be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 is a schematic diagram of a configurable digital computing circuit according to an embodiment. DETAILED DESCRIPTION
[0018] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0019] The terms "first", "second", and "third" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", and "third" may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "plurality" means two or more.
[0020] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "connected", "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0021] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these example embodiments are provided so that the description of the present disclosure will be more comprehensive and complete and the concepts of the example embodiments will be fully conveyed to those skilled in the art. The accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.
[0022] The technical solution of the embodiment of the present application is briefly described below:
[0023] According to some embodiments, the present application provides a configurable digital computing circuit, the configurable digital computing circuit comprising:
[0024] a first high level circuit and a pull-up switch P10, wherein an input end of the pull-up switch P10 is connected to a power supply, an output end of the pull-up switch P10 is connected to an input end of the first high level circuit, and a control end of the pull-up switch P10 is used to receive a configuration signal Config;
[0025] a second high level circuit, wherein an input terminal of the second high level circuit is connected to a power supply;
[0026] A first low-level circuit, wherein an input terminal of the first low-level circuit is grounded;
[0027] A second low-level circuit and a pull-down switch N10, wherein the input end of the pull-down switch N10 and the first input end of the second low-level circuit are both grounded, the second input end of the second low-level circuit is connected to the output end of the pull-down switch N10, and the control end of the pull-down switch N10 is used to receive a configuration signal Config;
[0028] The second control end of the first high level circuit and the first control end of the first low level circuit both receive the first input signal IN1, the first control end of the first high level circuit and the second control end of the second low level circuit are used to receive the second input signal W1, the second control end of the second high level circuit and the first control end of the second low level circuit both receive the inverted first input signal IN2, and the first control end of the second high level circuit and the second control end of the first low level circuit both receive the inverted second input signal W2;
[0029] When both the first control terminal and the second control terminal of the first high-level circuit receive a low level, the first high-level circuit is turned on, otherwise it is turned off;
[0030] When both the first control terminal and the second control terminal of the second high level circuit receive a low level, the second high level circuit is turned on, otherwise it is turned off;
[0031] When the first control terminal and the second control terminal of the first low-level circuit both receive a high level, the first low-level circuit is turned on, otherwise it is turned off;
[0032] When the first control terminal of the second low level circuit receives a high level, and the second control terminal of the second low level circuit receives a high level and / or the pull-down switch N10 is turned on, the second low level circuit outputs a low level, otherwise it does not output;
[0033] The output end of the first high level circuit is connected to the output end of the second high level circuit, the output end of the first low level circuit and the output end of the second low level circuit, so as to output the operation result electrical signal Z.
[0034] When the pull-up switch P10 is turned on, the pull-down switch N10 is turned off; when the pull-down switch N10 is turned on, the pull-up switch P10 is turned off.
[0035] Based on the working principle of the above embodiment, when the configuration signal Config controls the pull-down switch N10 to turn on and the pull-up switch P10 to turn off, the AND gate is in a working state. The specific working principle is as follows:
[0036] When the first input signal IN1 is at a low level and the second input signal W1 is at a low level, the first high level circuit is turned on, but since the pull-up switch P10 is turned off, the first high level circuit does not output; the second high level circuit is turned off; the first low level circuit is turned off; since the first control end of the second low level circuit receives the inverted first input signal IN2 as a high level, and the pull-down switch N10 is turned on, the second low level circuit outputs a low level operation result electrical signal Z.
[0037] When the first input signal IN1 is at a low level and the second input signal W1 is at a high level, the first high level circuit is turned off; the second high level circuit is turned off; the first low level circuit is turned off; because the first control end of the second low level circuit receives the inverted first input signal IN2 as a high level, and the second control end of the second low level circuit receives a high level and the pull-down switch N10 is turned on, the second low level circuit outputs a low level operation result electrical signal Z.
[0038] When the first input signal IN1 is high and the second input signal W1 is low, the first high level circuit is closed; the second high level circuit is closed; the first low level circuit is opened and outputs a low level operation result electrical signal Z; the second low level circuit is closed.
[0039] When the first input signal IN1 is high and the second input signal W1 is high, the first high level circuit is closed; the second high level circuit is opened and outputs a high level operation result electrical signal Z; the first low level circuit is closed; and the second low level circuit is closed.
[0040] When the configuration signal Config controls the pull-up switch P10 to be turned on and the pull-down switch N10 to be turned off, the XOR gate is in working state. The specific working principle is as follows:
[0041] When the first input signal IN1 is at a low level and the second input signal W1 is at a low level, the first high level circuit is turned on. Since the pull-up switch P10 is also turned on, the first high level circuit outputs a high level calculation result electrical signal Z; the second high level circuit is turned off; the first low level circuit is turned off; and the second low level circuit is turned off.
[0042] When the first input signal IN1 is at a low level and the second input signal W1 is at a high level, the first high level circuit is closed; the second high level circuit is closed; the first low level circuit is closed; the second low level circuit is opened, and a low level operation result electrical signal Z is output.
[0043] When the first input signal IN1 is high and the second input signal W1 is low, the first high level circuit is closed; the second high level circuit is closed; the first low level circuit is opened and outputs a low level operation result electrical signal Z; the second low level circuit is closed.
[0044] When the first input signal IN1 is high and the second input signal W1 is high, the first high level circuit is closed; the second high level circuit is opened and outputs a high level operation result electrical signal Z; the first low level circuit is closed; and the second low level circuit is closed.
[0045] The following is combined with the appendix of this manual Figure 1 , the preferred implementation modes of the present disclosure are further elaborated in detail.
[0046] According to some embodiments, Figure 1 As shown, the pull-up switch P10 adopts a pull-up PMOS tube P10, the source of the pull-up PMOS tube P10 is connected to the power supply, the drain of the pull-up PMOS tube P10 is connected to the input end of the first high-level circuit, and the gate of the pull-up PMOS tube P10 is used to receive the configuration signal Config;
[0047] The pull-down switch N10 uses a pull-down NMOS tube N10, the source of the pull-down NMOS tube N10 is grounded, the drain of the pull-down NMOS tube N10 is connected to the second input end of the second low-level circuit, and the gate of the pull-down NMOS tube N10 is used to receive a configuration signal Config.
[0048] Based on the working principle of the above embodiment, when the configuration signal Config is at a high level, the pull-up PMOS tube P10 is turned off and the pull-down NMOS tube N10 is turned on. When the configuration signal Config is at a low level, the pull-up PMOS tube P10 is turned on and the pull-down NMOS tube N10 is turned off. When the pull-up PMOS tube P10 is turned on, the pull-down NMOS tube N10 is turned off; when the pull-down NMOS tube N10 is turned on, the pull-up PMOS tube P10 is turned off.
[0049] According to some embodiments, Figure 1 As shown, the first high-level circuit includes a first PMOS tube P1 and a second PMOS tube P2, the source of the first PMOS tube P1 is connected to the output end of the pull-up switch P10, the drain of the first PMOS tube P1 is connected to the source of the second PMOS tube P2, the gate of the first PMOS tube P1 is used to receive the second input signal W1, and the gate of the second PMOS tube P2 is used to receive the first input signal IN1.
[0050] Based on the working principle of the above embodiment, when the pull-up switch P10 is turned on and the gate of the first PMOS tube P1 and the gate of the second PMOS tube P2 both receive low-level signals, that is, when the first input signal IN1 and the second input signal W1 are both low-level, a high-level operation result electrical signal Z is output.
[0051] According to some embodiments, Figure 1 As shown, the second high-level circuit includes a third PMOS tube P3 and a fourth PMOS tube P4, the source of the third PMOS tube P3 is connected to the power supply, the drain of the third PMOS tube P3 is connected to the source of the fourth PMOS tube P4, the gate of the third PMOS tube P3 is used to receive the inverted second input signal W2, and the gate of the fourth PMOS tube P4 is used to receive the inverted first input signal IN1.
[0052] Based on the working principle of the above embodiment, when the gate of the third PMOS tube P3 and the gate of the fourth PMOS tube P4 both receive low-level signals, that is, when the first input signal IN1 and the second input signal W1 are both high-level, a high-level operation result electrical signal Z is output.
[0053] According to some embodiments, Figure 1 As shown, the first low-level circuit includes a first NMOS tube N1 and a second NMOS tube N2, the source of the second NMOS tube N2 is grounded, the drain of the second NMOS tube N2 is connected to the source of the first NMOS tube N1, the gate of the first NMOS tube N1 is used to receive the first input signal IN1, and the gate of the second NMOS tube N2 is used to receive the inverted second input signal W2.
[0054] Based on the working principle of the above embodiment, when the gate of the first NMOS tube N1 and the gate of the second NMOS tube N2 both receive a high level, that is, when the first input signal IN1 is a high level and the second input signal W1 is a low level, a low level operation result electrical signal Z is output.
[0055] According to some embodiments, Figure 1 As shown, the second low-level circuit includes a third NMOS tube N3 and a fourth NMOS tube N4, the source of the fourth NMOS tube N4 is grounded, the drain of the fourth NMOS tube N4 is connected to the source of the third NMOS tube N3 and the output end of the pull-down switch N10, the gate of the third NMOS tube N3 is used to receive the inverted first input signal IN1, and the gate of the fourth NMOS tube N4 is used to receive the second input signal W1;
[0056] The drain of the third NMOS transistor N3 is connected to the drain of the first NMOS transistor N1 , the drain of the second PMOS transistor P2 , and the drain of the fourth PMOS transistor P4 , so as to output the operation result electrical signal Z.
[0057] Based on the working principle of the above embodiment, when the pull-down switch N10 is closed, when the gate of the third NMOS tube N3 and the gate of the fourth NMOS tube N4 both receive a high level, that is, when the first input signal IN1 is a low level and the second input signal W1 is a high level, a low-level operation result electrical signal Z is output.
[0058] When the pull-down switch N10 is turned on, when the gate of the third NMOS transistor N3 receives a high level, that is, when the first input signal IN1 is a low level, a low level operation result electrical signal Z is output.
[0059] According to some embodiments, Figure 1As shown, the configurable digital computing circuit also includes a first inverter INV1 and a second inverter INV2, the input end of the first inverter INV1 is used to receive the first input signal IN1, the output end of the first inverter INV1 is used to output the inverted first input signal IN2, the input end of the second inverter INV2 is used to receive the second input signal W1, and the output end of the second inverter INV2 is used to output the inverted second input signal W2.
[0060] According to some embodiments, Figure 1 As shown, when the configuration signal Config is at a high level, the configurable digital computing circuit is configured as an AND gate;
[0061] When the configuration signal Config is at a low level, the configurable digital computing circuit is configured as an XEN_NOR gate.
[0062] The working principle is: when the configuration signal Config is a high-level signal, the pull-down NMOS tube N10 is turned on and the pull-up PMOS tube P10 is turned off. At this time, the AND gate is in working state, and the specific working principle is as follows:
[0063] When the first input signal IN1 is at a low level and the second input signal W1 is at a low level, the first PMOS tube P1 and the second PMOS tube P2 are both turned on, but since the pull-up PMOS tube P10 is turned off, the first high level circuit does not output; the second high level circuit and the first low level circuit are both turned off; since the gate of the third NMOS tube N3 in the second low level circuit receives a high level, the second low level circuit outputs a low level operation result electrical signal Z.
[0064] When the first input signal IN1 is at a low level and the second input signal W1 is at a high level, the first high level circuit, the second high level circuit and the first low level circuit are turned off; since the gate of the third NMOS tube N3 in the second low level circuit receives a high level, and the gate of the fourth NMOS tube N4 in the second low level circuit receives a high level and the pull-down NMOS tube N10 is turned on, the second low level circuit outputs a low level operation result electrical signal Z.
[0065] When the first input signal IN1 is at a high level and the second input signal W1 is at a low level, the first high level circuit, the second high level circuit and the second low level circuit are turned off; the gate of the first NMOS tube N1 and the gate of the second NMOS tube N2 in the first low level circuit both receive a high level and output a low level operation result electrical signal Z.
[0066] When the first input signal IN1 is at a high level and the second input signal W1 is at a high level, the first high level circuit, the first low level circuit and the second low level circuit are turned off; the gate of the third PMOS tube P3 and the gate of the fourth PMOS tube P4 in the second high level circuit both receive a high level and output a high level operation result electrical signal Z.
[0067] When the configuration signal Config controls the pull-up PMOS tube P10 to turn on and the pull-down NMOS tube N10 to turn off, the XOR gate is in working state. The specific working principle is as follows:
[0068] When the first input signal IN1 is at a low level and the second input signal W1 is at a low level, the gate of the first PMOS tube P1 and the gate of the second PMOS tube P2 in the first high level circuit both receive a low level. Since the pull-up PMOS tube P10 is also turned on, the first high level circuit outputs a high level operation result electrical signal Z; the second high level circuit, the first low level circuit and the second low level circuit are turned off.
[0069] When the first input signal IN1 is at a low level and the second input signal W1 is at a high level, the first high level circuit, the second high level circuit and the first low level circuit are turned off; the gate of the third NMOS tube N3 and the gate of the fourth NMOS tube N4 in the second low level circuit both receive the high level signal and output a low level operation result electrical signal Z.
[0070] When the first input signal IN1 is at a high level and the second input signal W1 is at a low level, the first high level circuit, the second high level circuit and the second low level circuit are turned off; the gate of the first NMOS tube N1 and the gate of the second NMOS tube N2 in the first low level circuit receive a high level and output a low level operation result electrical signal Z.
[0071] When the first input signal IN1 is at a high level and the second input signal W1 is at a high level, the gate of the third PMOS tube P3 and the gate of the fourth PMOS tube P4 in the second high level circuit both receive a low level and output a high level operation result electrical signal Z; the first high level circuit, the first low level circuit and the second low level circuit are turned off.
[0072] According to some embodiments, the present application provides a configurable logic gate, wherein the configurable logic gate includes the configurable digital computing circuit as described above.
[0073] In the description of the above embodiments, specific features, structures, materials or characteristics may be combined in a suitable manner in any one or more embodiments or examples.
[0074] Although the present disclosure has been described with reference to several typical embodiments, it should be understood that the terms used are illustrative and exemplary, rather than restrictive. Since the present disclosure can be implemented in a variety of forms without departing from the spirit or essence of the present application, it should be understood that the above-mentioned embodiments are not limited to any of the foregoing details, but should be widely interpreted within the spirit and scope defined by the appended claims, so all changes and modifications falling within the scope of the claims or their equivalents should be covered by the appended claims.
Claims
1. A configurable digital computing circuit, characterized in that: The configurable digital computing circuit comprises: a first high level circuit and a pull-up switch, wherein an input end of the pull-up switch is connected to a power supply, an output end of the pull-up switch is connected to an input end of the first high level circuit, and a control end of the pull-up switch is used to receive a configuration signal; a second high level circuit, wherein an input terminal of the second high level circuit is connected to a power supply; A first low-level circuit, wherein an input terminal of the first low-level circuit is grounded; a second low-level circuit and a pull-down switch, wherein the input end of the pull-down switch and the first input end of the second low-level circuit are both grounded, the second input end of the second low-level circuit is connected to the output end of the pull-down switch, and the control end of the pull-down switch is used to receive a configuration signal; The second control end of the first high-level circuit and the first control end of the first low-level circuit both receive a first input signal, the first control end of the first high-level circuit and the second control end of the second low-level circuit are used to receive a second input signal, the second control end of the second high-level circuit and the first control end of the second low-level circuit both receive an inverted first input signal, and the first control end of the second high-level circuit and the second control end of the first low-level circuit both receive an inverted second input signal; When both the first control terminal and the second control terminal of the first high-level circuit receive a low level, the first high-level circuit is turned on, otherwise it is turned off; When both the first control terminal and the second control terminal of the second high level circuit receive a low level, the second high level circuit is turned on, otherwise it is turned off; When the first control terminal and the second control terminal of the first low-level circuit both receive a high level, the first low-level circuit is turned on, otherwise it is turned off; When the first control terminal of the second low level circuit receives a high level, and the second control terminal of the second low level circuit receives a high level and / or the pull-down switch is turned on, the second low level circuit outputs a low level, otherwise it does not output; The output end of the first high level circuit is connected to the output end of the second high level circuit, the output end of the first low level circuit and the output end of the second low level circuit, so as to output an operation result electrical signal; The first high-level circuit includes a first PMOS tube and a second PMOS tube, the source of the first PMOS tube is connected to the output end of the pull-up switch, the drain of the first PMOS tube is connected to the source of the second PMOS tube, the gate of the first PMOS tube is used to receive the second input signal, and the gate of the second PMOS tube is used to receive the first input signal; The second high-level circuit includes a third PMOS tube and a fourth PMOS tube, the source of the third PMOS tube is connected to the power supply, the drain of the third PMOS tube is connected to the source of the fourth PMOS tube, the gate of the third PMOS tube is used to receive the inverted second input signal, and the gate of the fourth PMOS tube is used to receive the inverted first input signal; The first low-level circuit includes a first NMOS tube and a second NMOS tube, the source of the second NMOS tube is grounded, the drain of the second NMOS tube is connected to the source of the first NMOS tube, the gate of the first NMOS tube is used to receive a first input signal, and the gate of the second NMOS tube is used to receive an inverted second input signal; The second low-level circuit includes a third NMOS tube and a fourth NMOS tube, the source of the fourth NMOS tube is grounded, the drain of the fourth NMOS tube is connected to the source of the third NMOS tube and the output end of the pull-down switch, the gate of the third NMOS tube is used to receive the inverted first input signal, and the gate of the fourth NMOS tube is used to receive the second input signal; The drain of the third NMOS tube is connected to the drain of the first NMOS tube, the drain of the second PMOS tube and the drain of the fourth PMOS tube, so as to output an operation result electrical signal.
2. The configurable digital computing circuit according to claim 1, characterized in that: The pull-up switch adopts a pull-up PMOS tube, the source of the pull-up PMOS tube is connected to the power supply, the drain of the pull-up PMOS tube is connected to the input end of the first high-level circuit, and the gate of the pull-up PMOS tube is used to receive the configuration signal; The pull-down switch adopts a pull-down NMOS tube, the source of which is grounded, the drain of which is connected to the second input end of the second low-level circuit, and the gate of which is used to receive a configuration signal.
3. The configurable digital computing circuit according to claim 1, characterized in that: The configurable digital computing circuit also includes a first inverter and a second inverter, wherein the input end of the first inverter is used to receive the first input signal, and the output end of the first inverter is used to output the inverted first input signal, the input end of the second inverter is used to receive the second input signal, and the output end of the second inverter is used to output the inverted second input signal.
4. The configurable digital computing circuit according to claim 1, characterized in that: When the configuration signal is at a high level, the configurable digital computing circuit is configured as an AND gate; When the configuration signal is at a low level, the configurable digital computing circuit is configured as an XEN_NOR gate.
5. A configurable logic gate, characterized in that: The configurable logic gate comprises a configurable digital computing circuit as claimed in any one of claims 1 to 4.
Citation Information
Patent Citations
Large number logic gate construction circuit
CN107634755A
Level shifter
CN110739961A
Memory operation circuit and chip structure
CN112259136A
XOR logic circuit
US20100141299A1
Output Buffer, Gate Electrode Driving Circuit and Method for Controlling the Same
US20150303925A1
