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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1223 dries
/* sim.cfg -- Simulator configuration script file
2 1348 jcastillo
   Copyright (C) 2001-2002, Marko Mlinar, markom@opencores.org
3 1223 dries
 
4
This file is part of OpenRISC 1000 Architectural Simulator.
5 1348 jcastillo
It contains the default configuration and help about configuring
6
the simulator.
7 1223 dries
 
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 1348 jcastillo
   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 1223 dries
 
37 1348 jcastillo
   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 1223 dries
 
42 1348 jcastillo
   Like normal configuration files, the included file is divided into
43
   sections. Each section is described in detail also.
44 1223 dries
 
45 1348 jcastillo
   Some section have subsections. One example of such a subsection is:
46 1223 dries
 
47
   device 
48
     instance specific parameters...
49
   enddevice
50
 
51
   which creates a device instance.
52
*/
53
 
54
 
55
/* MEMORY SECTION
56
 
57 1348 jcastillo
   This section specifies how the memory is generated and the blocks
58
   it consists of.
59 1223 dries
 
60
   type = random/unknown/pattern
61 1348 jcastillo
      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 1223 dries
 
68
   random_seed = 
69 1348 jcastillo
      random seed for randomizer, used if type = 'random'.
70 1223 dries
 
71
   pattern = 
72 1348 jcastillo
      pattern to fill memory, used if type = 'pattern'.
73 1223 dries
 
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 1348 jcastillo
 
101 1223 dries
section memory
102
  /*random_seed = 12345
103
  type = random*/
104
  pattern = 0x00
105
  type = unknown /* Fastest */
106
 
107 1348 jcastillo
 
108 1223 dries
  nmemories = 3
109
  device 0
110
    name = "FLASH"
111
    ce = 0
112 1348 jcastillo
    baseaddr = 0xf0000000
113 1223 dries
    size = 0x00800000
114
    delayr = 10
115
    delayw = -1
116
  enddevice
117
 
118
  device 1
119
    name = "RAM"
120
    ce = 1
121
    baseaddr = 0x00000000
122
    size = 0x00400000
123
    delayr = 1
124
    delayw = 2
125
  enddevice
126 1348 jcastillo
 
127 1223 dries
  device 2
128
    name = "SRAM"
129
    ce = 2
130
    baseaddr = 0x08000000
131
    size = 0x00400000
132
    delayr = 1
133
    delayw = 2
134
  enddevice
135
end
136
 
137 1348 jcastillo
 
138 1223 dries
/* IMMU SECTION
139
 
140 1348 jcastillo
    This section configures the Instruction Memory Manangement Unit
141 1223 dries
 
142
    enabled = 0/1
143 1348 jcastillo
       '0': disabled
144
       '1': enabled
145 1223 dries
       (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 1348 jcastillo
 
162
    hitdelay = 
163
       number of cycles immu hit costs
164
 
165
    missdelay = 
166
       number of cycles immu miss costs
167 1223 dries
*/
168
 
169
section immu
170 1348 jcastillo
  enabled = 0
171 1223 dries
  nsets = 64
172
  nways = 1
173
  pagesize = 8192
174 1348 jcastillo
  hitdelay = 0
175
  missdelay = 0
176 1223 dries
end
177
 
178 1348 jcastillo
 
179 1223 dries
/* DMMU SECTION
180
 
181 1348 jcastillo
    This section configures the Data Memory Manangement Unit
182 1223 dries
 
183
    enabled = 0/1
184 1348 jcastillo
       '0': disabled
185
       '1': enabled
186 1223 dries
       (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 1348 jcastillo
 
203
    hitdelay = 
204
       number of cycles dmmu hit costs
205
 
206
    missdelay = 
207
       number of cycles dmmu miss costs
208 1223 dries
*/
209
 
210
section dmmu
211 1348 jcastillo
  enabled = 0
212 1223 dries
  nsets = 64
213
  nways = 1
214
  pagesize = 8192
215 1348 jcastillo
  hitdelay = 0
216
  missdelay = 0
217 1223 dries
end
218
 
219
 
220
/* IC SECTION
221
 
222 1348 jcastillo
   This section configures the Instruction Cache
223 1223 dries
 
224 1348 jcastillo
   enabled = 0/1
225
       '0': disabled
226
       '1': enabled
227
      (NOTE: UPR bit is set)
228 1223 dries
 
229 1348 jcastillo
   nsets = 
230
      number of IC sets; must be power of two
231 1223 dries
 
232 1348 jcastillo
   nways = 
233
      number of IC ways
234 1223 dries
 
235 1348 jcastillo
   blocksize = 
236
      IC block size in bytes; must be power of two
237 1223 dries
 
238 1348 jcastillo
   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 1223 dries
*/
247
 
