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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [orpsocv2/] [sim/] [bin/] [refdesign-or1ksim.cfg] - Blame information for rev 670

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

Line No. Rev Author Line
1 6 julius
section memory
2
  pattern = 0x00
3
  type = unknown /* Fastest */
4
 
5
  name = "RAM"
6
  ce = 1
7
  mc = 0
8
  baseaddr = 0x00000000
9
  size = 0x02000000
10 354 julius
  delayr = 1
11
  delayw = 1
12 6 julius
end
13
 
14
/* IMMU SECTION
15
 
16
    This section configures the Instruction Memory Manangement Unit
17
 
18
    enabled = 0/1
19
       '0': disabled
20
       '1': enabled
21
       (NOTE: UPR bit is set)
22
 
23
    nsets = 
24
       number of ITLB sets; must be power of two
25
 
26
    nways = 
27
       number of ITLB ways
28
 
29
    pagesize = 
30
       instruction page size; must be power of two
31
 
32
    entrysize = 
33
       instruction entry size in bytes
34
 
35
    ustates = 
36
       number of ITLB usage states (2, 3, 4 etc., max is 4)
37
 
38
    hitdelay = 
39
       number of cycles immu hit costs
40
 
41
    missdelay = 
42
       number of cycles immu miss costs
43
*/
44
 
45
section immu
46
 
47
  enabled = 1
48 354 julius
  nsets = 64
49 6 julius
  nways = 1
50
  pagesize = 8192
51
 
52
end
53
 
54
 
55
/* DMMU SECTION
56
 
57
    This section configures the Data Memory Manangement Unit
58
 
59
    enabled = 0/1
60
       '0': disabled
61
       '1': enabled
62
       (NOTE: UPR bit is set)
63
 
64
    nsets = 
65
       number of DTLB sets; must be power of two
66
 
67
    nways = 
68
       number of DTLB ways
69
 
70
    pagesize = 
71
       data page size; must be power of two
72
 
73
    entrysize = 
74
       data entry size in bytes
75
 
76
    ustates = 
77
       number of DTLB usage states (2, 3, 4 etc., max is 4)
78
 
79
    hitdelay = 
80
       number of cycles dmmu hit costs
81
 
82
    missdelay = 
83
       number of cycles dmmu miss costs
84
*/
85
 
86
section dmmu
87
  enabled = 1
88 354 julius
  nsets = 64
89 6 julius
  nways = 1
90
  pagesize = 8192
91
end
92
 
93
 
94
/* IC SECTION
95
 
96
   This section configures the Instruction Cache
97
 
98
   enabled = 0/1
99
       '0': disabled
100
       '1': enabled
101
      (NOTE: UPR bit is set)
102
 
103
   nsets = 
104
      number of IC sets; must be power of two
105
 
106
   nways = 
107
      number of IC ways
108
 
109
   blocksize = 
110
      IC block size in bytes; must be power of two
111
 
112
   ustates = 
113
      number of IC usage states (2, 3, 4 etc., max is 4)
114
 
115
   hitdelay = 
116
      number of cycles ic hit costs
117
 
118
    missdelay = 
119
      number of cycles ic miss costs
120
*/
121
 
122
section ic
123 425 julius
  enabled = 0
124 6 julius
  nsets = 512
125
  nways = 1
126
  blocksize = 16
127 58 julius
  hitdelay = 1
128
  missdelay = 10
129 6 julius
end
130
 
131
 
132
/* DC SECTION
133
 
134
   This section configures the Data Cache
135
 
136
   enabled = 0/1
137
       '0': disabled
138
       '1': enabled
139
      (NOTE: UPR bit is set)
140
 
141
   nsets = 
142
      number of DC sets; must be power of two
143
 
144
   nways = 
145
      number of DC ways
146
 
147
   blocksize = 
148
      DC block size in bytes; must be power of two
149
 
150
   ustates = 
151
      number of DC usage states (2, 3, 4 etc., max is 4)
152
 
153
   load_hitdelay = 
154
      number of cycles dc load hit costs
155
 
156
   load_missdelay = 
157
      number of cycles dc load miss costs
158
 
159
   store_hitdelay = 
160
      number of cycles dc load hit costs
161
 
162
   store_missdelay = 
163
      number of cycles dc load miss costs
164
*/
165
 
166
section dc
167 425 julius
  enabled = 0
168 6 julius
  nsets = 512
169
  nways = 1
170
  blocksize = 16
171
end
172
 
173
 
