fixed memory ship, fpga implementation now works