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

Subversion Repositories or1k

[/] [or1k/] [tags/] [stable_0_2_0_rc3/] [or1ksim/] [sim.cfg] - Diff between revs 310 and 312

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 310 Rev 312
Line 1... Line 1...
/* sim.cfg -- Simulator configuration script file
/* sim.cfg -- Simulator configuration script file
   Copyright (C) 2001, Marko Mlinar, markom@opencores.org
   Copyright (C) 2001, Marko Mlinar, markom@opencores.org
 
 
 
This file includes a lot of help about configurations and default one
 
 
This file is part of OpenRISC 1000 Architectural Simulator.
This file is part of OpenRISC 1000 Architectural Simulator.
 
 
This program is free software; you can redistribute it and/or modify
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
the Free Software Foundation; either version 2 of the License, or
Line 15... Line 17...
 
 
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
 
 
 
 
 
/* INTRODUCTION
 
 
 
   The or1ksim have various parameters, which can be set in configuration
 
   files.  Multiple configurations may be used and switched between at
 
   or1ksim startup.
 
   By default, or1ksim loads condfiguration file from './sim.cfg' and if not
 
   found it checks '~/.or1k/sim.cfg'. If even this file is not found or
 
   all parameters are not defined, default configuration is used.
 
   Users should not rely on default configuration, but rather redefine all
 
   critical settings, since default configuration may differ in newer
 
   versions of the or1ksim.
 
   If multiple configurations are used, user can switch between them by
 
   supplying -f  option when starting simulator.
 
 
 
   This file may contain (standard C) only comments - no // support.
 
 
 
   Like normal configuration file, this file is divided in sections,
 
   where each section is described in detail also.
 
 
 
   Some section also have subsections. One example of such subsection is
 
   block:
 
 
 
   device 
 
     instance specific parameters...
 
   enddevice
 
 
 
   which creates a device instance.
 
*/
 
 
 
 
 
/* MEMORY SECTION
 
 
 
   This section specifies how is initial memory generated and which blocks
 
   it consist of.
 
 
 
   memory_table_file = ""
 
      loads memory table from filename. If filename does not exists in the
 
      current directory, it is loaded from ~/.or1k/.
 
      Memory table file structure is as follows:
 
        start_address1 length1 type1 [ce1 [delayr1 [delayw1]]]
 
        start_address2 length2 type2 [ce2 [delayr2 [delayw2]]]
 
        start_address3 length3 type3 [ce3 [delayr3 [delayw3]]]
 
 
 
      Example:
 
        00000100 00001F00 flash 3 100
 
        80000000 00010000 RAM
 
 
 
   type = random/unknown/pattern
 
      specifies the initial memory values. 'random' parameter generate
 
      random memory using seed 'random_seed' parameter. 'pattern' parameter
 
      fills memory with 'pattern' parameter and 'unknown' does not specify
 
      how memory should be generated - the fastest option.
 
 
 
   random_seed = 
 
      random seed for randomizer, used if type = random
 
 
 
   pattern = 
 
      pattern to fill memory, , used if type = pattern
 
*/
 
 
section memory
section memory
  memory_table_file = "simmem.cfg"
  memory_table_file = "simmem.cfg"
  /*random_seed = 12345
  /*random_seed = 12345
  type = random*/
  type = random*/
  pattern = 0x00
  pattern = 0x00
  type = unknown /* Fastest */
  type = unknown /* Fastest */
end
end
 
 
 
 
 
/* SIM SECTION
 
 
 
  This section specifies how should sim behave.
 
 
 
  verbose = 0/1
 
      whether to print out extra messages
 
 
 
  debug = 0/1
 
      whether to print out sim debug information
 
 
 
  profile = 0/1
 
      whether to generate profiling file 'sim.profile'
 
 
 
  prof_fn = ""
 
      filename, where to generate profiling info, used
 
      only if 'profile' is set
 
 
 
  iprompt = 0/1
 
      whether we strart in interactive prompt
 
 
 
  exe_log = 0/1
 
      whether execution log should be generated
 
 
 
  exe_log_fn = ""
 
      where to put execution log in, used only if 'exe_log'
 
      is set
 
 
 
section sim
 
  /*verbose = 1*/
 
  debug = 0
 
  profile = 0
 
  prof_fn = "sim.profile"
 
 
 
  /* iprompt = 0 */
 
  exe_log = 0
 
  exe_log_fn = "executed.log"
 
end
 
 
 
 
 
/* SECTION VAPI
 
 
 
    This section configures Verification API, used for Advanced
 
    Core Verification.
 
 
 
    enabled = 0/1
 
        whether to start VAPI server
 
 
 
    server_port = 
 
        TCP/IP port to start VAPI server on
 
*/
 
 
 
section VAPI
 
  enabled = 0
 
  server_port = 9998
 
end
 
 
 
 
 
/* CPU SECTION
 
 
 
   This section specifies various CPU parameters.
 
 
 
   ver = 
 
   rev = 
 
      specifies version and revision of the CPU used
 
 
 
   upr = 
 
      changes the upr register
 
 
 
   superscalar = 0/1
 
   hazards = 0/1
 
   history = 0/1
 
   dependstats = 0/1
 
   dependency = 0/1
 
   slp = 0/1
 
   btic = 0/1
 
   bpb = 0/1
 
      parameters for CPU analysis
 
*/
 
 
section cpu
section cpu
  ver = 0x1200
  ver = 0x1200
  rev = 0x0001
  rev = 0x0001
  /* upr = */
  /* upr = */
  superscalar = 0
  superscalar = 0
Line 37... Line 180...
  slp = 0
  slp = 0
  btic = 0
  btic = 0
  bpb = 0
  bpb = 0
end
end
 
 
 
 
 
/* DEBUG SECTION
 
 
 
   This sections specifies how debug unit should behave.
 
 
 
   enabled = 0/1
 
      whether debug unit is enabled
 
 
 
   gdb_enabled = 0/1
 
      whether to start gdb server at 'server_port' port
 
 
 
   server_port = 
 
      TCP/IP port to start gdb server on, used only if gdb_enabled
 
      is set
 
 
section debug
section debug
  /*enabled = 0
  enabled = 0
  gdb_enabled = 0*/
  gdb_enabled = 0
  server_port = 9999
  server_port = 9999
end
end
 
 
section sim
 
  /*verbose*/
 
  debug = 0
 
  profile = 0
 
  prof_fn = "sim.profile"
 
 
 
  /* iprompt = 0 */
/* MC SECTION
  exe_log = 0
 
  exe_log_fn = "executed.log"
   This section configures the memory controller
end
 
 
   enabled = 0/1
 
      whether memory controller is enabled
 
 
 
   baseaddr = 
 
      address of first MC register
 
 
 
   POC = 
 
      Power On Configuration register
 
*/
 
 
section mc
section mc
  enabled = 0
  enabled = 0
  baseaddr = 0xa0000000
  baseaddr = 0xa0000000
  POC = 0x00000008                 /* Power on configuration register */
  POC = 0x00000008                 /* Power on configuration register */
end
end
 
 
 
 
 
/* UART SECTION
 
 
 
   This section configures UARTs
 
 
 
   enabled = 0/1
 
      whether uarts are enabled
 
 
 
   nuarts = 
 
      make specified number of instances, configure each
 
      instance within device - enddevice construct.
 
 
 
   instance specific:
 
     baseaddr = 
 
        address of first UART register for this device
 
 
 
     rx_file = ""
 
        filename, where to read data from
 
 
 
     tx_file = ""
 
        filename, where to write data to
 
 
 
     jitter = 
 
        in msecs... time to block, -1 to disable it
 
*/
 
 
section uart
section uart
  enabled = 0
  enabled = 0
  nuarts = 1
  nuarts = 1
 
 
  device 0
  device 0
Line 72... Line 260...
    txfile = "/tmp/uart0.tx"
    txfile = "/tmp/uart0.tx"
    jitter = -1                     /* async behaviour */
    jitter = -1                     /* async behaviour */
  enddevice
  enddevice
end
end
 
 
 
 
 
/* DMA SECTION
 
 
 
   This section configures DMAs
 
 
 
   enabled = 0/1
 
      whether DMAs are enabled
 
 
 
   ndmas = 
 
      make specified number of instances, configure each
 
      instance within device - enddevice construct.
 
 
 
   instance specific:
 
     baseaddr = 
 
        address of first DMA register for this device
 
 
 
     irq = 
 
        irq number for this device
 
*/
 
 
section dma
section dma
  enabled = 0
  enabled = 0
  ndmas = 1
  ndmas = 1
 
 
  device 0
  device 0
    baseaddr = 0x90000000
    baseaddr = 0x90000000
    irq = 4
    irq = 4
  enddevice
  enddevice
end
end
 
 
section VAPI
 
  enabled = 0
/* ETHERNET SECTION
  server_port = 9998
 
end
   This section configures ethernets
 
 
 
   enabled = 0/1
 
      whether ethernets are enabled
 
 
 
   nethernets = 
 
      make specified number of instances, configure each
 
      instance within device - enddevice construct.
 
 
 
   instance specific:
 
     baseaddr = 
 
        address of first ethernet register for this device
 
 
 
     dma = 
 
        which controller is this ethernet "connected" to
 
 
 
     rx_channel = 
 
        DMA channel used for RX
 
 
 
     tx_channel = 
 
        DMA channel used for TX
 
 
 
     rx_file = ""
 
        filename, where to read data from
 
 
 
     tx_file = ""
 
        filename, where to write data to
 
*/
 
 
section ethernet
section ethernet
  enabled = 0
  enabled = 0
  nethernets = 1
  nethernets = 1
 
 

powered by: WebSVN 2.1.0

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