Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > vhdl problem for iir filter

Reply
Thread Tools

vhdl problem for iir filter

 
 
mackyang mackyang is offline
Junior Member
Join Date: Jan 2008
Posts: 1
 
      01-05-2008
hi: guys
i have a problem makes me crazy.
how to use vhdl codes to implement iir filter
y(n)= 2cos(w)*y(n-1) - y(n-2)
and the initial conditions is y(-1)=sin(w),y(-2)=sin(2w).
which means i need output this filter every cycle calculation like following y(0),y(1)....
y(0)=2cos(w)*y(-1)-y(-2);
y(1)=2cos(w)*y(0)-y(-1);
...
i use a mac and a rounding operation to do it.
but its not work like i describe above.
how should i do. Am i need plus some selfcycle computation on testbench or on original filter codes. And how to plus it into this codes.

Thanks
 
Reply With Quote
 
 
 
 
omara007 omara007 is offline
Junior Member
Join Date: Jun 2008
Posts: 10
 
      07-04-2008
what is the rounding precision you'r using for MAC ?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IIR filter implementation on FPGA k4kami VHDL 3 02-05-2011 04:11 PM
IIR filter conversion routines for Python? wzab Python 7 05-09-2009 08:27 PM
VHDL-2002 vs VHDL-93 vs VHDL-87? afd VHDL 1 03-23-2007 09:33 AM
Re: IIR filter example ? MM VHDL 1 08-15-2006 08:44 PM
How to MULTIPLY by fraction ?? (making variable iir) Jam VHDL 2 09-15-2004 11:44 AM



Advertisments