My inputs are fed correctly but my FFT megacore output always shows a 0
Without having looked at your code I can only say that you need to obey to the protocol for the Avalon ports: sink_sop, sink_eop and reset for the FFT to work. Also - you must have source_ready=1 to enable downstream flow. Good luck
For more complete information about compiler optimizations, see our Optimization Notice.