程序编译无错误、无警告,使用C6678 Device Cycle Approximate Simulator,GEL文件用的是Simulator默认的,点击Debug按钮之后便一直停留在下图界面,请问如何解决?谢谢!
cmd文件:
-stack 0x400000
-heap 0x400000
MEMORY
{
LOCAL_L2_SRAM: o = 0x00800000 l = 0x00080000 /* 512kB LOCAL L2/SRAM */
LOCAL_L1P_SRAM: o = 0x00E00000 l = 0x00008000 /* 32kB LOCAL L1P/SRAM */
LOCAL_L1D_SRAM: o = 0x00F00000 l = 0x00008000 /* 32kB LOCAL L1D/SRAM */
SHRAM: o = 0x0C000000 l = 0x00400000 /* 4MB Multicore shared Memmory */
EMIF16_CS2: o = 0x70000000 l = 0x04000000 /* 64MB EMIF16 CS2 Data Memory */
EMIF16_CS3: o = 0x74000000 l = 0x04000000 /* 64MB EMIF16 CS3 Data Memory */
EMIF16_CS4: o = 0x78000000 l = 0x04000000 /* 64MB EMIF16 CS4 Data Memory */
EMIF16_CS5: o = 0x7C000000 l = 0x04000000 /* 64MB EMIF16 CS5 Data Memory */
DDR3: o = 0x80000000 l = 0x80000000 /* 2GB CE0 and CE1 external DDR3 SDRAM */
}
SECTIONS
{
.text > LOCAL_L2_SRAM
.stack > SHRAM
.bss > LOCAL_L2_SRAM
.cio > LOCAL_L2_SRAM
.const > LOCAL_L2_SRAM
.data > LOCAL_L2_SRAM
.switch > LOCAL_L2_SRAM
.sysmem > DDR3
.far > DDR3
.args > LOCAL_L2_SRAM
.ppinfo > LOCAL_L2_SRAM
.ppdata > LOCAL_L2_SRAM
/* COFF sections */
.pinit > LOCAL_L2_SRAM
.cinit > DDR3
}
Andy Yin1:
Cycle approximate simulator在加载程序时速率很慢,一般在做功能仿真时建议使用functional simulator即可,你试试functional simulator看看是否由于速率的问题。
Z.Y Lee:
回复 Andy Yin1:
非常感谢您的回答。
刚才试了一下,functional simulator是可以正常debug的,但我还是希望能够使用Cycle approximate simulator估计运行时间。
我的程序里面有一个很大的全局变量存放在了<data.h>文件里(5MB左右),是不是用Cycle approximate simulator的时候要进行什么优化或者配置?
hocodrecon:
回复 Andy Yin1:
能解释一下这两种仿真方式的区别,以及适合在什么情况下使用吗?