Azzera filtri
Azzera filtri

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

1 visualizzazione (ultimi 30 giorni)
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.

Risposte (3)

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

Accedi per commentare.


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

Accedi per commentare.


Kiran Kintali
Kiran Kintali il 6 Feb 2021
Modificato: Kiran Kintali il 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

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by