• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » C6000 Single Core DSP » C64x Single Core DSP Forum » C6457(1GHz) FFT function timing
Share
C6000 Single Core DSP
  • Forums
  • Announcements
Options
  • Subscribe via RSS

C6457(1GHz) FFT function timing

C6457(1GHz) FFT function timing

This question is not answered
Guangyi Wang
Posted by Guangyi Wang
on May 10 2011 11:45 AM
Prodigy80 points

 

 

We used 1K FFT implementations from C64+ library in our project. The target DSP is 1GHz C6457, and the FFT function used is DSP_fft16x16(). From document SPRUEB8B, we found the # of cycles for SA is 4218, which corresponds to 4.218 us for 1G DSP. However, the processing timing measured is about 86 us. Obviously, our usage of the assambly library is not correct. Could you please help us to get the right FFT assembly implementation/usage for our project?
 
For reference, the natural C timing is measured as 38us (optimization 3 with full suppresion of debugging) compared to 26268 cycles in TI document, and intrisic C timing is 9.2 us compared to 5369 cycles


Thanks

Guangyi Wang
C6457 FFT function
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Rahul Prabhu
    Posted by Rahul Prabhu
    on May 10 2011 14:30 PM
    Genius15605 points

    Guangyi,

    The performance benchmarks published in the TI document are using a C64x+ cycle accurate simultator that assumes all code is in internal memory so the cod is unlikely to provide you with the same numbers on the actual device due to addtional time required to access memory and caching.

    Coming to the performance of the assembly function as compared to the natural C and the intrinsic C version, it appears that you may have implemented something differently for the test setup of the assembly source function as compared to the test bench for the other versions. We provide a test bench for all the function in the library in the src folder in the library that can be used as reference implementation. Can you run the test bench for the fft16x16 function and report the numbers you see.

    Regards,

    Rahul 

    ---------------------------------------------------------------------------------
    Please click the
    Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------

    DSPLIB
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Guangyi Wang
    Posted by Guangyi Wang
    on May 11 2011 11:54 AM
    Prodigy80 points

     

    Hi Rahul

     

    We use internal RAM for code space. So, the cycle count should match the benchmark.
     
    The most important issue we need to solve is the processing timing for assembly FFT implementation. It's even slower than that of the natural C implementation.
     
    Here is the 3 FFT function calls used in out DSP project for comparison:
     

    // Natural C

    DSP_fft16x16_cn(&gTwiddleFft[0], FFT_SIZE_IMP, fftInPtr, (Int16*) &gFftOutUl[0]);

    // Intrisic C

    DSP_fft16x16_i(&gTwiddleFft[0], FFT_SIZE_IMP, fftInPtr, (Int16*) &gFftOutUl[0]);

    // Accembly

    DSP_fft16x16(&gTwiddleFft[0], FFT_SIZE_IMP, fftInPtr, (Int16*) &gFftOutUl[0]);

    Could you please help us to find out why the assembly implementation is so slow?

    Thanks

    Guangyi
    C6457 FFT function
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Rahul Prabhu
    Posted by Rahul Prabhu
    on May 11 2011 15:17 PM
    Genius15605 points

    Guangyi,

    Assuming you have same memory steup for all tests, the benchmarks that you are descibing seem  unlikely unless you have a timer/counter that is overflowing and wraps around or if the C code for some reason exits without computing the entire FFT . Have you compared the outputs to see if they are the same. Is it possible for you to send your test project so that we can replicate the scenerio or may be review the code for you?

    Regards,

    Rahul

     

    ---------------------------------------------------------------------------------
    Please click the
    Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Guangyi Wang
    Posted by Guangyi Wang
    on May 11 2011 17:12 PM
    Prodigy80 points

    Hi Rahul

     

    Please send me your contact info

     

    Thanks

     

    Guangyi

    C6457 FFT function
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Guangyi Wang
    Posted by Guangyi Wang
    on May 12 2011 11:16 AM
    Prodigy80 points

     

     

    Hi Rahul

     

    We have compared the outputs for natural C and assembly implementations. The outputs are the same. But, the problem is that the assembly implementation consumes much more cycles than expected, even more than the cycle count of the natural C implementation.

     

    Is there anything extra we need to do when build the assembly routine from TI library, such as build properties setup? We are using CCSv4.1.2.

     

    Thanks

     

    Guangyi

    C6457 FFT function
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Rahul Prabhu
    Posted by Rahul Prabhu
    on May 12 2011 12:11 PM
    Genius15605 points

    Guangyi,

    Can you send your code to the Developer Mailing List  mentioned here so that we can take a look at the issue.

    http://processors.wiki.ti.com/index.php/Software_libraries#Developer_Mailing_List

    Regards,

    Rahul

    ---------------------------------------------------------------------------------
    Please click the
    Verify Answer button on this post if it answers your question.
    ---------------------------------------------------------------------------------

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Eyal Amir
    Posted by Eyal Amir
    on Apr 16 2012 10:38 AM
    Prodigy10 points

    Did you ever figure out the problem? We're having similar issues.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use