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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_61/] [or1ksim/] [sim-config.h] - Blame information for rev 123

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 7 jrydberg
/* config.h -- Simulator configuration header file
2
   Copyright (C) 1999 Damjan Lampret, lampret@opencores.org
3
 
4
   This file is part of OpenRISC 1000 Architectural Simulator.
5
 
6
   This program is free software; you can redistribute it and/or modify
7
   it under the terms of the GNU General Public License as published by
8
   the Free Software Foundation; either version 2 of the License, or
9
   (at your option) any later version.
10
 
11
   This program is distributed in the hope that it will be useful,
12
   but WITHOUT ANY WARRANTY; without even the implied warranty of
13
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
   GNU General Public License for more details.
15
 
16
   You should have received a copy of the GNU General Public License
17
   along with this program; if not, write to the Free Software
18
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
19
 
20
/* Simulator configuration macros. Eventually this one will be a lot bigger. */
21 30 lampret
 
22
#define NR_UARTS        4       /* Number of UARTs simulated */   
23 45 lampret
#define NONE            0
24
#define VIRTUAL         1
25
#define PHYSICAL        2
26 7 jrydberg
 
27 123 markom
typedef struct MemoryBlock {
28
  int address;
29
  char* file;
30
  struct MemoryBlock* next;
31
} MemoryBlock;
32
 
33 7 jrydberg
struct config {
34
        struct {
35 30 lampret
                int tagtype;
36 7 jrydberg
        } dc;
37 78 lampret
        struct {
38
                int tagtype;
39
        } ic;
40 103 lampret
        struct {
41
                int bpb_sim;
42
                int btic_sim;
43
        } bp;                   /* Branch prediction */
44 30 lampret
        int clkcycle_ns;        /* Clock cycle in nanoseconds */
45
        struct {
46
                char *rxfile;   /* File for RX */
47
                char *txfile;   /* File for TX (required) */
48
                unsigned long baseaddr; /* Naturally aligned base address */
49
        } uarts[NR_UARTS];
50
        struct {
51
                unsigned long startaddr;
52
                unsigned long endaddr;
53
        } ram;
54 69 lampret
        int simdebug;   /* Simulator debugging */
55 103 lampret
        int iprompt;    /* Interactive prompt */
56
        int dependstats;/* Calculation of dependency statistics */
57
        int dependency; /* Calculation of dependency (implied by dependstats) */
58
        int history;    /* Instruction stream history remembered by the simulator */
59
        int superscalar;/* "Superscalar" simulation */
60
        int slp;
61 123 markom
        int inhibit_server; /* Don't start up the JTAG proxy server */
62
        int server_port; /* A user specified port number for services */
63
        int pattern_mem; /* A user specified memory initialization pattern */
64
        int random_mem;  /* Initialize the memory with random values */
65
        MemoryBlock* memory; /* New style memory initializer file (CZ) */
66
        char* filename;  /* Original Command Simulator file (CZ) */
67 7 jrydberg
};
68
 
69
extern struct config config;

powered by: WebSVN 2.1.0

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