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

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_2_x/] [or1ksim/] [toplevel.c] - Diff between revs 1432 and 1446

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

Rev 1432 Rev 1446
Line 66... Line 66...
#include "dumpverilog.h"
#include "dumpverilog.h"
#include "trace.h"
#include "trace.h"
#include "cuc.h"
#include "cuc.h"
 
 
/* CVS revision number. */
/* CVS revision number. */
const char rcsrev[] = "$Revision: 1.121 $";
const char rcsrev[] = "$Revision: 1.122 $";
 
 
inline void debug(int level, const char *format, ...)
inline void debug(int level, const char *format, ...)
{
{
  char *p;
  char *p;
  va_list ap;
  va_list ap;
Line 311... Line 311...
  /* simulator is initialized */
  /* simulator is initialized */
  runtime.sim.init = 0;
  runtime.sim.init = 0;
}
}
 
 
/* Cleanup */
/* Cleanup */
void sim_done ()
void sim_done (void)
{
{
  if (config.sim.profile) {
  if (config.sim.profile) {
    fprintf(runtime.sim.fprof,"-%08llX FFFFFFFF\n", runtime.sim.cycles);
    fprintf(runtime.sim.fprof,"-%08llX FFFFFFFF\n", runtime.sim.cycles);
    fclose(runtime.sim.fprof);
    fclose(runtime.sim.fprof);
  }
  }
Line 326... Line 326...
  done_memory_table ();
  done_memory_table ();
  exit(0);
  exit(0);
}
}
 
 
/* Executes jobs in time queue */
/* Executes jobs in time queue */
static inline void do_scheduler ()
static inline void do_scheduler (void)
{
{
  struct sched_entry *tmp;
  struct sched_entry *tmp;
 
 
  /* Execute all jobs till now */
  /* Execute all jobs till now */
  do {
  do {

powered by: WebSVN 2.1.0

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