摘要 |
PURPOSE:To perform the conversion of data at a high speed with small hardware by using a digit matching shifter and a normalizing shifter to carry out the conversion of data in a (bit area + 1) area serving as an exponent part and a bit area serving as a mantissa part. CONSTITUTION:When the input data X serving as the fixed point data is regarded as the floating point data, the data EX equivalent to an exponent part and the data MX equivalent to a mantissa part are supplied to a right shifter 15 and a right shifter 4 respectively. At the same time, the bit area of the data (EX+1) is supplied to a priority encoder 14 for acquisition of the shift value. Thus both data EX and MX are shifted right by an extent equal to said shift value. The output of the shifter 4 is supplied to a priority encoder 6 and a left shifter 7 via an ALU 5 for acquisition of the mantissa part. While the offset value and the output of the encoder 14 are supplied to a subtractor 1 and the output of the subtractor 1 and the output of the encoder 6 are supplied to a subtractor 9 for acquisition of the exponent part. |