o3-timing-ruby.py revision 6289
12810SN/A# Copyright (c) 2006-2007 The Regents of The University of Michigan 212724Snikos.nikoleris@arm.com# All rights reserved. 38856Sandreas.hansson@arm.com# 48856Sandreas.hansson@arm.com# Redistribution and use in source and binary forms, with or without 58856Sandreas.hansson@arm.com# modification, are permitted provided that the following conditions are 68856Sandreas.hansson@arm.com# met: redistributions of source code must retain the above copyright 78856Sandreas.hansson@arm.com# notice, this list of conditions and the following disclaimer; 88856Sandreas.hansson@arm.com# redistributions in binary form must reproduce the above copyright 98856Sandreas.hansson@arm.com# notice, this list of conditions and the following disclaimer in the 108856Sandreas.hansson@arm.com# documentation and/or other materials provided with the distribution; 118856Sandreas.hansson@arm.com# neither the name of the copyright holders nor the names of its 128856Sandreas.hansson@arm.com# contributors may be used to endorse or promote products derived from 138856Sandreas.hansson@arm.com# this software without specific prior written permission. 142810SN/A# 152810SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 162810SN/A# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 172810SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 182810SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 192810SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 202810SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 212810SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 222810SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 232810SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 242810SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 252810SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 262810SN/A# 272810SN/A# Authors: Steve Reinhardt 282810SN/A 292810SN/Aimport m5 302810SN/Afrom m5.objects import * 312810SN/Am5.AddToPath('../configs/common') 322810SN/A 332810SN/A 342810SN/Aimport ruby_config 352810SN/Aruby_memory = ruby_config.generate("MI_example-homogeneous.rb", 1) 362810SN/A 372810SN/Acpu = DerivO3CPU(cpu_id=0) 382810SN/Acpu.clock = '2GHz' 392810SN/A 402810SN/Asystem = System(cpu = cpu, 4112724Snikos.nikoleris@arm.com physmem = ruby_memory, 422810SN/A membus = Bus()) 432810SN/Asystem.physmem.port = system.membus.port 442810SN/Acpu.connectMemPorts(system.membus) 452810SN/A 462810SN/Aroot = Root(system = system) 472810SN/A