Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
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.

Respuestas (3)

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

Iniciar sesión para comentar.


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

Iniciar sesión para comentar.


Kiran Kintali
Kiran Kintali el 6 de Feb. de 2021
Editada: Kiran Kintali el 6 de Feb. de 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

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by