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 ==============================================================
34 input [(`DATAWIDTH-1):0] in_d;
35 output [(`DATAWIDTH-1):0] out_d_;
41 fifo8x37 fifo8x37(clk, rst,
43 out_r_, out_a, out_d_);
46 == Test =================================================================
50 // ships required in order to run this code
54 debug.in: set ilc=*; recv, deliver;
65 collect, send to fifo.in;
67 collect, send to fifo.in;
68 collect, send to debug.in;
72 == Contributors =========================================================
73 Adam Megacz <megacz@cs.berkeley.edu>