sim: correct ticksToCycles() function.
This commit is contained in:
parent
4b8be6a90b
commit
9fb93e5cd2
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ class ClockedObject : public SimObject
|
|||
}
|
||||
|
||||
inline Cycles ticksToCycles(Tick t) const
|
||||
{ return Cycles(t / clockPeriod()); }
|
||||
{ return Cycles(divCeil(t, clockPeriod())); }
|
||||
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue