aboutsummaryrefslogtreecommitdiffstats
path: root/examples/icestick/Makefile
blob: 295642a58cc6c42529c3543f0889d32baadc8ef3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
all: example.bin

example.blif: example.v
	yosys -p 'synth_ice40 -top top -blif example.blif' example.v

example.txt: example.blif icestick.pcf
	arachne-pnr -d 1k -o example.txt -p icestick.pcf example.blif

example.bin: example.txt
	icepack example.txt example.bin

prog:
	iceprog example.bin

clean:
	rm -f example.blif example.txt example.bin

.PHONY: all prog clean