174
/* SIM SECTION
175
 
176
  This section specifies how or1ksim should behave.
177
 
178
  verbose = 0/1
179
       '0': don't print extra messages
180
       '1': print extra messages
181
 
182
  debug = 0-9
183
 
184
      1-9: debug message level.
185
           higher numbers produce more messages
186
 
187
  profile = 0/1
188
      '0': don't generate profiling file 'sim.profile'
189
      '1': don't generate profiling file 'sim.profile'
190
 
191
  prof_fn = ""
192
      optional filename for the profiling file.
193
      valid only if 'profile' is set
194
 
195
  mprofile = 0/1
196
      '0': don't generate memory profiling file 'sim.mprofile'
197
      '1': generate memory profiling file 'sim.mprofile'
198
 
199
  mprof_fn = ""
200
      optional filename for the memory profiling file.
201
      valid only if 'mprofile' is set
202
 
203
  history = 0/1
204
      '0': don't track execution flow
205
      '1': track execution flow
206
      Execution flow can be tracked for the simulator's
207
      'hist' command. Useful for back-trace debugging.
208
 
209
  iprompt = 0/1
210
     '0': start in  (so what do we start in ???)
211
     '1': start in interactive prompt.
212
 
213
  exe_log = 0/1
214
      '0': don't generate execution log.
215
      '1': generate execution log.
216
 
217
  exe_log = default/hardware/simple/software
218
      type of execution log, default is used when not specified
219
 
220
  exe_log_start = 
221
      index of first instruction to start logging, default = 0
222
 
223
  exe_log_end = 
224
      index of last instruction to end logging; not limited, if omitted
225
 
226
  exe_log_marker = 
227
       specifies number of instructions before horizontal marker is
228
      printed; if zero, markers are disabled (default)
229
 
230
  exe_log_fn = ""
231
      filename for the exection log file.
232
      valid only if 'exe_log' is set
233
 
234
  clkcycle = [ps|ns|us|ms]
235
      specifies time measurement for one cycle
236
*/
237
 
238
section sim
239 425 julius
  verbose = 0
240 6 julius
  debug = 0
241
  profile = 0
242
  prof_fn = "sim.profile"
243
  history = 1
244
  /* iprompt = 0 */
245
  exe_log = 0
246
  exe_log_type = hardware
247
  exe_log_fn = "executed.log"
248 354 julius
  clkcycle = 20ns
249 6 julius
end
250
 
251
 
252
/* CPU SECTION
253
 
254
   This section specifies various CPU parameters.
255
 
256
   ver = 
257
   rev = 
258
      specifies version and revision of the CPU used
259
 
260
   upr = 
261
      changes the upr register
262
 
263
   sr = 
264
      sets the initial Supervision Register value
265
 
266
   superscalar = 0/1
267
      '0': CPU is scalar
268
      '1': CPU is superscalar
269
      (modify cpu/or32/execute.c to tune superscalar model)
270
 
271
   hazards = 0/1
272
      '0': don't track data hazards in superscalar CPU
273
      '1': track data hazards in superscalar CPU
274
      If tracked, data hazards can be displayed using the
275
      simulator's 'r' command.
276
 
277
   dependstats = 0/1
278
      '0': don't calculate inter-instruction dependencies.
279
      '1': calculate inter-instruction dependencies.
280
      If calculated, inter-instruction dependencies can be
281
      displayed using the simulator's 'stat' command.
282
 
283
   sbuf_len = 
284
      length of store buffer (<= 256), 0 = disabled
285
*/
286
 
287
section cpu
288 425 julius
  ver = 0x12
289
  rev = 0x0008
290 6 julius
  /* upr = */
291
  superscalar = 0
292
  hazards = 1
293
  dependstats = 1
294
  sbuf_len = 1
295
end
296
 
297
 
298
/* PM SECTION
299
 
300
   This section specifies Power Management parameters
301
 
302
   enabled = 0/1
303
      '0': disable power management
304
      '1': enable power management
305
*/
306
 
307
section pm
308
  enabled = 0
309
end
310
 
311
 
312 431 julius
section pic
313
  enabled = 1
314
  edge_trigger = 1
315
end
316
 
317
 
318 6 julius
/* UART SECTION
319
 
320
   This section configures the UARTs
321
 
322
     enabled = <0|1>
323
        Enable/disable the peripheral.  By default if it is enabled.
324
 
325
     baseaddr = 
326
        address of first UART register for this device
327
 
328
 
329
     channel = :
330
 
331
        The channel parameter indicates the source of received UART characters
332
        and the sink for transmitted UART characters.
333
 
334
        The  can be either "file", "xterm", "tcp", "fd", or "tty"
335
        (without quotes).
336
 
337
          A) To send/receive characters from a pair of files, use a file
338
             channel:
339
 
340
               channel=file:,
341
 
342
          B) To create an interactive terminal window, use an xterm channel:
343
 
344
               channel=xterm:[]*
345
 
346
          C) To create a bidirectional tcp socket which one could, for example,
347
             access via telnet, use a tcp channel:
348
 
349
               channel=tcp:
350
 
351
          D) To cause the UART to read/write from existing numeric file
352
             descriptors, use an fd channel:
353
 
354
               channel=fd:,
355
 
356
          E) To connect the UART to a physical serial port, create a tty
357
             channel:
358
 
359
               channel=tty:device=/dev/ttyS0,baud=9600
360
 
361
     irq = 
362
        irq number for this device
363
 
364
     16550 = 0/1
365
        '0': this device is a UART16450
366
        '1': this device is a UART16550
367
 
368
     jitter = 
369
        in msecs... time to block, -1 to disable it
370
 
371
     vapi_id = 
372
        VAPI id of this instance
373
*/
374
 
375
section uart
376
  enabled = 1
377
  baseaddr = 0x90000000
378
  irq = 2
379
  /*channel = "file:uart0.rx,uart0.tx"*/
380
  channel = "tcp:10084"
381
  jitter = -1                     /* async behaviour */
382
  16550 = 1
383
end
384
 

powered by: WebSVN 2.1.0

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