Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

Floating point megafunctions

Hello,

Has anyone had a problem with the altera's mega functions?

My 1st output when I used the divide is always 3fdfffc0.

And I always enable as soon as I store my 1st input.

Also, just to confirm 'dataa' <= is the numerator

13 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    From the pdf: "dataa[] Yes

    Numerator data input. The MSB is the sign bit, the next MSBs are the exponent, and

    the LSBs are the mantissa. The size of this port is the total width of the sign bit,

    exponent bits and mantissa bits."

    Here is a handy webpage I use when I'm working on floating point numbers: http://www.h-schmidt.net/floatapplet/ieee754.html
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The pdf does not explain whether the denominator is datab or dataa.

    I used 6 cycles.

    and I am using single precision
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    How is it parametrized and what was the numerator (dataa) and denominator (datab)? How many cycles after the inputs are committed are you waiting for the output?