electronics forum

Rules | Recent posts | topic RSS | Search | Register  | Log in

A basic question on the FIR design in FPGA


Post new topic  Reply to topic    EDAboard.com Forum Index -> PLD, SPLD, GAL, CPLD, FPGA Design -> A basic question on the FIR design in FPGA
Author Message
eruisi



Joined: 03 Jan 2006
Posts: 95
Helped: 15
Location: MA


Post28 Oct 2006 22:13   

A basic question on the FIR design in FPGA


I need to design a low-pass digital FIR in FPGA. Can you guys give me some hints how to optimize it? The cut-off frequency of FIR is 5MHz. The platform I am using is Altera qu(at)rtus 4.

First optimization is for area.
I'm using 64-tap architecture. After all kinds of optimizations that I can come up with (symmetry makes coefficients to half, some coeffecicents are taken out (0,1)or replaced by shifters (+/-2, +/-4, +/-8, ...). Still it's huge. A lot of area is taken by the multipliers.

Second one is for speed. How to pipeline the final adding of all results from 64 taps? Is there any tools can do it automatically?

Last one is for power, of course simplifying hardware can reduce the power. Any other techniques can be applied here without huge impact on performance?

I really appreciate your help!
Back to top
echo47



Joined: 07 Apr 2002
Posts: 4206
Helped: 566


Post29 Oct 2006 3:39   

A basic question on the FIR design in FPGA


What is your target device? What is the signal's sample rate and bit width?
If you can clock your multiplier-accumulators (MACs) at 200 MHz, for example, then you won't need very many of them.
If your device doesn't have built-in multipliers, then consider a better device.
Back to top
eruisi



Joined: 03 Jan 2006
Posts: 95
Helped: 15
Location: MA


Post29 Oct 2006 4:48   

Re: A basic question on the FIR design in FPGA


Thanks.

Data bit width is 16
Target device is Starix EP1S40B956C5
Data rate is only 20MHz or so

What are the typical techniques to decide the order and coefficients of an FIR design?

In architectural aspect, using more hardware but working at low frequency, or using less hardware (time multiplexing) but working at higher frequency, general speaking, which one is better in term of power consumption?

I found that when I simplified the hardware, reduced the area, the dynamic power is reduced, but the static power remains, which means the unused hardware in the chip still consumes power as usual. Then how to reduce the power consumption of unused hardware in the FPGA chip?

Thanks again!
Back to top
echo47



Joined: 07 Apr 2002
Posts: 4206
Helped: 566


Post29 Oct 2006 6:27   

A basic question on the FIR design in FPGA


I've never used Altera FPGAs, but I think that device has 54 18-bit MACs that can go 278 MHz. I don't know how easy/difficult it is to achieve maximum speed in Altera parts, but I would try using 6 MACs running at 220 MHz, with each one processing 11 filter taps.

In general, for good FPGA resource utilization, you should run the clock fast, use lots of pipelining, and do things sequentially to keep most of your logic busy on every clock cycle.

I use MATLAB to create digital filter coefficients. It makes the job pretty easy. MATLAB can also spit out VHDL or Verilog code, but I prefer writing my own HDL.

I don't know details of Stratix power management. In Xilinx FPGAs, static power is usually small compared to dynamic power.
Back to top
melc



Joined: 08 Apr 2005
Posts: 394
Helped: 45


Post29 Oct 2006 7:20   

Re: A basic question on the FIR design in FPGA


eruisi wrote:
Thanks.


I found that when I simplified the hardware, reduced the area, the dynamic power is reduced, but the static power remains, which means the unused hardware in the chip still consumes power as usual. Then how to reduce the power consumption of unused hardware in the FPGA chip?

Thanks again!



I've asked at Altera for a similar problem. There is nothing to do.
How much is your current drawn by the VCCIO, VCCINT and VCCPLL in static condition and which is when runnig (I presume VCPLL and VCCO are almost the same)?

thx,
Back to top
alimassster



Joined: 01 Aug 2006
Posts: 31
Helped: 1


Post29 Oct 2006 8:58   

Re: A basic question on the FIR design in FPGA


