Professional Documents
Culture Documents
U-I. Arithmetic Circuit (Arithmetic Micro Operations)
U-I. Arithmetic Circuit (Arithmetic Micro Operations)
Topic: 3
Types of Microoperations
ABUS R1, Transfer content of R1 into bus A and, at the same time
R2 ABUS Transfer content of bus A into R2
R1 R1 + 1 Increment content of R1 by 1
R1 R1 – 1 Decrement content of R1 by 1
Binary Adder
• The digital circuit that forms the arithmetic sum of two bits and a
previous carry is called a full-adder.
Full Adder
• The digital circuit that forms the arithmetic sum of two bits and a
previous carry is called a full-adder.
Bi Ai
Carryout FA Carryin
SUM
B3 A3 B2 A2 B1 A1 B0 A0
C3 C2 C1
FA FA FA FA C0
C4 S3 S2 S1 S0
B3 A3 B2 A2 B1 A1 B0 A0
C3 C2 C1
FA FA FA FA C0
C4 S3 S2 S1 S0
Binary Adder-Subtractor
• The subtraction A-B can be done by taking the 2’s complement of B and adding it to A.
• The 2’s complement can be obtained by taking the 1’s complement and adding one to the
least significant pair of bits.
• The 1’s complement can be implemented with inverters and a one can be added to the sum
through the input carry.
• The addition and subtraction operations can be combined into one common circuit by
including an XOR gate with each full-adder.
Binary Adder-Subtractor
B3 A3 B2 A2 B1 A1 B0 A0
C4 S3 S2 S1 S0
Binary Adder-Subtractor
B3 A3 B2 A2 B1 A1 B0 A0
C4 S3 S2 S1 S0
4-bit adder-subtractor
Binary Incrementer
Half Adder
• The digital circuit that forms the arithmetic sum of two bits and
produces sum and carry is called a Half-adder.
Bi Ai
Carry HA
SUM
Binary Incrementer
A3 A2 A1 A0 1
x y x y x y x y
HA HA HA HA
C S C S C S C S
C4 S3 S2 S1 S0
Binary Incrementer
A3 A2 A1 A0 1
HA HA HA HA
C S C S C S C S
C4 S3 S2 S1 S0
Arithmetic Circuit
•By controlling the data inputs to the adder, it is possible to obtain different
types of arithmetic operations.
• The output of the binary adder is calculated from the following arithmetic
sum:
D = A + Y + Cin
A0 X0 C0
S0 FA D0 =A0+Y0 + Cin
S1 Y0 C1
B0 0 4X1
1 MUX-0
0 2
1 3