sim: correct ticksToCycles() function.

This commit is contained in:
Nilay Vaish 2013-11-26 17:05:22 -06:00
parent 4b8be6a90b
commit 9fb93e5cd2

View file

@ -192,7 +192,7 @@ class ClockedObject : public SimObject
}
inline Cycles ticksToCycles(Tick t) const
{ return Cycles(t / clockPeriod()); }
{ return Cycles(divCeil(t, clockPeriod())); }
};