The FTFP FPGA side code (vhdl).