Skip to content

Commit 256f3e5

Browse files
committed
Added README file of SPI loopback example design.
1 parent 0e009b8 commit 256f3e5

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ SPI SLAVE | 24 | 15 | 0 | 318.0 MHz
1515

1616
*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.*
1717

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+
[![Video of SPI loopback example design](https://img.youtube.com/vi/-TbtB6Sm2Xk/0.jpg)](https://youtu.be/-TbtB6Sm2Xk)
25+
1826
## License:
1927

2028
The SPI master and SPI slave controllers are available under the GNU LESSER GENERAL PUBLIC LICENSE Version 3.

example/README.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# SPI LOOPBACK EXAMPLE
2+
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+
[![Video of SPI loopback example design](https://img.youtube.com/vi/-TbtB6Sm2Xk/0.jpg)](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,...)
26+
* BTN_RESET = reset FPGA design

0 commit comments

Comments
 (0)