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

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_2_x/] [or1ksim/] [cuc/] [timings.c] - Diff between revs 897 and 907

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

Rev 897 Rev 907
Line 82... Line 82...
{
{
  int i;
  int i;
  int d = 0;
  int d = 0;
  for (i = 0; i < f->nmsched; i++)
  for (i = 0; i < f->nmsched; i++)
    if (REF_BB (f->msched[i]) == b) {
    if (REF_BB (f->msched[i]) == b) {
      if (f->mtype[i] & MT_WRITE) {
      if (f->mtype[i] & MT_STORE) {
        if (!(f->mtype[i] & MT_BURST) || f->mtype[i] & MT_BURSTE) d += runtime.cuc.mdelay[2];
        if (!(f->mtype[i] & MT_BURST) || f->mtype[i] & MT_BURSTE) d += runtime.cuc.mdelay[2];
        else d += runtime.cuc.mdelay[3];
        else d += runtime.cuc.mdelay[3];
      } else {
      } else if (f->mtype[i] & MT_LOAD) {
        if (!(f->mtype[i] & MT_BURST) || f->mtype[i] & MT_BURSTE) d += runtime.cuc.mdelay[0];
        if (!(f->mtype[i] & MT_BURST) || f->mtype[i] & MT_BURSTE) d += runtime.cuc.mdelay[0];
        else d += runtime.cuc.mdelay[1];
        else d += runtime.cuc.mdelay[1];
      }
      }
    }
    }
  //printf ("md%i=%i\n", b, d);
  //printf ("md%i=%i\n", b, d);

powered by: WebSVN 2.1.0

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