Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

Quartus-II FIR compiler-II DSP IP Core

Dear friends ,

I am a beginner in Quartus -II tool . I generated an IP core for band pass filter of order 64 from DSP->Filter-> FIR compiler II in Megawizard tool box . The default outputs are simulated in Questasim . When I simulated with my inputs(no. of i/ps :250) ,the output should be 250 as from MATLAB . But in the IP core I'm getting only 245 outputs with first 32 values as delay ...

Any solution ...??

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Dear friends ,

    I am a beginner in Quartus -II tool . I generated an IP core for band pass filter of order 64 from DSP->Filter-> FIR compiler II in Megawizard tool box . The default outputs are simulated in Questasim . When I simulated with my inputs(no. of i/ps :250) ,the output should be 250 as from MATLAB . But in the IP core I'm getting only 245 outputs with first 32 values as delay ...

    Any solution ...??

    --- Quote End ---

    I assume you mean you apply impulse input of value 250 and matlab says your max output should be 250 after initial values. i.e. you are targetting unity gain. The difference of 245 from 250 most likely indicates rounding issues with your coefficients. I don't know about your tool but is likely you have chosen a rounding method different from that of matlab.