Altera_Forum
Honored Contributor
9 years agoRequest of feedback on SPI Slave moduel
Hello
I'm new on the hardware design world so probably I'm making a some beginner mistake. I need to write a SPI Slave module, my first attempt was to make a SPI slave module using as reference the main clock(in this case 25MHz) and it in most of the time, I have 1% of error with any (1MHz or 4MHz of sclk the clock frequency don't change the error rate) So I decided that was time to write a implementation that use sclk as reference. http://pastebin.com/ddfxsuck But this one don't work at all on my MAX10, causing wrong values being read and write from SPI. On the other side using Icarus Verilog simulator it works. It only supports SPI mode 0. Some warnings that I got when synthesizing with Quartus that maybe could help, but I can't find how to fix then. http://pastebin.com/pyptcxmd Thanks