2.binary Adder-Subtractor, Decimal Adder, Multipier
2.binary Adder-Subtractor, Decimal Adder, Multipier
Logic Diagram:
Full adder:
It is a combinational logic circuit used to add
three binary digits.
Truth table:
K-Map:
Cout= AB+Cin(A + B)
CARRY = AB AC
=AB
=AB
=AB)
=
Logic Diagram:
Cout= AB+Cin(A + B)
• Full-adder can also implemented with two half adders
and one OR gate
Subtractors:
Basic Subtractors are two types.
Half Subtractor.
Full Subtractor.
Half Subtractor:
It is a combinational logic circuit used to Subtract two
binary digits.
Logic Diagram:
Full Subtractor:
It is a combinational logic circuit
used to Subtract three binary digits.
Truth Table:
A B C Diff Borrow
0 0 0 0 0
0 0 1 1 1
0 1 0 1 1
0 1 1 0 1
1 0 0 1 0
1 0 1 0 0
1 1 0 0 0
1 1 1 1 1
K-Map:
Logic Diagram:
• Full-Subtractor can also implemented with
two half Subtractor and one OR gate.
00
01
1 1 1 1
11
10 1 1
EXPRESSION = Z8Z4+Z8Z2
BINARY MULTIPLIER
B1 B0 MULTIPLICAND
A1 A0 MULTIPLIER
B1 A0 B0A0 PARTIAL
B1 A1 B0 A1 PRODUCT
C3 C2 C1 C0
2bit by 2 bit Multiplier
Each shifted multiplicand which is multiplied by either 0 or 1
depending on the corresponding multiplier bit is called partial
product
Each partial product consists of two product component
The final 4 bit product is obtained by adding all partial products
The first partial product is formed by multiplying A0 by B1 B0
Block Diagram:
Input Output
A1 A0 B1 B0 A>B A=B A<B
0 0 0 0 0 1 0
0 0 0 1 0 0 1
0 0 1 0 0 0 1
0 0 1 1 0 0 1
0 1 0 0 1 0 0
0 1 0 1 0 1 0
0 1 1 0 0 0 1
0 1 1 1 0 0 1
1 0 0 0 1 0 0
1 0 0 1 1 0 0
1 0 1 0 0 1 0
1 0 1 1 0 0 1
1 1 0 0 1 0 0
1 1 0 1 1 0 0
1 1 1 0 1 0 0
1 1 1 1 0 1 0
A= B
A< B
Logic Diagram :