Forum Discussion

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

Interpolation with CIC Filter

Hello!

I want to interpolate a 13.5 kHz sinus signal, which is generated with a NCO at a sampling rate of 54 Khz. I want a sampling of 5,4 MHz.

So i tried to use a CIC-Filter with rate = 100.

What I get at the output of the CIC-Filter is a 4.5 kHz sinus signal !!

--> there is something wrong!

What is the problem here ??

I tried different types of stages and delays, but I won't get a 13.5 sinus.

please help me..

Thanks!

15 Replies

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

    Again I don't know about your set-up and IP signals. But the role is 1:100.

    It is your responsibility to clk data in at 1/100 of output rate. Then it is the responsibility of CIC IP to give you the correct output.

    One way is this enable at a rate of 1/100, connect to valid_in:

    -- detect the edge of slow clk in the fast clk domain:

    wait until fast_clk = '1';

    clk_1d <= clk_in;

    clk_2d <= clk_1d;

    enable <= clk_1d and not clk_2d;

    edit: make sure clks are synchronised
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello kaz !!

    Now the CIC-Filter is working!

    With detecting the edge of the slow clock and insert this to the Valid_In.

    Thank you very much!

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

    Hi tobias ,are you here ? I found your question about cic filter and is helpful to me, can you upload your worked design of cic filter quartus project here ? Thanks !

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

    Ok. I was thinking in your way too. Because the differentiators has to be clocked with the lower sample rate and the integrators has to be clocked with the higher rate. But I thought the CIC-Filter would do this "clocking" automatically.

    The CIC-Filter generated by the MegaWizard has only one clock-input.....how should I solve the problem??...

    ___________________

    Save your time and get on time success in a plus computer certification (http://www.pass4sure.co.uk/lx0-102.html) and testking toefl exams by using our latest comptia a+ (http://www.pass4sure.co.uk/lx0-101.html) and other superb n10-005 (http://www.pass4sure.co.uk/comptia-a-plus-training.html) pass resources of quincy university (https://www.faceboo.com/quincyuniversity) and southwestern college (http://www.youtube.com/user/southwesternccd)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The CIC core has a streaming interface involving input and output valid signals rather than separate "clocks". The output rate will be in fact generated automatically with respect to the input rate. Review the documentation!