aboutsummaryrefslogtreecommitdiffstats
path: root/examples/hx8kboard/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hx8kboard/Makefile')
-rw-r--r--examples/hx8kboard/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/hx8kboard/Makefile b/examples/hx8kboard/Makefile
index 0241807..bcecdf2 100644
--- a/examples/hx8kboard/Makefile
+++ b/examples/hx8kboard/Makefile
@@ -1,6 +1,6 @@
PROJ = example
PIN_DEF = hx8kboard.pcf
-DEVICE = 8k
+DEVICE = hx8k
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 $<