-# Copyright (c) 2016-2018 ARM Limited
+# Copyright (c) 2016-2018, 2021 Arm Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
pm_type = Param.PMType("All", "Type of power model")
# Ambient temperature to be used when no thermal model is present
- ambient_temp = Param.Float(25.0, "Ambient temperature")
+ ambient_temp = Param.Temperature("25.0C", "Ambient temperature")
-# Copyright (c) 2015 ARM Limited
+# Copyright (c) 2015, 2021 Arm Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
]
# Static temperature which may change over time
- initial_temperature = Param.Float(25.0, "Initial temperature")
+ initial_temperature = Param.Temperature("25.0C", "Initial temperature")
-# Copyright (c) 2015 ARM Limited
+# Copyright (c) 2015, 2021 Arm Limited
# All rights reserved.
#
# The license below extends only to copyright in the software and shall
]
# Static temperature which may change over time
- temperature = Param.Float(25.0, "Operational temperature in Celsius")
+ temperature = Param.Temperature("25.0C", "Operational temperature")
# Represents a thermal capacitor
// The temperature passed here will be overwritten, if there is
// a thermal model present
for (auto & pms: states_pm){
- pms->setTemperature(p.ambient_temp);
+ pms->setTemperature(p.ambient_temp.toCelsius());
}
dynamicPower
/*
- * Copyright (c) 2015 ARM Limited
+ * Copyright (c) 2015, 2021 Arm Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
#include "sim/sub_system.hh"
ThermalDomain::ThermalDomain(const Params &p)
- : SimObject(p), _initTemperature(p.initial_temperature),
+ : SimObject(p), _initTemperature(p.initial_temperature.toCelsius()),
node(NULL), subsystem(NULL),
ADD_STAT(currentTemp, "Temperature in centigrade degrees")
{
/*
- * Copyright (c) 2015 ARM Limited
+ * Copyright (c) 2015, 2021 Arm Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* ThermalReference
*/
ThermalReference::ThermalReference(const Params &p)
- : SimObject(p), _temperature(p.temperature), node(NULL)
+ : SimObject(p), _temperature(p.temperature.toCelsius()), node(NULL)
{
}