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.

Placing code in RAM for performance

Other Parts Discussed in Thread: SYSBIOS

Hello,

I'd like to know if there is special RAM location where I can place a my high frequency code in order to save CPU load?

If so, how to proceed, segment, etc.

Simon

Setup:

tms570 LS3, CCS 5.1, sysbios 6.31.4.27, xdc 3.20.8.88

  • Hello Simon,

    The entire tightly coupled SRAM region of the device can be used for maximum performance.  Two 64b SRAM interfaces with interleaved addressing per 64b word are implemented, such that instruction and data fetch from SRAM can happen in parallel.  

    For highest performance, you should also consider:

    • Alignment of your code and data structures on 64b word boundaries 
    • Deactivation of ECC to remove read/modify/write delays if you are not developing for safety applications
    Regards,
    Karl