Forum Discussion
Altera_Forum
Honored Contributor
13 years agoOkay, I must admit, that without some example data it must be hard for you to even understand, what I'm asking for ;-)
I uploaded my Matlab simulation files for the core. This simulation is doing exactly, what I'm expecting: With increasing/decreasing amplitude of my frequency modulated signal, the magnitude of the fft result is also increasing/decreasing. The adjustment with the scaling factor from the core leads to a smooth increas/decrease of the magnitude signal over the whole input range. This is just not happening with my current fft implementation. I hope, that somebody can confirm, that if it works in this simulation, it will also work in the hardware. All I have to do is to implement it correctly. The next step should be to simulate this data in modelsim. Therefore, i would like to create some binary data with this script, that can be used as input to my vhdl module as if it was coming from the ADC. I prefer to put in the ADC like binary format. As you can see, the script is already able to create a test data file. Unfortunately, I have no idea how to scale the matlab values into the binary 12 bit value range, so that it would match the real worl expected data. Any hints for that and additional improvement comments are very much welcomed. regards, Maik