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

Subversion Repositories or1k

[/] [or1k/] [tags/] [nog_patch_67/] [or1ksim/] [sim.cfg] - Blame information for rev 876

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

powered by: WebSVN 2.1.0

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