Full Adder

By using the MOS tube source in the comparison circuit in the full adder to access the sum signal instead of the power supply VCC or ground, the problem of high power consumption of the full adder is solved, and the power consumption and area reduction are achieved. Improved circuit efficiency.

CN113098494BActive Publication Date: 2024-12-06杭州缘及科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110365018.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-31
Publication Date
2024-12-06
Estimated Expiration
2041-03-31

AI Technical Summary

Technical Problem

The existing full adders have high power consumption, resulting in low circuit efficiency.

Method used

A full adder is designed, using the first XOR circuit and the second XOR circuit. By connecting the source of the MOS tube in the comparison circuit without connecting to the power supply VCC or ground, it is connected to the summing signal, thereby reducing the full add The power consumption of the device and reduces the required number of MOS tubes and reduces the circuit area.

Benefits of technology

It effectively reduces the power consumption of the full adder, reduces the number of MOS tubes, reduces the area occupied by the circuit, and improves the circuit efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113098494B_ABST
    Figure CN113098494B_ABST
Patent Text Reader

Abstract

This invention provides a full adder, comprising: a first XOR circuit, a second XOR circuit, and a carry circuit; the first XOR circuit is used to receive a first summation signal and a second summation signal, and includes two sets of comparison circuits; the inverted signal of the first summation signal and the second summation signal are respectively connected to the two input terminals of the second set of comparison circuits, and the second set of comparison circuits outputs a low level when the inverted signal of the first summation signal is not equal to the second summation signal; the output terminals of the two sets of comparison circuits are connected and serve as the output terminal of the first XOR circuit, outputting a first XOR signal; the second XOR circuit is used to perform XOR calculation on the first XOR signal and the carry input signal, and output a summation signal; the carry circuit is used to perform calculation based on one of the first summation signal and the second summation signal, the carry input signal, and the first XOR signal, and output a carry output signal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of electronic circuits, and in particular to a full adder. Background Art

[0002] A full adder, also known as a full-adder, is a circuit that can add two binary numbers. Each bit of the binary number generally corresponds to a one-bit full adder. A one-bit full adder can process the sum of the current bit and the addition carry of the lower bit, and output the sum of the current bit and the addition carry of the current bit.

[0003] In addition, the full adder can not only complete addition calculations, but also participate in subtraction, multiplication, division and other operations. It is an important component of processors such as microprocessors and digital signal processors. Therefore, reducing the power consumption of the full adder is of great significance.

[0004] Generally, a full adder uses multiple MOS tubes, the source end of the MOS tube is connected to the power supply VCC or ground, and the gate of the MOS tube is connected to the sum signal of the local position or the carry signal of the low position. However, the power consumption of a full adder with this structure is high.

[0005] Therefore, the technical problem that needs to be solved urgently in the prior art is to provide another full adder with lower power consumption. Summary of the invention

[0006] An embodiment of the present invention provides a full adder to overcome the problem of high power consumption of the full adder mentioned above.

[0007] On the one hand, to achieve the above-mentioned object, an embodiment of the present invention provides a full adder, comprising: a first XOR circuit, a second XOR circuit, and a carry circuit;

[0008] The first XOR circuit is used to access the first sum signal and the second sum signal, and the first XOR circuit includes two groups of comparison circuits;

[0009] The comparison circuit comprises a first MOS tube and a second MOS tube, wherein the gate of the first MOS tube is connected to the source of the second MOS tube and serves as a first input terminal of the comparison circuit, the source of the first MOS tube is connected to the gate of the second MOS tube and serves as a second input terminal of the comparison circuit, and the drain of the first MOS tube is connected to the drain of the second MOS tube and serves as an output terminal of the comparison circuit;

[0010] The first summation signal and the second summation signal are respectively connected to two input terminals of a first group of comparison circuits, and the first group of comparison circuits outputs a high level when the first summation signal is not equal to the second summation signal;

[0011] The inverse signal of the first sum signal and the second sum signal are respectively connected to two input terminals of the second comparison circuit, and the second comparison circuit outputs a low level when the inverse signal of the first sum signal is not equal to the second sum signal;

