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

Subversion Repositories or1k

[/] [or1k/] [tags/] [stable_0_2_0_rc3/] [or1ksim/] [sim.cfg] - Blame information for rev 1486

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

Line No. Rev Author Line
1 264 markom
/* sim.cfg -- Simulator configuration script file
2 897 markom
   Copyright (C) 2001-2002, Marko Mlinar, markom@opencores.org
3 428 markom
 
4 264 markom
This file is part of OpenRISC 1000 Architectural Simulator.
5 876 rherveille
It contains the default configuration and help about configuring
6
the simulator.
7 264 markom
 
8
This program is free software; you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation; either version 2 of the License, or
11
(at your option) any later version.
12
 
13
This program is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
GNU General Public License for more details.
17
 
18
You should have received a copy of the GNU General Public License
19
along with this program; if not, write to the Free Software
20
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
21
 
22 312 markom
 
23
/* INTRODUCTION
24
 
25 876 rherveille
   The ork1sim has various parameters, that are set in configuration files
26
   like this one. The user can switch between configurations at startup by
27
   specifying the required configuration file with the -f  option.
28
   If no configuration file is specified or1ksim searches for the default
29
   configuration file sim.cfg. First it searches for './sim.cfg'. If this
30
   file is not found, it searches for '~/or1k/sim.cfg'. If this file is
31
   not found too, it reverts to the built-in default configuration.
32 1021 rherveille
 
33 876 rherveille
   NOTE: Users should not rely on the built-in configuration, since the
34
         default configuration may differ between version.
35
         Rather create a configuration file that sets all critical values.
36
 
37
   This file may contain (standard C) comments only - no // support.
38 1021 rherveille
 
39 876 rherveille
   Configure files may be be included, using:
40 568 markom
   include "file_name_to_include"
41 312 markom
 
42 876 rherveille
   Like normal configuration files, the included file is divided into
43
   sections. Each section is described in detail also.
44 428 markom
 
45 876 rherveille
   Some section have subsections. One example of such a subsection is:
46 428 markom
 
47 312 markom
   device 
48
     instance specific parameters...
49
   enddevice
50 428 markom
 
51 312 markom
   which creates a device instance.
52
*/
53
 
54 876 rherveille
 
55 312 markom
/* MEMORY SECTION
56
 
57 876 rherveille
   This section specifies how the memory is generated and the blocks
58
   it consists of.
59 428 markom
 
60 312 markom
   type = random/unknown/pattern
61 876 rherveille
      Specifies the initial memory values.
62
      'random' generates random memory using seed 'random_seed'.
63
      'pattern' fills memory with 'pattern'.
64
      'unknown' does not specify how memory should be generated,
65
      leaving the memory in a undefined state. This is the fastest
66
      option.
67 428 markom
 
68 312 markom
   random_seed = 
69 876 rherveille
      random seed for randomizer, used if type = 'random'.
70 428 markom
 
71 312 markom
   pattern = 
72 876 rherveille
      pattern to fill memory, used if type = 'pattern'.
73 428 markom
 
74 424 markom
   nmemories = 
75 428 markom
      number of memory instances connected
76
 
77 1486 nogj
   baseaddr = 
78
      memory start address
79 428 markom
 
80 1486 nogj
   size = 
81
      memory size
82 424 markom
 
83 1486 nogj
   name = ""
84
      memory block name
85 428 markom
 
86 1486 nogj
   ce = 
87
      chip enable index of the memory instance
88 424 markom
 
89 1486 nogj
   mc = 
90
      memory controller this memory is connected to
91 428 markom
 
92 1486 nogj
   delayr = 
93
      cycles, required for read access, -1 if instance does not support reading
94 428 markom
 
95 1486 nogj
   delayw = 
96
      cycles, required for write access, -1 if instance does not support writing
97
 
98
   log = ""
99
      filename, where to log memory accesses to, no log, if log command is not specified
100 312 markom
*/
101
 
102 1021 rherveille
 
103 262 markom
section memory
104 264 markom
  /*random_seed = 12345
105
  type = random*/
