icestorm/examples/icestick/Makefile

27 lines
397 B
Makefile
Raw Normal View History

PROJ = example
PIN_DEF = icestick.pcf
DEVICE = 1k
2015-12-08 12:54:20 +01:00
all: $(PROJ).bin
2015-12-08 12:54:20 +01:00
%.blif: %.v
yosys -p 'synth_ice40 -top top -blif $@' $<
2015-12-08 12:54:20 +01:00
%.asc: $(PIN_DEF) %.blif
arachne-pnr -d $(DEVICE) -o $@ -p $^
%.bin: %.asc
icepack $< $@
2015-12-08 12:54:20 +01:00
prog: $(PROJ).bin
iceprog $<
2015-12-08 12:54:20 +01:00
sudo-prog: $(PROJ).bin
@echo 'Executing prog as root!!!'
iceprog $<
2015-12-08 12:54:20 +01:00
clean:
rm -f $(PROJ).blif $(PROJ).asc $(PROJ).bin
2015-12-08 12:54:20 +01:00
.PHONY: all prog clean