icestorm/examples/hx8kboard/Makefile

23 lines
309 B
Makefile

PROJ = example
PIN_DEF = hx8kboard.pcf
DEVICE = 8k
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