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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [or1ksim/] [cpu/] [common/] [stats.c] - Diff between revs 19 and 230

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

Rev 19 Rev 230
Line 332... Line 332...
      for (i = 0; i < SSTATS_LEN; i++)
      for (i = 0; i < SSTATS_LEN; i++)
        all += sstats[i].cnt_dynamic;
        all += sstats[i].cnt_dynamic;
 
 
      for (i = 0; i < SSTATS_LEN; i++)
      for (i = 0; i < SSTATS_LEN; i++)
        if (sstats[i].cnt_dynamic)
        if (sstats[i].cnt_dynamic)
          PRINTF ("  %-15s used %6dx (%5.1f%%)\n", insn_name (sstats[i].insn),
          PRINTF ("  %-15s used %6dx (%5.1f%%)\n", or1ksim_insn_name (sstats[i].insn),
                  sstats[i].cnt_dynamic,
                  sstats[i].cnt_dynamic,
                  (sstats[i].cnt_dynamic * 100.) / SD (all));
                  (sstats[i].cnt_dynamic * 100.) / SD (all));
 
 
      PRINTF ("%d instructions (dynamic, single stats)\n", all);
      PRINTF ("%d instructions (dynamic, single stats)\n", all);
      break;
      break;
Line 351... Line 351...
 
 
      for (i = 0; i < DSTATS_LEN; i++)
      for (i = 0; i < DSTATS_LEN; i++)
        if (dstats[i].cnt_dynamic)
        if (dstats[i].cnt_dynamic)
          {
          {
            char temp[100];
            char temp[100];
            sprintf (temp, "%s, %s ", insn_name (dstats[i].insn1),
            sprintf (temp, "%s, %s ", or1ksim_insn_name (dstats[i].insn1),
                     insn_name (dstats[i].insn2));
                     or1ksim_insn_name (dstats[i].insn2));
            PRINTF ("  %-30s %6dx (%5.1f%%)", temp, dstats[i].cnt_dynamic,
            PRINTF ("  %-30s %6dx (%5.1f%%)", temp, dstats[i].cnt_dynamic,
                    (dstats[i].cnt_dynamic * 100.) / SD (all));
                    (dstats[i].cnt_dynamic * 100.) / SD (all));
            PRINTF ("   depend: %5.1f%%\n",
            PRINTF ("   depend: %5.1f%%\n",
                    (dstats[i].depend * 100.) / dstats[i].cnt_dynamic);
                    (dstats[i].depend * 100.) / dstats[i].cnt_dynamic);
          }
          }

powered by: WebSVN 2.1.0

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