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

1 Ansicht (letzte 30 Tage)
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.

Antworten (3)

Kiran Kintali
Kiran Kintali am 12 Jan. 2021
Can you share a sample code and testbench?
See attached example on how to generate HDL from hdl.FFT function.
  1 Kommentar
satish kumar
satish kumar am 20 Jan. 2021
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.

Melden Sie sich an, um zu kommentieren.


Kiran Kintali
Kiran Kintali am 20 Jan. 2021
Please share sample MATLAB Code and Testbench and the error you are seeing. Thanks
  3 Kommentare
satish kumar
satish kumar am 22 Jan. 2021
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

Melden Sie sich an, um zu kommentieren.


Kiran Kintali
Kiran Kintali am 6 Feb. 2021
Bearbeitet: Kiran Kintali am 6 Feb. 2021
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

Produkte


Version

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by