summaryrefslogtreecommitdiff
path: root/src/sim/voltage_domain.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/voltage_domain.cc')
-rw-r--r--src/sim/voltage_domain.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sim/voltage_domain.cc b/src/sim/voltage_domain.cc
index 43848d68a..461e672ea 100644
--- a/src/sim/voltage_domain.cc
+++ b/src/sim/voltage_domain.cc
@@ -61,6 +61,18 @@ VoltageDomain::voltage(double voltage)
"Setting voltage to %f for domain %s\n", _voltage, name());
}
+void
+VoltageDomain::regStats()
+{
+ using namespace Stats;
+
+ currentVoltage
+ .scalar(_voltage)
+ .name(params()->name + ".voltage")
+ .desc("Voltage in Volts")
+ ;
+}
+
VoltageDomain *
VoltageDomainParams::create()
{