Forum Discussion
Altera_Forum
Honored Contributor
13 years agoFloating point math
Hello,this would be my first real job with fpga, and because of that, i need some help. Originally i was using STM32F4 to make single point DFT from 128 point array, but even at 250MHz it is too s...
Altera_Forum
Honored Contributor
13 years agoOne solution to your problem is to use a lookup table, just as you have done in your C code.
In your C code, your arrays "cos_fast" and "sin_fast" could be realized with FPGA on-chip memory (ALTSYNCRAM as a ROM). The contents of that memory would be initialized with the contents of a data file which you would populate prior to compiling your FPGA. At run-time, your loop iterator "k" would be tied to the address input port of the given on-chip memory, while the data output ports of that memory would be tied to the input of your ALTFP_MULT multiplier.