Unit2 CA
Unit2 CA
Unit2 CA
Computer Arithmetic
Sign-magnitude
Overflow FF
XOR gates
Algorithm:
Partial product
Hardware implementation
#of bit in multiplier
multiplier
Partial product
Algorithm:
B=11011 Q=00111
4 Q4=1,A=0,Qs=1
EA=A+B=1011
EAQ= 0 1011 0111
Shr EAQ= 0 0101 1011
3 Q3=1
EA = 1 0000
EAQ 1 0000 1011
Shr EAQ 0 1000 0101
2 Q2=1
EA= 1 0011
EAQ 1 0011 01 01
shr EAQ 0 1001 101 0
1 Q1=0
Shr EAQ 0 0100 1101=77
0
Booth multiplication algorithm
9’s compl. Of B
Adder
Overflow detection
Algorithm:
K: # 0f digits