File tree 2 files changed +50
-4
lines changed
2 files changed +50
-4
lines changed Original file line number Diff line number Diff line change 14
14
steps :
15
15
16
16
- name : ' 🧰 Checkout'
17
- uses : actions/checkout@v3
17
+ uses : actions/checkout@v4
18
18
19
19
- uses : docker://ghcr.io/hdl/sim/osvb:latest
20
20
with :
27
27
steps :
28
28
29
29
- name : ' 🧰 Checkout'
30
- uses : actions/checkout@v3
30
+ uses : actions/checkout@v4
31
31
32
32
- uses : docker://ghcr.io/hdl/sim:latest
33
33
with :
@@ -40,17 +40,36 @@ jobs:
40
40
steps :
41
41
42
42
- name : ' 🧰 Checkout'
43
- uses : actions/checkout@v3
43
+ uses : actions/checkout@v4
44
44
45
45
- uses : docker://ghcr.io/hdl/impl/icestorm:latest
46
46
with :
47
47
args : ./Extra/run.sh
48
48
49
49
- name : ' 📤 Upload artifact'
50
- uses : actions/upload-artifact@v3
50
+ uses : actions/upload-artifact@v4
51
51
with :
52
52
name : Extra
53
53
path : |
54
54
./Extra/top.asc
55
55
./Extra/top.json
56
56
./Extra/top.bin
57
+
58
+ MiWi :
59
+ runs-on : ubuntu-latest
60
+
61
+ steps :
62
+
63
+ - name : ' 🧰 Checkout'
64
+ uses : actions/checkout@v4
65
+
66
+ - uses : docker://ghcr.io/hdl/impl/icestorm:latest
67
+ with :
68
+ args : ./MiWi/make.sh
69
+
70
+ - name : ' 📤 Upload artifact'
71
+ uses : actions/upload-artifact@v4
72
+ with :
73
+ name : MiWi
74
+ path : ./top_MiWi.bin
75
+
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ set -ex
4
+
5
+ cd $( dirname " $0 " )
6
+
7
+ cd ..
8
+
9
+ mkdir -p build
10
+
11
+ echo " Analyze MIWI"
12
+
13
+ ghdl -i --std=08 --workdir=build ./MiWi/src/* .vhd
14
+ ghdl -i --std=08 --workdir=build ./MiWi/impl/top.vhd
15
+ ghdl -m --std=08 --workdir=build top
16
+
17
+ echo " Synthesis with yosys and ghdl as module"
18
+ yosys -m ghdl -p ' ghdl --std=08 --workdir=build top; synth_ice40 -json top_MiWi.json'
19
+
20
+ echo " Place and route"
21
+ nextpnr-ice40 --hx8k --package tq144:4k --pcf ./MiWi/impl/lib.pcf --asc top_MiWi.asc --json top_MiWi.json
22
+
23
+ echo " Generate bitstream"
24
+ icepack top_MiWi.asc top_MiWi.bin
25
+
26
+ echo " Load bitstream in FPGA (make with sudo)"
27
+ which iceprog && iceprog top_MiWi.bin || echo ' Skipping iceprog...'
You can’t perform that action at this time.
0 commit comments