248
section ic
249 1348 jcastillo
  enabled = 0
250 1223 dries
  nsets = 256
251
  nways = 1
252
  blocksize = 16
253 1348 jcastillo
  hitdelay = 0
254
  missdelay = 0
255 1223 dries
end
256
 
257 1348 jcastillo
 
258 1223 dries
/* DC SECTION
259
 
260 1348 jcastillo
   This section configures the Data Cache
261 1223 dries
 
262 1348 jcastillo
   enabled = 0/1
263
       '0': disabled
264
       '1': enabled
265
      (NOTE: UPR bit is set)
266 1223 dries
 
267 1348 jcastillo
   nsets = 
268
      number of DC sets; must be power of two
269 1223 dries
 
270 1348 jcastillo
   nways = 
271
      number of DC ways
272 1223 dries
 
273 1348 jcastillo
   blocksize = 
274
      DC block size in bytes; must be power of two
275 1223 dries
 
276 1348 jcastillo
   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 1223 dries
*/
291
 
292
section dc
293 1348 jcastillo
  enabled = 0
294 1223 dries
  nsets = 256
295
  nways = 1
296
  blocksize = 16
297 1348 jcastillo
  load_hitdelay = 0
298
  load_missdelay = 0
299
  store_hitdelay = 0
300
  store_missdelay = 0
301 1223 dries
end
302
 
303 1348 jcastillo
 
304 1223 dries
/* SIM SECTION
305
 
306 1348 jcastillo
  This section specifies how or1ksim should behave.
307 1223 dries
 
308
  verbose = 0/1
309 1348 jcastillo
       '0': don't print extra messages
310
       '1': print extra messages
311 1223 dries
 
312
  debug = 0-9
313 1348 jcastillo
 
314
      1-9: debug message level.
315
           higher numbers produce more messages
316 1223 dries
 
317
  profile = 0/1
318 1348 jcastillo
      '0': don't generate profiling file 'sim.profile'
319
      '1': don't generate profiling file 'sim.profile'
320 1223 dries
 
321
  prof_fn = ""
322 1348 jcastillo
      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 1223 dries
 
329 1348 jcastillo
  mprof_fn = ""
330
      optional filename for the memory profiling file.
331
      valid only if 'mprofile' is set
332
 
333 1223 dries
  history = 0/1
334 1348 jcastillo
      '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 1223 dries
 
339
  iprompt = 0/1
340 1348 jcastillo
     '0': start in  (so what do we start in ???)
341
     '1': start in interactive prompt.
342 1223 dries
 
343
  exe_log = 0/1
344 1348 jcastillo
      '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 1223 dries
 
360
  exe_log_fn = ""
361 1348 jcastillo
      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 1223 dries
 
372
  clkcycle = [ps|ns|us|ms]
373
      specifies time measurement for one cycle
374
*/
375
 
376
section sim
377 1348 jcastillo
  /* verbose = 1 */
378 1223 dries
  debug = 0
379
  profile = 0
380
  prof_fn = "sim.profile"
381
 
382 1348 jcastillo
  history = 1
383 1223 dries
  /* iprompt = 0 */
384
  exe_log = 0
385
  exe_log_type = software
386
  exe_log_start = 0
387
/*  exe_log_end = 20000000*/
388
  exe_log_marker = 10000
389
  exe_log_fn = "executed.log"
390 1348 jcastillo
 
391
  spr_log = 0
392
  spr_log_fn = "spr.log"
393
  clkcycle = 100ns
394 1223 dries
end
395
 
396
 
397
/* SECTION VAPI
398
 
399 1348 jcastillo
    This section configures the Verification API, used for Advanced
400 1223 dries
    Core Verification.
401
 
402
    enabled = 0/1
403 1348 jcastillo
        '0': disbable VAPI server
404
        '1': enable/start VAPI server
405 1223 dries
 
406
    server_port = 
407
        TCP/IP port to start VAPI server on
408
 
409
    log_enabled = 0/1
410 1348 jcastillo
       '0': disable VAPI requests logging
411
       '1': enable VAPI requests logging
412 1223 dries
 
413 1348 jcastillo
    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 1223 dries
    vapi_fn = 
419 1348 jcastillo
       filename for the log file.
420
       valid only if log_enabled is set
421 1223 dries
*/
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 1348 jcastillo
 
442
   sr = 
443
      sets the initial Supervision Register value
444 1223 dries
 
445
   superscalar = 0/1
446 1348 jcastillo
      '0': CPU is scalar
