摘要 |
PROBLEM TO BE SOLVED: To provide a multiplication device capable of performing the multiplication of a floating point number.SOLUTION: A multiplication device includes: a circuit (904) for counting the number of zero continuous to the high order of the mantissa part of a multiplier; a circuit (906) for calculating shift amounts on the basis of the number of digits of the fixing accuracy of the mantissa part and the counted value; a circuit (905) for left-shifting the mantissa part of the floating point number as a multiplicand only by the shift amounts; circuits (906, 913) for calculating the number of digits of the mantissa part of the multiplier by subtracting the counted value from the number of digits of the fixing accuracy of the mantissa part; a multiplication circuit (915) for outputting an intermediate product by the digit units of the mantissa part of the multiplier on the basis of the left-shifted mantissa part of the multiplicand and the mantissa part of the multiplier; an addition circuit (902) for adding the exponent parts of the multiplicand and multiplier; and a control circuit (918) for outputting the intermediate product output by the multiplication circuit as the mantissa part of the floating point number of a product, and for outputting the value output by the addition circuit as the exponent part of the floating point number of the product. |