aboutsummaryrefslogtreecommitdiffstats
path: root/examples/iceblink
diff options
context:
space:
mode:
authorAki Van Ness <aki@lethalbit.net>2022-09-15 06:32:45 -0400
committerAki Van Ness <aki@lethalbit.net>2022-09-15 06:32:45 -0400
commitca43729f124466b816f922842353feeb3f6f8e84 (patch)
treedcb5191f0f33237ae561bfad064bd20fc397e728 /examples/iceblink
parent2bc541743ada3542c6da36a50e66303b9cbd2059 (diff)
downloadicestorm-ca43729f124466b816f922842353feeb3f6f8e84.tar.gz
icestorm-ca43729f124466b816f922842353feeb3f6f8e84.tar.bz2
icestorm-ca43729f124466b816f922842353feeb3f6f8e84.zip
Replaced instances of `arachne-pnr` with the `nextpnr-ice40` equivalent
Diffstat (limited to 'examples/iceblink')
-rw-r--r--examples/iceblink/.gitignore10
-rw-r--r--examples/iceblink/Makefile11
2 files changed, 12 insertions, 9 deletions
diff --git a/examples/iceblink/.gitignore b/examples/iceblink/.gitignore
index c1fa30b..1af40d6 100644
--- a/examples/iceblink/.gitignore
+++ b/examples/iceblink/.gitignore
@@ -1,4 +1,6 @@
-example.bin
-example.blif
-example.asc
-example.rpt
+*
+!.gitignore
+!example.v
+!iceblink.pcf
+!Makefile
+!README
diff --git a/examples/iceblink/Makefile b/examples/iceblink/Makefile
index 3403a4b..a57e377 100644
--- a/examples/iceblink/Makefile
+++ b/examples/iceblink/Makefile
@@ -1,14 +1,15 @@
PROJ = example
PIN_DEF = iceblink.pcf
DEVICE = hx1k
+PACKAGE = vq100
all: $(PROJ).rpt $(PROJ).bin
-%.blif: %.v
- yosys -p 'synth_ice40 -top top -blif $@' $<
+%.json: %.v
+ yosys -p 'synth_ice40 -top top -json $@' $<
-%.asc: $(PIN_DEF) %.blif
- arachne-pnr -d $(subst hx,,$(subst lp,,$(DEVICE))) -o $@ -p $^ -P vq100
+%.asc: $(PIN_DEF) %.json
+ nextpnr-ice40 --$(DEVICE) --package $(PACKAGE) --asc $@ --pcf $< --json $*.json
%.bin: %.asc
icepack $< $@
@@ -24,6 +25,6 @@ sudo-prog: $(PROJ).bin
iCEburn.py -e -v -w $<
clean:
- rm -f $(PROJ).blif $(PROJ).asc $(PROJ).rpt $(PROJ).bin
+ rm -f $(PROJ).json $(PROJ).asc $(PROJ).rpt $(PROJ).bin
.PHONY: all prog clean