106 269 markom
  pattern = 0x00
107
  type = unknown /* Fastest */
108 428 markom
 
109 1486 nogj
  name = "FLASH"
110
  ce = 0
111
  mc = 0
112
  baseaddr = 0xf0000000
113
  size = 0x00800000
114
  delayr = 10
115
  delayw = -1
116
end
117 1021 rherveille
 
118 1486 nogj
section memory
119
  /*random_seed = 12345
120
  type = random*/
121
  pattern = 0x00
122
  type = unknown /* Fastest */
123 428 markom
 
124 1486 nogj
  name = "RAM"
125
  ce = 1
126
  mc = 0
127
  baseaddr = 0x00000000
128
  size = 0x00400000
129
  delayr = 1
130
  delayw = 2
131
end
132 1021 rherveille
 
133 1486 nogj
section memory
134
  /*random_seed = 12345
135
  type = random*/
136
  pattern = 0x00
137
  type = unknown /* Fastest */
138
 
139
  name = "SRAM"
140
  mc = 0
141
  ce = 2
142
  baseaddr = 0x08000000
143
  size = 0x00400000
144
  delayr = 1
145
  delayw = 2
146 262 markom
end
147
 
148 434 markom
 
149 427 markom
/* IMMU SECTION
150 312 markom
 
151 876 rherveille
    This section configures the Instruction Memory Manangement Unit
152 428 markom
 
153 427 markom
    enabled = 0/1
154 876 rherveille
       '0': disabled
155
       '1': enabled
156 428 markom
       (NOTE: UPR bit is set)
157
 
158 427 markom
    nsets = 
159 428 markom
       number of ITLB sets; must be power of two
160
 
161 427 markom
    nways = 
162
       number of ITLB ways
163 428 markom
 
164 427 markom
    pagesize = 
165
       instruction page size; must be power of two
166 428 markom
 
167 427 markom
    entrysize = 
168
       instruction entry size in bytes
169 428 markom
 
170 427 markom
    ustates = 
171
       number of ITLB usage states (2, 3, 4 etc., max is 4)
172 1021 rherveille
 
173 541 markom
    hitdelay = 
174
       number of cycles immu hit costs
175 1021 rherveille
 
176 541 markom
    missdelay = 
177
       number of cycles immu miss costs
178 427 markom
*/
179
 
180
section immu
181 1021 rherveille
  enabled = 1
182
  nsets = 64
183 427 markom
  nways = 1
184 428 markom
  pagesize = 8192
185 541 markom
  hitdelay = 0
186
  missdelay = 0
187 427 markom
end
188 428 markom
 
189 434 markom
 
190 427 markom
/* DMMU SECTION
191
 
192 876 rherveille
    This section configures the Data Memory Manangement Unit
193 428 markom
 
194 427 markom
    enabled = 0/1
195 876 rherveille
       '0': disabled
196
       '1': enabled
197 428 markom
       (NOTE: UPR bit is set)
198
 
199 427 markom
    nsets = 
200
       number of DTLB sets; must be power of two
201 428 markom
 
202 427 markom
    nways = 
203
       number of DTLB ways
204 428 markom
 
205 427 markom
    pagesize = 
206
       data page size; must be power of two
207 428 markom
 
208 427 markom
    entrysize = 
209
       data entry size in bytes
210 428 markom
 
211 427 markom
    ustates = 
212
       number of DTLB usage states (2, 3, 4 etc., max is 4)
213 541 markom
 
214
    hitdelay = 
215 876 rherveille
       number of cycles dmmu hit costs
216
 
217 541 markom
    missdelay = 
218 876 rherveille
       number of cycles dmmu miss costs
219 427 markom
*/
220
 
221
section dmmu
222 1021 rherveille
  enabled = 1
223
  nsets = 64
224 427 markom
  nways = 1
225 428 markom
  pagesize = 8192
226 541 markom
  hitdelay = 0
227
  missdelay = 0
228 427 markom
end
229
 
230 428 markom
 
