Académique Documents
Professionnel Documents
Culture Documents
DFP MULTIPLICATION
BFP causes rounding error which can accumulate. Thus, DFP is preferred over BFP. IEEE standard representation of floating point number is Take two 64-bit operands and extract out corresponding triples (i.e. sign, exponent and significand) Multiply the significand values, and add the exponent values, to get the intermediate result as IPexp and IPc Check whether the result fits within the required precision level. Otherwise d digits of IPc will be rounded d = max(digits(IPc)-p ,0) where p be the required precision
Calculate leading one position (LOP) using leading 1 detector (LOD) Multiplication of Ac & Bc will lie between 2^k to {2^(k+2)-1},which decides no. of digits in IPc where k= Alop + Blop The rounded up intermediate result is produced in the carry save form Final result is generated using a carry propagate adder
DFP DIVISION
This method provides an algorithm for decimal floating point division that uses Newton-Raphson iteration. Uses Taylor series expansion for initial approx, so both Y and X are normalised to a range from 0.1 to 1 with Y<X. For Q = Y/X, first obtain an initial approximation of the divisors reciprocal, i.e. R0 = 1/X The n-digit divisor is converted into k digit more significand part (XM) and (n-k) digit low significand part (XL) With the new input interval of size k, we get approximation of 1/X in terms of function of XM and XL.
DFP ADDER/SUBTRACTOR
BID encoding based 64-bit DFP addition and subtraction is discussed here. Its best suited for h/w implementation. First, extract the sign, exponent and significand value of the operands. If A is less than B, swap each other Align one operand with respect to other, by shifting it by d digits, where d = Aexp Bexp Significands are added up to get intermediate result ZIC If OP = operation = { 0 (for add) and 1 (for subtract) } then Sign and Effective operation are computed in parallel as [Sign = sign(Aexchng) xor ZICSign] & [EOP= OP xor Asign xor Bsign]
FUTURE SCOPE
Use of 128 or higher bit fixed point processors can make it possible to design them for wide dynamic range applications like radar target acquisition and identification. Due to the capability of providing equivalent level of accuracy, it can be also used for implementation of tedious calculations like determining FFT, ECG, Robotics, Image recognition etc.
Cheap and easy availability of fixed point processors make it favorite for designing general purpose or commercial applications.