Design of an FPGA based SPI bus to control the IMS measurement platform