Forum Discussion
Altera_Forum
Honored Contributor
21 years agoNios2 Performance
I just ran some benchmarks for an ARM922 and a NIOS2/f. Both were run with the same code and ran at 90MHz. I did benchmarks for interger multiply, integer divide, floating point multiply, and float...
Altera_Forum
Honored Contributor
21 years agoIt is obvious that without a FP unit, FP math is a magnitude slower than integer math. I just saw that one compiler/library is better than the other when it came to FP math. With the NIOS integer performance on par with the ARM (even better in some cases), the FP math is just too lopsided. It seems to me that the ARM FP library takes advantage of the its hardware better than the NIOS FP library. Could we feed this info back up to Altera? Are you suggesting a custom instructions (fmul, fdiv, etc) via a FP component?
If I did, would my code change from: x * y = z; k = i / j; To: z = fmul (x, y); k = fdiv (i, j); Rick