I've never used Altera's FPGAs but as I know there is a slice called DSP48 in xilinx's ones which includes some pipline registers.
using them a higher speed (in Virtex 4 up to 500 MHZ) is achievable .you can put them befor the multiplier block or between MUL and ADD blocks and also in the output. by casscading 64 DSP48 slices and (there are 512 dsp48 blocks in Virtex 4 sx55) , you'll have a result at every clock cycle.
these blocks can be programmed by Xilinx System Generator in xilinx devices and by DSPbuilder in Altera's.
Have a nice time
Back to top
eruisi



Joined: 03 Jan 2006
Posts: 95
Helped: 15
Location: MA


Post31 Oct 2006 15:41   

Re: A basic question on the FIR design in FPGA


Thank you guys for the kindly reply. This community is great!

I have another general question: Besed on the requirement, I need to focus more on power efficiency than area/speed. I understand that I can do nothing for static power since the target device has no clock gating etc.

For dynamic power: what are techniques for low power in general for FPGAs, like pipelining or anything else?
Back to top
melc



Joined: 08 Apr 2005
Posts: 394
Helped: 45


Post31 Oct 2006 19:09   

Re: A basic question on the FIR design in FPGA


You didn't answered to my question, please.
Back to top
Alex321



Joined: 06 Jun 2006
Posts: 3


Post02 Nov 2006 8:42   

Re: A basic question on the FIR design in FPGA


If sampling frequency 20MHz, and cutoff frequency 5MHz, possible using half-band filter. Impulse responce of this filter symmetrical, and even coefficients is zero (except central tap).
Back to top
alimassster



Joined: 01 Aug 2006
Posts: 31
Helped: 1


Post06 Nov 2006 8:00   

Re: A basic question on the FIR design in FPGA


Optimization Techniques for Efficient Implementation of DSP in FPGAs


Sorry, but you need login in to view this attachment

Back to top
bangash



Joined: 01 Apr 2006
Posts: 92
Helped: 4
Location: London


Post08 Nov 2006 9:34   

Re: A basic question on the FIR design in FPGA


use matlab 7 . it will also generate its verilog or VHDl code
Back to top
mhmahmood



Joined: 05 Jan 2006
Posts: 25
Helped: 1
Location: Pakistan


Post08 Nov 2006 13:56   

Re: A basic question on the FIR design in FPGA


You can go to Xilinx website. It has nice filter implementation examples.
Back to top
eruisi



Joined: 03 Jan 2006
Posts: 95
Helped: 15
Location: MA


Post11 Dec 2006 17:45   

Re: A basic question on the FIR design in FPGA


Sorry I didn't pay attention to your question.
Where can I get thouse results?

melc wrote:
You didn't answered to my question, please.
Back to top
quy1001



Joined: 30 May 2006
Posts: 20


Post12 Dec 2006 6:07   

Re: A basic question on the FIR design in FPGA


Yes, Matlab is good tool for design FIR and also IIR.

The second think is you should have ability to handle Fixed point number operation.

Then you can design any filter.
Back to top
Google
AdSense
Google Adsense




Post12 Dec 2006 6:07   

Ads




Back to top
Bob_C



Joined: 23 Dec 2003
Posts: 31


Post12 Dec 2006 13:23   

Re: A basic question on the FIR design in FPGA


Hi,

Tyder who produce ONEoverT Digital Filter Designer will create filter and other IP for you for $50 via Paypal. Design your filter using the demo version of ONEoverT or Tyd-IP Code Generator, save the project file (*.fil) and send it to them. You need to specify what device you want to target. They will send you back the edif files or .ngc. You can then use this in your FPGA.

Bob
Back to top
Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
Post new topic  Reply to topic    EDAboard.com Forum Index -> PLD, SPLD, GAL, CPLD, FPGA Design -> A basic question on the FIR design in FPGA
Page 1 of 1 All times are GMT + 1 Hour
Similar topics:
FIR on FPGA(DSP48) an urgent question (2)
FIR Design on XilinxSpartanII FPGA:Output Rounding Problem (12)
Basic Question about FPGA (12)
basic question about FPGA (4)
Matlab FIR Design question (7)
Basic FIR Filter Design- calculating filter coeffecients (2)
Xilinx FPGA; a basic Question about Built in RAM (2)
FIR filter design by the FFT algorithm (1)
What are the basic steps to demodulate FM (general and FPGA) (2)
order of the FIR filter - design code in HDL (2)


Abuse || Administrator || Moderators || Support us || sitemap
topic RSS