Professional Documents
Culture Documents
R3 ←R1+R2+1
2
Arithmetic Micro operations cont.
Amity Institute of Information Technology
x s = x’y’cn-1+x’yc’n-1+xy’c’n-1+xycn-1
y = x y cn-1 = (x y) cn-1
S
cn-1
cn
4
Amity Institute of Information Technology
B3 A3 B2 A2 B1 A1 B0 A0
C3 C2 C1
FA FA FA FA C0
C4 S3 S2 S1 S0
6
Arithmetic Microoperations Binary
Amity Institute of Information Technology
Adder-Subtractor
B3 A3 B2 A2 B1 A1 B0 A0
B’
C3 C2 C1 C0
FA FA FA FA
1
C4 S3 S2 S1 S0
4-bit adder-subtractor
7
Amity Institute of Information Technology
Ignore / Drop
9
Subtraction by 2’s
Amity Institute of Information Technology
Complement -Example
10
Amity Institute of Information Technology
Arithmetic Circuit
• The basic component of an arithmetic circuit is the parallel
adder.
• The diagram of a 4-bit arithmetic circuit is shown in next
figure
Arithmetic Microoperations –
Amity Institute of Information Technology
Binary Incrementer
• One of the inputs to the least significant half
adder(HA) is connected to logic 1 and the other input
is connected to LSB of the number to be
incremented.
• The output carry from one HA is connected to one of
the inputs to the next high order HA.
• The circuit receives the four bits from A0 to A3, add 1
to it and generate the incremented output in S0 to S3.
• The output carry C4 will be 1 only after incrementing
binary 1111.This also causes output S0 to S3 to go to
0.
12
Arithmetic Microoperations Binary
Amity Institute of Information Technology
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
13
Arithmetic Circuit
Amity Institute of Information Technology
14
Amity Institute of Information Technology
Amity Institute of Information Technology
0 0 0 B D= A+B Add
0 0 1 B D= A+B+1 Add with carry
0 1 0 D= A+B’ Subtract with borrow
0 1 1 D= A+B’+1 Subtract
1 0 0 D=A Transfer A
0 Increment A
1 0 1 0 D=A+1
1 1 0 D=A-1 Decrement A
1 Transfer A
1 1 1 1 D=A