19827Sakash.bagdia@arm.com# Copyright (c) 2012 ARM Limited 29827Sakash.bagdia@arm.com# All rights reserved. 39827Sakash.bagdia@arm.com# 49827Sakash.bagdia@arm.com# The license below extends only to copyright in the software and shall 59827Sakash.bagdia@arm.com# not be construed as granting a license to any other intellectual 69827Sakash.bagdia@arm.com# property including but not limited to intellectual property relating 79827Sakash.bagdia@arm.com# to a hardware implementation of the functionality of the software 89827Sakash.bagdia@arm.com# licensed hereunder. You may use the software subject to the license 99827Sakash.bagdia@arm.com# terms below provided that you ensure that this notice is replicated 109827Sakash.bagdia@arm.com# unmodified and in its entirety in all distributions of the software, 119827Sakash.bagdia@arm.com# modified or unmodified, in source code or in binary form. 129827Sakash.bagdia@arm.com# 139827Sakash.bagdia@arm.com# Redistribution and use in source and binary forms, with or without 149827Sakash.bagdia@arm.com# modification, are permitted provided that the following conditions are 159827Sakash.bagdia@arm.com# met: redistributions of source code must retain the above copyright 169827Sakash.bagdia@arm.com# notice, this list of conditions and the following disclaimer; 179827Sakash.bagdia@arm.com# redistributions in binary form must reproduce the above copyright 189827Sakash.bagdia@arm.com# notice, this list of conditions and the following disclaimer in the 199827Sakash.bagdia@arm.com# documentation and/or other materials provided with the distribution; 209827Sakash.bagdia@arm.com# neither the name of the copyright holders nor the names of its 219827Sakash.bagdia@arm.com# contributors may be used to endorse or promote products derived from 229827Sakash.bagdia@arm.com# this software without specific prior written permission. 239827Sakash.bagdia@arm.com# 249827Sakash.bagdia@arm.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 259827Sakash.bagdia@arm.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 269827Sakash.bagdia@arm.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 279827Sakash.bagdia@arm.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 289827Sakash.bagdia@arm.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 299827Sakash.bagdia@arm.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 309827Sakash.bagdia@arm.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 319827Sakash.bagdia@arm.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 329827Sakash.bagdia@arm.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 339827Sakash.bagdia@arm.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 349827Sakash.bagdia@arm.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 359827Sakash.bagdia@arm.com# 369827Sakash.bagdia@arm.com# Authors: Vasileios Spiliopoulos 379827Sakash.bagdia@arm.com# Akash Bagdia 389827Sakash.bagdia@arm.com 399827Sakash.bagdia@arm.comfrom m5.SimObject import SimObject 409827Sakash.bagdia@arm.comfrom m5.params import * 419827Sakash.bagdia@arm.com 429827Sakash.bagdia@arm.comclass VoltageDomain(SimObject): 439827Sakash.bagdia@arm.com type = 'VoltageDomain' 449827Sakash.bagdia@arm.com cxx_header = "sim/voltage_domain.hh" 4510249Sstephan.diestelhorst@arm.com 4610249Sstephan.diestelhorst@arm.com # Single or list of voltages for the voltage domain. If only a single 4710249Sstephan.diestelhorst@arm.com # voltage is specified, it is used for all different frequencies. 4810249Sstephan.diestelhorst@arm.com # Otherwise, the number of specified voltges and frequencies in the clock 4910249Sstephan.diestelhorst@arm.com # domain (src/sim/ClockDomain.py) must match. Voltages must be specified in 5010249Sstephan.diestelhorst@arm.com # descending order. We use a default voltage of 1V to avoid forcing users to 5110249Sstephan.diestelhorst@arm.com # set it even if they are not interested in using the functionality 5210249Sstephan.diestelhorst@arm.com voltage = VectorParam.Voltage('1V', "Operational voltage(s)") 53