expand leaf FIFOs from 4 elements to 8 elements
[fleet.git] / src / edu / berkeley / fleet / fpga / FanoutModule.java
index 250f536..05bda6b 100644 (file)
@@ -16,16 +16,11 @@ public class FanoutModule extends Module {
     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() },