This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F29H85X-SOM-EVM: FFT evaluation

Part Number: F29H85X-SOM-EVM
Other Parts Discussed in Thread: F29-SDK

Tool/software:

Hello dear TI representatives,

We are evaluating 1024pt FFT performance of the C29 core, using CFFT example, and found that the performance difference between optimized assembly and optimized C is pretty big, almost 5 times in cycles, which could be pretty critical for our applications.

We would be totally fine with hand optimizing our DSP routines in assembly for a VLIW architecture, so are there any plans on providing guidelines or documentation on this topic apart from raw code examples in SDK?

Regards Ihor.

  • Hi Ihor,

    I'd like to better understand your question - is it specifically related to the CFFT or is it more a general question on C vs Assembly performance on this architecture?

    Thanks,

    Sira

  • Hello SIra,

    I think it's more general because judging from our previous experince with TI VLIW DSPs hand optimization in assembly was very rewarding.

    Regarding the specific CFFT matter, I think that 5x difference is too big to leave the generated code untreated, maybe it's a compiler maturity problem and I hope that get's better, but for now my original question about C29 hand optimization guidelines stays too


    Thanks for your time

  • Hi Ihor,

    1. In general, our compiler is achieving pretty good "entitlement" already i.e. C code performance matches the best performance you can get out of the architecture (through optimized assembly) in many cases. Of course, it is still early days of the compiler and this will improve with time on diverse types of code.

    2. Since this is a VLIW architecture, we absolutely do not expect customers to hand-optimize assembly. It is cumbersome and error prone. We want users to write C application code, and use our libraries (where we will provide optimized assembly routines where needed e.g. FFT, FIR).

    3. Some algorithms don't lend themselves well to performance entitlement with C. The FFT is a classic example. With optimized assembly, we can completely fill up the 128-bit instruction packet and create an extremely efficient kernel. However, the compiler cannot do this.

    4.  We have an optimization guide (https://www.ti.com/lit/sprujg0) but this discusses application level optimization, not how to write optimal assembly on this architecture.

    Thanks,

    Sira

  • Thanks, I guess this explanation is what I was looking for, can we expect the DSP and SDK expansion with for example more FFT types like with sliding window?


    Also I haven't found full intrinsics list yet in the file you linked, nor in the compiler's manual, is there plans on providing it?

  • Ihor,

    Yes, we plan on expanding the examples provided in the SDK, but this will happen over a period of time. If there's specific requests, please let me know and I can prioritize.

    The Intrinsics haven't yet been publicly released, but this is currently in the works. If you're interested in a specific answer, I'd suggest creating a separate e2e for it (just like you did this one), and it will be routed to the right expert to address.

    Thanks,

    Sira

  • Hello SIra, Thanks again for your responses.

    At the moment we are focused on more sophisticated control algorithms like MPC for our application, so maybe optimized matrix operation examples.

    Also, we've seen that the IIR filter example doesn't have the separate assembly implementation, the compiler's performance on this task was concluded sufficient?

    Regards, Ihor

  • Hi Ihor,

    The 1.01 F29-SDK is expected to go out soon (sometime this month). It will contain a matrix library with some optimized assembly implementations.

    Yes, the compiler does well on IIR.

    Thanks,

    Sira

  • That's excellent news!

    Much appreciated.

    Regards, Ihor