Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- When you compare Matlab fft with fpga fft you should quantise Matlab model in a way similar to fpga. fft inputs: you need to input into Matlab and fpga the same quantised input and that is what you are doing I believe. fft outputs: Similarly you need to compare like by like i.e. quantised Matlab fft output with fpga fft output. Moreover, you better check real and imaginary outputs rather than abs() since this adds further processing. Then you and we can come to some better idea what the error is. If yoy then have fpga spikes then they should be +/- few integer values for a quantised range. Let us know... --- Quote End --- 1. Kaz, what do you interpret as "quantised fft output"? I do not understand this. Can you show this as matlab code, please? 2. Do you see attached files? I understand, that results of matlab and fpga can differ in few range. But I see difference in large range. Example this: --- Quote Start --- https://www.alteraforum.com/forum/attachment.php?attachmentid=6155 --- Quote End --- Thank you for help and sorry for my english.