diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2015-08-11 11:39:23 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2015-08-11 11:39:23 -0500 |
commit | c58bee829f88e7360b631771852efa097388a5da (patch) | |
tree | 117a7f0e8d8246c328864ea2e71de781878c3a58 | |
parent | 759fe30d9ff9fabe492363ead44f8a77d649ae0d (diff) | |
download | gem5-c58bee829f88e7360b631771852efa097388a5da.tar.xz |
sim: clocked object: function for converting cycles to ticks.
-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; } }; /** |