ship: Lut == Ports =========================================================== data in: a data in: b data in: lut data out: out == Constants ======================================================== == TeX ============================================================== == Fleeterpreter ==================================================== public void service() { if (box_a.dataReadyForShip() && box_b.dataReadyForShip() && box_lut.dataReadyForShip()) { int a = box_a.removeDataForShip(); int b = box_b.removeDataForShip(); int lut = box_lut.removeDataForShip(); int ret = 0; if ((lut & 1) != 0) ret |= (~a) & (~b); if ((lut & 2) != 0) ret |= (a) & (~b); if ((lut & 4) != 0) ret |= (~a) & (b); if ((lut & 8) != 0) ret |= a & b; box_out.addDataFromShip(ret); } } == ArchSim ============================================================== == FPGA ============================================================== // not implemented FIXME == Contributors ========================================================= Adam Megacz