Lines Matching defs:tick

69     // the tick value of the next clock edge (>= curTick()) at the
71 mutable Tick tick;
74 // 'tick'
78 * Align cycle and tick to the next clock edge if not already done. When
79 * complete, tick must be at least curTick().
84 // both tick and cycle are up-to-date and we are done, note
85 // that the >= is important as it captures cases where tick
87 if (tick >= curTick())
90 // optimise for the common case and see if the tick should be
92 tick += clockPeriod();
96 if (tick >= curTick())
99 // if not, we have to recalculate the cycle and tick, we
102 Cycles elapsedCycles(divCeil(curTick() - tick, clockPeriod()));
104 tick += elapsedCycles * clockPeriod();
119 : tick(0), cycle(0), clockDomain(clk_domain)
122 // frequency changes, we can update this object's tick.
135 * Reset the object's clock using the current global tick value. Likely
144 tick = elapsedCycles * clockPeriod();
156 * Update the tick to the current tick.
166 * Determine the tick when a cycle begins, by default the current one, but
175 * @return The start tick when the requested clock edge occurs. Precisely,
176 * this tick can be
182 // align tick to the next clock edge
186 return tick + clockPeriod() * cycles;
190 * Determine the current cycle, corresponding to a tick aligned to
207 * Based on the clock of the object, determine the start tick of the first
212 * @return The start tick of the first cycle that is at least one cycle in
213 * the future. Precisely, the returned tick can be in the range
267 * tick once all stats are recorded.