Altera_Forum
Honored Contributor
15 years agoIIR audio filter problem
Hi,
I'm trying to make a IIR lowpass filter in VHDL. i used matlab to design the filter, tested it in simulink and it seemed to work. I also used matlab to generate vhdl code (using filterbuilder function). Now when i take this code that matlab generated and try to compile it in quartus, i get the following error: Error (10414): VHDL Unsupported Feature error at Hlp2.vhd(35): cannot synthesize non-constant real objects or values i'm not sure but i'm think the error comes from the fact that the coefs are real type. (ex: 1.998375) Now how do i get around this ? Or how can i make a IIR filter in quartus ? i did looked into the Basic IIR filter design example, but documentation is almost inexistent and i do not understand how to use it ! I need help. Thank you Lespoils here is the code generated by matlab