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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [or1ksim/] [sim-config.h] - Diff between revs 1748 and 1751

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

Rev 1748 Rev 1751
Line 46... Line 46...
/* Number of cycles between checks to runtime.sim.iprompt */
/* Number of cycles between checks to runtime.sim.iprompt */
#define CHECK_INT_TIME 100000
#define CHECK_INT_TIME 100000
 
 
#define PRINTF(x...) fprintf (runtime.sim.fout, x)
#define PRINTF(x...) fprintf (runtime.sim.fout, x)
 
 
#define CONFIG_ERROR(s) {fprintf (stderr, "ERROR: config.%s:%s\n", cur_section->name, s); if (runtime.sim.init) exit (1);}
 
 
 
/*! Data structure for configuration data */
/*! Data structure for configuration data */
struct config
struct config
{
{
  struct
  struct
  {                             /* External linkage for SystemC */
  {                             /* External linkage for SystemC */
Line 147... Line 145...
  } bpb;
  } bpb;
 
 
  struct
  struct
  {
  {
    int enabled;                /* Is debug module enabled */
    int enabled;                /* Is debug module enabled */
    int gdb_enabled;            /* Is debugging with gdb possible */
    int gdb_enabled;            /* Is legacy debugging with GDB possible */
    int server_port;            /* A user specified port for services */
    int rsp_enabled;            /* Is RSP debugging with GDB possible */
 
    int server_port;            /* Port for legacy GDB connection */
 
    int rsp_port;               /* Port for RSP GDB connection */
    unsigned long vapi_id;      /* "Fake" vapi dev id for JTAG proxy */
    unsigned long vapi_id;      /* "Fake" vapi dev id for JTAG proxy */
  } debug;
  } debug;
};
};
 
 
/*! Data structure for run time data */
/*! Data structure for run time data */
Line 162... Line 162...
  {
  {
    FILE *fprof;                /* Profiler file */
    FILE *fprof;                /* Profiler file */
    FILE *fmprof;               /* Memory profiler file */
    FILE *fmprof;               /* Memory profiler file */
    FILE *fexe_log;             /* RTL state comparison file */
    FILE *fexe_log;             /* RTL state comparison file */
    FILE *fout;                 /* file for standard output */
    FILE *fout;                 /* file for standard output */
    int init;                   /* Whether we are still initilizing sim */
 
    char *filename;             /* Original Command Simulator file (CZ) */
    char *filename;             /* Original Command Simulator file (CZ) */
    int iprompt;                /* Interactive prompt */
    int iprompt;                /* Interactive prompt */
    int iprompt_run;            /* Interactive prompt is running */
    int iprompt_run;            /* Interactive prompt is running */
    long long cycles;           /* Cycles counts fetch stages */
    long long cycles;           /* Cycles counts fetch stages */
    long long int end_cycles;   /* JPB. Cycles to end of quantum */
    long long int end_cycles;   /* JPB. Cycles to end of quantum */

powered by: WebSVN 2.1.0

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