summaryrefslogtreecommitdiff
path: root/src/sim/clock_domain.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/clock_domain.hh')
-rw-r--r--src/sim/clock_domain.hh9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/sim/clock_domain.hh b/src/sim/clock_domain.hh
index e6b7273c1..b597b6611 100644
--- a/src/sim/clock_domain.hh
+++ b/src/sim/clock_domain.hh
@@ -72,6 +72,13 @@ class ClockedObject;
class ClockDomain : public SimObject
{
+ private:
+
+ /**
+ * Stat to report clock period of clock domain
+ */
+ Stats::Value currentClock;
+
protected:
/**
@@ -105,6 +112,8 @@ class ClockDomain : public SimObject
_clockPeriod(0),
_voltageDomain(voltage_domain) {}
+ void regStats();
+
/**
* Get the clock period.
*