?? spi4_tx_dl_uc.ind
字號:
path .;G:\IXA_SDK_3.5\me_tools\bin
foreign_model loader_dll.dll LoaderDLL
@init_ixp2400
load_ixc chip(0) "spi4_tx_dl_uc.list"
load_uof("spi4_tx_dl_uc.uof","chip");
wakeup_microengine("chip", 0, 8 );
set_scratch(0x3ff8,0);
watch_scratch_function("put_scratch_char();", 0x3ff8);
void put_scratch_char() {
int io, size;
int val = get_scratch(0x3ff8);
int flag;
if(val & 0x40000000)
{
flag = val >> 24;
flag = flag & 0xf;
if(flag==0) /* char output */
{
io = val & 0xff;
if (io==0xff) {
printf("me.0 ctx.0 halts simulation\n" );
state("sim.halt") = 1;
}
else if(io==0xfe)
{
printf("me.0 ctx.0 killed\n" );
}
else printf("%c", io);
}
else if(flag==1) /* hex number */
{
io = get_scratch(0x3ffc);
printf("%08X", io);
}
else if(flag==2) /* unsigned decimal integer */
{
io = get_scratch(0x3ffc);
printf("%-1u", io);
}
else if(flag==3) /* packed char output */
{
io = get_scratch(0x3ffc);
size = (val >> 16) & 0xff;
if(size>=6)
printf("%c", (val>>8)&0xff);
if(size>=5)
printf("%c", (val)&0xff);
if(size>=4)
printf("%c", (io>>24)&0xff);
if(size>=3)
printf("%c", (io>>16)&0xff);
if(size>=2)
printf("%c", (io>>8)&0xff);
if(size>=1)
printf("%c", (io)&0xff);
}
set_scratch(0x3ff8, 0);
}
}
{
sim.error_handle_mode = 0; // ignore any errors and continue
string cmdstr;
cmdstr = "ubreak exit_point " + sr_chip_name + "(*:*) _exit#";
cmd(cmdstr);
sim.error_handle_mode = 100; // restore default set
}
go -1
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -