Introduction - If you have any usage issues, please Google them yourself
Using SPI to implement communication between FPGA and peripheral. After Modelsim simulation verification. (for FPGA design techniques and case development detailed explanation of a book source)