1 package era.mi.logic.components;
3 import era.mi.logic.Bit;
4 import era.mi.logic.Simulation;
5 import era.mi.logic.WireArray;
6 import era.mi.logic.timeline.TimelineEvent;
7 import era.mi.logic.timeline.TimelineEventHandler;
9 public class Clock implements TimelineEventHandler
11 private boolean toggle = false;
14 public Clock(WireArray w)
20 public void handle(TimelineEvent e)
22 Simulation.TIMELINE.addEvent(this, 50);
23 w.feedSignals(new Bit[] { toggle ? Bit.ONE : Bit.ZERO });
27 public WireArray getW()