use in.getBits() in FpgaDock
authoradam <adam@megacz.com>
Mon, 10 Nov 2008 11:50:38 +0000 (12:50 +0100)
committeradam <adam@megacz.com>
Mon, 10 Nov 2008 11:50:38 +0000 (12:50 +0100)
src/edu/berkeley/fleet/fpga/FpgaDock.java

index dadda29..57ef338 100644 (file)
@@ -75,9 +75,9 @@ public class FpgaDock extends FleetTwoDock implements FabricElement {
 
             new Event(new Object[] { in, busy.isFull(), out },
                       new Action[] { in, busy.doDrain() });
-            new Event(new Object[] { in, busy.isEmpty(), out, torpedo, fpga.PACKET_TOKEN.verilogVal("in") },
+            new Event(new Object[] { in, busy.isEmpty(), out, torpedo, in.getBits(fpga.PACKET_TOKEN) },
                       new Action[] { in,                      torpedo });
-            new Event(new Object[] { in, busy.isEmpty(), out,      "!"+fpga.PACKET_TOKEN.verilogVal("in") },
+            new Event(new Object[] { in, busy.isEmpty(), out,          in.getBits(fpga.PACKET_TOKEN).invertBits() },
                       new Action[] {     busy.doFill(),  out });
 
             out.latchDriver = in.getBits(fpga.PACKET_DATA);