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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_46/] [or1ksim/] [cuc/] [cuc.c] - Diff between revs 903 and 904

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

Rev 903 Rev 904
Line 329... Line 329...
static void options_cmd (int func_no, cuc_func *f)
static void options_cmd (int func_no, cuc_func *f)
{
{
  int b, i;
  int b, i;
  char tmp[30];
  char tmp[30];
  char *name = prof_func[func_no].name;
  char *name = prof_func[func_no].name;
  printf ("---------------------------------------------------------------------------\n");
  printf ("-----------------------------------------------------------------------------\n");
  printf ("|%-26s|pre/unrolled|shared|  time  |  gates |old_time|\n",
  printf ("|%-28s|pre/unrolled|shared|  time  |  gates |old_time|\n",
            strstrip (tmp, name, 26));
            strstrip (tmp, name, 28));
  printf ("|                  BASE    |%4i / %4i | %4i |%8i|%8.f|%8i|\n", 1, 1, 0,
  printf ("|                  BASE    |%4i / %4i | %4i |%8i|%8.f|%8i|\n", 1, 1, 0,
          f->timings.new_time, f->timings.size, f->orig_time);
          f->timings.new_time, f->timings.size, f->orig_time);
  for (b = 0; b < f->num_bb; b++) {
  for (b = 0; b < f->num_bb; b++) {
    /* Print out results */
    /* Print out results */
    for (i = 1; i < f->bb[b].ntim; i++) { /* First one is base option */
    for (i = 1; i < f->bb[b].ntim; i++) { /* First one is base option */
Line 626... Line 626...
      for (i = 0; i < prof_nfuncs; i++)
      for (i = 0; i < prof_nfuncs; i++)
        if (func[i]) {
        if (func[i]) {
          options_cmd (i, func[i]);
          options_cmd (i, func[i]);
          any = 1;
          any = 1;
        }
        }
      if (any) printf ("---------------------------------------------------------------------------\n");
      if (any) printf ("-----------------------------------------------------------------------------\n");
      else printf ("Sorry. No available options.\n");
      else printf ("Sorry. No available options.\n");
    } else if (strcmp (tmp1, "") == 0) {
    } else if (strcmp (tmp1, "") == 0) {
      /* Ignore empty string */
      /* Ignore empty string */
    } else {
    } else {
      /* help command */
      /* help command */

powered by: WebSVN 2.1.0

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