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