Skip to content

Commit

Permalink
Switching to nextpnr since arachne-pnr is deprecated.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrincayc committed Jul 6, 2020
1 parent 27c97a3 commit 0a7a5bc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions icestorm_template/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ DEVICE = lp8k

all: $(PROJ).rpt $(PROJ).bin

%.blif: %.v
yosys -p 'synth_ice40 -top $(PROJ) -blif $@' $<
%.blif %.json : %.v
yosys -p 'synth_ice40 -top top -blif $@ -json $*.json' $<

%.asc: $(PIN_DEF) %.blif
arachne-pnr -d 8k -P cm81 -o $@ -p $^
%.asc: $(PIN_DEF) %.blif %.json
nextpnr-ice40 --$(DEVICE) --package cm81 --json $*.json --asc $@ --pcf $(PIN_DEF)

%.bin: %.asc
icepack $< $@
Expand Down Expand Up @@ -56,7 +56,7 @@ sudo-prog: $(PROJ).bin
sudo tinyprog -p $<

clean:
rm -f $(PROJ).blif $(PROJ).asc $(PROJ).rpt $(PROJ).bin
rm -f $(PROJ).blif $(PROJ).asc $(PROJ).rpt $(PROJ).bin $(PROJ).json

.SECONDARY:
.PHONY: all prog clean

0 comments on commit 0a7a5bc

Please sign in to comment.