--- Quote Start ---
i used ur wrapper and created my system using sopc.but when i see the nios_sytem.vhd file there are no fft inclusion in that file.But my project was succesfully compiled.
the steps i followed was that
1. i went to megacore wizard generated my fft for streaming architecture(
which architecture is better for speech recognition)
2. i went to sopc created my fft component adding fft.vhd file (
i think i have problem here in majd included files i did not find picture attached for creating fft component and what files need to be included and its interfaces)
3.i added the fft_wapper.vhd and created a new component fft_wrapper as in majd tutorial.
4. i added all necessary components(sgdma,rams)
Plz help me how to create fft component including your system image
my project is on speech recognition and i have my presentation scheduled in DEC 5 2010 so i am getting hopeless
plz help me.
--- Quote End ---
I believe that step 2 may be where the problem is. The beautiful thing abou the FFT wrapper file is that you do not need to add the actual FFT files directly in the SOPC builder. Try these steps:
1. Generate your FFT component, just as you have before. Make note of the name of the component (for example fft_64_.vhd). It should be the "top" level for the the FFT that was generated by the wizard.
2. Open up the fft_wrapper.vhd file and replace "fft_1024", with the name of the FFT file created for you through the wizard (for example, the entity name for the fft_64.vhd component you just created).
3. You will probably need to edit the fft_wrapper further, depending on your FFT implementation:
- If you are using floating point (add signals for the exponent), since my implementation was fixed point. (Hint - use fixed point :))
- If the bit width for the real and imaginary outputs from the FFT is greater than 32 bits (if the width is greater than 64 bits when combined into a single vector). (Hint - keep the bit width of each component below the 32 bits and you should be ok).
- If the input is greater that 32 bits for your FFT (16 bits for imaginary and 16 for real).
- If you want to control the direction of the FFT (the inverse input), you will need some additional logic, or perhaps there is another way. But, I just hardcoded the wrapper to keep the FFT in a single direction.
4. Now, just add the wrapper as a new component in the SOPC builder. Remember do not add the fft_instance.vhd file directly. This may cause issues. Just add the wrapper, which indirectly adds the actual FFT files.
5. Add all of the other necessary component as you did before.
This should get you up and running. Its going to be impossible for me to send you a screen shot of my system, but if you send me some shots of what you have, I may be able to help further.
Let me know when if this helps.