1 #ifndef AVR_SIMULATIONCLOCK_H
2 #define AVR_SIMULATIONCLOCK_H
8 class SimulationObject
;
11 * The SimulationClock class is used to coordinate the timing
12 * between the different peripherals within a processor and
13 * in some cases, the timing between several simulated
14 * processors and modules.
16 * Simulation objects can be notified at a specific
17 * instance in time by setting a break point.
19 class SimulationClock
: public Clock
<SimulationObject
> {
21 SimulationClock() : finished(false), maxTicks(0) {}
25 void finish() { finished
= true; }
26 void setMaxTicks(ClockOffset ticks
) { maxTicks
= ticks
; }
35 #endif /*AVR_SIMULATIONCLOCK_H*/