Floating point calculation method and unit efficiently...

Electrical computers: arithmetic processing and calculating – Electrical digital calculating computer – Particular function performed

Reexamination Certificate

Rate now

  [ 0.00 ] – not rated yet Voters 0   Comments 0

Details

C708S204000

Reexamination Certificate

active

06510446

ABSTRACT:

BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention relates to floating point data calculation methods, and more specifically to a floating point calculation method and unit capable of efficiently performing a process of calculating floating point data to obtain integer data in floating point notation (the process is hereinafter referred to as integer representation) by rounding up or rounding down fractions below decimal point of floating point data and a semiconductor integrated circuit device provided with the same.
2. Description of the Background Art
As a numerical value must be represented as digital data having a prescribed number of bits in a calculator, real number data is generally represented as floating point data.
For the floating point data, a format having 32-bit length is generally employed in accordance with the IEEE standard.
FIG. 29
is a schematic diagram showing a structure of single-precision floating point data in accordance with the IEEE standard.
Referring to
FIG. 29
, the single-precision floating point data in accordance with the IEEE standard includes a sign bit of 1 bit, an exponent portion of 8 bits and a significand portion of 23 bits. A real number Z represented as floating point data is generally shown by the following equation (1).
Z
=(−1)
S
×(1
+F
)×2
(e-b)
  (1)
In the above equation (1), F represents fractions below decimal point represented by the significand portion of 23 bits. S corresponds to data of the sign bit, and e corresponds to a decimal number representation of the exponent portion of 8 bits. A bias value in the case of an exponent is represented by b, for which a predetermined value is used in accordance with the standard. For example, b=127 in the single-precision floating point data, and b=1023 in double-precision floating point data.
In other words, if the bits of the significand portion are sequentially numbered as s
1
, s
2
, s
3
, . . . , starting from the first bit, the above equation (1) is expanded as the following equation (2).
(−1)
s
×(1+(s1×2
−1
)+(s2×2
−2
)+(s3×2
−3
)+. . . )×2
(e-b)
  (2)
Thus, real number data in a wide range can be represented with high precision by a combination of the exponent and significand portions using the floating point data.
When calculation for image processing or the like is to be performed in the calculator, in some cases, a process of representing given real number data as an integer by rounding down or rounding up data corresponding to fractions below decimal point must frequently be performed at high speed.
As the floating point data is used to represent a real number value in a wide range by a combination of the exponent and significand portions, the number of digits of the data corresponding to the fractions below decimal point of the real number data differs from combination of the exponent and significand portions. Therefore, some special method must be used to efficiently perform integer representation of the floating point data.
SUMMARY OF THE INVENTION
An object of the present invention is to provide a floating point calculation method and unit capable of efficiently performing integer representation of floating point data by rounding down or rounding up fractions below decimal point and to provide a structure of a semiconductor integrated circuit device provided with the same.
In short, the present invention relates to a floating point calculation method performing integer representation of floating point data of a binary number including an exponent portion of M bits A: a natural number) and a significand portion of N bits (N: a natural number). The floating point calculation method includes steps of: outputting a calculation result X (X: an integer) obtained by subtracting a prescribed bias value from a decimal number value corresponding to the exponent portion of input data; and setting each bit of output integer data obtained by representing the input data as an integer in accordance with a combination of calculation result X, a sign of the input data and an integer representation designation signal designating by which one of rounding up and rounding down the integer representation is to be performed.
According to another aspect of the present invention, the present invention relates to a floating point calculation unit performing integer representation of floating point data of a binary number having a sign bit, an exponent portion of M bits (M: natural number) and a significand portion of N bits (N: natural number). The floating point calculation unit includes an input circuit, an exponent portion calculating circuit, an integer-represented data setting circuit and an output circuit.
The input circuit receives input data. The exponent portion calculating circuit outputs a calculation result X (X: integer) obtained by subtracting a prescribed bias value from a decimal number value corresponding to the exponent portion of the input data. The integer-represented data setting circuit receives the input data and sets each bit of output integer data in accordance with a combination of calculation result X, a sign of the input data and the integer representation designation signal designating by which one of rounding up and rounding down the integer representation is to be performed. The output circuit outputs the output integer data.
According to still another aspect, the present invention relates to a semiconductor integrated circuit device performing a prescribed data process in accordance with an externally applied designation signal. The semiconductor integrated circuit device includes an input/output circuit, a control circuit, a memory circuit, a system bus and a dedicated calculating circuit.
The input/output circuit externally transmits/receives a signal. The control circuit generates an internal control signal to perform a process corresponding to an instruction signal. The memory circuit stores data. The system bus transmits the designation signal and data to each circuit in the semiconductor integrated circuit device. The dedicated calculating circuit has a function of performing integer representation of floating point data of the binary number.
The dedicated calculating circuit includes: a logic circuit controlling an operation of the dedicated calculating circuit in accordance with the internal control signal: a sub memory circuit storing data in accordance with an instruction of the logic circuit; and a floating point calculating circuit performing integer representation of the floating point data in accordance with the instruction of the logic circuit. The floating point data includes a sign bit, an exponent portion of M bits (M: a natural number) and a significand portion of N bits (N: a natural number). The floating point calculating circuit includes: an input circuit receiving input data; an exponent portion calculating circuit outputting a calculation result X (X: an integer) obtained by subtracting a prescribed bias value from a decimal number value corresponding to the exponent portion of the input data; an integer-represented data setting circuit setting each bit of the output integer data in accordance with a combination of calculation result X, a sign of the input data and an integer representation designation signal designating by which one of rounding up and rounding down the integer representation is to be performed; and an output circuit outputting the output integer data.
Thus, a main advantage of the present invention is that the integer representation can be performed at high speed as integer representation of the floating point data by rounding up or rounding down is performed without a step of converting the format of the floating point data to that of fixed point data.
In addition, as the calculation unit performing integer representation of the floating point data is obtained only by a circuit which processes data having the same number of bits as that of the input circuit wi

LandOfFree

Say what you really think

Search LandOfFree.com for the USA inventors and patents. Rate them and share your experience with other people.

Rating

Floating point calculation method and unit efficiently... does not yet have a rating. At this time, there are no reviews or comments for this patent.

If you have personal experience with Floating point calculation method and unit efficiently..., we encourage you to share that experience with our LandOfFree.com community. Your opinion is very important and Floating point calculation method and unit efficiently... will most certainly appreciate the feedback.

Rate now

     

Profile ID: LFUS-PAI-O-3023539

  Search
All data on this website is collected from public sources. Our data reflects the most accurate information available at the time of publication.