3 == Ports ===========================================================
10 == Constants ========================================================
11 == TeX ==============================================================
12 == Fleeterpreter ====================================================
13 public void service() {
14 if (box_a.dataReadyForShip() && box_b.dataReadyForShip() && box_lut.dataReadyForShip()) {
15 int a = box_a.removeDataForShip();
16 int b = box_b.removeDataForShip();
17 int lut = box_lut.removeDataForShip();
19 if ((lut & 1) != 0) ret |= (~a) & (~b);
20 if ((lut & 2) != 0) ret |= (a) & (~b);
21 if ((lut & 4) != 0) ret |= (~a) & (b);
22 if ((lut & 8) != 0) ret |= a & b;
23 box_out.addDataFromShip(ret);
27 == ArchSim ==============================================================
28 == FPGA ==============================================================
29 // not implemented FIXME
31 == Contributors =========================================================
32 Adam Megacz <megacz@cs.berkeley.edu>