diff options
Diffstat (limited to 'src/sim/clocked_object.hh')
-rw-r--r-- | src/sim/clocked_object.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sim/clocked_object.hh b/src/sim/clocked_object.hh index 5a6e9a6c3..b9a2481ec 100644 --- a/src/sim/clocked_object.hh +++ b/src/sim/clocked_object.hh @@ -212,6 +212,11 @@ class Clocked return clockDomain.clockPeriod(); } + inline double voltage() const + { + return clockDomain.voltage(); + } + inline Cycles ticksToCycles(Tick t) const { return Cycles(divCeil(t, clockPeriod())); } |