Intel® FPGA University Program
University Program Material, Education Boards, and Laboratory Exercises
1198 Discussions

How to test the FIR II filter

mitsvoid
New Contributor I
1,057 Views
Dear All,
 
I hope this message finds you well. I am currently working on a project involving an Altera DE2-115 board, where I aim to pass stored 32-bit ADC data through a FIR filter. Specifically, I am capturing voice data from a microphone with an 8 kHz sampling rate at 32 bits. I designed a Low Pass filter using MATLAB with the following specifications:
  • Filter Type: Low Pass
  • Window: Hamming
  • Order: 100
  • Sampling Frequency (Fs): 8000 Hz
  • Cutoff Frequency (Fc): 300 Hz
After designing the filter, I exported the coefficients and implemented them in the FIR II IP core. However, I encountered an issue where the output is 55 bits instead of the desired 32 bits. I attempted to handle this by truncating the 23 least significant bits, but this resulted in significant noise.
 
I am seeking advice on how to approach the truncation process effectively. Is there a method that can assist in determining which bits to remove?
 
Can i use the NCO IP core to generate a signal and to pass through the FIR filter in order to observe it with simualtion ?
 
Thank you.
Labels (1)
0 Kudos
1 Solution
Kshitij_Intel
Employee
999 Views

Hi,


You can use the NCO IP core to generate a signal and to pass through the FIR filter in order to observe it with simulation or on Signal Tap.


Thank you,

Kshitij Goel 


View solution in original post

6 Replies
Kshitij_Intel
Employee
1,000 Views

Hi,


You can use the NCO IP core to generate a signal and to pass through the FIR filter in order to observe it with simulation or on Signal Tap.


Thank you,

Kshitij Goel 


FvM
Honored Contributor I
954 Views

Hi,
you don't need NCO to test filter in simulation, just use sin() function in your testbench.

Another point, voice spectrum is about 300 Hz - to 3.4 kHz, applying a 300 Hz low pass leaves about nothing of speech signal. Do you mean high pass?

mitsvoid
New Contributor I
948 Views

Hi,

 

I didn't know about the sin() function, I will try it.

Yes, I was wrong about the cutoff frequency of the FIR filter.


Thank you.

 

 

0 Kudos
mitsvoid
New Contributor I
935 Views

I would like to ask one more question. Can you let me know if it is possible to add, for example, the FIP II IP core inside to my custom IP core, which is based on the Avalon-MM interface?

0 Kudos
Kshitij_Intel
Employee
861 Views

Hi,


I think you mean to add in platform designer/QSYS. If Yes, you can.


Thank you,

Kshitij Goel


0 Kudos
Kshitij_Intel
Employee
723 Views

Hi,


As we do not receive any response from you on the previous answer that we have provided. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.

 

Thank you,

Kshitij Goel


0 Kudos
Reply