How to generate hdl code for a function containing dsp.HDLFFT and dsp.HDLIFFT system objects?

1 次查看(过去 30 天)
My matlab code consists of fft, multiplication, division and ifft operations in a single function. Can we generate hdl code for the entire function to burn on fpga. Please help.

回答(3 个)

Kiran Kintali
Kiran Kintali 2021-1-12
Can you share a sample code and testbench?
See attached example on how to generate HDL from hdl.FFT function.
  1 个评论
satish kumar
satish kumar 2021-1-20
Kiran sir, individually hdlFFT and hdlIFFT i have done and it worked well. My requirement is as follows:
I have a row vector. On which i need to apply FFT and then multiply the result with a constant number and then apply IFFT to this result. So a function which does following FFT, multiplication and IFFT. I have written the function in matlab and tried to generate HDL code. But the code generation failed. My question is it possible to do so with HDL coder.

请先登录,再进行评论。


Kiran Kintali
Kiran Kintali 2021-1-20
Please share sample MATLAB Code and Testbench and the error you are seeing. Thanks
  3 个评论
satish kumar
satish kumar 2021-1-22
Purpose of this test code is as follows. I am giving input : yIn , on which FFT applied and on this result(yOut) i applied IFFT to get back the given input yIn which is in YOut. But couldnt generate HDL.
Is it not possible to generate hdl code when FFT and IFFT hdl blocks in cascade. Because in my actual algorithm, i need them in cascade. Please help

请先登录,再进行评论。


Kiran Kintali
Kiran Kintali 2021-2-6
编辑:Kiran Kintali 2021-2-6
See the attached file with examples on some of the coding styles.
Some of the examples contain FFT variations in MATLAB suitable for HDL code generation.
  1. basic discrete time integrator
  2. symmetric fir filter
  3. histogram equalizer
  4. 40 point parallel FFT
  5. polyphase channelizer

产品


版本

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by