FPGA Intellectual Property
PCI Express*, Networking and Connectivity, Memory Interfaces, DSP IP, and Video IP
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
5988 Discussions

ALTFP_INV_SQRT problem

Altera_Forum
Honored Contributor II
860 Views

I have instanced ALTFP_INV_SQRT (y = 1/sqrt(y)) mega function in Quartus 10. I’m using single precision. When I calculate X”3F800001" (almost 1) the result is X”3F000000” (0.5). Calculating X” 3F800000" and X” 3F800002" is OK as shown below. 

 

Simulations: 

 

X"3F800000" => X"3F800000" or 

1,0000000000000000 => 1,0000000000000000 

X"3F800001" => X"3F000000" or 

1,0000001192092896 => 0,5000000000000000 -ERROR 

X"3F800002" => X"3F7FFFFE" or 

1,0000002384185791 => 0,9999998807907104
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
87 Views

Looks like a bug. File a support request.

Altera_Forum
Honored Contributor II
87 Views

OK 

 

Thanks
Reply