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.

TMS320C6727 program cache

Other Parts Discussed in Thread: TMS320C6727

Hi,

I have gone through the datasheet of TMS320C6727 dsp and its mentioned that the chip contains the program cache along with the internal program/data RAM but I could not find the location of the cache anywhere in the memory specs of the dsp chip. Pls help if anyone knows where and how is the program cache allocated in memory. Also, it is written that the program executes from the cache by default but in the command file shows that the code is given in the .text section of internal RAM. Thus, is there any way to load the program in cache? or to verify that the program is executing from cache?

Thanks in advance.

Anushree

  • Anushree,

    For the C6727, program cache is not in the memory map. It is purely cache and is not directly accessible for CPU-directed reads or writes. It only works as a cache for program accesses.

    All you have to do is make sure it is enabled and that is starts out cleared / invalidated.

    You do not load cache. That is not how cache works. You can load program into Internal RAM, but program gets copied into cache only as it is accessed through normal program accesses.

    Regards,
    RandyP

  • Anushree,

    Please refer to the John`s response here:

    http://e2e.ti.com/support/dsp/tms320c6000_high_performance_dsps/f/115/t/48697.aspx

    The program cache is enabled using control registers L1PICR and the performance of your code should improve when you enable it. As a quick test you could run your code disabling it in L1PCR and then run the code by enabling it and see the improvement in performance to verify that your program is running from the L1P.

    Rahul