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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [orpmon/] [sim.cfg] - Blame information for rev 1765

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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