231
/* IC SECTION
232
 
233 876 rherveille
   This section configures the Instruction Cache
234 428 markom
 
235 541 markom
   enabled = 0/1
236 876 rherveille
       '0': disabled
237
       '1': enabled
238 541 markom
      (NOTE: UPR bit is set)
239 428 markom
 
240 541 markom
   nsets = 
241
      number of IC sets; must be power of two
242 428 markom
 
243 541 markom
   nways = 
244
      number of IC ways
245 428 markom
 
246 541 markom
   blocksize = 
247
      IC block size in bytes; must be power of two
248 428 markom
 
249 541 markom
   ustates = 
250
      number of IC usage states (2, 3, 4 etc., max is 4)
251
 
252
   hitdelay = 
253
      number of cycles ic hit costs
254 1021 rherveille
 
255 541 markom
    missdelay = 
256
      number of cycles ic miss costs
257 428 markom
*/
258
 
259
section ic
260 1021 rherveille
  enabled = 1
261
  nsets = 256
262 428 markom
  nways = 1
263
  blocksize = 16
264 541 markom
  hitdelay = 0
265
  missdelay = 0
266 428 markom
end
267
 
268 434 markom
 
269 428 markom
/* DC SECTION
270
 
271 876 rherveille
   This section configures the Data Cache
272 428 markom
 
273 541 markom
   enabled = 0/1
274 876 rherveille
       '0': disabled
275
       '1': enabled
276 541 markom
      (NOTE: UPR bit is set)
277 428 markom
 
278 541 markom
   nsets = 
279
      number of DC sets; must be power of two
280 428 markom
 
281 541 markom
   nways = 
282
      number of DC ways
283 428 markom
 
284 541 markom
   blocksize = 
285
      DC block size in bytes; must be power of two
286 428 markom
 
287 541 markom
   ustates = 
288
      number of DC usage states (2, 3, 4 etc., max is 4)
289
 
290
   load_hitdelay = 
291
      number of cycles dc load hit costs
292 1021 rherveille
 
293 541 markom
   load_missdelay = 
294
      number of cycles dc load miss costs
295 1021 rherveille
 
296 541 markom
   store_hitdelay = 
297
      number of cycles dc load hit costs
298 1021 rherveille
 
299 541 markom
   store_missdelay = 
300
      number of cycles dc load miss costs
301 428 markom
*/
302
 
303
section dc
304 1021 rherveille
  enabled = 1
305
  nsets = 256
306 428 markom
  nways = 1
307
  blocksize = 16
308 541 markom
  load_hitdelay = 0
309
  load_missdelay = 0
310
  store_hitdelay = 0
311
  store_missdelay = 0
312 428 markom
end
313
 
314 1021 rherveille
 
315 312 markom
/* SIM SECTION
316
 
317 876 rherveille
  This section specifies how or1ksim should behave.
318 428 markom
 
319 312 markom
  verbose = 0/1
320 876 rherveille
       '0': don't print extra messages
321
       '1': print extra messages
322 428 markom
 
323 344 markom
  debug = 0-9
324 876 rherveille
 
325
      1-9: debug message level.
326
           higher numbers produce more messages
327 428 markom
 
328 312 markom
  profile = 0/1
329 876 rherveille
      '0': don't generate profiling file 'sim.profile'
330
      '1': don't generate profiling file 'sim.profile'
331 428 markom
 
332 312 markom
  prof_fn = ""
333 876 rherveille
      optional filename for the profiling file.
334
      valid only if 'profile' is set
335 1021 rherveille
 
336 547 markom
  mprofile = 0/1
337 876 rherveille
      '0': don't generate memory profiling file 'sim.mprofile'
338
      '1': generate memory profiling file 'sim.mprofile'
339 428 markom
 
340 547 markom
  mprof_fn = ""
341 876 rherveille
      optional filename for the memory profiling file.
342
      valid only if 'mprofile' is set
343 547 markom
 
344 394 markom
  history = 0/1
345 876 rherveille
      '0': don't track execution flow
346
      '1': track execution flow
347
      Execution flow can be tracked for the simulator's
348
      'hist' command. Useful for back-trace debugging.
349 428 markom
 
350 312 markom
  iprompt = 0/1
351 876 rherveille
     '0': start in  (so what do we start in ???)
352
     '1': start in interactive prompt.
353 312 markom
 
354
  exe_log = 0/1
355 876 rherveille
      '0': don't generate execution log.
356
      '1': generate execution log.
357 1021 rherveille
 
358 675 markom
  exe_log = default/hardware/simple/software
359 876 rherveille
      type of execution log, default is used when not specified
360 1021 rherveille
 
361 672 markom
  exe_log_start = 
362 876 rherveille
      index of first instruction to start logging, default = 0
363 1021 rherveille
 
364 672 markom
  exe_log_end = 
365 876 rherveille
      index of last instruction to end logging; not limited, if omitted
366 1021 rherveille
 
367 672 markom
  exe_log_marker = 
368
       specifies number of instructions before horizontal marker is
369
      printed; if zero, markers are disabled (default)
370 428 markom
 
371 312 markom
  exe_log_fn = ""
372 876 rherveille
      filename for the exection log file.
373
      valid only if 'exe_log' is set
374 624 ivang
 
375
  spr_log = 0/1
376 876 rherveille
      '0': log reads/writes to/from sprs
377
      '1': don't log reads/write to/from sprs
378 624 ivang
 
379
  spr_log_fn = ""
380 876 rherveille
      filename for the sprs log file.
381
      valid only if 'spr_log' is set
382 1021 rherveille
 
383 433 markom
  clkcycle = [ps|ns|us|ms]
384
      specifies time measurement for one cycle
385 335 markom
*/
386
 
387 312 markom
section sim
388 335 markom
  /* verbose = 1 */
389 879 markom
  debug = 0
390 689 markom
  profile = 0
391 312 markom
  prof_fn = "sim.profile"
392 428 markom
 
393 394 markom
  history = 1
394 312 markom
  /* iprompt = 0 */
395
  exe_log = 0
396 1021 rherveille
  exe_log_type = software
397 672 markom
  exe_log_start = 0
398 1021 rherveille
/*  exe_log_end = 20000000*/
399
  exe_log_marker = 10000
400 312 markom
  exe_log_fn = "executed.log"
401 1021 rherveille
 
402
  spr_log = 0
403 624 ivang
  spr_log_fn = "spr.log"
404
  clkcycle = 100ns
405 312 markom
end
406
 
407
 
408
/* SECTION VAPI
409
 
410 876 rherveille
    This section configures the Verification API, used for Advanced
411 312 markom
    Core Verification.
412 428 markom
 
413 312 markom
    enabled = 0/1
414 876 rherveille
        '0': disbable VAPI server
415
        '1': enable/start VAPI server
416 428 markom
 
417 312 markom
    server_port = 
418
        TCP/IP port to start VAPI server on
419 428 markom
 
420 355 markom
    log_enabled = 0/1
421 876 rherveille
       '0': disable VAPI requests logging
422
       '1': enable VAPI requests logging
423 428 markom
 
424 486 erez
    hide_device_id = 0/1
425 876 rherveille
       '0': don't log device id (for compatability with old version)
426
       '1': log device id
427 1021 rherveille
 
428 486 erez
 
429 355 markom
    vapi_fn = 
430 876 rherveille
       filename for the log file.
431
       valid only if log_enabled is set
432 312 markom
*/
433
 
434
section VAPI
435
  enabled = 0
436
  server_port = 9998
437 355 markom
  log_enabled = 0
438 427 markom
  vapi_log_fn = "vapi.log"
439 312 markom
end
440
 
441
 
442
/* CPU SECTION
443
 
444
   This section specifies various CPU parameters.
445 428 markom
 
446 312 markom
   ver = 
447
   rev = 
448
      specifies version and revision of the CPU used
449 428 markom
 
450 312 markom
   upr = 
451
      changes the upr register
452 1021 rherveille
 
453 556 markom
   sr = 
454
      sets the initial Supervision Register value
455 428 markom
 
456 312 markom
   superscalar = 0/1
457 876 rherveille
      '0': CPU is scalar
458
      '1': CPU is superscalar
459 388 lampret
      (modify cpu/or32/execute.c to tune superscalar model)
460
 
461 312 markom
   hazards = 0/1
462 876 rherveille
      '0': don't track data hazards in superscalar CPU
463
      '1': track data hazards in superscalar CPU
464
      If tracked, data hazards can be displayed using the
465
      simulator's 'r' command.
466 388 lampret
 
467 312 markom
   dependstats = 0/1
468 876 rherveille
      '0': don't calculate inter-instruction dependencies.
469
      '1': calculate inter-instruction dependencies.
470
      If calculated, inter-instruction dependencies can be
471
      displayed using the simulator's 'stat' command.
472 388 lampret
 
473 626 markom
   sbuf_len = 
474
      length of store buffer (<= 256), 0 = disabled
475 312 markom
*/
476
 
477 263 markom
section cpu
478
  ver = 0x1200
479
  rev = 0x0001
480
  /* upr = */
481
  superscalar = 0
482
  hazards = 0
483
  dependstats = 0
484 626 markom
  sbuf_len = 0
485 263 markom
end
486
 
487 312 markom
 
488 557 markom
/* PM SECTION
489
 
490 876 rherveille
   This section specifies Power Management parameters
491
 
492 557 markom
   enabled = 0/1
493 876 rherveille
      '0': disable power management
494
      '1': enable power management
495 557 markom
*/
496
 
497
section pm
498
  enabled = 0
499
end
500
 
501 1021 rherveille
 
502 541 markom
/* BPB SECTION
503
 
504
   This section specifies how branch prediction should behave.
505 1021 rherveille
 
506 541 markom
   enabled = 0/1
507 876 rherveille
     '0': disable branch prediction
508
     '1': enable branch prediction
509 1021 rherveille
 
510 541 markom
   btic = 0/1
511 876 rherveille
     '0': disable branch target instruction cache model
512
     '1': enable branch target instruction cache model
513 541 markom
 
514
   sbp_bf_fwd = 0/1
515 876 rherveille
     Static branch prediction for 'l.bf'
516
     '0': don't use forward prediction
517 1021 rherveille
     '1': use forward prediction
518
 
519 541 markom
   sbp_bnf_fwd = 0/1
520 876 rherveille
     Static branch prediction for 'l.bnf'
521
     '0': don't use forward prediction
522
     '1': use forward prediction
523 541 markom
 
524
   hitdelay = 
525
       number of cycles bpb hit costs
526 1021 rherveille
 
527 541 markom
   missdelay = 
528
       number of cycles bpb miss costs
529
*/
530
 
531
section bpb
532
  enabled = 0
533
  btic = 0
534
  sbp_bf_fwd = 0
535
  sbp_bnf_fwd = 0
536
  hitdelay = 0
537
  missdelay = 0
538
end
539
 
540
 
541 312 markom
/* DEBUG SECTION
542
 
543 876 rherveille
   This sections specifies how the debug unit should behave.
544 428 markom
 
545 312 markom
   enabled = 0/1
546 876 rherveille
      '0': disable debug unit
547
      '1': enable debug unit
548 428 markom
 
549 312 markom
   gdb_enabled = 0/1
550 876 rherveille
      '0': don't start gdb server
551
      '1': start gdb server at port 'server_port'
552 428 markom
 
553 312 markom
   server_port = 
554 876 rherveille
      TCP/IP port to start gdb server on
555
      valid only if gdb_enabled is set
556 486 erez
 
557
   vapi_id = 
558
      Used to create "fake" vapi log file containing the JTAG proxy messages.
559 479 markom
*/
560 428 markom
 
561 269 markom
section debug
562 1021 rherveille
  enabled = 0
563 312 markom
  gdb_enabled = 0
564 269 markom
  server_port = 9999
565
end
566
 
567 264 markom
 
568 312 markom
/* MC SECTION
569
 
570
   This section configures the memory controller
571
 
572
   enabled = 0/1
573 876 rherveille
     '0': disable memory controller
574
     '1': enable memory controller
575 428 markom
 
576 312 markom
   baseaddr = 
577
      address of first MC register
578 428 markom
 
579 312 markom
   POC = 
580
      Power On Configuration register
581 1486 nogj
 
582
   index = 
583
      Index of this memory controller amongst all the memory controllers
584 312 markom
*/
585
 
586 243 markom
section mc
587 1021 rherveille
  enabled = 1
588
  baseaddr = 0x93000000
589 261 markom
  POC = 0x00000008                 /* Power on configuration register */
590 1486 nogj
  index = 0
591 243 markom
end
592 261 markom
 
593 312 markom
 
594
/* UART SECTION
595
 
596 876 rherveille
   This section configures the UARTs
597 312 markom
 
598 1461 nogj
     enabled = <0|1>
599
        Enable/disable the peripheral.  By default if it is enabled.
600
 
601 312 markom
     baseaddr = 
602
        address of first UART register for this device
603 428 markom
 
604 1126 sfurman
 
605
     channel = :
606
 
607
        The channel parameter indicates the source of received UART characters
608
        and the sink for transmitted UART characters.
609 428 markom
 
610 1126 sfurman
        The  can be either "file", "xterm", "tcp", "fd", or "tty"
611
        (without quotes).
612 332 markom
 
613 1126 sfurman
          A) To send/receive characters from a pair of files, use a file
614
             channel:
615
 
616
               channel=file:,
617
 
618
          B) To create an interactive terminal window, use an xterm channel:
619
 
620
               channel=xterm:[]*
621
 
622
          C) To create a bidirectional tcp socket which one could, for example,
623
             access via telnet, use a tcp channel:
624
 
625
               channel=tcp:
626
 
627
          D) To cause the UART to read/write from existing numeric file
628
             descriptors, use an fd channel:
629
 
630
               channel=fd:,
631
 
632
          E) To connect the UART to a physical serial port, create a tty
633
             channel:
634
 
635
               channel=tty:device=/dev/ttyS0,baud=9600
636
 
637 332 markom
     irq = 
638
        irq number for this device
639 428 markom
 
640 341 markom
     16550 = 0/1
641 876 rherveille
        '0': this device is a UART16450
642
        '1': this device is a UART16550
643 428 markom
 
644 312 markom
     jitter = 
645
        in msecs... time to block, -1 to disable it
646 428 markom
 
647 313 markom
     vapi_id = 
648
        VAPI id of this instance
649 312 markom
*/
650
 
651 261 markom
section uart
652 1461 nogj
  enabled = 1
653 1367 nogj
  baseaddr = 0x90000000
654
  irq = 2
655
  channel = "file:uart0.rx,uart0.tx"
656
  jitter = -1                     /* async behaviour */
657
  16550 = 1
658 261 markom
end
659
 
660 312 markom
 
661
/* DMA SECTION
662
 
663 876 rherveille
   This section configures the DMAs
664 312 markom
 
665 1461 nogj
     enabled = <0|1>
666
        Enable/disable the peripheral.  By default if it is enabled.
667
 
668 312 markom
     baseaddr = 
669
        address of first DMA register for this device
670
 
671
     irq = 
672
        irq number for this device
673 428 markom
 
674 313 markom
     vapi_id = 
675
        VAPI id of this instance
676 312 markom
*/
677
 
678 261 markom
section dma
679 1461 nogj
  enabled = 1
680 1370 nogj
  baseaddr = 0x9a000000
681
  irq = 11
682 261 markom
end
683 293 markom
 
684 304 markom
 
685 312 markom
/* ETHERNET SECTION
686
 
687 876 rherveille
   This section configures the ETHERNETs
688 312 markom
 
689 1461 nogj
     enabled = <0|1>
690
        Enable/disable the peripheral.  By default if it is enabled.
691
 
692 312 markom
     baseaddr = 
693
        address of first ethernet register for this device
694
 
695
     dma = 
696
        which controller is this ethernet "connected" to
697 428 markom
 
698 724 ivang
     irq = 
699
        ethernet mac IRQ level
700
 
701 725 ivang
     rtx_type = 
702
        use 0 - file interface, 1 - socket interface
703
 
704 312 markom
     rx_channel = 
705
        DMA channel used for RX
706 428 markom
 
707 312 markom
     tx_channel = 
708
        DMA channel used for TX
709
 
710 664 markom
     rxfile = ""
711 312 markom
        filename, where to read data from
712 428 markom
 
713 664 markom
     txfile = ""
714 312 markom
        filename, where to write data to
715 428 markom
 
716 724 ivang
     sockif = ""
717
        interface name of ethernet socket
718
 
719 313 markom
     vapi_id = 
720
        VAPI id of this instance
721 312 markom
*/
722
 
723 304 markom
section ethernet
724 1461 nogj
  enabled = 1
725 1372 nogj
  baseaddr = 0x92000000
726
  dma = 0
727
  irq = 4
728
  rtx_type = 1
729
  tx_channel = 0
730
  rx_channel = 1
731
  rxfile = "eth0.rx"
732
  txfile = "eth0.tx"
733
  sockif = "eth0"
734 304 markom
end
735 332 markom
 
736 1021 rherveille
 
737 486 erez
/* GPIO SECTION
738
 
739 876 rherveille
   This section configures the GPIOs
740 486 erez
 
741 1461 nogj
     enabled = <0|1>
742
        Enable/disable the peripheral.  By default if it is enabled.
743
 
744 486 erez
     baseaddr = 
745
        address of first GPIO register for this device
746
 
747
     irq = 
748
        irq number for this device
749
 
750
     base_vapi_id = 
751
        first VAPI id of this instance
752
        GPIO uses 8 consecutive VAPI IDs
753
*/
754
 
755
section gpio
756 1461 nogj
  enabled = 1
757 1374 nogj
  baseaddr = 0x91000000
758
  irq = 3
759
  base_vapi_id = 0x0200
760 486 erez
end
761
 
762 645 markom
/* VGA SECTION
763 1021 rherveille
 
764 876 rherveille
    This section configures the VGA/LCD controller
765 1021 rherveille
 
766 1461 nogj
      enabled = <0|1>
767
        Enable/disable the peripheral.  By default if it is enabled.
768
 
769 645 markom
      baseaddr = 
770
        address of first VGA register
771 1021 rherveille
 
772 645 markom
      irq = 
773
        irq number for this device
774 1021 rherveille
 
775 645 markom
      refresh_rate = 
776
        number of cycles between screen dumps
777 1021 rherveille
 
778 645 markom
      filename = ""
779
        template name for generated names (e.g. "primary" produces "primary0023.bmp")
780
*/
781
 
782
section vga
783 1461 nogj
  enabled = 1
784 1368 nogj
  baseaddr = 0x97100000
785
  irq = 8
786
  refresh_rate = 100000
787
  filename = "primary"
788 645 markom
end
789
 
790 876 rherveille
 
791 1021 rherveille
/* TICK TIMER SECTION
792 876 rherveille
 
793 1021 rherveille
    This section configures tick timer
794
 
795 645 markom
    enabled = 0/1
796 1021 rherveille
      whether tick timer is enabled
797
 
798
    irq = 
799
      irq number
800
*/
801
/*
802
section tick
803
  enabled = 1
804
  irq = 0
805
end
806
*/
807
 
808
/* FB SECTION
809
 
810
    This section configures the frame buffer
811
 
812 1461 nogj
    enabled = <0|1>
813
      Enable/disable the peripheral.  By default if it is enabled.
814
 
815 664 markom
    baseaddr = 
816 645 markom
      base address of frame buffer
817 1021 rherveille
 
818 645 markom
    paladdr = 
819
      base address of first palette entry
820 1021 rherveille
 
821 645 markom
    refresh_rate = 
822
      number of cycles between screen dumps
823 1021 rherveille
 
824 645 markom
    filename = ""
825
      template name for generated names (e.g. "primary" produces "primary0023.bmp")
826
*/
827
 
