twosys-tsunami-simple-atomic.py revision 8839
13691Shsul@eecs.umich.edu# Copyright (c) 2006 The Regents of The University of Michigan
23691Shsul@eecs.umich.edu# All rights reserved.
33691Shsul@eecs.umich.edu#
43691Shsul@eecs.umich.edu# Redistribution and use in source and binary forms, with or without
53691Shsul@eecs.umich.edu# modification, are permitted provided that the following conditions are
63691Shsul@eecs.umich.edu# met: redistributions of source code must retain the above copyright
73691Shsul@eecs.umich.edu# notice, this list of conditions and the following disclaimer;
83691Shsul@eecs.umich.edu# redistributions in binary form must reproduce the above copyright
93691Shsul@eecs.umich.edu# notice, this list of conditions and the following disclaimer in the
103691Shsul@eecs.umich.edu# documentation and/or other materials provided with the distribution;
113691Shsul@eecs.umich.edu# neither the name of the copyright holders nor the names of its
123691Shsul@eecs.umich.edu# contributors may be used to endorse or promote products derived from
133691Shsul@eecs.umich.edu# this software without specific prior written permission.
143691Shsul@eecs.umich.edu#
153691Shsul@eecs.umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
163691Shsul@eecs.umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
173691Shsul@eecs.umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
183691Shsul@eecs.umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
193691Shsul@eecs.umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
203691Shsul@eecs.umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
213691Shsul@eecs.umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
223691Shsul@eecs.umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
233691Shsul@eecs.umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
243691Shsul@eecs.umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
253691Shsul@eecs.umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
263691Shsul@eecs.umich.edu#
273691Shsul@eecs.umich.edu# Authors: Lisa Hsu
283691Shsul@eecs.umich.edu
293691Shsul@eecs.umich.eduimport m5
303691Shsul@eecs.umich.edufrom m5.objects import *
316654Snate@binkert.orgm5.util.addToPath('../configs/common')
323691Shsul@eecs.umich.edufrom FSConfig import *
333691Shsul@eecs.umich.edufrom Benchmarks import *
343691Shsul@eecs.umich.edu
353691Shsul@eecs.umich.edutest_sys = makeLinuxAlphaSystem('atomic',
363691Shsul@eecs.umich.edu                                 SysConfig('netperf-stream-client.rcS'))
373691Shsul@eecs.umich.edutest_sys.cpu = AtomicSimpleCPU(cpu_id=0)
387876Sgblack@eecs.umich.edutest_sys.cpu.connectAllPorts(test_sys.membus)
398713Sandreas.hansson@arm.com# In contrast to the other (one-system) Tsunami configurations we do
408713Sandreas.hansson@arm.com# not have an IO cache but instead rely on an IO bridge for accesses
418713Sandreas.hansson@arm.com# from masters on the IO bus to the memory bus
428713Sandreas.hansson@arm.comtest_sys.iobridge = Bridge(delay='50ns', nack_delay='4ns',
438713Sandreas.hansson@arm.com                           ranges = [AddrRange(0, '8GB')])
448839Sandreas.hansson@arm.comtest_sys.iobridge.slave = test_sys.iobus.master
458839Sandreas.hansson@arm.comtest_sys.iobridge.master = test_sys.membus.slave
463691Shsul@eecs.umich.edu
473691Shsul@eecs.umich.edudrive_sys = makeLinuxAlphaSystem('atomic',
483691Shsul@eecs.umich.edu                                 SysConfig('netperf-server.rcS'))
493691Shsul@eecs.umich.edudrive_sys.cpu = AtomicSimpleCPU(cpu_id=0)
507876Sgblack@eecs.umich.edudrive_sys.cpu.connectAllPorts(drive_sys.membus)
518713Sandreas.hansson@arm.comdrive_sys.iobridge = Bridge(delay='50ns', nack_delay='4ns',
528713Sandreas.hansson@arm.com                            ranges = [AddrRange(0, '8GB')])
538839Sandreas.hansson@arm.comdrive_sys.iobridge.slave = drive_sys.iobus.master
548839Sandreas.hansson@arm.comdrive_sys.iobridge.master = drive_sys.membus.slave
553691Shsul@eecs.umich.edu
568801Sgblack@eecs.umich.eduroot = makeDualRoot(True, test_sys, drive_sys, "ethertrace")
573691Shsul@eecs.umich.edu
583691Shsul@eecs.umich.edumaxtick = 199999999
59