Author Topic: Long FFT; DSP or FPGA?  (Read 4347 times)

0 Members and 1 Guest are viewing this topic.

Offline jeremyTopic starter

  • Super Contributor
  • ***
  • Posts: 1079
  • Country: au
Long FFT; DSP or FPGA?
« on: November 15, 2013, 08:24:26 am »
Hi all,

I'm trying to design a device that will calculate a long FFT (~100k point sampled at 1M) and I'd like to calculate it at 1-2Hz on an embedded system that can run off a lipo stack. I am currently at a loss as to whether to go for an FPGA or a DSP to do the calculation, has anyone done this before and can offer some advice?
 

Offline jeroen74

  • Frequent Contributor
  • **
  • Posts: 396
  • Country: nl
Re: Long FFT; DSP or FPGA?
« Reply #1 on: November 15, 2013, 08:53:15 am »
I think a DSP is easier, but that depends a bit on the design of the rest of the system. There's more to the FPGA then just the stuff to do the FFT, think interface to memory, interfacing to the other parts of the system etc.
 

Online EEVblog

  • Administrator
  • *****
  • Posts: 37742
  • Country: au
    • EEVblog
Re: Long FFT; DSP or FPGA?
« Reply #2 on: November 15, 2013, 09:02:50 am »
Depends entirely on how you implement the DSP algorithm. If you don't do (or don't know how to do) parallel tricks on the FPGA, then the DSP often will be quicker and easier.
A lot of people make the mistake of just using a soft core processor in the FPGA to run the same algorithm as a micro/DSP and wonder why it's slower  ::)

Try:
http://www.altera.com/literature/wp/wp_dsp_comp.pdf
http://www.hunteng.co.uk/info/fpga-or-dsp.htm
http://www.ieee.li/pdf/viewgraphs/mapping_dsp_algorithms_into_fpgas.pdf
 

Offline AndyC_772

  • Super Contributor
  • ***
  • Posts: 4228
  • Country: gb
  • Professional design engineer
    • Cawte Engineering | Reliable Electronics
Re: Long FFT; DSP or FPGA?
« Reply #3 on: November 15, 2013, 09:09:39 am »
How will you get the data into the device that's doing the processing?

Offline jeremyTopic starter

  • Super Contributor
  • ***
  • Posts: 1079
  • Country: au
Re: Long FFT; DSP or FPGA?
« Reply #4 on: November 15, 2013, 09:20:48 am »
The samples are going to come in via the FPGA, so that's why I was considering an FPGA. Trouble is, I don't have a lot of experience with embedded DSP beyond simple FIR filters, so while I get the theory, I am lacking in knowledge of the "tricks" that Dave mentioned for FFTs. I guessed (correctly I suppose?) that DSPs would be easier and there will probably have to be a processor of some sort on the board  anyway.

I wish these hybrid ARM/FPGA SoCs weren't in such horrible BGA packages  :( They seem perfect.

I should clarify: I'm interested in the power spectral density aka real FFT, not all that interested in the phase.
 

Offline cosmos

  • Regular Contributor
  • *
  • Posts: 110
  • Country: 00
Re: Long FFT; DSP or FPGA?
« Reply #5 on: November 15, 2013, 09:37:57 am »
How often would you like the FFT to run?
If the DSP can handle the rate I would not bother with FFT in FPGA.
 

Offline jeremyTopic starter

  • Super Contributor
  • ***
  • Posts: 1079
  • Country: au
Re: Long FFT; DSP or FPGA?
« Reply #6 on: November 15, 2013, 10:03:51 am »
Basically just 1-2Hz, acquisition takes 100ms anyway.

Also, I have had trouble in the past with TI not supporting their chips very well (bought a dev board from them, needed to go back to XP to use it!). Can anyone recommend another chip with more open source and/or well supported tools?
« Last Edit: November 15, 2013, 10:09:41 am by jeremy »
 

Online EEVblog

  • Administrator
  • *****
  • Posts: 37742
  • Country: au
    • EEVblog
Re: Long FFT; DSP or FPGA?
« Reply #7 on: November 15, 2013, 10:11:09 am »
Basically just 1-2Hz, acquisition takes 100ms anyway.
Also, I have had trouble in the past with TI not supporting their chips very well (bought a dev board from them, needed to go back to XP to use it!). Can anyone recommend another chip with more open source and/or well supported tools?

I would just get a DSP demo board and give it a try using dummy data maybe and see how it goes. If it's good enough, then don't bother with the idiosyncrasies of fpgas.
 

Offline jeroen74

  • Frequent Contributor
  • **
  • Posts: 396
  • Country: nl
Re: Long FFT; DSP or FPGA?
« Reply #8 on: November 15, 2013, 10:31:55 am »
Maybe you should take a look at the Blackfin series from Analog Devices. I have no experience with them, but a quick view at Farnell shows they are available in reasonable packages at reasonable prices too.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf