FPGA code for the CRASH framework