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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_42/] [or1ksim/] [cpu/] [common/] [abstract.c] - Diff between revs 426 and 427

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

Rev 426 Rev 427
Line 643... Line 643...
    if (ptmp->log)
    if (ptmp->log)
      fclose (ptmp->log);
      fclose (ptmp->log);
  }
  }
}
}
 
 
 No newline at end of file
 No newline at end of file
 
/* Displays current memory configuration */
 
 
 
void memory_table_status ()
 
{
 
  struct dev_memarea *ptmp;
 
 
 
  /* Check list of registered devices. */
 
  for(ptmp = dev_list; ptmp; ptmp = ptmp->next) {
 
    printf ("addr & %08x == %08x to %08x, size %08x, gran %iB\n",
 
      ptmp->addr_mask, ptmp->addr_compare, ptmp->addr_compare | bit_mask (ptmp->size),
 
      ptmp->size, ptmp->granularity);
 
    printf ("\t");
 
    if (ptmp->delayr >= 0)
 
      printf ("read delay = %i cycles, ", ptmp->delayr);
 
    else
 
      printf ("reads not possible, ");
 
 
 
    if (ptmp->delayw >= 0)
 
      printf ("write delay = %i cycles", ptmp->delayw);
 
    else
 
      printf ("writes not possible");
 
 
 
    if (ptmp->log)
 
      printf (", (logged)\n");
 
    else
 
      printf ("\n");
 
  }
 
}
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

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