[0012] The output ends of the two groups of comparison circuits are connected and serve as the output ends of the first XOR circuit to output a first XOR signal;

[0013] The second XOR circuit is used to perform XOR calculation on the first XOR signal and the carry input signal, and output a sum signal;

[0014] The carry circuit is used for performing calculation according to one of the first sum signal and the second sum signal, a carry input signal and the first XOR signal, and outputting a carry output signal.

[0015] Optionally, in any embodiment of the present application, the MOS tube in the first group of comparison circuits is a PMOS tube. When the first summation signal is not equal to the second summation signal, the PMOS tube is controlled to be turned on by a low-level signal in the first summation signal and the second summation signal, and the output of the first group of comparison circuits is pulled up to a high level by a high-level signal in the first summation signal and the second summation signal.

[0016] Optionally, in any embodiment of the present application, the MOS tube in the second group of comparison circuits is an NMOS tube. When the inverse signal of the first summation signal is not equal to the second summation signal, the NMOS tube is controlled to be turned on by the inverse signal of the first summation signal and the high level signal in the second summation signal, and the output of the second group of comparison circuits is pulled down to a low level by the inverse signal of the first summation signal and the low level signal in the second summation signal.

[0017] Optionally, in any embodiment of the present application, the full adder further includes: a first inverting circuit, wherein the first inverting circuit is used to input a first summation signal and output an inverted signal of the first summation signal.

[0018] Optionally, in any embodiment of the present application, the structure of the second XOR circuit is the same as the structure of the first XOR circuit.

[0019] Optionally, in any embodiment of the present application, the full adder further includes: a second inverting circuit, the second inverting circuit being used to input a carry input signal and output an inverted signal of the carry input signal.

[0020] Optionally, in any embodiment of the present application, the carry circuit includes: an XOR judgment branch and an XOR judgment branch;

[0021] The control end of the XOR judgment branch is connected to the inverse signal of the first XOR signal, the first input end is connected to one of the first sum signal and the second sum signal, and the second input end is connected to the carry input signal;

[0022] The control end of the XOR judgment branch is connected to the first XOR signal, the first input end is connected to the carry input signal, and the second input end is connected to one of the first sum signal and the second sum signal.

[0023] Optionally, in any embodiment of the present application, the carry circuit further includes: a third inverting circuit, configured to input the first XOR signal and output an inverted signal of the first XOR signal.

[0024] Optionally, in any embodiment of the present application, the XOR judgment branch includes: a third NMOS tube and a third PMOS tube;

[0025] The source of the third NMOS tube is connected to one of the first sum signal and the second sum signal, and the source of the third PMOS tube is connected to the carry input signal;

[0026] The gate of the third NMOS tube is connected to the gate of the third PMOS tube, serving as the control end of the XOR judgment branch, and receiving the first XOR signal;

[0027] The drain of the third NMOS tube is connected to the drain of the third PMOS tube, serving as the output end of the XOR judgment branch.

[0028] Optionally, in any embodiment of the present application, the same-or judgment branch includes: a fourth NMOS tube and a fourth PMOS tube;

[0029] The source of the fourth NMOS tube is connected to the carry input signal, and the source of the fourth PMOS tube is connected to one of the first sum signal and the second sum signal;

[0030] The gate of the fourth NMOS tube is connected to the gate of the fourth PMOS tube, serving as the control end of the XOR judgment branch, and receiving the reverse signal of the first XOR signal;

[0031] The drain of the fourth NMOS tube is connected to the drain of the fourth PMOS tube, serving as the output end of the XEN_OR judgment branch.

