3 == Ports ===========================================================
8 == Constants ========================================================
10 == TeX ==============================================================
12 The {\tt Fifo} ship is a simple fifo. Word-sized delivered to the {\tt
13 in} port are enqueued into the fifo, and values which arrive at the
14 end of the fifo are provided to the {\tt out} port.
16 The internal capacity of the fifo is unspecified, but guaranteed to be
19 == Fleeterpreter ====================================================
20 private Queue<Long> fifo = new LinkedList<Long>();
21 public void service() {
22 if (box_in.dataReadyForShip()) {
23 fifo.add(box_in.removeDataForShip());
25 if (box_out.readyForDataFromShip() && fifo.size() > 0) {
26 box_out.addDataFromShip(fifo.remove());
30 == FleetSim ==============================================================
32 == FPGA ==============================================================
36 == Test =================================================================
40 // ships required in order to run this code
44 debug.in: set ilc=*; recv, deliver;
55 collect, send to fifo.in;
57 collect, send to fifo.in;
58 collect, send to debug.in;
62 == Contributors =========================================================
63 Adam Megacz <megacz@cs.berkeley.edu>