From 47d28bff1206fb007238b16fe4ad9fea76970002 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Thu, 29 Dec 2016 13:46:20 +0100 Subject: Added iCEZUM example --- examples/icezum/Makefile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 examples/icezum/Makefile (limited to 'examples/icezum/Makefile') diff --git a/examples/icezum/Makefile b/examples/icezum/Makefile new file mode 100644 index 0000000..cad44d2 --- /dev/null +++ b/examples/icezum/Makefile @@ -0,0 +1,30 @@ +PROJ = example +PIN_DEF = icezum.pcf +DEVICE = hx1k + +all: $(PROJ).rpt $(PROJ).bin + +%.blif: %.v + yosys -p 'synth_ice40 -top top -blif $@' $< + +%.asc: $(PIN_DEF) %.blif + arachne-pnr -d $(subst hx,,$(subst lp,,$(DEVICE))) -o $@ -p $^ + +%.bin: %.asc + icepack $< $@ + +%.rpt: %.asc + icetime -d $(DEVICE) -mtr $@ $< + +prog: $(PROJ).bin + iceprog $< + +sudo-prog: $(PROJ).bin + @echo 'Executing prog as root!!!' + sudo iceprog $< + +clean: + rm -f $(PROJ).blif $(PROJ).asc $(PROJ).rpt $(PROJ).bin + +.SECONDARY: +.PHONY: all prog clean -- cgit v1.2.3