[0032] In the present invention, the first XOR circuit is used to access the first summation signal and the second summation signal, and the first XOR circuit includes two groups of comparison circuits; the comparison circuit includes a first MOS tube and a second MOS tube, the gate of the first MOS tube is connected to the source of the second MOS tube and serves as the first input end of the comparison circuit, the source of the first MOS tube is connected to the gate of the second MOS tube and serves as the second input end of the comparison circuit, and the drain of the first MOS tube is connected to the drain of the second MOS tube and serves as the output end of the comparison circuit; the first summation signal and the second summation signal are respectively connected to the two input ends of the first group of comparison circuits, and the first group of comparison circuits are connected to the first input end of the comparison circuit. When the first summation signal is not equal to the second summation signal, a high level is output; the inverse signal of the first summation signal and the second summation signal are respectively connected to the two input ends of the second group of comparison circuits, and the second group of comparison circuits outputs a low level when the inverse signal of the first summation signal is not equal to the second summation signal; the output ends of the two groups of comparison circuits are connected and serve as the output end of the first XOR circuit to output the first XOR signal; the second XOR circuit is used to perform XOR calculation on the first XOR signal and the carry input signal, and output the summation signal; the carry circuit is used to calculate according to one of the first summation signal and the second summation signal, the carry input signal and the first XOR signal, and output the carry output signal. Since the source of the MOS tube in the comparison circuit in the XOR circuit is no longer connected to the power supply VCC or ground, but is connected to the signal for summation, the power consumption of the full adder can be reduced. In addition, the full adder provided in this embodiment requires a small number of MOS tubes, thereby reducing the area occupied by the full adder. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0034] Figure 1 A schematic diagram of the circuit structure of a full adder provided in an embodiment of the present application;

[0035] Figure 2 A schematic diagram of the circuit structure of another full adder provided in an embodiment of the present application;

[0036] Figure 3 A schematic diagram of the circuit structure of another full adder provided in an embodiment of the present application;

[0037] Figure 4 A schematic diagram of the circuit structure of a first reverse circuit provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] 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.

[0039] Figure 1 A circuit structure schematic diagram of a full adder is provided for an embodiment of the present application.

[0040] like Figure 1 As shown, the full adder of this embodiment includes: a first XOR circuit, a second XOR circuit, and a carry circuit.

[0041] The first XOR circuit is used to access the first sum signal and the second sum signal, and the first XOR circuit includes two groups of comparison circuits.

[0042] The comparison circuit includes a first MOS tube and a second MOS tube, the gate of the first MOS tube is connected to the source of the second MOS tube and serves as a first input end of the comparison circuit, the source of the first MOS tube is connected to the gate of the second MOS tube and serves as a second input end of the comparison circuit, and the drain of the first MOS tube is connected to the drain of the second MOS tube and serves as an output end of the comparison circuit.

[0043] Therefore, the source of the MOS tube in the comparison circuit is connected to the first sum signal or the second sum signal instead of the power supply VCC or the ground, thereby reducing the power consumption of the XOR circuit and further reducing the power consumption of the full adder.

[0044] When the comparison circuit is applied to the first XOR circuit, as Figure 2 As shown, the first XOR circuit may include two groups of comparison circuits, namely, AB comparison circuits (first group of comparison circuits), and -B comparison circuit (second group of comparison circuits).

[0045] For a clearer description, the first sum signal will be referred to as signal A and the second sum signal will be referred to as signal B. However, those skilled in the art should understand that the above is not intended to limit the present application.

[0046] The first summation signal A and the second summation signal B are respectively connected to two input terminals of the first comparison circuit, so that the first comparison circuit outputs a high level when the first summation signal is not equal to the second summation signal, that is, A≠B.

[0047] The inverse signal of the first summation signal The second summation signal B is connected to two input terminals of the second comparison circuit respectively, so that the second comparison circuit receives the inverse signal of the first summation signal. When it is not equal to the second summation signal B, that is, (equivalent to A=B), the output is low level, where The horizontal line above indicates that it is the reverse of A.

[0048] The output ends of the two groups of comparison circuits are connected and serve as the output ends of the first XOR circuit to output a first XOR signal.

[0049] Specifically, the output terminal of the first XOR circuit outputs a high level when A≠B, and When the output is low level, that is, the first XOR signal output by the first XOR circuit The first XOR signal is input to the second XOR circuit.

[0050] The second XOR circuit is used to perform XOR calculation on the first XOR signal and the carry input signal, and output a sum signal.

[0051] Summation signal Among them, C i It is the carry input signal.

