110268SGeoffrey.Blake@arm.com# Copyright (c) 2014 ARM Limited 210268SGeoffrey.Blake@arm.com# All rights reserved. 310268SGeoffrey.Blake@arm.com# 410268SGeoffrey.Blake@arm.com# The license below extends only to copyright in the software and shall 510268SGeoffrey.Blake@arm.com# not be construed as granting a license to any other intellectual 610268SGeoffrey.Blake@arm.com# property including but not limited to intellectual property relating 710268SGeoffrey.Blake@arm.com# to a hardware implementation of the functionality of the software 810268SGeoffrey.Blake@arm.com# licensed hereunder. You may use the software subject to the license 910268SGeoffrey.Blake@arm.com# terms below provided that you ensure that this notice is replicated 1010268SGeoffrey.Blake@arm.com# unmodified and in its entirety in all distributions of the software, 1110268SGeoffrey.Blake@arm.com# modified or unmodified, in source code or in binary form. 1210268SGeoffrey.Blake@arm.com# 1310268SGeoffrey.Blake@arm.com# Redistribution and use in source and binary forms, with or without 1410268SGeoffrey.Blake@arm.com# modification, are permitted provided that the following conditions are 1510268SGeoffrey.Blake@arm.com# met: redistributions of source code must retain the above copyright 1610268SGeoffrey.Blake@arm.com# notice, this list of conditions and the following disclaimer; 1710268SGeoffrey.Blake@arm.com# redistributions in binary form must reproduce the above copyright 1810268SGeoffrey.Blake@arm.com# notice, this list of conditions and the following disclaimer in the 1910268SGeoffrey.Blake@arm.com# documentation and/or other materials provided with the distribution; 2010268SGeoffrey.Blake@arm.com# neither the name of the copyright holders nor the names of its 2110268SGeoffrey.Blake@arm.com# contributors may be used to endorse or promote products derived from 2210268SGeoffrey.Blake@arm.com# this software without specific prior written permission. 2310268SGeoffrey.Blake@arm.com# 2410268SGeoffrey.Blake@arm.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 2510268SGeoffrey.Blake@arm.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 2610268SGeoffrey.Blake@arm.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 2710268SGeoffrey.Blake@arm.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 2810268SGeoffrey.Blake@arm.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2910268SGeoffrey.Blake@arm.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 3010268SGeoffrey.Blake@arm.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 3110268SGeoffrey.Blake@arm.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 3210268SGeoffrey.Blake@arm.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 3310268SGeoffrey.Blake@arm.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 3410268SGeoffrey.Blake@arm.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3510268SGeoffrey.Blake@arm.com# 3610268SGeoffrey.Blake@arm.com# Authors: Geoffrey Blake 3710268SGeoffrey.Blake@arm.com# 3810268SGeoffrey.Blake@arm.com 3910268SGeoffrey.Blake@arm.comfrom m5.SimObject import SimObject 4011420Sdavid.guillen@arm.comfrom m5.params import * 4110268SGeoffrey.Blake@arm.com 4210268SGeoffrey.Blake@arm.com# An empty simobject. Used for organizing simobjects 4310268SGeoffrey.Blake@arm.com# into logical groups as subsystems of a larger 4410268SGeoffrey.Blake@arm.com# system. For example, if we wanted to build a cpu cluster 4510268SGeoffrey.Blake@arm.com# subsystem of 2 cores with private L1 caches and a shared 4610268SGeoffrey.Blake@arm.com# L2, but needed 8 total cores, we could instantiate 4 4710268SGeoffrey.Blake@arm.com# SubSystems containing the same child simobjects but avoid 4810268SGeoffrey.Blake@arm.com# any naming conflicts. 4910268SGeoffrey.Blake@arm.com# 5010268SGeoffrey.Blake@arm.comclass SubSystem(SimObject): 5110268SGeoffrey.Blake@arm.com type = 'SubSystem' 5210268SGeoffrey.Blake@arm.com cxx_header = "sim/sub_system.hh" 5310268SGeoffrey.Blake@arm.com abstract = False 5411420Sdavid.guillen@arm.com 5512469Sglenn.bergmans@arm.com # Thermal domain associated to this object, inheriting the parent's 5611420Sdavid.guillen@arm.com # clock domain by default 5711420Sdavid.guillen@arm.com thermal_domain = Param.ThermalDomain(NULL, "Thermal domain") 5812469Sglenn.bergmans@arm.com 5912469Sglenn.bergmans@arm.com generateDeviceTree = SimObject.recurseDeviceTree 60