icestorm/examples/hx8kboard/Makefile

27 lines
403 B
Makefile
Raw Normal View History

PROJ = example
PIN_DEF = hx8kboard.pcf
DEVICE = 8k
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
%.txt: $(PIN_DEF) %.blif
arachne-pnr -d $(DEVICE) -o $@ -p $^
%.bin: %.txt
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!!!'
sudo iceprog $<
2015-12-08 12:54:20 +01:00
clean:
rm -f $(PROJ).blif $(PROJ).txt $(PROJ).bin
2015-12-08 12:54:20 +01:00
.PHONY: all prog clean