SPI slave from https://www.fpga4fun.com/SPI2.html