HDL FFT Optimized. Valid Out always high
3 次查看(过去 30 天)
显示 更早的评论
Hi everybody,
I'm currently using the FFT HDL Optimized Block in my project and I wonder why my Valid Out is ALWAYS high. Even if I stop to feed the FFT with new values it remains high. The output is nothing usefull and for sure not the spectrum of the input data. Does anyone know that problem?
What I did: I generated the VHDL Code from a simulink Modell which ONLY contained the FFT Block and In- and Outputs (Data_In, Valid_In, Data_Out, Valid_Out). Is it useful that I put my sourcecode here? I guess it would be rather confusing so I leave it out for now. Please let me know if it would help so I can add it later on. In the Simulink simulation I had the same problem. The FFT continuously got input values. It continuously outputted the correct spectrum again again and again without pulling valid_out back to low at any moment. Is that how it is supposed to work? According to the timing graphs in the documentation it is not is it?
Thank you for your time and help!
0 个评论
采纳的回答
Alireza
2014-11-11
Hi Lennart,
The HDL is verified and matches Simulink behavior. One thing that you can do to verify the result is to generate HDL and HDL test bench, and run the test bench in ModelSim (or any HDL Simulator). Note that the FFT output is in bit reversed order in 14a release. In 14b you can choose between bit reversed and natural order output.
0 个评论
更多回答(7 个)
Alireza
2014-10-14
This is a bug in our implementation - we are looking into a patch for the issue.
0 个评论
Alireza
2014-10-15
If you keep validIn high, the result is correct. Even in case the valid in is toggling, the HDL sends out the FFT of the input, mixed with some invalid data. But since valid out is high all the time, you don't know which output sample is correct and which one is not.
0 个评论
Alireza
2014-11-19
Hi Lennart,
Here is the website that you can download the patch for 14a and 14b. Please read the release notes because the patch will upgrade the FFT to the latest version and you get more features. http://www.mathworks.com/support/bugreports/1090560
Please let me know how it goes and if the patch fixes your problem.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 HDL Coder 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!