Professional Documents
Culture Documents
5. Discuss in detail about division algorithm in detail with diagram and examples.
Signed division
Faster division
Division in MIPS
Step 1: Test divisor<dividend.
Step 2: if divisor<dividend.
Step 1: shift the divisor right by 1 bit
10. Explain the sequential version of multiplication algorithm and its hardware.
Multiplication is a complex operation then addition and subtraction it can be
performed in hardware
Hardware implementation of unsigned binary multiplication
Flowchart for multiplication operation
Multiplication process.
11. Explain how floating point addition is carried out in a computer system. Give an
example for a binary floating point addition
Consider two floating point number:
A=m1.r e1 and B=m2.re2
Rules for addition and subtraction
Select the number with a smaller exponent and shift its mantissa right, a number of
steps equal to the difference in exponents.
Set the exponent to the lower
Determine the sign of the result
Normalize the result
Overflow and underflow in mantissa and exponent
Flow chart for addition and subtraction
21. Write the multiply rule for floating point numbers and explain detail.
Add the exponent and subtract 127.
Multiply the mantissa and determine the sign of the result.
Normalize the resulting value, if necessary.
Although the mantissas of initial operands are limited to 24 bits, it is important to
retain extra bits, called as guard bits.
23. Explain in detail floating point numbers when so you say that an underflow or
overflow has occurred?
In single precision numbers when an exponent is less than -126 then we say that an
underflow has occurred.
In single precision numbers when an exponent is less than +127 then we say that an
overflow has occurred.
Cn-1 – 2(n-1)
Sn-1 – 2(n-1)+1
Cn – 2n
27. Briefly describe about the two attractive features of Booth Algorithm?
It handles both positive and negative multipliers uniformly
It achieves some efficiency in the number of additions required when the multiplier
has a few large blocks of ones
The worst case is shown as below
010101010
+1 -1 +1 -1 +1 -1 +1 -1 +1
28. Write down the steps for restoring division and non-restoring division and explain
in detail.
Non Restoring:
Step1: Do the following n times
1.If the sign of A is 0, shift A and Q left one bit position and subtract M from
A otherwise shift A and Q left and add M to A.
2.Now if the sign of A is 0, set Q0 to 1; otherwise set Q0 to 0
Step 2: If the sign of A is 1, add M to A
Restoring:
Shift A and Q left one binary position
Subtract M from A
If the sign of A is one , set Q0 to 0, add M back to A otherwise set Q0 to 1
Hardwired control is a implemented with gates, flip-flops, decodes and other digital
circuit .The goal in hardwired design is to generate the control signals with minimum
number of components and maximize the speed of operation.
Complex sequencing and micro operation logic.
Difficult to design and test
Inflexible design
Difficult to add new instructions.