Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)

Filter VHDL

Altera_Forum
Honored Contributor II
1,849 Views

Hi, I've designed a filter pass low with 64 taps. 

I am not sur about my coding and I will be grateful if someone correct or confirm my vhd file. 

 

I have some doubts about the output signal. Any suggestion will be welcome. 

 

Kind regards
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
996 Views

Hi, 

 

my first thoughts: 

  • yep, should have low-pass behavior 

  • FIR design, so it'll be stable 

  • your code could need some indentation, and is written in a bit complicated way, but that's fine 

  • your simulation is not labeled, I can just do educated guesses on what's going on 

 

 

Then I tried to simulate it and realized that it didn't work, as you didn't put any "library" or "use" clause into it. And there's no test bench. If you want help from people, meet them half-way ;-) 

 

Then you did not specify what your goal was. It looks like a simple FIR-filter with all gains set to one. Did you choose that deliberately? Because it looks like you were just experimenting. 

 

I don't know how much knowledge you have about filters, so here are a few hints to get started: 

 

 

Does any of that help maybe? 

 

 

Best regards, 

GooGooCluster
0 Kudos
Altera_Forum
Honored Contributor II
996 Views

Hi,  

 

I had a quick review of your code. First answer few questions:  

1. Where are your filter coeficients? Are you trying implement moving average filter?  

2. What type of filter you are trying to implement? FIR (Finite Impulse Response ) or IIR (Infinite inpulse response)? 

 

Some comments on your code:  

 

Your code sums up input signal 64 times with itself. For eg. if signal_in=1 then you will get DOUT(63)=64. This is not how digital filters works.
0 Kudos
Reply