How do i design a synthesizable FFT with Simulink or Matlab for later on FPGA Implementation ?

I need to take an analog signal, put it through an ADC (1MSPS, 20-Bit) and then transform it on an FPGA to the frequency domain (FFT). I know that there is a "FFT HDL Optimized Block" in Simulink but how do i design the input so that it matches what i want and then generate the hdl code via hdl coder ?

Answers (1)

The examples in this page should be a good start for you to design the input and generate hdl code.

5 Comments

do you think i need more than adjusting the input and output of the FFT HDL optimized block to implement the FFT on an FPGA ?
That depends on what design you are trying to implement on the FPGA. If you are only implementing the FFT on the FPGA, that block is all you need to put in a subsystem and generate HDL code.
Ok thanks.
I also need to implement a "peakfinder" to find the peaks of the fourier-transformed signal on the FPGA.
Is there a hardware friendly implementation or block for this peakfinder as well (Simulink or Matlab) ?

Sign in to comment.

Asked:

on 14 Jul 2021

Community Treasure Hunt

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

Start Hunting!