icestorm/examples/icestick/Makefile

23 lines
308 B
Makefile

PROJ = example
PIN_DEF = icestick.pcf
DEVICE = 1k
all: $(PROJ).bin
%.blif: %.v
yosys -p 'synth_ice40 -top top -blif $@' $<
%.txt: $(PIN_DEF) %.blif
arachne-pnr -d $(DEVICE) -o $@ -p $^
%.bin: %.txt
icepack $< $@
prog: $(PROJ).bin
iceprog $<
clean:
rm -f *.blif *.txt *.bin
.PHONY: all prog clean