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

Subversion Repositories or1k

[/] [or1k/] [tags/] [stable_0_2_0_rc2/] [or1ksim/] [sim-config.h] - Diff between revs 230 and 239

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

Rev 230 Rev 239
Line 25... Line 25...
#define NR_DMAS         1       /* Number of DMA controllers */
#define NR_DMAS         1       /* Number of DMA controllers */
#define NONE            0
#define NONE            0
#define VIRTUAL         1
#define VIRTUAL         1
#define PHYSICAL        2
#define PHYSICAL        2
 
 
 
#define STR_SIZE        (256)
 
 
typedef struct MemoryBlock {
typedef struct MemoryBlock {
  int address;
  int address;
  char* file;
  char* file;
  struct MemoryBlock* next;
  struct MemoryBlock* next;
} MemoryBlock;
} MemoryBlock;
 
 
struct config {
struct config {
        struct {
        struct {
                int tagtype;
                int tagtype;
        } dc;
        } dc;
 
 
        struct {
        struct {
                int tagtype;
                int tagtype;
        } ic;
        } ic;
 
 
        struct {
        struct {
                int bpb_sim;
                int bpb_sim;
                int btic_sim;
                int btic_sim;
        } bp;                   /* Branch prediction */
        } bp;                   /* Branch prediction */
        int clkcycle_ns;        /* Clock cycle in nanoseconds */
        int clkcycle_ns;        /* Clock cycle in nanoseconds */
 
 
        struct {
        struct {
                char *rxfile;   /* File for RX */
                char *rxfile;   /* File for RX */
                char *txfile;   /* File for TX (required) */
                char *txfile;   /* File for TX (required) */
                int jitter;     /* CZ 250801 - in msecs...time to block */
                int jitter;     /* CZ 250801 - in msecs...time to block */
                unsigned long baseaddr; /* Naturally aligned base address */
                unsigned long baseaddr; /* Naturally aligned base address */
        } uarts[NR_UARTS];
        } uarts[NR_UARTS];
 
 
        struct {
        struct {
                unsigned long baseaddr;
                unsigned long baseaddr;
                unsigned irq;
                unsigned irq;
        } dmas[NR_DMAS];
        } dmas[NR_DMAS];
 
 
 
  struct {
 
    char memory_table_file[STR_SIZE]; /* Memory table filename */
 
    int enabled;                      /* is MC enabled? */
 
    unsigned POC;                     /* power on reset configuration register */
 
  } mc;
 
 
        int simdebug;   /* Simulator debugging */
        int simdebug;   /* Simulator debugging */
  int profile;    /* Is profiler running */
  int profile;    /* Is profiler running */
  FILE *fprof;    /* profiler file */
  FILE *fprof;    /* profiler file */
        int iprompt;    /* Interactive prompt */
        int iprompt;    /* Interactive prompt */
        int dependstats;/* Calculation of dependency statistics */
        int dependstats;/* Calculation of dependency statistics */
Line 66... Line 79...
        int slp;
        int slp;
        int inhibit_server; /* Don't start up the JTAG proxy server */
        int inhibit_server; /* Don't start up the JTAG proxy server */
        int server_port; /* A user specified port number for services */
        int server_port; /* A user specified port number for services */
        int pattern_mem; /* A user specified memory initialization pattern */
        int pattern_mem; /* A user specified memory initialization pattern */
        int random_mem;  /* Initialize the memory with random values */
        int random_mem;  /* Initialize the memory with random values */
 
 
        MemoryBlock* memory; /* New style memory initializer file (CZ) */
        MemoryBlock* memory; /* New style memory initializer file (CZ) */
        char* filename;  /* Original Command Simulator file (CZ) */
        char* filename;  /* Original Command Simulator file (CZ) */
};
};
 
 
extern struct config config;
extern struct config config;
 
 
 No newline at end of file
 No newline at end of file
 
/* Read environment from a script file. Does not fail - assumes defaukt configuration instead. */
 
void read_script_file (char *filename);
 
 
 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.