CN116661731A - Full adder, chip and computing device - Google Patents
Full adder, chip and computing device Download PDFInfo
- Publication number
- CN116661731A CN116661731A CN202310539075.6A CN202310539075A CN116661731A CN 116661731 A CN116661731 A CN 116661731A CN 202310539075 A CN202310539075 A CN 202310539075A CN 116661731 A CN116661731 A CN 116661731A
- Authority
- CN
- China
- Prior art keywords
- signal
- switch transistor
- addend
- drain
- source
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/38—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
- G06F7/48—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
- G06F7/50—Adding; Subtracting
- G06F7/501—Half or full adders, i.e. basic adder cells for one denomination
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F7/00—Methods or arrangements for processing data by operating upon the order or content of the data handled
- G06F7/38—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
- G06F7/48—Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
- G06F7/50—Adding; Subtracting
- G06F7/501—Half or full adders, i.e. basic adder cells for one denomination
- G06F7/503—Half or full adders, i.e. basic adder cells for one denomination using carry switching, i.e. the incoming carry being connected directly, or only via an inverter, to the carry output under control of a carry propagate signal
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Computational Mathematics (AREA)
- Mathematical Analysis (AREA)
- Pure & Applied Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computing Systems (AREA)
- Mathematical Optimization (AREA)
- General Engineering & Computer Science (AREA)
- Manipulation Of Pulses (AREA)
- Logic Circuits (AREA)
Abstract
本发明涉及集成电路领域,提供一种全加器、芯片及计算装置,其中全加器包括:反相器,用于对第一加数端输入的第一加数信号生成反相信号并提供给第一节点;异或电路用于基于反相信号,对第一加数信号和第二加数端输入的第二加数信号进行异或计算得到进位传播信号并提供给第二节点;同或电路用于在第一加数信号为高电平且第二加数信号为低电平的情况下,若进位输入信号为低电平,在同或信号和进位输入信号的控制下利用电源信号将和位输出信号上拉,若进位输入信号为高电平,将同或信号作为和位输出信号。可以避免在第一加数信号为高电平且第二加数信号为低电平时,因第二节点处的上拉延迟导致的和位输出信号的输出性能降低的问题,提升全加器性能。
The present invention relates to the field of integrated circuits, and provides a full adder, a chip and a computing device, wherein the full adder includes: an inverter, which is used to generate an inverted signal for the first addend signal input at the first addend end and provide For the first node; the exclusive OR circuit is used to perform exclusive OR calculation on the first addend signal and the second addend signal input from the second addend end based on the inverted signal to obtain a carry propagation signal and provide it to the second node; The OR circuit is used to use the power supply under the control of the NOR signal and the carry input signal if the carry input signal is low when the first addend signal is at high level and the second addend signal is at low level. The signal will pull up the sum bit output signal, if the carry input signal is high level, the same OR signal will be used as the sum bit output signal. It can avoid the problem of the output performance reduction of the sum bit output signal caused by the pull-up delay at the second node when the first addend signal is high level and the second addend signal is low level, and improve the performance of the full adder .
Description
技术领域technical field
本发明涉及集成电路技术领域,尤其涉及一种全加器、芯片及计算装置。The invention relates to the technical field of integrated circuits, in particular to a full adder, a chip and a computing device.
背景技术Background technique
全加器是数字电路的一个基本计算单元,主要用于实现加法、乘法计算等,是计算电路中的重要组成部分,降低功耗和提高性能是全加器设计重要任务。因此,如何实现全加器的性能提高是目前业界亟待解决的重要课题。The full adder is a basic calculation unit of digital circuits, mainly used to realize addition and multiplication calculations, and is an important part of the calculation circuit. Reducing power consumption and improving performance are important tasks in the design of full adders. Therefore, how to improve the performance of the full adder is an important issue to be solved urgently in the industry.
发明内容Contents of the invention
本发明提供一种全加器、芯片及计算装置,用以解决现有技术中如何实现全加器的性能提高的问题,实现全加器性能的提升。The invention provides a full adder, a chip and a computing device, which are used to solve the problem of how to improve the performance of the full adder in the prior art and realize the improvement of the performance of the full adder.
本发明提供一种全加器,包括:The present invention provides a full adder, comprising:
反相器,分别与第一加数端和第一节点相连,用于对所述第一加数端输入的第一加数信号生成反相信号并提供给所述第一节点;an inverter, respectively connected to the first addend terminal and the first node, and used to generate an inverted signal for the first addend signal input to the first addend terminal and provide it to the first node;
异或电路,分别与所述第一加数端、第二加数端、所述第一节点和第二节点相连,用于基于所述反相信号,对所述第一加数信号和所述第二加数端输入的第二加数信号进行异或计算得到进位传播信号并提供给所述第二节点;An exclusive OR circuit, connected to the first addend end, the second addend end, the first node, and the second node, and used to compare the first addend signal and the second addend signal based on the inverted signal performing XOR calculation on the second addend signal input from the second addend end to obtain a carry propagation signal and providing it to the second node;
同或电路,分别与所述第一加数端、所述第二加数端、所述第一节点和第三节点相连,用于基于所述反相信号,对所述第一加数信号和所述第二加数信号进行同或计算得到同或信号并提供给所述第三节点;A NOR circuit, respectively connected to the first addend terminal, the second addend terminal, the first node, and the third node, and used to convert the first addend signal based on the inverted signal performing an exclusive OR calculation with the second addend signal to obtain an exclusive OR signal and providing it to the third node;
求和电路,分别与所述第二节点、所述第三节点、进位输入端、电源端以及和位输出端相连,用于基于所述进位传播信号、所述进位输入端提供的进位输入信号、所述同或信号以及所述电源端提供的电源信号生成所述和位输出端的和位输出信号;其中,在所述第一加数信号为高电平且所述第二加数信号为低电平的情况下,若所述进位输入信号为低电平,在所述同或信号和所述进位输入信号的控制下利用所述电源信号将所述和位输出信号上拉,若所述进位输入信号为高电平,将所述同或信号作为所述和位输出信号。a summation circuit, connected to the second node, the third node, the carry input terminal, the power supply terminal and the sum output terminal respectively, and is used to provide the carry input signal based on the carry propagation signal and the carry input terminal , the NOR signal and the power signal provided by the power supply end generate the sum bit output signal of the sum bit output port; wherein, when the first addend signal is high level and the second addend signal is In the case of low level, if the carry input signal is low level, the power supply signal is used to pull up the sum output signal under the control of the NOR signal and the carry input signal. The carry input signal is at a high level, and the NOR signal is used as the sum bit output signal.
根据本发明提供的一种全加器,所述异或电路包括:第一开关晶体管、第二开关晶体管、第三开关晶体管、第四开关晶体管和第五开关晶体管;所述第一开关晶体管和所述第二开关晶体管为P型开关晶体管;所述第三开关晶体管、所述第四开关晶体管和所述第五开关晶体管为N型开关晶体管;According to a full adder provided by the present invention, the XOR circuit includes: a first switch transistor, a second switch transistor, a third switch transistor, a fourth switch transistor and a fifth switch transistor; the first switch transistor and The second switch transistor is a P-type switch transistor; the third switch transistor, the fourth switch transistor, and the fifth switch transistor are N-type switch transistors;
所述第一开关晶体管的栅极、所述第二开关晶体管的第一源极/漏极、所述第五开关晶体管的栅极分别与所述第一加数端相连;The gate of the first switch transistor, the first source/drain of the second switch transistor, and the gate of the fifth switch transistor are respectively connected to the first adder terminal;
所述第二开关晶体管的栅极、所述第一开关晶体管的第一源极/漏极、所述第三开关晶体管的第一源极/漏极以及所述第四开关晶体管的栅极分别与所述第二加数端相连;The gate of the second switching transistor, the first source/drain of the first switching transistor, the first source/drain of the third switching transistor, and the gate of the fourth switching transistor are respectively connected to the second addend;
所述第一开关晶体管的第二源极/漏极、所述第二开关晶体管的第二源极/漏极、所述第三开关晶体管的第二源极/漏极以及所述第四开关晶体管的第一源极/漏极分别与所述第二节点相连;the second source/drain of the first switch transistor, the second source/drain of the second switch transistor, the second source/drain of the third switch transistor, and the fourth switch The first source/drain of the transistor is respectively connected to the second node;
所述第四开关晶体管的第二源极/漏极与所述第五开关晶体管的第一源极/漏极相连;The second source/drain of the fourth switch transistor is connected to the first source/drain of the fifth switch transistor;
所述第五开关晶体管的第二源极/漏极与接地端相连;The second source/drain of the fifth switch transistor is connected to the ground terminal;
所述第三开关晶体管的栅极与所述第一节点相连。The gate of the third switching transistor is connected to the first node.
根据本发明提供的一种全加器,所述求和电路包括:第一传输门、第六开关晶体管、第七开关晶体管和第八开关晶体管;其中,所述第六开关晶体管和第七开关晶体管为P型开关晶体管;所述第八开关晶体管为N型开关晶体管;According to a full adder provided by the present invention, the summation circuit includes: a first transmission gate, a sixth switch transistor, a seventh switch transistor, and an eighth switch transistor; wherein, the sixth switch transistor and the seventh switch transistor The transistor is a P-type switching transistor; the eighth switching transistor is an N-type switching transistor;
所述第六开关晶体管的栅极、第一传输门的输入端以及所述第八开关晶体管的栅极分别与所述进位输入端相连;The gate of the sixth switch transistor, the input terminal of the first transmission gate, and the gate of the eighth switch transistor are respectively connected to the carry input terminal;
所述第六开关晶体管的第一源极/漏极与所述电源端相连,所述第六开关晶体管的第二源极/漏极与所述第七开关晶体管的第一源极/漏极相连;The first source/drain of the sixth switch transistor is connected to the power supply terminal, the second source/drain of the sixth switch transistor is connected to the first source/drain of the seventh switch transistor connected;
所述第七开关晶体管的第二源极/漏极、所述第一传输门的输出端以及所述第八开关晶体管的第一源极/漏极分别与所述和位输出端相连;The second source/drain of the seventh switch transistor, the output terminal of the first transmission gate, and the first source/drain of the eighth switch transistor are respectively connected to the sum bit output terminal;
所述第一传输门的第一控制端与所述第二节点相连;The first control terminal of the first transmission gate is connected to the second node;
所述第一传输门的第二控制端、所述第七开关晶体管的栅极以及所述第八开关晶体管的第二源极/漏极分别与所述第三节点相连;The second control terminal of the first transmission gate, the gate of the seventh switch transistor, and the second source/drain of the eighth switch transistor are respectively connected to the third node;
在所述第一加数信号为高电平且所述第二加数信号为低电平的情况下,若所述进位输入信号为低电平,在所述同或信号和所述进位输入信号的控制下所述第六开关晶体管和所述第七开关晶体管导通所述电源端与所述和位输出端,以利用所述电源信号将所述和位输出信号上拉;When the first addend signal is at high level and the second addend signal is at low level, if the carry input signal is at low level, the NOR signal and the carry input Under the control of the signal, the sixth switch transistor and the seventh switch transistor conduct the power supply terminal and the sum bit output terminal, so as to use the power supply signal to pull up the sum bit output signal;
在所述第一加数信号为高电平且所述第二加数信号为低电平的情况下,若所述进位输入信号为高电平,在所述进位输入信号的控制下所述第八开关晶体管导通以将所述同或信号作为所述和位输出信号。When the first addend signal is at high level and the second addend signal is at low level, if the carry-in signal is at high-level, under the control of the carry-in signal, the The eighth switch transistor is turned on to use the exclusive OR signal as the sum bit output signal.
根据本发明提供的一种全加器,所述同或电路包括:第九开关晶体管、第十开关晶体管、第十一开关晶体管、第十二开关晶体管和第十三开关晶体管;其中,所述第九开关晶体管、第十开关晶体管和第十一开关晶体管为P型开关晶体管;所述第十二开关晶体管和第十三开关晶体管为N型开关晶体管;According to a full adder provided by the present invention, the NOR circuit includes: a ninth switch transistor, a tenth switch transistor, an eleventh switch transistor, a twelfth switch transistor, and a thirteenth switch transistor; wherein, the The ninth switch transistor, the tenth switch transistor and the eleventh switch transistor are P-type switch transistors; the twelfth switch transistor and the thirteenth switch transistor are N-type switch transistors;
所述第九开关晶体管的第一源极/漏极、所述第十开关晶体管的栅极、所述第十二开关晶体管的第一源极/漏极以及所述第十三开关晶体管的栅极分别与所述第二加数端相连;The first source/drain of the ninth switch transistor, the gate of the tenth switch transistor, the first source/drain of the twelfth switch transistor, and the gate of the thirteenth switch transistor The poles are respectively connected to the second addend;
所述第十一开关晶体管的栅极、所述第十二开关晶体管的栅极以及所述第十三开关晶体管的第一源极/漏极分别与所述第一加数端相连;The gate of the eleventh switch transistor, the gate of the twelfth switch transistor, and the first source/drain of the thirteenth switch transistor are respectively connected to the first addend terminal;
所述第九开关晶体管的第二源极/漏极、所述第十开关晶体管的第一源极/漏极、所述第十二开关晶体管的第二源极/漏极以及所述第十三开关晶体管的第二源极/漏极分别与所述第三节点相连;The second source/drain of the ninth switch transistor, the first source/drain of the tenth switch transistor, the second source/drain of the twelfth switch transistor, and the tenth switch transistor the second source/drain of the three switching transistors are respectively connected to the third node;
所述第九开关晶体管的栅极与所述第一节点相连;The gate of the ninth switch transistor is connected to the first node;
所述第十开关晶体管的第二源极/漏极与所述第十一开关晶体管的第一源极/漏极相连;The second source/drain of the tenth switch transistor is connected to the first source/drain of the eleventh switch transistor;
所述第十一开关晶体管的第二源极/漏极与所述电源端相连。The second source/drain of the eleventh switch transistor is connected to the power supply terminal.
根据本发明提供的一种全加器,所述反相器包括:第十四开关晶体管和第十五开关晶体管;其中,所述第十四开关晶体管为P型开关晶体管;所述第十五开关晶体管为N型开关晶体管;According to a full adder provided by the present invention, the inverter includes: a fourteenth switch transistor and a fifteenth switch transistor; wherein, the fourteenth switch transistor is a P-type switch transistor; the fifteenth switch transistor The switch transistor is an N-type switch transistor;
所述第十四开关晶体管的栅极以及所述第十五开关晶体管的栅极分别与所述第一加数端相连;The gate of the fourteenth switch transistor and the gate of the fifteenth switch transistor are respectively connected to the first adder terminal;
所述第十四开关晶体管的第一源极/漏极与所述电源端相连;The first source/drain of the fourteenth switch transistor is connected to the power supply terminal;
所述第十四开关晶体管的第二源极/漏极以及所述第十五开关晶体管的第一源极/漏极分别与所述第一节点相连;The second source/drain of the fourteenth switch transistor and the first source/drain of the fifteenth switch transistor are respectively connected to the first node;
所述第十五开关晶体管的第二源极/漏极与接地端相连。The second source/drain of the fifteenth switch transistor is connected to the ground terminal.
根据本发明提供的一种全加器,还包括:进位电路;A full adder provided according to the present invention also includes: a carry circuit;
所述进位电路,分别与所述第二节点、所述第三节点、所述进位输入端、所述第二加数端以及进位输出端相连,用于基于所述进位传播信号、所述同或信号、所述第二加数信号以及所述进位输入信号,生成所述进位输出端的进位输出信号。The carry circuit is respectively connected to the second node, the third node, the carry input terminal, the second addend terminal and the carry output terminal, and is used for propagating the signal based on the carry, the same OR signal, the second addend signal and the carry-in signal to generate a carry-out signal at the carry-out terminal.
根据本发明提供的一种全加器,所述进位电路包括:第二传输门和第三传输门;According to a full adder provided by the present invention, the carry circuit includes: a second transmission gate and a third transmission gate;
所述第二传输门的第一控制端以及所述第三传输门的第二控制端分别与所述第二节点相连;The first control terminal of the second transmission gate and the second control terminal of the third transmission gate are respectively connected to the second node;
所述第二传输门的第二控制端以及所述第三传输门的第一控制端分别与所述第三节点相连;The second control terminal of the second transmission gate and the first control terminal of the third transmission gate are respectively connected to the third node;
所述第二传输门的输入端与所述第二加数端相连;The input terminal of the second transmission gate is connected to the second addend terminal;
所述第三传输门的输入端与所述进位输入端相连;The input terminal of the third transmission gate is connected to the carry input terminal;
所述第二传输门的输出端以及所述第三传输门的输出端分别与所述进位输出端相连。The output end of the second transmission gate and the output end of the third transmission gate are respectively connected to the carry output end.
根据本发明提供的一种全加器,所述P型开关晶体管为PMOS;所述N型开关晶体管为NMOS。According to a full adder provided by the present invention, the P-type switch transistor is PMOS; the N-type switch transistor is NMOS.
本发明还提供一种芯片,包括如上述任一种所述的全加器。The present invention also provides a chip, including the full adder as described above.
本发明还提供一种计算装置,包括如上述任一种所述的芯片。The present invention also provides a computing device, including any one of the chips described above.
本发明提供的全加器,利用反相器对第一加数信号生成反相信号并提供给第一节点,异或电路基于反相信号对第一加数信号和第二加数信号进行异或计算得到进位传播信号并提供给第二节点,同或电路基于反相信号对第一加数信号和第二加数信号进行同或计算得到同或信号并提供给第三节点,在第一加数信号为高电平且第二加数信号为低电平的情况下,若进位输入信号为低电平,求和电路可以在同或信号和进位输入信号的控制下利用电源信号将和位输出信号上拉,若进位输入信号为高电平,求和电路将同或信号作为和位输出信号,从而可以避免在第一加数信号为高电平且第二加数信号为低电平的情况下,因第二节点处的上拉延迟导致的和位输出信号的输出性能降低的问题,从而大大提升了全加器的性能。The full adder provided by the present invention uses an inverter to generate an inverted signal for the first addend signal and provides it to the first node, and the exclusive OR circuit performs exclusive operation on the first addend signal and the second addend signal based on the inverted signal The OR is calculated to obtain the carry propagation signal and provided to the second node, and the OR circuit performs the OR to the first addend signal and the second addend signal based on the inverted signal to obtain the OR signal and provides it to the third node. When the addend signal is at high level and the second addend signal is at low level, if the carry input signal is at low level, the summation circuit can use the power supply signal to combine the summation under the control of the NOR signal and the carry input signal The bit output signal is pulled up. If the carry input signal is high level, the summation circuit will use the OR signal as the sum bit output signal, so as to avoid the situation that the first addend signal is high level and the second addend signal is low level. In the case of flatness, the output performance of the sum bit output signal is reduced due to the pull-up delay at the second node, thereby greatly improving the performance of the full adder.
附图说明Description of drawings
为了更清楚地说明本发明或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the present invention or the technical solutions in the prior art, the accompanying drawings that need to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings in the following description are the For some embodiments of the present invention, those of ordinary skill in the art can also obtain other drawings based on these drawings on the premise of not paying creative efforts.
图1是本发明提供的全加器的结构示意图之一;Fig. 1 is one of structural representations of full adder provided by the present invention;
图2是本发明提供的全加器的结构示意图之二。Fig. 2 is the second structural diagram of the full adder provided by the present invention.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention , but not all examples. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
全加器的逻辑表达式如下:The logical expression of the full adder is as follows:
p'=p=A⊙B (2)p'=p=A⊙B (2)
Cout= p'·B+ p·Cin (4)Cout= p'·B+ p·Cin (4)
其中,表示异或计算,⊙表示同或计算,A和B表示输入的两个加数信号,Cin表示进位输入信号,p表示异或计算的结果,p'表示同或计算的结果,Sum表示和位输出信号,Cout表示进位输出信号。in, Indicates XOR calculation, ⊙ indicates XOR calculation, A and B indicate two input addend signals, Cin indicates carry input signal, p indicates XOR calculation result, p' indicates XOR calculation result, Sum indicates sum bit Output signal, Cout represents the carry output signal.
以传输管逻辑为基础的全加器可以带来面积和功耗方面的优势,因而在低功耗全加器中占据主导地位,但是,在许多全加器的设计仍存在内部节点非全摆幅输出、噪声容限低、稳定性差,在最小功耗条件下延迟过大等问题。通常情况下会在全加器的设计中加入静态反相器来优化内部节点非全摆幅的问题,但是,反相器的引入导致内部节点延迟过大。在众多低能耗的全加器中,16晶体管(Transistor,T)和20T的全加器具有较低功耗,然而,在16T的全加器设计中,异或计算的结果的输出节点和同或计算的结果的输出节点在某些状态下存在阈值损失,造成全加器的性能显著降低,且在低压下不能正常工作。在20T的全加器设计中由A经过反相器控制的NMOS/PMOS进行补偿解决阈值损失的问题,但在A=1,B=0,Cin=0时存在竞争问题,也导致20T的全加器延迟较高。因此,全加器的性能需要提高。The full adder based on the transmission tube logic can bring advantages in terms of area and power consumption, so it occupies a dominant position in the low power full adder, however, there are still internal node non-full swings in many full adder designs Amplitude output, low noise margin, poor stability, excessive delay under the condition of minimum power consumption, etc. Usually, a static inverter is added to the design of the full adder to optimize the non-full swing of the internal node. However, the introduction of the inverter causes the delay of the internal node to be too large. Among many low-energy full adders, 16 transistors (Transistor, T) and 20T full adders have lower power consumption. However, in the 16T full adder design, the output node of the XOR calculation result and the same Or the output node of the calculated result has a threshold loss in some states, causing the performance of the full adder to be significantly reduced, and it cannot work normally under low voltage. In the 20T full adder design, A is compensated by the NMOS/PMOS controlled by the inverter to solve the problem of threshold loss, but there is a competition problem when A=1, B=0, and Cin=0, which also leads to the 20T full adder Adder delay is high. Therefore, the performance of the full adder needs to be improved.
下面结合图1至图2描述本发明的一种全加器。A full adder of the present invention will be described below with reference to FIG. 1 to FIG. 2 .
本实施例提供一种全加器,如图1所示,包括:This embodiment provides a full adder, as shown in Figure 1, including:
反相器110,分别与第一加数端和第一节点相连,用于对所述第一加数端输入的第一加数信号生成反相信号并提供给所述第一节点;The inverter 110 is respectively connected to the first addend terminal and the first node, and is used to generate an inverted signal for the first addend signal input to the first addend terminal and provide it to the first node;
异或电路120,分别与所述第一加数端、第二加数端、所述第一节点和第二节点相连,用于基于所述反相信号,对所述第一加数信号和所述第二加数端输入的第二加数信号进行异或计算得到进位传播信号并提供给所述第二节点;Exclusive OR circuit 120, connected to the first addend end, the second addend end, the first node and the second node respectively, and used to compare the first addend signal and the first addend signal based on the inverted signal Exclusive OR calculation is performed on the second addend signal input from the second addend end to obtain a carry propagation signal and provided to the second node;
同或电路130,分别与所述第一加数端、所述第二加数端、所述第一节点和第三节点相连,用于基于所述反相信号,对所述第一加数信号和所述第二加数信号进行同或计算得到同或信号并提供给所述第三节点;NOR circuit 130, connected to the first addend end, the second addend end, the first node and the third node respectively, and used to, based on the inverted signal, performing an exclusive OR calculation on the signal and the second addend signal to obtain an exclusive OR signal and providing it to the third node;
求和电路140,分别与所述第二节点、所述第三节点、进位输入端、电源端以及和位输出端相连,用于基于所述进位传播信号、所述进位输入端提供的进位输入信号、所述同或信号以及所述电源端提供的电源信号生成所述和位输出端的和位输出信号;其中,在所述第一加数信号为高电平且所述第二加数信号为低电平的情况下,若所述进位输入信号为低电平,在所述同或信号和所述进位输入信号的控制下利用所述电源信号将所述和位输出信号上拉,若所述进位输入信号为高电平,将所述同或信号作为所述和位输出信号。A summation circuit 140 is connected to the second node, the third node, the carry input terminal, the power supply terminal and the sum output terminal respectively, and is used for carrying in based on the carry propagation signal and the carry input provided by the carry input terminal. signal, the NOR signal, and the power supply signal provided by the power supply end generate the sum bit output signal of the sum bit output port; wherein, when the first addend signal is high level and the second addend signal In the case of low level, if the carry input signal is low level, the power supply signal is used to pull up the sum output signal under the control of the NOR signal and the carry input signal, if The carry input signal is at a high level, and the NOR signal is used as the sum bit output signal.
全加器需要输入的两个加数信号包括第一加数信号A和第二加数信号B。其中,第一加数端用于输入第一加数信号A,第二加数端用于输入第二加数信号B。The two addend signals that the full adder needs to input include a first addend signal A and a second addend signal B. Wherein, the first addend terminal is used for inputting the first addend signal A, and the second addend terminal is used for inputting the second addend signal B.
反相器110可以生成第一加数信号A的反相信号F并提供给第一节点。异或电路120可以基于反相信号F,对第一加数信号A和第二加数信号B进行异或计算得到异或计算的结果p,作为进位传播信号,因此p也表示进位传播信号,将进位传播信号p提供给第二节点。同或电路130可以基于反相信号F,对第一加数信号A和第二加数信号B进行同或计算得到的同或计算的结果p',作为同或信号,因此,p'也表示同或信号,将同或信号p'提供给第三节点。求和电路140可以基于进位传播信号p、进位输入端提供的进位输入信号Cin、同或信号p'以及电源端提供的电源信号Vdd生成和位输出端的和位输出信号Sun。The inverter 110 may generate an inverted signal F of the first add signal A and provide it to the first node. The XOR circuit 120 can perform XOR calculation on the first addend signal A and the second addend signal B based on the inverted signal F to obtain the result p of the XOR calculation as the carry propagation signal, so p also represents the carry propagation signal, The carry propagate signal p is provided to the second node. The exclusive OR circuit 130 can perform the exclusive OR calculation on the first addend signal A and the second addend signal B based on the inverted signal F, and obtain the exclusive OR calculation result p' as the exclusive OR signal, therefore, p' also represents exclusive OR signal, and provide the exclusive OR signal p' to the third node. The summation circuit 140 can generate a sum output signal Sun at the sum output terminal based on the carry propagation signal p, the carry input signal Cin provided by the carry input terminal, the exclusive-OR signal p′ and the power signal Vdd provided by the power supply terminal.
第一加数信号可以为高电平,也可以为低电平,这里,高电平为1,低电平为0,即A=0或者即A=1,第二加数信号可以为高电平,即B=1,也可以为低电平,即B=0。基于此,输入全加器的第一加数信号和第二加数信号可以包括以下几种情况:The first addend signal can be high level, also can be low level, here, high level is 1, low level is 0, namely A=0 or promptly A=1, the second addend signal can be high The level, that is, B=1, can also be a low level, that is, B=0. Based on this, the first addend signal and the second addend signal input to the full adder can include the following situations:
A=1,B=1;A=1, B=1;
A=1,B=0;A=1, B=0;
A=0,B=1;A=0, B=1;
A=0,B=0。A=0, B=0.
相应的,异或电路120的进位传播信号p包括:Correspondingly, the carry propagation signal p of the XOR circuit 120 includes:
当A=1,B=1时,p=0;When A=1, B=1, p=0;
当A=1,B=0时,p=1;When A=1, B=0, p=1;
当A=0,B=1时,p=1;When A=0, B=1, p=1;
当A=0,B=0时,p=0。When A=0, B=0, p=0.
同或电路130的同或信号包括:The same-or signal of the same-or circuit 130 includes:
当A=1,B=1时,p'=1;When A=1, B=1, p'=1;
当A=1,B=0时,p'=0;When A=1, B=0, p'=0;
当A=0,B=1时,p'=0;When A=0, B=1, p'=0;
当A=0,B=0时,p'=1。When A=0, B=0, p'=1.
在第一加数信号为高电平且所述第二加数信号为低电平的情况下,即A=1,B=0的情况下,第二节点的上拉存在延迟,导致求和电路140的和位输出信号的输出性能降低。为解决该问题,本实施例中,当A=1,B=0,Cin=0时,并非利用第二节点处的进位传播信号p来实现全加器的和位输出信号的输出,而是利用所述同或信号p'和所述进位输入信号Cin来实现全加器的和位输出信号的输出,在所述同或信号p'和所述进位输入信号Cin的控制下,利用所述电源信号Vdd将所述和位输出信号Sum上拉,从而使得和位输出信号Sum为高电平,即Sum=1。当A=1,B=0,Cin=1时,也不利用第二节点处的进位传播信号p来实现全加器的和位输出信号Sum的输出,而是利用所述同或信号p'来实现全加器的和位输出信号Sum的输出,将所述同或信号p'作为所述和位输出信号Sum。如此,可以避免因第二节点处的上拉延迟导致的和位输出信号的输出性能降低的问题。When the first addend signal is at high level and the second addend signal is at low level, that is, in the case of A=1 and B=0, there is a delay in the pull-up of the second node, resulting in summation The output performance of the sum bit output signal of circuit 140 is degraded. In order to solve this problem, in the present embodiment, when A=1, B=0, Cin=0, instead of utilizing the carry propagation signal p at the second node to realize the output of the sum bit output signal of the full adder, but Utilize the NOR signal p' and the carry input signal Cin to realize the output of the sum output signal of the full adder, under the control of the NOR signal p' and the carry input signal Cin, use the The power signal Vdd pulls up the sum bit output signal Sum, so that the sum bit output signal Sum is at a high level, ie Sum=1. When A=1, B=0, and Cin=1, the carry propagation signal p at the second node is not used to realize the output of the sum bit output signal Sum of the full adder, but the same OR signal p' is utilized To realize the output of the sum bit output signal Sum of the full adder, the exclusive OR signal p' is used as the sum bit output signal Sum. In this way, the problem of degraded output performance of the sum bit output signal due to the pull-up delay at the second node can be avoided.
基于此,求和电路140的和位输出信号Sum包括:Based on this, the sum bit output signal Sum of the summation circuit 140 includes:
当p=1(p'=0),Cin=1时,Sum=0;When p=1 (p'=0), Cin=1, Sum=0;
当p=1(p'=0),Cin=0时,Sum=1;When p=1 (p'=0), Cin=0, Sum=1;
当p=0(p'=1),Cin=1时,Sum=1;When p=0 (p'=1), Cin=1, Sum=1;
当p=0(p'=1),Cin=0时,Sum=0。When p=0 (p'=1), Cin=0, Sum=0.
本实施例中,利用反相器110对第一加数信号生成反相信号并提供给所述第一节点,异或电路120基于反相信号对所述第一加数信号和第二加数信号进行异或计算得到进位传播信号并提供给所述第二节点,同或电路130基于所述反相信号对所述第一加数信号和所述第二加数信号进行同或计算得到同或信号并提供给所述第三节点,在所述第一加数信号为高电平且所述第二加数信号为低电平的情况下,若所述进位输入信号为低电平,求和电路140可以在所述同或信号和所述进位输入信号的控制下利用所述电源信号将所述和位输出信号上拉,若所述进位输入信号为高电平,求和电路140将所述同或信号作为所述和位输出信号,从而可以避免在所述第一加数信号为高电平且所述第二加数信号为低电平的情况下,因第二节点处的上拉延迟导致的和位输出信号的输出性能降低的问题,从而大大提升了全加器的性能。In this embodiment, the inverter 110 is used to generate an inverted signal for the first addend signal and provide it to the first node, and the XOR circuit 120 performs an inversion of the first addend signal and the second addend signal based on the inverted signal. The signals are XOR-calculated to obtain a carry propagation signal and provided to the second node, and the NOR circuit 130 performs XOR calculation on the first addend signal and the second addend signal based on the inverted signal to obtain the same OR signal and provide it to the third node, when the first addend signal is high level and the second addend signal is low level, if the carry input signal is low level, The summation circuit 140 can use the power supply signal to pull up the sum bit output signal under the control of the NOR signal and the carry input signal. If the carry input signal is high level, the summation circuit 140 The NOR signal is used as the sum bit output signal, so that when the first addend signal is high level and the second addend signal is low level, due to the The problem that the output performance of the sum-bit output signal is reduced due to the pull-up delay caused by the pull-up delay, thus greatly improving the performance of the full adder.
进一步的,如图1所示,全加器还可以包括:进位电路150;Further, as shown in FIG. 1, the full adder may further include: a carry circuit 150;
所述进位电路150,分别与所述第二节点、所述第三节点、所述进位输入端、所述第二加数端以及进位输出端相连,用于基于所述进位传播信号、所述同或信号、所述第二加数信号以及所述进位输入信号,生成所述进位输出端的进位输出信号。The carry circuit 150 is respectively connected to the second node, the third node, the carry input terminal, the second addend terminal and the carry output terminal, and is used for propagating the signal based on the carry, the The NOR signal, the second addend signal and the carry-in signal are used to generate a carry-out signal at the carry-out terminal.
进位电路150的进位输出信号Cout包括:The carry output signal Cout of the carry circuit 150 includes:
当p=1(p'=0),Cin=1时,Cout=1;When p=1 (p'=0), Cin=1, Cout=1;
当p=1(p'=0),Cin=0时,Cout=0;When p=1 (p'=0), Cin=0, Cout=0;
当p=0(p'=1),B=1时,Cout=1;When p=0 (p'=1), B=1, Cout=1;
当p=0(p'=1),B=0时,Cout=0。When p=0 (p'=1), B=0, Cout=0.
本实施例中,进位电路150不受延迟问题的影响,可以直接利用进位传播信号p、所述同或信号p'、所述第二加数信号B以及所述进位输入信号Cin,得到进位输出信号。In this embodiment, the carry circuit 150 is not affected by the delay problem, and can directly use the carry propagation signal p, the exclusive OR signal p', the second addend signal B, and the carry input signal Cin to obtain a carry output Signal.
在示例性实施例中,如图2所示,所述进位电路150包括:第二传输门T2和第三传输门T3;In an exemplary embodiment, as shown in FIG. 2 , the carry circuit 150 includes: a second transmission gate T2 and a third transmission gate T3;
所述第二传输门T2的第一控制端以及所述第三传输门T3的第二控制端分别与所述第二节点相连;The first control terminal of the second transmission gate T2 and the second control terminal of the third transmission gate T3 are respectively connected to the second node;
所述第二传输门T2的第二控制端以及所述第三传输门T3的第一控制端分别与所述第三节点相连;The second control terminal of the second transmission gate T2 and the first control terminal of the third transmission gate T3 are respectively connected to the third node;
所述第二传输门T2的输入端与所述第二加数端相连;The input end of the second transmission gate T2 is connected to the second addend end;
所述第三传输门T3的输入端与所述进位输入端相连;The input terminal of the third transmission gate T3 is connected to the carry input terminal;
所述第二传输门T2的输出端以及所述第三传输门T3的输出端分别与所述进位输出端相连。The output terminal of the second transmission gate T2 and the output terminal of the third transmission gate T3 are respectively connected to the carry output terminal.
本实施例中,利用第二传输门T2和第三传输门T3构成由进位传播信号p或者同或信号p'控制的选择器,从而选择输出第二加数信号B还是进位输入信号Cin,从而实现进位输出信号Cout的输出。In this embodiment, the second transmission gate T2 and the third transmission gate T3 are used to form a selector controlled by the carry propagation signal p or the exclusive OR signal p', so as to select whether to output the second addend signal B or the carry input signal Cin, thus The output of the carry output signal Cout is realized.
其中:in:
当p=1(p'=0),Cin=1时,第三传输门T3导通接进位输入端,从而选择输出进位输入信号Cin,Cout=1;When p=1 (p'=0), when Cin=1, the third transmission gate T3 is turned on and connected to the carry input terminal, thereby selecting and outputting the carry input signal Cin, Cout=1;
当p=1(p'=0),Cin=0时,第三传输门T3导通接进位输入端,从而选择输出进位输入信号Cin,Cout=0;When p=1 (p'=0), Cin=0, the third transmission gate T3 is turned on and connected to the carry input terminal, thereby selecting and outputting the carry input signal Cin, Cout=0;
当p=0(p'=1),B=1时,第二传输门T2导通接第二加数端,从而选择输出第二加数信号B,Cout=1;When p=0 (p'=1), when B=1, the second transmission gate T2 is turned on and connected to the second addend end, thereby selecting and outputting the second addend signal B, Cout=1;
当p=0(p'=1),B=0时,第二传输门T2导通接第二加数端,从而选择输出第二加数信号B,Cout=0。When p=0 (p′=1) and B=0, the second transmission gate T2 is turned on and connected to the second addend terminal, so as to select and output the second addend signal B, and Cout=0.
在示例性实施例中,如图2所示,所述异或电路120包括:第一开关晶体管M1、第二开关晶体管M2、第三开关晶体管M3、第四开关晶体管M4和第五开关晶体管M5;所述第一开关晶体管M1和所述第二开关晶体管M2为P型开关晶体管;所述第三开关晶体管M3、所述第四开关晶体管M4和所述第五开关晶体管M5为N型开关晶体管;In an exemplary embodiment, as shown in FIG. 2 , the XOR circuit 120 includes: a first switch transistor M1, a second switch transistor M2, a third switch transistor M3, a fourth switch transistor M4, and a fifth switch transistor M5 The first switch transistor M1 and the second switch transistor M2 are P-type switch transistors; the third switch transistor M3, the fourth switch transistor M4 and the fifth switch transistor M5 are N-type switch transistors ;
所述第一开关晶体管M1的栅极、所述第二开关晶体管M2的第一源极/漏极、所述第五开关晶体管M5的栅极分别与所述第一加数端相连;The gate of the first switching transistor M1, the first source/drain of the second switching transistor M2, and the gate of the fifth switching transistor M5 are respectively connected to the first adder terminal;
所述第二开关晶体管M2的栅极、所述第一开关晶体管M1的第一源极/漏极、所述第三开关晶体管M3的第一源极/漏极以及所述第四开关晶体管M4的栅极分别与所述第二加数端相连;The gate of the second switching transistor M2, the first source/drain of the first switching transistor M1, the first source/drain of the third switching transistor M3, and the fourth switching transistor M4 The gates of are respectively connected to the second addend end;
所述第一开关晶体管M1的第二源极/漏极、所述第二开关晶体管M2的第二源极/漏极、所述第三开关晶体管M3的第二源极/漏极以及所述第四开关晶体管M4的第一源极/漏极分别与所述第二节点相连;The second source/drain of the first switching transistor M1, the second source/drain of the second switching transistor M2, the second source/drain of the third switching transistor M3 and the The first source/drain of the fourth switching transistor M4 are respectively connected to the second node;
所述第四开关晶体管M4的第二源极/漏极与所述第五开关晶体管M5的第一源极/漏极相连;The second source/drain of the fourth switch transistor M4 is connected to the first source/drain of the fifth switch transistor M5;
所述第五开关晶体管M5的第二源极/漏极与接地端GND相连;The second source/drain of the fifth switching transistor M5 is connected to the ground terminal GND;
所述第三开关晶体管M3的栅极与所述第一节点相连。The gate of the third switching transistor M3 is connected to the first node.
本发明中的P型开关晶体管可以为PMOS;所述N型开关晶体管可以为NMOS。开关晶体管包括栅极、第一源极/漏极、第二源极/漏极和衬底。PMOS的衬底与电源端相连,NMOS的衬底则与接地端相连。第一源极/漏极和第二源极/漏极中一者为源极,另一者则为漏极,PMOS中电压较高的一端是源极,NMOS中电压较低的一端是源极。The P-type switch transistor in the present invention may be PMOS; the N-type switch transistor may be NMOS. The switching transistor includes a gate, a first source/drain, a second source/drain and a substrate. The substrate of the PMOS is connected to the power terminal, and the substrate of the NMOS is connected to the ground terminal. One of the first source/drain and the second source/drain is the source, the other is the drain, the higher voltage end of the PMOS is the source, and the lower voltage end of the NMOS is the source pole.
本实施例中的第一开关晶体管M1、第二开关晶体管M2、第三开关晶体管M3、第四开关晶体管M4和第五开关晶体管M5组成全摆幅输出的异或(XOR)逻辑门,实现第一加数信号A与第二加数信号B的异或,产生进位传播信号p,工作过程如下:In this embodiment, the first switching transistor M1, the second switching transistor M2, the third switching transistor M3, the fourth switching transistor M4 and the fifth switching transistor M5 form an exclusive-or (XOR) logic gate with full-swing output to realize the first The XOR of an addend signal A and the second addend signal B generates a carry propagation signal p, and the working process is as follows:
第一加数信号A在反相器110的作用下生成反相信号F,基于此:The first addend signal A generates an inverted signal F under the action of the inverter 110, based on this:
当A=1,B=1时,第四开关晶体管M4、第五开关晶体管M5导通接GND,p=0;When A=1, B=1, the fourth switch transistor M4 and the fifth switch transistor M5 are turned on and connected to GND, p=0;
当A=1,B=0时,第二开关晶体管M2导通接第一加数端,p=1;When A=1, B=0, the second switching transistor M2 is turned on and connected to the first addend terminal, p=1;
当A=0,B=1时,第三开关晶体管M3导通接第二加数端,第一开关晶体管M1导通接第二加数端,p=1;When A=0, B=1, the third switch transistor M3 is turned on and connected to the second addend end, the first switch transistor M1 is turned on and connected to the second addend end, p=1;
当A=0,B=0时,第三开关晶体管M3导通接第二加数端,第一开关晶体管M1导通接第二加数端,第二开关晶体管M2导通接第一加数端,p=0。When A=0, B=0, the third switch transistor M3 is turned on and connected to the second addend, the first switch transistor M1 is turned on and connected to the second addend, and the second switch transistor M2 is turned on and connected to the first addend end, p=0.
在图2所示的全加器中,当A=1,B=0时,第三开关晶体管M3关断有延迟,阻碍第二开关晶体管M2对第二节点上拉因而出现延迟,本方案改进关键状态下和位输出信号Sum的输出逻辑,当A=1,B=0,Cin=0时由同或信号p'、进位输入信号Cin将和位输出信号Sum上拉,当A=1,B=0,Cin=1时由进位输入信号Cin将同或信号p'输出,不用进位传播信号p的条件下就实现全加器和位输出逻辑,避免了延迟对全加器性能的影响。In the full adder shown in Figure 2, when A=1, B=0, there is a delay in turning off the third switching transistor M3, which prevents the second switching transistor M2 from pulling up the second node and thus delays. This solution is improved The output logic of the sum bit output signal Sum in the key state, when A=1, B=0, Cin=0, the sum bit output signal Sum is pulled up by the same OR signal p' and the carry input signal Cin, when A=1, When B=0, Cin=1, the carry input signal Cin will output the same-OR signal p', and the full adder and bit output logic are realized without the carry propagation signal p, avoiding the impact of delay on the performance of the full adder.
在示例性实施例中,如图2所示,所述求和电路140包括:第一传输门T1、第六开关晶体管M6、第七开关晶体管M7和第八开关晶体管M8;其中,所述第六开关晶体管M6和第七开关晶体管M7为P型开关晶体管;所述第八开关晶体管M8为N型开关晶体管;In an exemplary embodiment, as shown in FIG. 2 , the summation circuit 140 includes: a first transmission gate T1, a sixth switch transistor M6, a seventh switch transistor M7, and an eighth switch transistor M8; wherein, the first The six switch transistors M6 and the seventh switch transistor M7 are P-type switch transistors; the eighth switch transistor M8 is an N-type switch transistor;
所述第六开关晶体管M6的栅极、第一传输门T1的输入端以及所述第八开关晶体管M8的栅极分别与所述进位输入端相连;The gate of the sixth switch transistor M6, the input terminal of the first transfer gate T1, and the gate of the eighth switch transistor M8 are respectively connected to the carry input terminal;
所述第六开关晶体管M6的第一源极/漏极与所述电源端相连,所述第六开关晶体管M6的第二源极/漏极与所述第七开关晶体管M7的第一源极/漏极相连;The first source/drain of the sixth switch transistor M6 is connected to the power supply terminal, the second source/drain of the sixth switch transistor M6 is connected to the first source of the seventh switch transistor M7 / drain connected;
所述第七开关晶体管M7的第二源极/漏极、所述第一传输门T1的输出端以及所述第八开关晶体管M8的第一源极/漏极分别与所述和位输出端相连;The second source/drain of the seventh switch transistor M7, the output terminal of the first transfer gate T1, and the first source/drain of the eighth switch transistor M8 are respectively connected to the sum bit output terminal connected;
所述第一传输门T1的第一控制端与所述第二节点相连;The first control terminal of the first transmission gate T1 is connected to the second node;
所述第一传输门T1的第二控制端、所述第七开关晶体管M7的栅极以及所述第八开关晶体管M8的第二源极/漏极分别与所述第三节点相连;The second control terminal of the first transmission gate T1, the gate of the seventh switch transistor M7, and the second source/drain of the eighth switch transistor M8 are respectively connected to the third node;
在所述第一加数信号为高电平且所述第二加数信号为低电平的情况下,若所述进位输入信号为低电平,在所述同或信号和所述进位输入信号的控制下所述第六开关晶体管M6和所述第七开关晶体管M7导通所述电源端与所述和位输出端,以利用所述电源信号将所述和位输出信号上拉;When the first addend signal is at high level and the second addend signal is at low level, if the carry input signal is at low level, the NOR signal and the carry input Under the control of the signal, the sixth switch transistor M6 and the seventh switch transistor M7 conduct the power supply terminal and the sum bit output terminal, so as to use the power supply signal to pull up the sum bit output signal;
在所述第一加数信号为高电平且所述第二加数信号为低电平的情况下,若所述进位输入信号为高电平,在所述进位输入信号的控制下所述第八开关晶体管M8导通以将所述同或信号p'作为所述和位输出信号。When the first addend signal is at high level and the second addend signal is at low level, if the carry-in signal is at high-level, under the control of the carry-in signal, the The eighth switch transistor M8 is turned on to use the NOR signal p' as the sum bit output signal.
其中,第一传输门T1、第六开关晶体管M6、第七开关晶体管M7和第八开关晶体管M8组成进位输入信号Cin与进位传播信号p的同或门(XNOR),得到最终的和位输出信号Sum,其中:Among them, the first transmission gate T1, the sixth switching transistor M6, the seventh switching transistor M7 and the eighth switching transistor M8 form the NOR gate (XNOR) of the carry input signal Cin and the carry propagation signal p to obtain the final sum output signal Sum, where:
当p=1(p'=0),Cin=1时,第八开关晶体管M8导通接第三节点,Sum=0;When p=1 (p'=0), Cin=1, the eighth switch transistor M8 is turned on and connected to the third node, Sum=0;
当p=1(p'=0),Cin=0时,第六开关晶体管M6、第七开关晶体管M7导通接电源端,Sum=1;When p=1 (p'=0) and Cin=0, the sixth switching transistor M6 and the seventh switching transistor M7 are turned on and connected to the power supply terminal, Sum=1;
当p=0(p'=1),Cin=1时,第一传输门T1导通接进位输入端,Sum=1;When p=0 (p'=1), Cin=1, the first transmission gate T1 is turned on and connected to the carry input terminal, Sum=1;
当p=0(p'=1),Cin=0时,第一传输门T1导通接进位输入端,Sum=0。When p=0 (p′=1) and Cin=0, the first transmission gate T1 is turned on and connected to the carry input terminal, and Sum=0.
当A=1,B=0时,第三开关晶体管M3关断有延迟,阻碍第二开关晶体管M2对第二节点处的异或信号p上拉,导致第一传输门T1的关断较慢或者在其他全加器中直接由第二节点处的异或信号p上拉的节点延迟较高,进一步导致全加器的和位输出信号Sum的输出性能降低。本实施例中,改进了这种关键状态下和位输出信号Sum输出逻辑,当A=1,B=0,Cin=0时,由同或信号p'和所述进位输入信号Cin通过第六开关晶体管M6、第七开关晶体管M7将和位输出信号Sum上拉;当A=1,B=0,Cin=1时,由进位输入信号Cin将同或信号p'输出,从而可以不用进位传播信号p的条件下实现全加器和位输出信号Sum的输出逻辑,优化了关键路径。When A=1, B=0, there is a delay in turning off the third switching transistor M3, which prevents the second switching transistor M2 from pulling up the XOR signal p at the second node, resulting in slower turning off of the first transmission gate T1 Or in other full adders, the node directly pulled up by the XOR signal p at the second node has a relatively high delay, which further reduces the output performance of the sum bit output signal Sum of the full adder. In this embodiment, the sum output signal Sum output logic in this key state is improved. When A=1, B=0, and Cin=0, the NOR signal p' and the carry input signal Cin pass through the sixth The switch transistor M6 and the seventh switch transistor M7 pull up the sum output signal Sum; when A=1, B=0, and Cin=1, the carry input signal Cin will output the same-OR signal p', so that the carry can not be propagated Under the condition of the signal p, the output logic of the full adder and the bit output signal Sum is realized, and the critical path is optimized.
在示例性实施例中,如图2所示,所述反相器110包括:第十四开关晶体管M14和第十五开关晶体管M15;其中,所述第十四开关晶体管M14为P型开关晶体管;所述第十五开关晶体管M15为N型开关晶体管;In an exemplary embodiment, as shown in FIG. 2, the inverter 110 includes: a fourteenth switch transistor M14 and a fifteenth switch transistor M15; wherein the fourteenth switch transistor M14 is a P-type switch transistor ; The fifteenth switching transistor M15 is an N-type switching transistor;
所述第十四开关晶体管M14的栅极以及所述第十五开关晶体管M15的栅极分别与所述第一加数端相连;The gate of the fourteenth switch transistor M14 and the gate of the fifteenth switch transistor M15 are respectively connected to the first adder terminal;
所述第十四开关晶体管M14的第一源极/漏极与所述电源端相连;The first source/drain of the fourteenth switching transistor M14 is connected to the power supply terminal;
所述第十四开关晶体管M14的第二源极/漏极以及所述第十五开关晶体管M15的第一源极/漏极分别与所述第一节点相连;The second source/drain of the fourteenth switch transistor M14 and the first source/drain of the fifteenth switch transistor M15 are respectively connected to the first node;
所述第十五开关晶体管M15的第二源极/漏极与接地端GND相连。The second source/drain of the fifteenth switch transistor M15 is connected to the ground terminal GND.
如前所述,所述P型开关晶体管可以为PMOS;所述N型开关晶体管可以为NMOS。As mentioned above, the P-type switching transistor may be PMOS; the N-type switching transistor may be NMOS.
本实施例中,通过在全加器的设计中加入静态的反相器110来优化内部节点非全摆幅的问题。内部节点全摆幅输出适合在低电压下工作,使得全加器适用于低压场景。In this embodiment, the problem of non-full swing of internal nodes is optimized by adding a static inverter 110 into the design of the full adder. The full-swing output of the internal nodes is suitable for operation at low voltage, making the full adder suitable for low-voltage scenarios.
在示例性实施例中,如图2所示,所述同或电路130包括:第九开关晶体管M9、第十开关晶体管M10、第十一开关晶体管M11、第十二开关晶体管M12和第十三开关晶体管M13;其中,所述第九开关晶体管M9、第十开关晶体管M10和第十一开关晶体管M11为P型开关晶体管;所述第十二开关晶体管M12和第十三开关晶体管M13为N型开关晶体管;In an exemplary embodiment, as shown in FIG. 2 , the NOR circuit 130 includes: a ninth switching transistor M9, a tenth switching transistor M10, an eleventh switching transistor M11, a twelfth switching transistor M12, and a thirteenth switching transistor. Switching transistor M13; wherein, the ninth switching transistor M9, the tenth switching transistor M10 and the eleventh switching transistor M11 are P-type switching transistors; the twelfth switching transistor M12 and the thirteenth switching transistor M13 are N-type switching transistor;
所述第九开关晶体管M9的第一源极/漏极、所述第十开关晶体管M10的栅极、所述第十二开关晶体管M12的第一源极/漏极以及所述第十三开关晶体管M13的栅极分别与所述第二加数端相连;The first source/drain of the ninth switch transistor M9, the gate of the tenth switch transistor M10, the first source/drain of the twelfth switch transistor M12, and the thirteenth switch The gate of the transistor M13 is respectively connected to the second addend end;
所述第十一开关晶体管M11的栅极、所述第十二开关晶体管M12的栅极以及所述第十三开关晶体管M13的第一源极/漏极分别与所述第一加数端相连;The gate of the eleventh switch transistor M11, the gate of the twelfth switch transistor M12, and the first source/drain of the thirteenth switch transistor M13 are respectively connected to the first addend terminal ;
所述第九开关晶体管M9的第二源极/漏极、所述第十开关晶体管M10的第一源极/漏极、所述第十二开关晶体管M12的第二源极/漏极以及所述第十三开关晶体管M13的第二源极/漏极分别与所述第三节点相连;The second source/drain of the ninth switch transistor M9, the first source/drain of the tenth switch transistor M10, the second source/drain of the twelfth switch transistor M12 and all The second source/drain of the thirteenth switching transistor M13 is respectively connected to the third node;
所述第九开关晶体管M9的栅极与所述第一节点相连;The gate of the ninth switching transistor M9 is connected to the first node;
所述第十开关晶体管M10的第二源极/漏极与所述第十一开关晶体管M11的第一源极/漏极相连;The second source/drain of the tenth switch transistor M10 is connected to the first source/drain of the eleventh switch transistor M11;
所述第十一开关晶体管M11的第二源极/漏极与所述电源端相连。The second source/drain of the eleventh switching transistor M11 is connected to the power supply terminal.
其中,第九开关晶体管M9、第十开关晶体管M10、第十一开关晶体管M11、第十二开关晶体管M12和第十三开关晶体管M13组成全摆幅输出的同或逻辑门,实现第一加数信号A与第二加数信号B的同或,产生同或信号p',其中:Among them, the ninth switching transistor M9, the tenth switching transistor M10, the eleventh switching transistor M11, the twelfth switching transistor M12 and the thirteenth switching transistor M13 form a full-swing output NOR logic gate to realize the first addend The exclusive OR of the signal A and the second addend signal B produces an exclusive OR signal p', wherein:
第一加数信号A在反相器110的作用下生成反相信号F,基于此:The first addend signal A generates an inverted signal F under the action of the inverter 110, based on this:
当A=1,B=1时,第九开关晶体管M9导通接第二加数端、第十二开关晶体管M12导通接第二加数端、第十三开关晶体管M13导通接第一加数端,p'=1;When A=1, B=1, the ninth switch transistor M9 is turned on and connected to the second addend end, the twelfth switch transistor M12 is turned on and connected to the second addend end, and the thirteenth switch transistor M13 is turned on and connected to the first addend end. Addend end, p'=1;
当A=1,B=0时,第九开关晶体管M9导通接第二加数端,第十二开关晶体管M12导通接第二加数端,p'=0;When A=1, B=0, the ninth switch transistor M9 is turned on and connected to the second addend end, the twelfth switch transistor M12 is turned on and connected to the second addend end, p'=0;
当A=0,B=1时,第十三开关晶体管M13导通接第一加数端,p'=0;When A=0, B=1, the thirteenth switching transistor M13 is turned on and connected to the first addend terminal, p'=0;
当A=0,B=0时,第十开关晶体管M10、第十一开关晶体管M11导通接电源端,p'=1。When A=0 and B=0, the tenth switching transistor M10 and the eleventh switching transistor M11 are turned on and connected to the power supply terminal, and p′=1.
本实施例中的同或电路130可以实现全摆幅输出的同或计算。The exclusive OR circuit 130 in this embodiment can realize the exclusive OR calculation of the full swing output.
第一传输门T1、第二传输门T2和第三传输门T3中每个传输门是由一个PMOS和一个NMOS并联构成的。因此,图2所示的全加器的结构中,包括21个开关晶体管,即21T的全加器。本实施例提供的全加器能够在低压下稳定快速工作。虽然功耗有少许恶化,但延迟有较大的提升,总体功耗延迟积(Power-Delay Product,PDP)优于其他全加器。与典型低功耗全加器CMOS 28T以及先进低功耗全加器16T、20T、一种22T、另一种22T相比,在200MHZ,1.2V,常温,TT工艺下本发明单个全加器功耗分别恶化8.7%,2.1%,10.8%,-3%,-1.3%;延迟分别优化39.7%,46.6%,47%,11.7%,11.2%;整体PDP分别优化34.4%,45.5%,40%,14.4%,12.4%。在0.8v电压,常温,TT工艺下与CMOS 28T、20T、一种22T(16T不能在0.8v下正常工作)下相比,本发明单个全加器功耗分别恶化10.9%,1.8%,-2.3%,延迟分别优化34.3%,37.1%,17.2%,整体PDP分别优化27.2%,36%,16.2%。TT为Typical-Typical的缩写,表示NMOS和PMOS都是典型的工艺。Each of the first transmission gate T1 , the second transmission gate T2 and the third transmission gate T3 is composed of a PMOS and an NMOS connected in parallel. Therefore, the structure of the full adder shown in FIG. 2 includes 21 switch transistors, that is, a 21T full adder. The full adder provided in this embodiment can work stably and quickly at low pressure. Although the power consumption has slightly deteriorated, the delay has been greatly improved, and the overall power-delay product (Power-Delay Product, PDP) is better than other full adders. Compared with the typical low-power full adder CMOS 28T and the advanced low-power full adder 16T, 20T, a kind of 22T, and another kind of 22T, the present invention has a single full adder under 200MHZ, 1.2V, normal temperature, and TT process Power consumption deteriorated by 8.7%, 2.1%, 10.8%, -3%, -1.3%; Latency optimized by 39.7%, 46.6%, 47%, 11.7%, 11.2% respectively; Overall PDP optimized by 34.4%, 45.5%, 40% %, 14.4%, 12.4%. At 0.8v voltage, at normal temperature, compared with CMOS 28T, 20T, and a kind of 22T (16T can not work normally under 0.8v) under TT process, the power consumption of the single full adder of the present invention deteriorates respectively by 10.9%, 1.8%, - 2.3%, the delay is optimized by 34.3%, 37.1%, and 17.2%, and the overall PDP is optimized by 27.2%, 36%, and 16.2%. TT is the abbreviation of Typical-Typical, indicating that both NMOS and PMOS are typical processes.
本发明还提供一种芯片,包括上述任一实施例所提供的全加器。芯片的具体实现方式可以参考以上全加器的实施例,此处不再赘述。The present invention also provides a chip, including the full adder provided in any one of the above embodiments. For the specific implementation of the chip, reference may be made to the above embodiments of the full adder, which will not be repeated here.
本实施例还提供一种计算装置,包括上述任一实施例所提供的芯片。计算装置的具体实现方式可以参考以上芯片的实施例,此处不再赘述。This embodiment also provides a computing device, including the chip provided by any one of the foregoing embodiments. For the specific implementation manner of the computing device, reference may be made to the above chip embodiments, which will not be repeated here.
最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。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 them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310539075.6A CN116661731A (en) | 2023-05-12 | 2023-05-12 | Full adder, chip and computing device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202310539075.6A CN116661731A (en) | 2023-05-12 | 2023-05-12 | Full adder, chip and computing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN116661731A true CN116661731A (en) | 2023-08-29 |
Family
ID=87721580
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202310539075.6A Pending CN116661731A (en) | 2023-05-12 | 2023-05-12 | Full adder, chip and computing device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN116661731A (en) |
-
2023
- 2023-05-12 CN CN202310539075.6A patent/CN116661731A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| Mahendran | CMOS full adder cells based on modified full swing restored complementary pass transistor logic for energy efficient high speed arithmetic applications | |
| Yadav et al. | Design and analysis of FINFET pass transistor based XOR and XNOR circuits at 45 nm technology | |
| CN109327206B (en) | Power flattening standard integrated circuits | |
| Kamsani et al. | A low power multiplexer based pass transistor logic full adder | |
| Nigam et al. | Comparative Analysis of 28T Full adder with 14T Full adder using 180nm | |
| US7508233B2 (en) | Full-adder of complementary carry logic voltage compensation | |
| US5732008A (en) | Low-power high performance adder | |
| KR100975086B1 (en) | One bit full adder which comsumes minimal power and minimal area | |
| CN116661731A (en) | Full adder, chip and computing device | |
| US6711633B2 (en) | 4:2 compressor circuit for use in an arithmetic unit | |
| Jeong et al. | Robust high-performance low-power carry select adder | |
| Gladwin et al. | Design and performance comparison of 4-bit adders using different logic styles | |
| Niranjan et al. | Parametric analysis of a hybrid 1-bit full adder in UDSM and CNTFET technology | |
| Sahani et al. | Design of full adder circuit using double gate MOSFET | |
| Sree et al. | A High-Performance Full Adder Design with Low Area, Power and Delay | |
| Kumar et al. | A novel high-speed low power 9T full adder | |
| Manchala et al. | Design of Hybrid Full Adder using 6T-XOR-Cell for High Speed Processor Designs Applications | |
| US6571269B1 (en) | Noise-tolerant digital adder circuit and method | |
| Ramanathan et al. | Hybrid prefix adder architecture for minimizing the power delay product | |
| Arulkarthick et al. | Area and power delay product efficient level restored hybrid full adder (LR-HFA) | |
| Agarwal et al. | 4-Bit arithmetic logic unit that uses adjustable threshold pseudo-dynamic logic | |
| Shah et al. | A novel energy efficient high-speed 10-transistor full adder cell based on pass transistor logic | |
| Ravindran et al. | Efficiency and Speed Trade-Offs in 8-Bit CMOS Adders at 180nm: An In-Depth Examination | |
| Amizhdhu et al. | Comparative analysis of 32-bit CSLA based on CMOS and GDI logic | |
| Yadav et al. | Low power high speed 1-bit full adder circuit design in DSM technology |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |