twosys-tsunami-simple-atomic.py revision 9164:d112473185ea
16700Snate@binkert.org# Copyright (c) 2006 The Regents of The University of Michigan 26700Snate@binkert.org# All rights reserved. 36700Snate@binkert.org# 46700Snate@binkert.org# Redistribution and use in source and binary forms, with or without 56700Snate@binkert.org# modification, are permitted provided that the following conditions are 66700Snate@binkert.org# met: redistributions of source code must retain the above copyright 76700Snate@binkert.org# notice, this list of conditions and the following disclaimer; 86700Snate@binkert.org# redistributions in binary form must reproduce the above copyright 96700Snate@binkert.org# notice, this list of conditions and the following disclaimer in the 106700Snate@binkert.org# documentation and/or other materials provided with the distribution; 116700Snate@binkert.org# neither the name of the copyright holders nor the names of its 126700Snate@binkert.org# contributors may be used to endorse or promote products derived from 136700Snate@binkert.org# this software without specific prior written permission. 146700Snate@binkert.org# 156700Snate@binkert.org# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 166700Snate@binkert.org# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 176700Snate@binkert.org# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 186700Snate@binkert.org# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 196700Snate@binkert.org# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 206700Snate@binkert.org# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 216700Snate@binkert.org# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 226700Snate@binkert.org# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 236700Snate@binkert.org# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 246700Snate@binkert.org# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 256700Snate@binkert.org# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 266700Snate@binkert.org# 276700Snate@binkert.org# Authors: Lisa Hsu 286285Snate@binkert.org 297805Snilay@cs.wisc.eduimport m5 306285Snate@binkert.orgfrom m5.objects import * 316285Snate@binkert.orgm5.util.addToPath('../configs/common') 328255SBrad.Beckmann@amd.comfrom FSConfig import * 338645Snilay@cs.wisc.edufrom Benchmarks import * 346285Snate@binkert.org 359275Snilay@cs.wisc.edutest_sys = makeLinuxAlphaSystem('atomic', 369275Snilay@cs.wisc.edu SysConfig('netperf-stream-client.rcS')) 379275Snilay@cs.wisc.edutest_sys.cpu = AtomicSimpleCPU(cpu_id=0) 389275Snilay@cs.wisc.edu# create the interrupt controller 396876Ssteve.reinhardt@amd.comtest_sys.cpu.createInterruptController() 409465Snilay@cs.wisc.edutest_sys.cpu.connectAllPorts(test_sys.membus) 416285Snate@binkert.org# In contrast to the other (one-system) Tsunami configurations we do 426876Ssteve.reinhardt@amd.com# not have an IO cache but instead rely on an IO bridge for accesses 436876Ssteve.reinhardt@amd.com# from masters on the IO bus to the memory bus 446876Ssteve.reinhardt@amd.comtest_sys.iobridge = Bridge(delay='50ns', ranges = [AddrRange(0, '8GB')]) 456876Ssteve.reinhardt@amd.comtest_sys.iobridge.slave = test_sys.iobus.master 466881SBrad.Beckmann@amd.comtest_sys.iobridge.master = test_sys.membus.slave 476881SBrad.Beckmann@amd.com 487054Snate@binkert.orgdrive_sys = makeLinuxAlphaSystem('atomic', 496881SBrad.Beckmann@amd.com SysConfig('netperf-server.rcS')) 506881SBrad.Beckmann@amd.comdrive_sys.cpu = AtomicSimpleCPU(cpu_id=0) 516876Ssteve.reinhardt@amd.com# create the interrupt controller 526876Ssteve.reinhardt@amd.comdrive_sys.cpu.createInterruptController() 536881SBrad.Beckmann@amd.comdrive_sys.cpu.connectAllPorts(drive_sys.membus) 546881SBrad.Beckmann@amd.comdrive_sys.iobridge = Bridge(delay='50ns', ranges = [AddrRange(0, '8GB')]) 556881SBrad.Beckmann@amd.comdrive_sys.iobridge.slave = drive_sys.iobus.master 568436SBrad.Beckmann@amd.comdrive_sys.iobridge.master = drive_sys.membus.slave 576285Snate@binkert.org 586285Snate@binkert.orgroot = makeDualRoot(True, test_sys, drive_sys, "ethertrace") 597054Snate@binkert.org 607054Snate@binkert.orgmaxtick = 199999999 616285Snate@binkert.org