diff options
-rw-r--r-- | src/sim/clocked_object.hh | 2 |
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; } }; /** |