📜  半加法器和全加法器之间的区别

📅  最后修改于: 2021-08-27 16:48:31             🧑  作者: Mango

1.半加法器:
Half Adder是一种组合逻辑电路,通过连接一个EX-OR门和一个AND门而设计。半加法器电路有两个输入:A和B,它们将两个输入数字相加并产生一个进位和一个和。

从“异或”门获得的输出是两个数字的和,而“与”门获得的输出是进位。因为没有逻辑门可处理进位加法,所以将不会转发进位加法。因此,这称为半加法器电路。

逻辑表达式:

Sum = A XOR B
Carry = A AND B 

真相表:

2. Full Adder:
Full Adder是由两个EX-OR门,两个AND门和一个OR门组成的电路。完全加法器是将三个输入相加并产生两个由两个EX-OR门,两个AND门和一个OR门组成的输出的加法器。前两个输入是A和B,第三个输入是作为C-IN的输入进位。输出进位指定为C-OUT,正常输出指定为S,即SUM。

通过“异或”门得到的等式是二进制数字的总和。而通过与门获得的输出是通过加法获得的进位。

真相表:

逻辑表达式:

SUM = (A XOR B) XOR Cin = (A ⊕ B) ⊕ Cin
CARRY-OUT = A AND B OR Cin(A XOR B) = A.B + Cin(A ⊕ B) 

半加法器和全加法器之间的区别:

S.No. Half Adder Full Adder
1 Half Adder is combinational logic circuit which adds two 1-bit digits. The half adder produces a sum of the two inputs. Full adder is combinational logical circuit that performs an addition operation on three one-bit binary numbers. The full adder produces a sum of the three inputs and carry value.
2 Previous carry is not used. Previous carry is used.
3 In Half adder there are two input bits ( A, B). In full adder there are three input bits (A, B, C-in).
4 Logical Expression for half adder is :
S=a⊕b ; C=a*b.
Logical Expression for Full adder is :
S=a⊕b⊕Cin; Cout=(a*b)+(Cin*(a⊕b)).
5 It consists of one EX-OR gate and one AND gate. It consists of two EX-OR, two AND gate and one OR gate.
6 It is used in Calculators, computers, digital measuring devices etc. It is used in Multiple bit addition, digital processors etc.