Professional Documents
Culture Documents
1-Design An Array Multiplier Showing Its All Stages To Perform Multiplication of Two 4-Bits Binary Numbers
1-Design An Array Multiplier Showing Its All Stages To Perform Multiplication of Two 4-Bits Binary Numbers
binary numbers
Let us consider two unsigned 4-bit numbers multiplication in which the multiplicand, A is
equal to A3A2 A1A0 and the multiplier B is equal to B3B2B1B0. The partial products are
produced depending on each multiplier bit multiplied by the multiplicand.
Each partial product consists of four product terms and these are shifted to the left relative to
the previous partial product as shown in figure. All these partial products are added to
produce the 8 bit product.
The logic circuit for the 4× 4 binary multiplications can be implemented by using three
binary full adders along with AND gates. Above production draw using AND gates.
2-Draw a flowchart for performing floating point addition and subtraction operations.
3-Comparison between Restoring and Non-Restoring Division algorithm.
4- Write a procedure to add two IEEE single precision floating point numbers. Each number
is represented by a 32- element Boolean array.
In IEEE754 first bit is sign which is 1 for both hence both are negative. next eight bits are for
exponent i.e. 0b01111101 for a and 0b10000101 which correspond to 125 and 133 in
decimal. These exponents have a offset of 127 so actual exponents are 125-127=-2 and 133-
127=6
• Rest bits are mantissa and the actual floating point number is 1.mantissa x
2^exponent where 1.mantissa is in binary. So our numbers
are 1.00101010100101110110001 x 2^-2 and 1.01000101100001011100001 x
2^6
For adding we make the exponent same (the larger one, i.e. 6), hence we
have 1.00101010100101110110001 x 2^-2 + 1.01000101100001011100001 x 2^6 =
0.0000000100101010100101110110001 x 2^6 + 1.01000101100001011100001 x 2^6 = ...