828
section fb
829 1461 nogj
  enabled = 1
830 1021 rherveille
  baseaddr = 0x97000000
831
  refresh_rate = 1000000
832 645 markom
  filename = "primary"
833
end
834 664 markom
 
835 1021 rherveille
 
836 664 markom
/* KBD SECTION
837
 
838 876 rherveille
    This section configures the PS/2 compatible keyboard
839 1021 rherveille
 
840 664 markom
    baseaddr = 
841
      base address of the keyboard device
842 1021 rherveille
 
843 664 markom
    rxfile = ""
844
      filename, where to read data from
845
*/
846
 
847
section kbd
848 1461 nogj
  enabled = 1
849 1021 rherveille
  irq = 5
850
  baseaddr = 0x94000000
851
  rxfile = "kbd.rx"
852 664 markom
end
853 876 rherveille
 
854
 
855
/* ATA SECTION
856 1021 rherveille
 
857 876 rherveille
    This section configures the ATA/ATAPI host controller
858 1021 rherveille
 
859 876 rherveille
      baseaddr = 
860
        address of first ATA register
861 1021 rherveille
 
862 1461 nogj
      enabled = <0|1>
863
        Enable/disable the peripheral.  By default if it is enabled.
864
 
865 876 rherveille
      irq = 
866
        irq number for this device
867
 
868
      debug = 
869
        debug level for ata models.
870
        0: no debug messages
871
        1: verbose messages
872
        3: normal messages (more messages than verbose)
873
        5: debug messages (normal debug messages)
874
        7: flow control messages (debug statemachine flows)
875
        9: low priority message (display everything the code does)
876
 
877
      dev_type0/1 = 
878
        ata device 0 type
879
        0: NO_CONNeCT: none (not connected)
880
        1: FILE      : simulated harddisk
881
        2: LOCAL     : local system harddisk
882
 
883
      dev_file0/1 = ""
884
        filename for simulated ATA device
885
        valid only if dev_type0 == 1
886
 
887
      dev_size0/1 = 
888
        size of simulated hard-disk (in MBytes)
889
        valid only if dev_type0 == 1
890
 
891
      dev_packet0/1 = 
892
        0: simulated ATA device does NOT implement PACKET command feature set
893
        1: simulated ATA device does implement PACKET command feature set
894
 
895
   FIXME: irq number
896
*/
897
 
898
section ata
899 1461 nogj
  enabled = 1
900 1364 nogj
  baseaddr = 0x9e000000
901
  irq = 15
902 876 rherveille
 
903 1364 nogj
  dev_type0   = 1
904
  dev_file0   = "/tmp/sim_atadev0"
905
  dev_size0   = 1
906
  dev_packet0 = 0
907 876 rherveille
 
908 1364 nogj
  dev_type1   = 0
909
  dev_file1   = ""
910
  dev_size1   = 0
911
  dev_packet1 = 0
912 876 rherveille
end
913 897 markom
 
914
 
915
/* CUC SECTION
916
 
917
    This section configures the OpenRISC Custom Unit Compiler
918
 
919
    memory_order = none/weak/strong/exact
920
      none   different memory ordering, even if there are dependencies,
921
             burst can be made, width can change
922
      weak   different memory ordering, if there cannot be dependencies
923
             burst can be made, width can change
924
      strong same memory ordering, burst can be made, width can change
925
      exact  exacltly the same memory ordering and widths
926
 
927
    calling_convention = 0/1
928
      whether programs follow OpenRISC calling conventions
929
 
930
    enable_bursts = 0/1
931
      whether burst are detected
932
 
933
    no_multicycle = 0/1
934
      if selected no multicycle logic paths will be generated
935
 
936
    timings_fn = ""
937
*/
938
 
939
section cuc
940
  memory_order = weak
941
  calling_convention = 1
942
  enable_bursts = 1
943
  no_multicycle = 1
944
  timings_fn = "virtex.tim"
945
end
946
 

powered by: WebSVN 2.1.0

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