This project implements a SPI master controller and a SPI slave controller using verilog HDL.
The parameters 1.CPOL & CPHA, 2.BITORDER, 3.DATAWIDTH are configurable for both master and slave controller, while CLKDIV is configurable for master controller to decide the frequency of sclk
, and DRVMODE is configurable for slave controller to fit different sysclk
and sclk
frequency combination.