A simple SPI slave and test environment in VHDL