Forum Discussion

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

NIOS2 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 by hardware at NIOS2-F and i am using 64K data and instruction cache.

My software is being compiled with these flags

CFLAGS = -Wall  -DNOCRYPT -mhw-div -mhw-mul -mcustom-fpu-cfg=60-1 -mcustom-fpu-cfg=60-2 -O3

I tried to use the Custom FPU instruction at QSys but my performace is slower with Custom FPU instruction attached to NIOS2-F at QSYS (why?)

Is there anything else i can do? Any suggestions?

28 Replies