[0052] The carry circuit is used to carry out the input signal C according to one of the first sum signal A and the second sum signal B. i And the first XOR signal is calculated to output a carry output signal.

[0053] In this embodiment, the carry output signal

[0054] In this embodiment, the first XOR circuit is used to access the first sum signal and the second sum signal, and the first XOR circuit includes two groups of comparison circuits; the comparison circuit includes a first MOS tube and a second MOS tube, the gate of the first MOS tube is connected to the source of the second MOS tube and serves as the first input end of the comparison circuit, the source of the first MOS tube is connected to the gate of the second MOS tube and serves as the second input end of the comparison circuit, and the drain of the first MOS tube is connected to the drain of the second MOS tube and serves as the output end of the comparison circuit; the first sum signal and the second sum signal are respectively connected to the two input ends of the first group of comparison circuits, and the first group of comparison circuits are connected to the first group of comparison circuits. When the first summation signal is not equal to the second summation signal, a high level is output; the inverse signal of the first summation signal and the second summation signal are respectively connected to the two input ends of the second group of comparison circuits, and the second group of comparison circuits outputs a low level when the inverse signal of the first summation signal is not equal to the second summation signal; the output ends of the two groups of comparison circuits are connected and used as the output end of the first XOR circuit to output the first XOR signal; the second XOR circuit is used to perform XOR calculation on the first XOR signal and the carry input signal, and output the summation signal; the carry circuit is used to calculate according to one of the first summation signal and the second summation signal, the carry input signal and the first XOR signal, and output the carry output signal. Since the source of the MOS tube in the comparison circuit in the XOR circuit is no longer connected to the power supply VCC or ground, but is connected to the signal for summation, the power consumption of the full adder can be reduced. In addition, the full adder provided in this embodiment requires a small number of MOS tubes, thereby reducing the area occupied by the full adder.

[0055] Optionally, in this embodiment, the MOS tube in the first group of comparison circuits is a PMOS tube, so that when the first summation signal is not equal to the second summation signal, the PMOS tube is controlled to be turned on by a low-level signal in the first summation signal and the second summation signal, and the output of the first group of comparison circuits is pulled up to a high level by a high-level signal in the first summation signal and the second summation signal.

[0056] PMOS tube has the ability to transmit "1". That is, when Gate = 0 (gate voltage is 0), it is turned on. When Source = 1, data can be transmitted to Drain (drain). Drain = 1, only when Gate = 0 and Source = 1 are satisfied at the same time, can it be correctly transmitted. Therefore, PMOS tube can determine the value of Gate = 0 and Source = 1.

[0057] Applying this principle, A=0, B=1 can be determined by a PMOS tube (A connected to Gate, B connected to Source); similarly, the data value of A=1, B=0 can be determined by another PMOS tube (A connected to Source, B connected to Gate). The two transistors are connected in parallel to pull the first XOR signal up to 1 when A=0, B=1 or A=1, B=0, that is, the first XOR signal

[0058] The specific relationship between the inputs A and B and the first XOR signal Q1 can be seen in the following Table 1, which is a logic truth table corresponding to the output Q1.

[0059] A B Q1 0 0 0 0 1 1 1 0 1 1 1 0

[0060] Table 1

[0061] For example, Figure 2 As shown, the AB comparison circuit includes two PMOS tubes MP1 and MP2. The source of MP1 is connected to signal A and the gate is connected to signal B; the source of MP2 is connected to signal B and the gate is connected to signal A. The circles at the gates of MP1 and MP2 indicate low voltage conduction. The drains of MP1 and MP2 are connected as the output end of the comparison circuit.

[0062] When A≠B, there are two cases: 1) A=1, B=0; 2) A=0, B=1.

[0063] When A=1 and B=0, B=0 turns on MP1 and A=1 turns off MP2; MP1 turns on so that A=1 is transmitted to the drain, thereby making the output of the AB comparison circuit 1 (high level).

[0064] When A=0 and B=1, B=1 makes MP1 cut off, and A=0 makes MP2 turned on; MP2 turned on so that B=1 is transmitted to the drain, thereby making the output of the AB comparison circuit 1 (high level).

