sim: clocked object: function for converting cycles to ticks.
This commit is contained in:
@@ -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; }
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user