1
+ # Video Notes
2
+
3
+ Git repository https://github.com/mattvenn/TinyFPGA-BX/tree/master/examples/picosoc
4
+
5
+ The README.md contains information on:
6
+
7
+ * Information about installing the toolchains
8
+ * Electrical wiring for the demos
9
+ * Precompiled firmware binaries:
10
+ * master - starting point
11
+ * ws2812 - includes ws2812 driver and serial driver
12
+
1
13
# PicoSOC TinyFPGA example
2
14
3
15
PicoSOC is an SOC - system on chip. It includes everything you need to
@@ -14,10 +26,12 @@ board. This example has been modified to work with the TinyFPGA by Luke from Tin
14
26
15
27
You can synthesise the demo with the [ icestorm] ( http://www.clifford.at/icestorm/ ) toolchain.
16
28
A very convient way to install the toolchain is to use [ APIO] ( https://github.com/FPGAwars/apio )
17
- And then set your path to include the installed tools and copy the chipdb files:
29
+ And then set your path to include the installed tools and copy the chipdb and yosys files:
18
30
19
31
export PATH=$PATH:~/.apio/packages/toolchain-icestorm/bin/
20
32
sudo cp -r ~/.apio/packages/toolchain-icestorm/share/icebox/ /usr/local/share/
33
+ sudo cp -r ~/.apio/packages/toolchain-icestorm/share/yosys /usr/local/share/
34
+
21
35
22
36
You will also need tinyprog:
23
37
@@ -28,9 +42,8 @@ For more info on the TinyFPGA tools and setup see the TinyFPGA page: https://tin
28
42
At this point you should be able to run make upload to synthesise the hardware and program to the TinyFPGA.
29
43
I have precompiled the firmware.c and added the firmware.bin and hex files to the repo so you don't need GCC.
30
44
31
- If you just want to see the demos in the video, you can just switch to the serial branch
45
+ If you just want to see the demos in the video, you can switch to the ws2812 branch
32
46
33
- git checkout serial
34
47
git checkout ws2812
35
48
36
49
Which should allow you to program the precompiled firmware or run the simulation without installing GCC.
@@ -46,9 +59,16 @@ What I did was:
46
59
sudo apt-get install autoconf automake autotools-dev curl libmpc-dev \
47
60
libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo \
48
61
gperf libtool patchutils bc zlib1g-dev git libexpat1-dev
62
+
49
63
git clone [email protected] :cliffordwolf/picorv32.git
50
64
cd picorv32/
51
65
time make -j2 build-riscv32i-tools
52
66
export PATH=$PATH:/opt/riscv32i/bin/
53
67
54
68
Then make firmware.bin should work and you can then write your own c program or edit my demos.
69
+
70
+ # Wiring for the demo
71
+
72
+ * Serial TX is pin 1
73
+ * Serial RX is pin 2
74
+ * WS2812 data is pin 3
0 commit comments