447
      '1': CPU is superscalar
448 1223 dries
      (modify cpu/or32/execute.c to tune superscalar model)
449
 
450
   hazards = 0/1
451 1348 jcastillo
      '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 1223 dries
 
456
   dependstats = 0/1
457 1348 jcastillo
      '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
 
462
   sbuf_len = 
463
      length of store buffer (<= 256), 0 = disabled
464 1223 dries
*/
465
 
466
section cpu
467
  ver = 0x1200
468
  rev = 0x0001
469
  /* upr = */
470
  superscalar = 0
471
  hazards = 0
472
  dependstats = 0
473 1348 jcastillo
  sbuf_len = 0
474 1223 dries
end
475
 
476
 
477 1348 jcastillo
/* 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
  btic = 0
523
  sbp_bf_fwd = 0
524
  sbp_bnf_fwd = 0
525
  hitdelay = 0
526
  missdelay = 0
527
end
528
 
529
 
530 1223 dries
/* DEBUG SECTION
531
 
532 1348 jcastillo
   This sections specifies how the debug unit should behave.
533 1223 dries
 
534
   enabled = 0/1
535 1348 jcastillo
      '0': disable debug unit
536
      '1': enable debug unit
537 1223 dries
 
538
   gdb_enabled = 0/1
539 1348 jcastillo
      '0': don't start gdb server
540
      '1': start gdb server at port 'server_port'
541 1223 dries
 
542
   server_port = 
543 1348 jcastillo
      TCP/IP port to start gdb server on
544
      valid only if gdb_enabled is set
545 1223 dries
 
546 1348 jcastillo
   vapi_id = 
547
      Used to create "fake" vapi log file containing the JTAG proxy messages.
548
*/
549
 
550 1223 dries
section debug
551 1349 jcastillo
  enabled = 1
552
  gdb_enabled = 1
553 1223 dries
  server_port = 9999
554
end
555
 
556
 
557
/* MC SECTION
558
 
559
   This section configures the memory controller
560
 
561
   enabled = 0/1
562 1348 jcastillo
     '0': disable memory controller
563
     '1': enable memory controller
564 1223 dries
 
565
   baseaddr = 
566
      address of first MC register
567
 
568
   POC = 
569
      Power On Configuration register
570
*/
571
 
572
section mc
573
  enabled = 0
574 1348 jcastillo
  baseaddr = 0x93000000
575 1223 dries
  POC = 0x00000008                 /* Power on configuration register */
576
end
577
 
578
 
579
/* UART SECTION
580
 
581 1348 jcastillo
   This section configures the UARTs
582 1223 dries
 
583
   nuarts = 
584
      make specified number of instances, configure each
585
      instance within device - enddevice construct.
586
 
587
   instance specific:
588
     baseaddr = 
589
        address of first UART register for this device
590
 
591 1348 jcastillo
 
592
     channel = :
593
 
594
        The channel parameter indicates the source of received UART characters
595
        and the sink for transmitted UART characters.
596 1223 dries
 
597 1348 jcastillo
        The  can be either "file", "xterm", "tcp", "fd", or "tty"
598
        (without quotes).
599 1223 dries
 
600 1348 jcastillo
          A) To send/receive characters from a pair of files, use a file
601
             channel:
602
 
603
               channel=file:,
604
 
605
          B) To create an interactive terminal window, use an xterm channel:
606
 
607
               channel=xterm:[]*
608
 
609
          C) To create a bidirectional tcp socket which one could, for example,
610
             access via telnet, use a tcp channel:
611
 
612
               channel=tcp:
613
 
614
          D) To cause the UART to read/write from existing numeric file
615
             descriptors, use an fd channel:
616
 
617
               channel=fd:,
618
 
619
          E) To connect the UART to a physical serial port, create a tty
620
             channel:
621
 
622
               channel=tty:device=/dev/ttyS0,baud=9600
623
 
624 1223 dries
     irq = 
625
        irq number for this device
626
 
627
     16550 = 0/1
628 1348 jcastillo
        '0': this device is a UART16450
629
        '1': this device is a UART16550
630 1223 dries
 
631
     jitter = 
632
        in msecs... time to block, -1 to disable it
633
 
634
     vapi_id = 
635
        VAPI id of this instance
636
*/
637
 
638
section uart
639
  nuarts = 1
640
 
641
  device 0
642
    baseaddr = 0x90000000
643 1348 jcastillo
    irq = 2
644
    channel = "file:uart0.rx,uart0.tx"
645 1223 dries
    jitter = -1                     /* async behaviour */
646
    16550 = 1
647
  enddevice
648
end
649
 
