3 == Ports ===========================================================
6 == Constants ========================================================
8 == TeX ==============================================================
10 This ship is used for debugging. It has only one port, {\tt in}.
11 Programmers should send debug report values to this port. How such
12 values are reported back to the programmer doing the debugging is left
17 Provide an {\tt inOp} port and use opcode ports \cite{am25} to
18 effectively allow multiple independent ``debug streams''
20 Provide a way to programmatically read back the output of the debug
23 == Fleeterpreter ====================================================
24 public void service() {
25 if (box_in.dataReadyForShip())
26 ((Interpreter)getFleet()).debug(box_in.removeDataForShip());
29 == FleetSim ==============================================================
31 == FPGA ==============================================================
33 module debug (clk, rst,
34 data_debug_data_r, data_debug_data_a, data_debug_data,
35 data_debug_out_r, data_debug_out_a, data_debug_out );
39 input data_debug_data_r;
40 output data_debug_data_a;
41 input [`DATAWIDTH:0] data_debug_data;
43 output data_debug_out_r;
44 input data_debug_out_a;
45 output [`DATAWIDTH:0] data_debug_out;
47 assign data_debug_out_r = data_debug_data_r;
48 assign data_debug_data_a = data_debug_out_a;
49 assign data_debug_out = data_debug_data;
53 == Test ================================================================
62 == Contributors =========================================================
63 Adam Megacz <megacz@cs.berkeley.edu>