tests: arch-power: Add 64-bit hello binaries
[gem5.git] / src / sim / VoltageDomain.py
index ad84d756b93122d69f489cbbf793d447c4717eee..4ebdb1817b4e5e55ef429f6dca4428c7bafdaacd 100644 (file)
@@ -32,9 +32,6 @@
 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-# Authors: Vasileios Spiliopoulos
-#          Akash Bagdia
 
 from m5.SimObject import SimObject
 from m5.params import *
@@ -42,6 +39,11 @@ from m5.params import *
 class VoltageDomain(SimObject):
     type = 'VoltageDomain'
     cxx_header = "sim/voltage_domain.hh"
-    # We use a default voltage of 1V to avoid forcing users to set it
-    # even if they are not interested in using the functionality
-    voltage = Param.Voltage('1V', "Operational voltage")
+
+    # Single or list of voltages for the voltage domain.  If only a single
+    # voltage is specified, it is used for all different frequencies.
+    # Otherwise, the number of specified voltges and frequencies in the clock
+    # domain (src/sim/ClockDomain.py) must match.  Voltages must be specified in
+    # descending order. We use a default voltage of 1V to avoid forcing users to
+    # set it even if they are not interested in using the functionality
+    voltage = VectorParam.Voltage('1V', "Operational voltage(s)")