OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_69/] [or1ksim/] [sim-cmd.c] - Diff between revs 1374 and 1375

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1374 Rev 1375
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");
#if !FAST_SIM
 
  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");
#endif
 
  PRINTF("help       - available commands (this list)\n");
  PRINTF("help       - available commands (this list)\n");
  return 0;
  return 0;
}
}
 
 
static int sim_cmd_trace(int argc, char **argv) /* trace */
static int sim_cmd_trace(int argc, char **argv) /* trace */
Line 423... Line 421...
  }
  }
 
 
  return 0;
  return 0;
}
}
 
 
#if !FAST_SIM
 
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 453... Line 450...
static int sim_cmd_set(int argc, char **argv) /* configuration info */
static int sim_cmd_set(int argc, char **argv) /* configuration info */
{
{
  set_config_command(argc, argv);
  set_config_command(argc, argv);
  return 0;
  return 0;
}
}
#endif /* !FAST_SIM */
 
 
 
static char *strip_space(char *str)
static char *strip_space(char *str)
{
{
  while(isblank(*str) && *str) str++;
  while(isblank(*str) && *str) str++;
  return str;
  return str;
Line 487... Line 483...
 { "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 },
#if !FAST_SIM
 
 { "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 },
#endif
 
 { NULL, NULL } };
 { NULL, NULL } };
 
 
#ifdef HAVE_LIBREADLINE
#ifdef HAVE_LIBREADLINE
static void initialize_readline(void);
static void initialize_readline(void);
#endif
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.