You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Synthesis have been performed using Quartus Prime 17 Lite Edition for FPGA Altera Cyclone IV with these settings: CLK_FREQ = 50 MHz, SCLK_FREQ = 2 MHz, SLAVE_COUNT = 1.*
17
17
18
+
## The SPI loopback example design:
19
+
20
+
The SPI loopback example design is for testing data transfer between SPI master and SPI slave over external wires.
21
+
22
+
Please read [README file of SPI loopback example design](example/README.md).
23
+
24
+
[](https://youtu.be/-TbtB6Sm2Xk)
25
+
18
26
## License:
19
27
20
28
The SPI master and SPI slave controllers are available under the GNU LESSER GENERAL PUBLIC LICENSE Version 3.
The SPI loopback example design is for testing data transfer between SPI master and SPI slave over external wires.
4
+
I use it on my FPGA board ([EP4CE6 Starter Board](http://www.ebay.com/itm/111975895262) with Altera FPGA Cyclone IV EP4CE6E22C8 for $45) with few buttons and a seven-segment display (four digit).
5
+
6
+
There is video of the SPI loopback example design: https://youtu.be/-TbtB6Sm2Xk
7
+
8
+
[](https://youtu.be/-TbtB6Sm2Xk)
9
+
10
+
## Control of SPI loopback example design:
11
+
12
+
**Display description (from right on board in video):**
13
+
14
+
* Digit0 = value on SPI slave input
15
+
* Digit1 = value on SPI slave output
16
+
* Digit2 = value on SPI master input
17
+
* Digit3 = value on SPI master output
18
+
19
+
**Buttons description (from right on board in video):**
20
+
21
+
* BTN_ACTION (in mode0) = setup value on SPI slave input
22
+
* BTN_ACTION (in mode1) = write (set valid) of SPI slave input value
23
+
* BTN_ACTION (in mode2) = setup value on SPI master input
24
+
* BTN_ACTION (in mode3) = write (set valid) of SPI slave input value and start transfer between SPI master and SPI slave
25
+
* BTN_MODE = switch between modes (mode0 = light decimal point on digit0,...)
0 commit comments