[0065] Optionally, in this embodiment, the MOS tube in the second group of comparison circuits is an NMOS tube, so that when the inverse signal of the first summation signal is not equal to the second summation signal, the NMOS tube is controlled to be turned on by the inverse signal of the first summation signal and the high level signal in the second summation signal, and the output of the second group of comparison circuits is pulled down to a low level by the inverse signal of the first summation signal and the low level signal in the second summation signal.

[0066] NMOS tube has the ability to transmit "0". That is, when Gate = 1 (gate voltage is 1), it is turned on. When Source = 0, data can be transmitted to Drain (drain). Drain = 0. Only when Gate = 1 and Source = 0 are satisfied at the same time, can it be correctly transmitted. Therefore, NMOS tube can determine the value of Gate = 1, Source = 0.

[0067] Applying this principle, , B=0 can be judged by a PMOS tube (A is connected to Gate, B is connected to Source); similarly, it can be judged by another NMOS tube The data value of B=1( Connect A to Source, B to Gate). The two transistors are connected in parallel to pull the first XOR signal down to 0 when A=0, B=0 or A=1, B=1, that is, the first XOR signal: At this time, Q1 will not be floating. The specific relationship between the inputs A and B and the first XOR signal Q1 can also be seen in the above Table 1, which is the logic truth table corresponding to the output Q1.

[0068] For example, Figure 2 As shown, The comparison circuit includes two NMOS tubes MN1 and MN2. The source of MN1 is connected to the signal The gate is connected to signal B; the source of MN2 is connected to signal B, and the gate is connected to signal The gates of MN1 and MN2 do not include circles, indicating that the high voltage is turned on. The drains of MN1 and MN2 are connected as the output terminals of the comparison circuit.

[0069] when There are two cases: 1) A=0, B=0; 2) A=1, B=1.

[0070] When A=0,B=0, B=0, MN2 is turned on, B=0 makes MN1 off; MN2 is turned on so that B=0 is transmitted to the drain, which makes The output of the comparison circuit is 0 (low level).

[0071] When A=1,B=1, B=1, B=1 makes MN1 conductive, MN2 is turned off; MN1 is turned on, is transferred to the drain, thereby making The output of the comparison circuit is 0 (low level).

[0072] Optionally, in this embodiment, the full adder further includes: a first inverting circuit, wherein the first inverting circuit is configured to input a first sum signal and output an inverted signal of the first sum signal.

[0073] For example, Figure 4 As shown, the first reverse circuit may include an NMOS transistor MN3 and a PMOS transistor MP3, wherein the source of MN3 is connected to the power supply voltage, the source of MP3 is grounded, the gates of MN3 and MP3 are connected as the input end of the first reverse circuit, and the first sum signal A is connected, and the drains of MN3 and MP3 are connected as the output end of the first reverse circuit, and the reverse signal of the first sum signal is output.

[0074] Of course, the above is only an example and is not intended to limit the present application.

[0075] Optionally, in this embodiment, the structure of the second XOR circuit is the same as that of the first XOR circuit, and the difference between the two is the input signal.

[0076] In this embodiment, the input signals of the second XOR circuit include: the first XOR signal Q1, the carry input signal C i .

[0077] Similarly, the second XOR circuit also includes two groups of comparison circuits. The first group of comparison circuits is used to compare the first XOR signal Q1, the carry input signal C i When they are not equal, that is, C i ≠Q1, output high level. The second group of comparison circuits is used to carry input signal C i When the reverse signal and the first XOR signal Q1 are not equal, that is, Output low level, so that the second XOR circuit outputs the sum signal Thus, the power consumption of the full adder can be further reduced.

[0078] Optionally, in this embodiment, the full adder further includes: a second inverting circuit, wherein the second inverting circuit is used to input a carry input signal and output an inverted signal of the carry input signal.

[0079] The structure of the second reverse circuit can be similar to that of the first reverse circuit, and will not be described in detail here. Specifically, the input end of the second reverse circuit can be connected to the carry input signal C i , and output the reverse signal of the carry input signal at the output Output Can be used as the input of the second XOR circuit.

