ship: Shift == Ports =========================================================== data in: in data in: inShift data out: out == Constants ======================================================== == TeX ============================================================== == Fleeterpreter ==================================================== public void service() { if (box_in.dataReadyForShip() && box_inShift.dataReadyForShip()) { int val = box_in.removeDataForShip(); int inShift = box_inShift.removeDataForShip(); if (inShift < 0) val = val >> (-1 * inShift); else val = val << inShift; box_out.addDataFromShip(val); } } == ArchSim ============================================================== == FPGA ============================================================== // not implemented FIXME! == Contributors ========================================================= Adam Megacz