Firmware for the SURFv3 fpga