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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_55/] [or1ksim/] [sim-config.h] - Diff between revs 550 and 551

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

Rev 550 Rev 551
Line 165... Line 165...
  } cpu;
  } cpu;
 
 
  struct {
  struct {
    int debug;              /* Simulator debugging */
    int debug;              /* Simulator debugging */
    int verbose;            /* Force verbose output */
    int verbose;            /* Force verbose output */
    int iprompt;            /* Interactive prompt */
 
 
 
    int profile;            /* Is profiler running */
    int profile;            /* Is profiler running */
    char prof_fn[STR_SIZE]; /* Profiler filename */
    char prof_fn[STR_SIZE]; /* Profiler filename */
 
 
    int mprofile;           /* Is memory profiler running */
    int mprofile;           /* Is memory profiler running */
Line 205... Line 204...
    int init;               /* Whether we are still initilizing sim */
    int init;               /* Whether we are still initilizing sim */
    int script_file_specified;/* Whether script file was already loaded */
    int script_file_specified;/* Whether script file was already loaded */
    char *filename;         /* Original Command Simulator file (CZ) */
    char *filename;         /* Original Command Simulator file (CZ) */
    int output_cfg;         /* Whether sim is to output cfg files */
    int output_cfg;         /* Whether sim is to output cfg files */
    char script_fn[STR_SIZE];/* Script file read */
    char script_fn[STR_SIZE];/* Script file read */
 
    int iprompt;            /* Interactive prompt */
  } sim;
  } sim;
 
 
  struct {
  struct {
    unsigned long ifea;     /* Instruction fetch effective address */
    unsigned long ifea;     /* Instruction fetch effective address */
    unsigned long lea;      /* Load effective address */
    unsigned long lea;      /* Load effective address */
Line 216... Line 216...
    unsigned long ld;       /* Load data */
    unsigned long ld;       /* Load data */
    unsigned long sd;       /* Store data */
    unsigned long sd;       /* Store data */
    unsigned long lsea;     /* Load/Store effective address */
    unsigned long lsea;     /* Load/Store effective address */
  } cpu;
  } cpu;
 
 
 
  struct {
 
    int random_seed;                  /* Initialize the memory with random values, starting with seed */
 
  } memory;
 
 
  struct {                  /* Verification API, part of Advanced Core Verification */
  struct {                  /* Verification API, part of Advanced Core Verification */
 
    int enabled;            /* Whether is VAPI module enabled */
    FILE *vapi_file;        /* vapi file */
    FILE *vapi_file;        /* vapi file */
 
    int server_port;        /* A user specified port number for services */
  } vapi;
  } vapi;
};
};
 
 
 
#if FAST_SIM
 
#include "fast_config.c"
 
#else
extern struct config config;
extern struct config config;
 
#endif
 
 
extern struct runtime runtime;
extern struct runtime runtime;
 
 
/* Read environment from a script file. Does not fail - assumes defaukt configuration instead. */
/* Read environment from a script file. Does not fail - assumes defaukt configuration instead. */
void read_script_file (char *filename);
void read_script_file (char *filename);
 
 

powered by: WebSVN 2.1.0

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