Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to reduce the frequency of a FIR filter using VHDL?

Status
Not open for further replies.

triump.ar

Junior Member level 2
Joined
Dec 9, 2007
Messages
24
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,440
i m designing fir filter using vhdl...i have to decimate the frequency by a factor of two....is there anyone who cn tell me....how to do it
 

vhdl fir filter

Decimating by a factor of 2, simply, means you only have to take half the input samples. It's up to you to take either even/odd only samples.

Cheers,
-s
 

fir filter hdl

Hello,

dropping each second sample is actually a kind of "decimation", but not what's usually meant with the term. Consider a signal covering the frequency range nearly up to fs/2. Dropping one of two samples results in the upper halfband being mirrored into the lower halfband - complete aliasing.

To prevent from aliasing, a low-pass filter must be applied to signal prior to resampling. Calculating the mean of two subsequent samples (add + shift right)would give at least a minimum of filtering, but more effective filtering could be necessary.

Regards,
Frank
 

    triump.ar

    Points: 2
    Helpful Answer Positive Rating
filter using vhdl

Hi,

That's true - the question is: where is your sampling frequency, before decimation? (compared with highest frequency in your input signal)

If it's far enough (like 4x greater), you may simply drop every second sample. If not, say it, we'll talk about what to do then :).
 

vhdl frequency factor

Yes, but even without aliasing components filtering would improve signal-to-noise ratio, e. g. 3 dB regarding broadband noise for the one of two mean value.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top