650
 
651
/* DMA SECTION
652
 
653 1348 jcastillo
   This section configures the DMAs
654 1223 dries
 
655
   ndmas = 
656
      make specified number of instances, configure each
657
      instance within device - enddevice construct.
658
 
659
   instance specific:
660
     baseaddr = 
661
        address of first DMA register for this device
662
 
663
     irq = 
664
        irq number for this device
665
 
666
     vapi_id = 
667
        VAPI id of this instance
668
*/
669
 
670
section dma
671
  ndmas = 0
672
 
673 1348 jcastillo
  /*
674 1223 dries
  device 0
675 1348 jcastillo
    baseaddr = 0x9a000000
676
    irq = 11
677 1223 dries
  enddevice
678 1348 jcastillo
  */
679 1223 dries
end
680
 
681 1348 jcastillo
 
682 1223 dries
/* ETHERNET SECTION
683
 
684 1348 jcastillo
   This section configures the ETHERNETs
685 1223 dries
 
686
   nethernets = 
687
      make specified number of instances, configure each
688
      instance within device - enddevice construct.
689
 
690
   instance specific:
691
     baseaddr = 
692
        address of first ethernet register for this device
693
 
694
     dma = 
695
        which controller is this ethernet "connected" to
696
 
697 1348 jcastillo
     irq = 
698
        ethernet mac IRQ level
699
 
700
     rtx_type = 
701
        use 0 - file interface, 1 - socket interface
702
 
703 1223 dries
     rx_channel = 
704
        DMA channel used for RX
705
 
706
     tx_channel = 
707
        DMA channel used for TX
708
 
709 1348 jcastillo
     rxfile = ""
710 1223 dries
        filename, where to read data from
711
 
712 1348 jcastillo
     txfile = ""
713 1223 dries
        filename, where to write data to
714
 
715 1348 jcastillo
     sockif = ""
716
        interface name of ethernet socket
717
 
718 1223 dries
     vapi_id = 
719
        VAPI id of this instance
720
*/
721
 
722
section ethernet
723 1349 jcastillo
  nethernets = 0
724 1223 dries
 
725 1349 jcastillo
/*  device 0
726 1348 jcastillo
    baseaddr = 0x92000000
727 1223 dries
    dma = 0
728 1348 jcastillo
    irq = 4
729 1223 dries
    rtx_type = 1
730
    tx_channel = 0
731
    rx_channel = 1
732
    rxfile = "eth0.rx"
733
    txfile = "eth0.tx"
734
    sockif = "eth0"
735 1349 jcastillo
  enddevice*/
736 1223 dries
end
737
 
738 1348 jcastillo
 
739
/* GPIO SECTION
740
 
741
   This section configures the GPIOs
742
 
743
   ngpios = 
744
      make specified number of instances, configure each
745
      instance within device - enddevice construct.
746
 
747
   instance specific:
748
     baseaddr = 
749
        address of first GPIO register for this device
750
 
751
     irq = 
752
        irq number for this device
753
 
754
     base_vapi_id = 
755
        first VAPI id of this instance
756
        GPIO uses 8 consecutive VAPI IDs
757
*/
758
 
759
section gpio
760 1349 jcastillo
  ngpios = 0
761 1348 jcastillo
 
762 1349 jcastillo
/*  device 0
763 1348 jcastillo
    baseaddr = 0x91000000
764
    irq = 3
765
    base_vapi_id = 0x0200
766 1349 jcastillo
  enddevice*/
767 1348 jcastillo
end
768
 
769
/* VGA SECTION
770
 
771
    This section configures the VGA/LCD controller
772
 
773
    nvgas = 
774
       number of VGA devices connected
775
 
776
    instance specific:
777
      baseaddr = 
778
        address of first VGA register
779
 
780
      irq = 
781
        irq number for this device
782
 
783
      refresh_rate = 
784
        number of cycles between screen dumps
785
 
786
      filename = ""
787
        template name for generated names (e.g. "primary" produces "primary0023.bmp")
788
*/
789
 
790
section vga
791 1349 jcastillo
  nvgas = 0
792 1348 jcastillo
 
793 1349 jcastillo
/*  device 0
794 1348 jcastillo
    baseaddr = 0x97100000
795
    irq = 8
796
    refresh_rate = 100000
797
    filename = "primary"
798 1349 jcastillo
  enddevice*/
799 1348 jcastillo
end
800
 
801
 
802
/* TICK TIMER SECTION
803
 
804
    This section configures tick timer
805
 
806
    enabled = 0/1
807
      whether tick timer is enabled
808
 
809
    irq = 
810
      irq number
811
*/
812
/*
813
section tick
814
  enabled = 1
815
  irq = 0
816
end
817
*/
818
 
