aboutsummaryrefslogtreecommitdiff
path: root/examples/icestick
diff options
context:
space:
mode:
Diffstat (limited to 'examples/icestick')
-rw-r--r--examples/icestick/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/icestick/Makefile b/examples/icestick/Makefile
index a2ecbc6..f40c8a3 100644
--- a/examples/icestick/Makefile
+++ b/examples/icestick/Makefile
@@ -1,6 +1,6 @@
PROJ = example
PIN_DEF = icestick.pcf
-DEVICE = 1k
+DEVICE = hx1k
all: $(PROJ).rpt $(PROJ).bin
@@ -8,13 +8,13 @@ all: $(PROJ).rpt $(PROJ).bin
yosys -p 'synth_ice40 -top top -blif $@' $<
%.asc: $(PIN_DEF) %.blif
- arachne-pnr -d $(DEVICE) -o $@ -p $^
+ arachne-pnr -d $(subst hx,,$(subst lp,,$(DEVICE))) -o $@ -p $^
%.bin: %.asc
icepack $< $@
%.rpt: %.asc
- icetime -mtr $@ $<
+ icetime -d $(DEVICE) -mtr $@ $<
prog: $(PROJ).bin
iceprog $<