twosys-tsunami-simple-atomic.py revision 9826
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 359826Sandreas.hansson@arm.comtest_sys = makeLinuxAlphaSystem('atomic', 369826Sandreas.hansson@arm.com SysConfig('netperf-stream-client.rcS')) 379793Sakash.bagdia@arm.com 389793Sakash.bagdia@arm.com# Create the system clock domain 399793Sakash.bagdia@arm.comtest_sys.clk_domain = SrcClockDomain(clock = '1GHz') 409793Sakash.bagdia@arm.com 413691Shsul@eecs.umich.edutest_sys.cpu = AtomicSimpleCPU(cpu_id=0) 428876Sandreas.hansson@arm.com# create the interrupt controller 438876Sandreas.hansson@arm.comtest_sys.cpu.createInterruptController() 447876Sgblack@eecs.umich.edutest_sys.cpu.connectAllPorts(test_sys.membus) 459793Sakash.bagdia@arm.com 469793Sakash.bagdia@arm.com# Create a seperate clock domain for components that should run at 479793Sakash.bagdia@arm.com# CPUs frequency 489793Sakash.bagdia@arm.comtest_sys.cpu.clk_domain = SrcClockDomain(clock = '2GHz') 499793Sakash.bagdia@arm.com 509793Sakash.bagdia@arm.com# Create a separate clock domain for Ethernet 519793Sakash.bagdia@arm.comtest_sys.tsunami.ethernet.clk_domain = SrcClockDomain(clock = '500MHz') 529793Sakash.bagdia@arm.com 538713Sandreas.hansson@arm.com# In contrast to the other (one-system) Tsunami configurations we do 548713Sandreas.hansson@arm.com# not have an IO cache but instead rely on an IO bridge for accesses 558713Sandreas.hansson@arm.com# from masters on the IO bus to the memory bus 569408Sandreas.hansson@arm.comtest_sys.iobridge = Bridge(delay='50ns', ranges = test_sys.mem_ranges) 578839Sandreas.hansson@arm.comtest_sys.iobridge.slave = test_sys.iobus.master 588839Sandreas.hansson@arm.comtest_sys.iobridge.master = test_sys.membus.slave 593691Shsul@eecs.umich.edu 609826Sandreas.hansson@arm.comtest_sys.physmem = SimpleMemory(range = test_sys.mem_ranges[0]) 619826Sandreas.hansson@arm.comtest_sys.physmem.port = test_sys.membus.master 629826Sandreas.hansson@arm.com 639826Sandreas.hansson@arm.comdrive_sys = makeLinuxAlphaSystem('atomic', 643691Shsul@eecs.umich.edu SysConfig('netperf-server.rcS')) 659793Sakash.bagdia@arm.com# Create the system clock domain 669793Sakash.bagdia@arm.comdrive_sys.clk_domain = SrcClockDomain(clock = '1GHz') 673691Shsul@eecs.umich.edudrive_sys.cpu = AtomicSimpleCPU(cpu_id=0) 688876Sandreas.hansson@arm.com# create the interrupt controller 698876Sandreas.hansson@arm.comdrive_sys.cpu.createInterruptController() 707876Sgblack@eecs.umich.edudrive_sys.cpu.connectAllPorts(drive_sys.membus) 719793Sakash.bagdia@arm.com 729793Sakash.bagdia@arm.com# Create a seperate clock domain for components that should run at 739793Sakash.bagdia@arm.com# CPUs frequency 749793Sakash.bagdia@arm.comdrive_sys.cpu.clk_domain = SrcClockDomain(clock = '4GHz') 759793Sakash.bagdia@arm.com 769793Sakash.bagdia@arm.com# Create a separate clock domain for Ethernet 779793Sakash.bagdia@arm.comdrive_sys.tsunami.ethernet.clk_domain = SrcClockDomain(clock = '500MHz') 789793Sakash.bagdia@arm.com 799408Sandreas.hansson@arm.comdrive_sys.iobridge = Bridge(delay='50ns', ranges = drive_sys.mem_ranges) 808839Sandreas.hansson@arm.comdrive_sys.iobridge.slave = drive_sys.iobus.master 818839Sandreas.hansson@arm.comdrive_sys.iobridge.master = drive_sys.membus.slave 823691Shsul@eecs.umich.edu 839826Sandreas.hansson@arm.comdrive_sys.physmem = SimpleMemory(range = drive_sys.mem_ranges[0]) 849826Sandreas.hansson@arm.comdrive_sys.physmem.port = drive_sys.membus.master 859826Sandreas.hansson@arm.com 868801Sgblack@eecs.umich.eduroot = makeDualRoot(True, test_sys, drive_sys, "ethertrace") 873691Shsul@eecs.umich.edu 883691Shsul@eecs.umich.edumaxtick = 199999999 89