Altera_Forum
Honored Contributor
14 years agoFIR filter implementation in Cyclone II
Hi,
I am trying to implement a FIR filter written in verilog in Cyclone II. The filter coefficients are generated using winfilter.exe software (Fs = 50kHz, Fcutoff = 3kHz). This piece of software generates code in VHDL. I have converted it to verilog. As far as I can say, the conversion is OK. The output of the filter to a simple sine wave of 1kHz looks like a mess (just some pulses of different widths and heights). I am attaching my verilog code. Can somebody point me to what could be the problem or how can I debug the issue? I am new to implementing DSP filters in FPGA's so not able to understand how to debug the issue. Thanks, Aditi.