Forum Discussion
Altera_Forum
Honored Contributor
16 years agoinput to IIR filter in Verilog
Just a quick question regarding implementing an IIR filter in Verilog... At the moment, I am using the Wolfson ADC on the DE2-70 to convert analogue sound input from Line In to digital bits - t...
Altera_Forum
Honored Contributor
16 years agoa of 0.7 need to be scaled up for hardware:
You can set (y) as 20 bits, (a) as 10 bits magnitude. then chop off output back to 8 bits by discarding LSBs of result(after optional rounding) Then a = round (0.7 * 1024) = 717 (1-a)*x becomes x*1024 - x*717 the term x*1024 = x*2^10 i.e. just insert 10 zeros infront. Figured out in a rush, I hope I am correct...