public FanoutModule(int width) {
super("fanout"+width);
Module.SourcePort in = createInputPort ("in", width);
- Module.SinkPort out0 = createOutputPort("out0", width, "");
- Module.SinkPort out1 = createOutputPort("out1", width, "");
- in.hasLatch = false;
- out0.hasLatch = false;
- out0.forceNoLatch = true;
- out1.hasLatch = false;
- out1.forceNoLatch = true;
+ Module.SinkPort out0 = createOutputPort("out0", width);
+ Module.SinkPort out1 = createOutputPort("out1", width);
- out0.latchDriver = in;
- out1.latchDriver = in;
+ out0.connectValue(in);
+ out1.connectValue(in);
Module.StateWire busy = new StateWire("busy", false);
new Event(new Object[] { in, out0, out1, busy.isEmpty() },