summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sim/clocked_object.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sim/clocked_object.hh b/src/sim/clocked_object.hh
index e064d7a32..5a6e9a6c3 100644
--- a/src/sim/clocked_object.hh
+++ b/src/sim/clocked_object.hh
@@ -215,6 +215,8 @@ class Clocked
inline Cycles ticksToCycles(Tick t) const
{ return Cycles(divCeil(t, clockPeriod())); }
+ inline Tick cyclesToTicks(Cycles c) const
+ { return clockPeriod() * c; }
};
/**