diff options
Diffstat (limited to 'examples/iceblink/Makefile')
-rw-r--r-- | examples/iceblink/Makefile | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/examples/iceblink/Makefile b/examples/iceblink/Makefile new file mode 100644 index 0000000..8f908a8 --- /dev/null +++ b/examples/iceblink/Makefile @@ -0,0 +1,26 @@ +PROJ = example +PIN_DEF = iceblink.pcf +DEVICE = 1k + +all: $(PROJ).bin + +%.blif: %.v + yosys -p 'synth_ice40 -top top -blif $@' $< + +%.asc: $(PIN_DEF) %.blif + arachne-pnr -d $(DEVICE) -o $@ -p $^ -P vq100 + +%.bin: %.asc + icepack $< $@ + +prog: $(PROJ).bin + iCEburn.py -e -v -w $< + +sudo-prog: $(PROJ).bin + @echo 'Executing prog as root!!!' + iCEburn.py -e -v -w $< + +clean: + rm -f $(PROJ).blif $(PROJ).asc $(PROJ).bin + +.PHONY: all prog clean |