Line 58... |
Line 58... |
config.sim.iprompt = 0;
|
config.sim.iprompt = 0;
|
|
|
config.sim.profile = 0;
|
config.sim.profile = 0;
|
runtime.sim.fprof = NULL;
|
runtime.sim.fprof = NULL;
|
strcpy (config.sim.prof_fn, "sim.profile");
|
strcpy (config.sim.prof_fn, "sim.profile");
|
|
runtime.sim.fmprof = NULL;
|
|
strcpy (config.sim.mprof_fn, "sim.mprofile");
|
runtime.sim.init = 1;
|
runtime.sim.init = 1;
|
runtime.sim.script_file_specified = 0;
|
runtime.sim.script_file_specified = 0;
|
config.sim.clkcycle_ps = 4000; /* 4000 for 4ns (250MHz) */
|
config.sim.clkcycle_ps = 4000; /* 4000 for 4ns (250MHz) */
|
|
|
/* Memory */
|
/* Memory */
|
Line 177... |
Line 179... |
exit(0);
|
exit(0);
|
} else
|
} else
|
if (strcmp(*argv, "--profile") == 0) {
|
if (strcmp(*argv, "--profile") == 0) {
|
config.sim.profile = 1;
|
config.sim.profile = 1;
|
argv++; argc--;
|
argv++; argc--;
|
|
} else
|
|
if (strcmp(*argv, "--mprofile") == 0) {
|
|
config.sim.mprofile = 1;
|
|
argv++; argc--;
|
} else {
|
} else {
|
fprintf(stderr, "Unknown option: %s\n", *argv);
|
fprintf(stderr, "Unknown option: %s\n", *argv);
|
return 1;
|
return 1;
|
}
|
}
|
}
|
}
|
Line 433... |
Line 439... |
{6, 0, "debug", "=%i", NULL, (void *)(&config.sim.debug)},
|
{6, 0, "debug", "=%i", NULL, (void *)(&config.sim.debug)},
|
{6, 0, "iprompt", "=%i", NULL, (void *)(&config.sim.iprompt)},
|
{6, 0, "iprompt", "=%i", NULL, (void *)(&config.sim.iprompt)},
|
{6, 0, "verbose", "=%i", NULL, (void *)(&config.sim.verbose)},
|
{6, 0, "verbose", "=%i", NULL, (void *)(&config.sim.verbose)},
|
{6, 0, "profile", "=%i", NULL, (void *)(&config.sim.profile)},
|
{6, 0, "profile", "=%i", NULL, (void *)(&config.sim.profile)},
|
{6, 0, "prof_fn", "=\"%s\"", NULL, (void *)(&config.sim.prof_fn[0])},
|
{6, 0, "prof_fn", "=\"%s\"", NULL, (void *)(&config.sim.prof_fn[0])},
|
|
{6, 0, "mprofile", "=%i", NULL, (void *)(&config.sim.mprofile)},
|
|
{6, 0, "mprof_fn", "=\"%s\"", NULL, (void *)(&config.sim.mprof_fn[0])},
|
{6, 0, "history", "=%i", NULL, (void *)(&config.sim.history)},
|
{6, 0, "history", "=%i", NULL, (void *)(&config.sim.history)},
|
{6, 0, "exe_log", "=%i", NULL, (void *)(&config.sim.exe_log)},
|
{6, 0, "exe_log", "=%i", NULL, (void *)(&config.sim.exe_log)},
|
{6, 0, "exe_log_fn", "=\"%s\"", NULL, (void *)(&config.sim.exe_log_fn[0])},
|
{6, 0, "exe_log_fn", "=\"%s\"", NULL, (void *)(&config.sim.exe_log_fn[0])},
|
{6, 0, "clkcycle", "=%s ", sim_clkcycle, (void *)(&tempS[0])},
|
{6, 0, "clkcycle", "=%s ", sim_clkcycle, (void *)(&tempS[0])},
|
|
|