[0080] Optionally, in this embodiment, the carry circuit includes: an XOR judgment branch and an XOR judgment branch.

[0081] The control end of the XOR judgment branch is connected to the inverse signal of the first XOR signal, the first input end is connected to one of the first sum signal and the second sum signal, and the second input end is connected to the carry input signal.

[0082] The control end of the XOR judgment branch is connected to the first XOR signal, the first input end is connected to the carry input signal, and the second input end is connected to one of the first sum signal and the second sum signal.

[0083] Specifically, see Figure 3 , the XOR judgment branch includes: a third NMOS tube MN4 and a third PMOS tube MP4.

[0084] The source of the third PMOS transistor MP4 is used as the first input end of the XOR judgment branch, and is connected to one of the first sum signal and the second sum signal. The figure takes the connection of the second sum signal B as an example for exemplary description.

[0085] The source of the third NMOS transistor MN4 is used as the second input terminal of the XOR judgment branch, and is connected to the carry input signal. The gate of the third NMOS transistor MN4 is connected to the gate of the third PMOS transistor MP4, and is used as the control terminal of the XOR judgment branch, and is connected to the first XOR signal. The drain of the third NMOS transistor MN4 is connected to the drain of the third PMOS transistor MP4, and is used as the output terminal of the XOR judgment branch.

[0086] Specifically, see Figure 3 The same-or-nothing judgment branch includes: a fourth NMOS tube MN5 and a fourth PMOS tube MP5.

[0087] The source of the fourth PMOS transistor MP5 is connected to the carry input signal, and the source of the fourth NMOS transistor MN5 is connected to one of the first sum signal and the second sum signal. The figure takes the connection of the second sum signal B as an example for exemplary description.

[0088] The gate of the fourth NMOS tube MN5 is connected to the gate of the fourth PMOS tube MP5, serving as the control end of the XOR judgment branch, and receiving the reverse signal of the first XOR signal; the drain of the fourth NMOS tube MN5 is connected to the drain of the fourth PMOS tube MP5, serving as the output end of the XOR judgment branch.

[0089] Specifically, when the first XOR signal When , it means that one of A or B is high level and the other is low level. At this time, the carry output signal C 0 Equal to the carry input signal C i .

[0090] When the first XOR signal When , MP4 and MN5 are cut off.

[0091] If C i =0, MN4 is on, MP5 is off, C i =0 is transmitted to the output end of the carry circuit through MN4, causing the carry circuit to output a low level, i.e., C 0 =C i =0.

[0092] If C i =1, MN4 is off, MP5 is on, C i =1 is transmitted to the output end of the carry circuit through MP5, making the carry circuit output a high level, i.e. C 0 =C i =1.

[0093] Specifically, when the first XOR signal When A or B are both high level, or both are low level, at this time, the carry output signal C 0 Equal to A or B.

[0094] When the first XOR signal When , MP5 and MN4 are cut off.

[0095] If B=0, MP4 is turned off and MN5 is turned on, B=0 is transmitted to the output end of the carry circuit through MN5, causing the carry circuit to output a low level, i.e., C 0 =B=0.

[0096] If B=1, MP4 is turned on and MN5 is turned off, B=1 is transmitted to the output end of the carry circuit through MP4, causing the carry circuit to output a high level, i.e. C 0 =B=1.

[0097] In addition, in this embodiment, the carry circuit further includes: a third reverse circuit, which is used to input the first XOR signal and output the reverse signal of the first XOR signal. The structure of the third reverse circuit is similar to that of the first reverse circuit, and will not be described in detail here.

[0098] The expressions "first", "second", "the first" or "the second" used in various embodiments of the present application may modify various components regardless of order and / or importance, but these expressions do not limit the corresponding components. The above expressions are only used to distinguish an element from other elements.

