Forum Discussion
Altera_Forum
Honored Contributor
15 years agoNIOS2 HW & DIV Instructions + FPU
Hello i am in charge of designing a system that does a lot of complex sin/cos/* instructions and i need them to be fast. I am using NIOS2-F at 100mhz in a Cyclone IV. I've enabled HW and DIV ...
Altera_Forum
Honored Contributor
15 years agoI've attached the FPU unit and now everything works (ofc this is the obvious)
sorry for wasting ur time about that =) I changed the FPU to this one at alterawiki: http://www.alterawiki.com/wiki/configurable_fpu I am testing with this code
# include <stdio.h>
int main()
{
float a = 10.;
float b = 11.;
float c = a * b;
printf("c = %f\n", c);
return 0;
}
And everything works fine