Forum Discussion
Altera_Forum
Honored Contributor
11 years agoalt_fp needs the whole floating point, with the sign, exp and mantissa bits. I just want to process the mantissa.
Actually, when I'm calculating the reciprocal I'm not assuming that there are any fractional bits. They are all assumed to be normal "std_logic". Dont really know how to express myself here. Let me illustrate an example:1000000000000000000000000000000000000000000000000000000000000000
/
11001100110011001100110011001100110011001100110011011
=
QUOTIENT = 00000000000000000000000000000000000000000000000000001|00111111110 <--- (|) illustrates binary point
REMAIN = 11001100110011001100110011001100110011001001010011011 Now the question is, can I somehow process the remainder and get the rest of the fraction without having to do another division? I tried to take a look into the altfp_div code, but there was so many wires and everything was hardcoded which made it very unreadable .. Cheers!