C6748 cache怎么打开?L1PCFG_L1PMODE_32K 和 L2CFG_L2MODE_256K 这两个值分别是多少
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 cache怎么打开?L1PCFG_L1PMODE_32K 和 L2CFG_L2MODE_256K 这两个值分别是多少
L1如果用做Cache的话,不用去配置它,默认就是Cache.
L2总共256KByte,看你想多少做Cache,多少做RAM, 宏定义在dspcache.h里。
#define L2CFG_L2MODE_32K (0x1 << ((L2_MEM_UNIQUE >> 1) * 4))
#define L2CFG_L2MODE_64K (0x2 << ((L2_MEM_UNIQUE >> 1) * 4))
#define L2CFG_L2MODE_128K (0x3 << ((L2_MEM_UNIQUE >> 1) * 4))
#define L2CFG_L2MODE_256K (0x4 << ((L2_MEM_UNIQUE >> 1) * 4))