ship: Debug
== Ports ===========================================================
-data in: data
+data in: in
== Constants ========================================================
== TeX ==============================================================
+\begin{verbatim}
+
+TODO: have some way to log multiple separate streams; use sibling
+ ports to deliver an opcode
+
+TODO: have a way to programmatically read back the output of the debug
+ ship?
+
+\end{verbatim}
== Fleeterpreter ====================================================
public void service() {
- if (box_data.dataReadyForShip())
- ((Interpreter)getFleet()).debug(box_data.removeDataForShip());
+ if (box_in.dataReadyForShip())
+ ((Interpreter)getFleet()).debug(box_in.removeDataForShip());
}
-== ArchSim ==============================================================
+== FleetSim ==============================================================
== FPGA ==============================================================
`include "macros.v"
endmodule
+== Test ================================================================
+#expect 25
+
+#ship debug : Debug
+
+25: sendto debug.in;
+debug.in: take, deliver;
+
== Contributors =========================================================
Adam Megacz <megacz@cs.berkeley.edu>