summaryrefslogtreecommitdiff
path: root/src/sim/voltage_domain.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/voltage_domain.hh')
-rw-r--r--src/sim/voltage_domain.hh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sim/voltage_domain.hh b/src/sim/voltage_domain.hh
index 585ec8d66..b2f6715cf 100644
--- a/src/sim/voltage_domain.hh
+++ b/src/sim/voltage_domain.hh
@@ -60,6 +60,11 @@ class VoltageDomain : public SimObject
*/
double _voltage;
+ /**
+ * Stat for reporting voltage of the domain
+ */
+ Stats::Value currentVoltage;
+
public:
typedef VoltageDomainParams Params;
@@ -79,6 +84,8 @@ class VoltageDomain : public SimObject
*/
void voltage(double voltage);
+ void regStats();
+
};
#endif