- #1
nashed
- 58
- 5
I'm trying to build a system that receives coefficients and performs a Fourier approximation, I need to write the system in VHDL so I'm using tables to simulate sin functions, they output an 8 bit number which is the sin of the input, then I need to multiply each sin with it's given coefficient and to prevent overflow I output a 16 bit number, next I want to sum over all the sins I have and I've determined that I need to output a 23 bit number to prevent overflow, now I need to output the result to a display which expects an 8 bit number and I'm stuck at this step as I'm not sure how to sample my 23 bit number so I get the correct shape of the function without distortions.