"Floating point functions Intel FPGA IP" Division configuration produces wrong answers
So I'm trying to use the "floating point functions Intel FPGA IP" library to run floating point division calculations. This library can be found in quartus prime pro edition under:
ip catalog -> installed ip -> library -> basic functions -> arithmetic -> floating point functions intel FPGA IP
I'm running into a problem where the floating point division computations are wrong. It seems like the numbers are being rounded to powers of two. Like the exponent is being computed, but not the mantissa.
Here are screenshots of my setup, along with screenshots of a questa simulation of the results.
IP SetupIP settings from the IP planner
Project + Testbench code Project navigator and test bench.
The comment on line 32 is wrong, that a value is 300 in 32 bit float, according to questa and https://www.h-schmidt.net/FloatConverter/IEEE754.html
Result
Questa Result.
a,b,q are in [radix-> "1 float 32"] format.
Worth noting, letting the simulation run for another 1000 ns doesn't help, the final value sits at that 4.0 value seemingly indefinitely.
More inputs/outputs
a = 8.0, b = 2.0 -> q = 4.0
a = 325.162, b = 12.51 -> q = 16.0
a = 120.0 b = 150.0 -> q = 1.0
a = -25 b = 8100.16 -> q = -0.00195313 = 0xbb000000
What's going on here? Am I using the IP core incorrectly? Any help would be appreciated.