各位好!本人刚刚接触C6748,问大家几个关于C6748 cache的问题。
1.如果我想把L1,L2全部设置成cache,需要哪些操作。
2.如果把L1,L2全部配置成cache,那么memory.cmd里面的SECTIONS里面的.stack等一些东西是不是就不能映射到L1,L2里面,而只能放到外部RAM里面了。
3.如果按照以上配置,CPU运行效率会有很大提升吗?
暂时就这么多,有新问题再补充。
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.
各位好!本人刚刚接触C6748,问大家几个关于C6748 cache的问题。
1.如果我想把L1,L2全部设置成cache,需要哪些操作。
2.如果把L1,L2全部配置成cache,那么memory.cmd里面的SECTIONS里面的.stack等一些东西是不是就不能映射到L1,L2里面,而只能放到外部RAM里面了。
3.如果按照以上配置,CPU运行效率会有很大提升吗?
暂时就这么多,有新问题再补充。
你好!
1. L1默认设置为cache的,L2的设置可以参考starterware内的例程;
2. 也可以将L2部分设置为cache。设置为cache后,就不能作RAM使用;
3, 会有提升
关于cache的相关内容,可以参考如下链接:
http://www.ti.com/general/docs/lit/getliterature.tsp?literatureNumber=spra756&fileType=pdf
请参考C674x DSP Cache User's Guide
在gogole搜sprug82a 即可
At boot time L2 cache is disabled and all of L2 is configured as SRAM (addressable internal memory). If
DSP/BIOS is used, L2 cache is enabled automatically; otherwise, L2 cache can be enabled in the program
code by issuing the appropriate chip support library (CSL) command: CACHE_L2SetSize();