/* sim.cfg -- Simulator config file for use with Newlib
|
/* sim.cfg -- Simulator config file for use with Newlib
|
*
|
*
|
* Copyright (C) 2010, Embecosm Limited
|
* Copyright (C) 2010, Embecosm Limited
|
*
|
*
|
* Contributor Jeremy Bennett
|
* Contributor Jeremy Bennett
|
*
|
*
|
* This file is part of Newlib.
|
* This file is part of Newlib.
|
*
|
*
|
* This program is free software; you can redistribute it and/or modify it
|
* 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 the Free
|
* under the terms of the GNU General Public License as published by the Free
|
* Software Foundation; either version 2 of the License, or (at your option)
|
* Software Foundation; either version 2 of the License, or (at your option)
|
* any later version.
|
* any later version.
|
*
|
*
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
* more details.
|
* more details.
|
*
|
*
|
* You should have received a copy of the GNU General Public License along
|
* You should have received a copy of the GNU General Public License along
|
* with this program; if not, write to the Free Software Foundation, Inc., 675
|
* with this program; if not, write to the Free Software Foundation, Inc., 675
|
* Mass Ave, Cambridge, MA 02139, USA. */
|
* Mass Ave, Cambridge, MA 02139, USA. */
|
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
/* This script is suitable for use with Or1ksim when used with newlib. There
|
/* This script is suitable for use with Or1ksim when used with newlib. There
|
* are versions of this library which use a UART for input/output and a
|
* are versions of this library which use a UART for input/output and a
|
* version which provides just output via l.nop.
|
* version which provides just output via l.nop.
|
*
|
*
|
* For explanation of the different fields, see the default simulation
|
* For explanation of the different fields, see the default simulation
|
* configuration file supplied with or1ksim (sim.cfg). */
|
* configuration file supplied with or1ksim (sim.cfg). */
|
/* -------------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------------- */
|
|
|
section memory
|
section memory
|
name = "RAM"
|
name = "RAM"
|
type = unknown
|
type = unknown
|
ce = 0
|
ce = 0
|
mc = 0
|
mc = 0
|
baseaddr = 0x00000000
|
baseaddr = 0x00000000
|
size = 0x00800000
|
size = 0x00800000
|
delayr = 1
|
delayr = 1
|
delayw = 2
|
delayw = 2
|
end
|
end
|
|
|
section sim
|
section sim
|
verbose = 0
|
verbose = 0
|
debug = 0
|
debug = 0
|
profile = 0
|
profile = 0
|
history = 0
|
history = 0
|
clkcycle = 40ns /* 25MHz clock */
|
clkcycle = 40ns /* 25MHz clock */
|
end
|
end
|
|
|
section cpu
|
section cpu
|
ver = 0x12
|
ver = 0x12
|
cfg = 0x00
|
cfg = 0x00
|
rev = 0x0001
|
rev = 0x0001
|
superscalar = 0
|
superscalar = 0
|
hazards = 0
|
hazards = 0
|
dependstats = 0
|
dependstats = 0
|
sbuf_len = 0
|
sbuf_len = 0
|
end
|
end
|
|
|
/* Option sections which may be disabled on enabled, according to the precise
|
/* Option sections which may be disabled on enabled, according to the precise
|
options in or1ksim_board.h and the version of the library selected. */
|
options in or1ksim_board.h and the version of the library selected. */
|
|
|
section ic
|
section ic
|
enabled = 1
|
enabled = 1
|
nsets = 256
|
nsets = 256
|
nways = 1
|
nways = 1
|
blocksize = 16
|
blocksize = 16
|
hitdelay = 20
|
hitdelay = 20
|
missdelay = 20
|
missdelay = 20
|
end
|
end
|
|
|
section dc
|
section dc
|
enabled = 0
|
enabled = 0
|
nsets = 512
|
nsets = 512
|
nways = 1
|
nways = 1
|
blocksize = 16
|
blocksize = 16
|
load_hitdelay = 20
|
load_hitdelay = 20
|
load_missdelay = 20
|
load_missdelay = 20
|
store_hitdelay = 20
|
store_hitdelay = 20
|
store_missdelay = 20
|
store_missdelay = 20
|
end
|
end
|
|
|
section uart
|
section uart
|
enabled = 1
|
enabled = 1
|
baseaddr = 0x90000000
|
baseaddr = 0x90000000
|
channel = "xterm:"
|
channel = "xterm:"
|
16550 = 1
|
16550 = 1
|
end
|
end
|
|
|
section debug
|
section debug
|
enabled = 0
|
enabled = 0
|
end
|
end
|
|
|
/* Disabled Sections. The first one needs all its additional fields due to a
|
/* Disabled Sections. The first one needs all its additional fields due to a
|
bug in Or1ksim */
|
bug in Or1ksim */
|
|
|
section immu
|
section immu
|
enabled = 0
|
enabled = 0
|
end
|
end
|
|
|
section dmmu
|
section dmmu
|
enabled = 0
|
enabled = 0
|
end
|
end
|
|
|
section VAPI
|
section VAPI
|
enabled = 0
|
enabled = 0
|
end
|
end
|
|
|
section dma
|
section dma
|
enabled = 0
|
enabled = 0
|
end
|
end
|
|
|
section pm
|
section pm
|
enabled = 0
|
enabled = 0
|
end
|
end
|
|
|
section bpb
|
section bpb
|
enabled = 0
|
enabled = 0
|
end
|
end
|
|
|
section ethernet
|
section ethernet
|
enabled = 0
|
enabled = 0
|
end
|
end
|
|
|
section gpio
|
section gpio
|
enabled = 0
|
enabled = 0
|
end
|
end
|
|
|
section ata
|
section ata
|
enabled = 0
|
enabled = 0
|
end
|
end
|
|
|
section vga
|
section vga
|
enabled = 0
|
enabled = 0
|
end
|
end
|
|
|
section fb
|
section fb
|
enabled = 0
|
enabled = 0
|
end
|
end
|
|
|
section kbd
|
section kbd
|
enabled = 0
|
enabled = 0
|
end
|
end
|
|
|
section mc
|
section mc
|
enabled = 0
|
enabled = 0
|
end
|
end
|
|
|
section pic
|
section pic
|
enabled = 0
|
enabled = 0
|
end
|
end
|
|
|