Line 132... |
Line 132... |
PRINTF("stats <num|clear> - execution statistics num or clear it.\n");
|
PRINTF("stats <num|clear> - execution statistics num or clear it.\n");
|
PRINTF("info - configuration info (caches etc.)\n");
|
PRINTF("info - configuration info (caches etc.)\n");
|
PRINTF("dv <fromaddr> [<toaddr>] [<modname>] - dumps memory as verilog (use redirect)\n");
|
PRINTF("dv <fromaddr> [<toaddr>] [<modname>] - dumps memory as verilog (use redirect)\n");
|
PRINTF("dh <fromaddr> [<toaddr>] - dumps memory as hex code (use redirect)\n");
|
PRINTF("dh <fromaddr> [<toaddr>] - dumps memory as hex code (use redirect)\n");
|
PRINTF("<cmd> > <filename> - redirect simulator stdout to <filename> (and not emulated PRINTF)\n");
|
PRINTF("<cmd> > <filename> - redirect simulator stdout to <filename> (and not emulated PRINTF)\n");
|
|
PRINTF("setdbch - toggles debug channels on/off\n");
|
PRINTF("set <section> <item> = <param> - set configuration. See sim.cfg for more information.\n");
|
PRINTF("set <section> <item> = <param> - set configuration. See sim.cfg for more information.\n");
|
PRINTF("debug - toggles simulator debug mode\n");
|
PRINTF("debug - toggles simulator debug mode\n");
|
mp_help ();
|
mp_help ();
|
prof_help ();
|
prof_help ();
|
PRINTF("cuc - enters Custom Unit Compiler command prompt\n");
|
PRINTF("cuc - enters Custom Unit Compiler command prompt\n");
|
Line 421... |
Line 422... |
}
|
}
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
|
static int sim_cmd_setdbch(int argc, char **argv) /* Toggle debug channel on/off */
|
|
{
|
|
if(argc != 2) {
|
|
PRINTF("setdbch <channel>\n");
|
|
return 0;
|
|
}
|
|
parse_dbchs(argv[1]);
|
|
return 0;
|
|
}
|
|
|
static int sim_cmd_debug(int argc, char **argv) /* debug mode */
|
static int sim_cmd_debug(int argc, char **argv) /* debug mode */
|
{
|
{
|
config.sim.debug ^= 1;
|
config.sim.debug ^= 1;
|
return 0;
|
return 0;
|
}
|
}
|
Line 483... |
Line 494... |
{ "hist", sim_cmd_hist },
|
{ "hist", sim_cmd_hist },
|
{ "stall", sim_cmd_stall },
|
{ "stall", sim_cmd_stall },
|
{ "stats", sim_cmd_stats },
|
{ "stats", sim_cmd_stats },
|
{ "info", sim_cmd_info },
|
{ "info", sim_cmd_info },
|
{ "run", sim_cmd_run },
|
{ "run", sim_cmd_run },
|
|
{ "setdbch", sim_cmd_setdbch },
|
{ "debug", sim_cmd_debug },
|
{ "debug", sim_cmd_debug },
|
{ "profile", sim_cmd_profile },
|
{ "profile", sim_cmd_profile },
|
{ "mprofile", sim_cmd_mprofile },
|
{ "mprofile", sim_cmd_mprofile },
|
{ "cuc", sim_cmd_cuc },
|
{ "cuc", sim_cmd_cuc },
|
{ "set", sim_cmd_set },
|
{ "set", sim_cmd_set },
|