[0099] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A full adder, characterized in that: include: A first XOR circuit, a second XOR circuit, and a carry circuit; The first XOR circuit is used to access the first sum signal and the second sum signal, and the first XOR circuit includes two groups of comparison circuits; The comparison circuit comprises a first MOS tube and a second MOS tube, wherein the gate of the first MOS tube is connected to the source of the second MOS tube and serves as a first input terminal of the comparison circuit, the source of the first MOS tube is connected to the gate of the second MOS tube and serves as a second input terminal of the comparison circuit, and the drain of the first MOS tube is connected to the drain of the second MOS tube and serves as an output terminal of the comparison circuit; The first summation signal and the second summation signal are respectively connected to two input terminals of a first group of comparison circuits, and the first group of comparison circuits outputs a high level when the first summation signal is not equal to the second summation signal; The inverse signal of the first sum signal and the second sum signal are respectively connected to two input terminals of the second comparison circuit, and the second comparison circuit outputs a low level when the inverse signal of the first sum signal is not equal to the second sum signal; The output ends of the two groups of comparison circuits are connected and serve as the output ends of the first XOR circuit to output a first XOR signal; The second XOR circuit is used to perform XOR calculation on the first XOR signal and the carry input signal, and output a sum signal; The carry circuit is used for performing calculation according to one of the first sum signal and the second sum signal, a carry input signal and the first XOR signal, and outputting a carry output signal.

2. The full adder according to claim 1, characterized in that The MOS tube in the first group of comparison circuits is a PMOS tube. When the first summation signal is not equal to the second summation signal, the PMOS tube is controlled to be turned on by a low-level signal in the first summation signal and the second summation signal, and the output of the first group of comparison circuits is pulled up to a high level by a high-level signal in the first summation signal and the second summation signal.

3. The full adder according to claim 1, characterized in that The MOS tube in the comparison circuit of the second group is an NMOS tube. When the inverse signal of the first summation signal is not equal to the second summation signal, the NMOS tube is controlled to be turned on by the inverse signal of the first summation signal and the high level signal in the second summation signal, and the output of the comparison circuit of the second group is pulled down to a low level by the inverse signal of the first summation signal and the low level signal in the second summation signal.

4. The full adder according to claim 1, characterized in that: The full adder further includes: a first inverting circuit, wherein the first inverting circuit is used to input a first sum signal and output an inverted signal of the first sum signal.

5. The full adder according to claim 1, characterized in that: The structure of the second XOR circuit is the same as that of the first XOR circuit.

6. The full adder according to claim 5, characterized in that: The full adder further includes: a second inverting circuit, the second inverting circuit being used for inputting a carry input signal and outputting an inverted signal of the carry input signal.

7. The full adder according to claim 1, characterized in that: The carry circuit comprises: an XOR judgment branch and an XOR judgment branch; The control end of the XOR judgment branch is connected to the inverse signal of the first XOR signal, the first input end is connected to one of the first sum signal and the second sum signal, and the second input end is connected to the carry input signal; The control end of the XOR judgment branch is connected to the first XOR signal, the first input end is connected to the carry input signal, and the second input end is connected to one of the first sum signal and the second sum signal.

8. The full adder according to claim 7, characterized in that: The carry circuit further includes: a third inverting circuit, configured to input the first XOR signal and output an inverted signal of the first XOR signal.

9. The full adder according to claim 7, characterized in that: The XOR judgment branch includes: a third NMOS tube and a third PMOS tube; The source of the third NMOS tube is connected to one of the first sum signal and the second sum signal, and the source of the third PMOS tube is connected to the carry input signal; The gate of the third NMOS tube is connected to the gate of the third PMOS tube, serving as the control end of the XOR judgment branch, and receiving the first XOR signal; The drain of the third NMOS tube is connected to the drain of the third PMOS tube, serving as the output end of the XOR judgment branch.

10. The full adder according to claim 7, characterized in that: The same or equal judgment branch includes: a fourth NMOS tube and a fourth PMOS tube; The source of the fourth NMOS tube is connected to the carry input signal, and the source of the fourth PMOS tube is connected to one of the first sum signal and the second sum signal; The gate of the fourth NMOS tube is connected to the gate of the fourth PMOS tube, serving as the control end of the XOR judgment branch, and receiving the reverse signal of the first XOR signal; The drain of the fourth NMOS tube is connected to the drain of the fourth PMOS tube, serving as the output end of the XEN_OR judgment branch.