819
/* FB SECTION
820
 
821
    This section configures the frame buffer
822
 
823
    enabled = 0/1
824
      whether frame buffer is enabled
825
 
826
    baseaddr = 
827
      base address of frame buffer
828
 
829
    paladdr = 
830
      base address of first palette entry
831
 
832
    refresh_rate = 
833
      number of cycles between screen dumps
834
 
835
    filename = ""
836
      template name for generated names (e.g. "primary" produces "primary0023.bmp")
837
*/
838
 
839 1223 dries
section fb
840 1349 jcastillo
  enabled = 0
841 1348 jcastillo
  baseaddr = 0x97000000
842 1223 dries
  refresh_rate = 1000000
843
  filename = "primary"
844
end
845
 
846 1348 jcastillo
 
847 1223 dries
/* KBD SECTION
848
 
849 1348 jcastillo
    This section configures the PS/2 compatible keyboard
850
 
851 1223 dries
    enabled = 0/1
852
      whether keyboard is enabled
853 1348 jcastillo
 
854 1223 dries
    baseaddr = 
855
      base address of the keyboard device
856 1348 jcastillo
 
857 1223 dries
    rxfile = ""
858
      filename, where to read data from
859
*/
860
 
861
section kbd
862 1349 jcastillo
  enabled = 0
863 1348 jcastillo
  irq = 5
864
  baseaddr = 0x94000000
865 1223 dries
  rxfile = "kbd.rx"
866
end
867
 
868 1348 jcastillo
 
869
/* ATA SECTION
870
 
871
    This section configures the ATA/ATAPI host controller
872
 
873
    natas = 
874
       number of ATA hosts connected
875
 
876
    instance specific:
877
      baseaddr = 
878
        address of first ATA register
879
 
880
      irq = 
881
        irq number for this device
882
 
883
      debug = 
884
        debug level for ata models.
885
        0: no debug messages
886
        1: verbose messages
887
        3: normal messages (more messages than verbose)
888
        5: debug messages (normal debug messages)
889
        7: flow control messages (debug statemachine flows)
890
        9: low priority message (display everything the code does)
891
 
892
      dev_type0/1 = 
893
        ata device 0 type
894
        0: NO_CONNeCT: none (not connected)
895
        1: FILE      : simulated harddisk
896
        2: LOCAL     : local system harddisk
897
 
898
      dev_file0/1 = ""
899
        filename for simulated ATA device
900
        valid only if dev_type0 == 1
901
 
902
      dev_size0/1 = 
903
        size of simulated hard-disk (in MBytes)
904
        valid only if dev_type0 == 1
905
 
906
      dev_packet0/1 = 
907
        0: simulated ATA device does NOT implement PACKET command feature set
908
        1: simulated ATA device does implement PACKET command feature set
909
 
910
   FIXME: irq number
911
*/
912
 
913
section ata
914 1349 jcastillo
  natas = 0
915 1348 jcastillo
 
916 1349 jcastillo
/*  device 0
917 1348 jcastillo
    baseaddr = 0x9e000000
918
    irq = 15
919
 
920
    dev_type0   = 1
921
    dev_file0   = "/tmp/sim_atadev0"
922
    dev_size0   = 1
923
    dev_packet0 = 0
924
 
925
    dev_type1   = 0
926
    dev_file1   = ""
927
    dev_size1   = 0
928
    dev_packet1 = 0
929 1349 jcastillo
  enddevice*/
930 1348 jcastillo
end
931
 
932
 
933
/* CUC SECTION
934
 
935
    This section configures the OpenRISC Custom Unit Compiler
936
 
937
    memory_order = none/weak/strong/exact
938
      none   different memory ordering, even if there are dependencies,
939
             burst can be made, width can change
940
      weak   different memory ordering, if there cannot be dependencies
941
             burst can be made, width can change
942
      strong same memory ordering, burst can be made, width can change
943
      exact  exacltly the same memory ordering and widths
944
 
945
    calling_convention = 0/1
946
      whether programs follow OpenRISC calling conventions
947
 
948
    enable_bursts = 0/1
949
      whether burst are detected
950
 
951
    no_multicycle = 0/1
952
      if selected no multicycle logic paths will be generated
953
 
954
    timings_fn = ""
955
*/
956
 
957
section cuc
958
  memory_order = weak
959
  calling_convention = 1
960
  enable_bursts = 1
961
  no_multicycle = 1
962
  timings_fn = "virtex.tim"
963
end
964
 

powered by: WebSVN 2.1.0

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