X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ships%2FDebug.ship;h=b1f1c1748730d9641dd71a9b3f9f670067101296;hb=f60e9c4ad27c957a6513fdab91fd0cff857fb444;hp=aaeff49e7c731a908f06f06dbb3e1d21476fb0b6;hpb=56553c511a9c2a6d110095ea7ca7c860fa7a31c5;p=fleet.git diff --git a/ships/Debug.ship b/ships/Debug.ship index aaeff49..b1f1c17 100644 --- a/ships/Debug.ship +++ b/ships/Debug.ship @@ -1,19 +1,28 @@ 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" @@ -36,5 +45,13 @@ module debug (clk, data_debug_data_r, data_debug_data_a, data_debug_data, endmodule +== Test ================================================================ +#expect 25 + +#ship debug : Debug + +25: sendto debug.in; +debug.in: take, deliver; + == Contributors ========================================================= Adam Megacz