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.

decimation filter design

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 hv to design decimation filter in which it consists of three stages the first stage of cic filter and followed by two stages of half band filter...i know the basics of both but i m not able to implement it using vhdl..i have some problmes
1. how to use delay in vhdl.....(we r using registers but how its gonna work)
2. the filter coefficients
3. how to decimate???
 

cafukarfoo

Full Member level 3
Joined
Jul 25, 2007
Messages
170
Helped
8
Reputation
16
Reaction score
5
Trophy points
1,298
Activity points
2,510
1. how to use delay in vhdl.....(we r using registers but how its gonna work)
For the CIC example,
let say ur decimation factor = 32

so you will have a 5 bit counter. When this counter reach 32, you will output an output sample.
That mean you will only get 1 output sample for each 32 clock cycle. Which mean you had decimate the sample by factor of 32

2. the filter coefficients
i think u can use 2 option:
a. design the filter using matlab. matlab will give you the coefficient.
b. you can use the formula to count it. for example a low pass filter,
the frequency response h(n)= sin(xn)/n*pi. when x = 0,pi/4,/pi/2,3*pi/4

3. how to decimate???
if u decimate by 2, that mean you generate a output sample after 2 input sample.
if u decimate by 32, that mean you generate a output sample after 32 input sample.

please click "Help" button if i did help. thanks.
 
  • Like
Reactions: ferox

    triump.ar

    Points: 2
    Helpful Answer Positive Rating

    ferox

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top