Forum Discussion

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

FFT_tb

Hi !

I created 16 FFT code by using megawizard. I ran its stimulation by using the test bench code which megawizard created.

It is running only for 4 frames. I modified the frame number and its source files( sink_real.txt and sink_imag.txt) but I couldnt run it for more frames.

I want to run it for 16 frames. Did anyone try this ? Is it possible ?

thanks

2 Replies

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

    If you're using fft_tb.v then you need to edit line 51:

       parameter                        NUM_FRAMES_c = 4;

    To what you want.

    For fft_tb.vhd you need to edit line 56:

      constant NUM_FRAMES_c : natural := 4;

    Does that help?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I am using VHDL .I have editted the line 56 I didnt work.

    I figured out the problem .

    We have to edit also line 59.

    signal fftpts_array : fftpts_list_t := (16, 16, 16, 16);

    this array legnt must be the same with the frame number..

    Thanks a lot