2. Overview – unit 2
• Fixed point Addition,
• Subtraction,
• Multiplication
• Division.
• Floating Point arithmetic,
• High performance arithmetic,
• Subword parallelism
3. 1) Initialize A,Q−1Q−1 to 0 and count to n
2) Based on the values of Q0 and Q−1Q0 and Q−1 do
the following:
a. if Q0,Q−1Q0,Q−1=0,0 then Right shift A,Q,Q−1Q−1
and finally decrement count by 1
b. If Q0,Q−1Q0,Q−1=0,1 then Add A and B store in A,
Right shift A,Q,Q−1Q−1 and finally decrement count by
1
c. If Q0,Q−1=1Q0,Q−1=1,0 then Subtract A and B store
in A, Right shift A,Q,Q−1Q−1 and finally decrement
count by 1
d. If Q0,Q−1=1Q0,Q−1=1,1 then Right shift
A,Q,Q−1Q−1 and finally decrement count by 1
3) Repeat step 2 till count does not equal 0.
The steps in Booth’s algorithm are as follow: