else ret.append(!dock.isInputDock() ? ", collect nothing" : ", recv nothing");
}
if (dataOut && dock.isInputDock()) ret.append(", deliver");
- if (dataOut && !dock.isInputDock()) ret.append(path==null ? ", send" : ", send to " + path.getDestination().getDock());
- if (tokenOut) ret.append(path==null ? ", token" : ", send token to " + path.getDestination().getDock());
+ if (dataOut && !dock.isInputDock()) ret.append(path==null ? ", send" : ", send to " + path.getDestination());
+ if (tokenOut) ret.append(path==null ? ", token" : ", send token to " + path.getDestination());
String s = ret.toString();
s = s.equals("") ? "nop" : s.substring(2);
if (interruptible) s = "[T] " + s;
public class FpgaDestination extends Destination implements FabricElement {
private Module.Port port;
+ private boolean isInstructionDestination;
FpgaDock dock;
public FpgaDestination(FpgaDock dock, Module.Port port, boolean isInstructionDestination) {
super(dock);
this.port = port;
this.dock = dock;
+ this.isInstructionDestination = isInstructionDestination;
}
public Module.SourcePort getOutputPort() { throw new RuntimeException(); }
((Module.SourcePort)inPort).connect((Module.SinkPort)port);
}
public String toString() {
- return dock.toString();
+ return dock.toString() + (isInstructionDestination ? ":i" : "");
}
}