Skip to content

Commit 2540de0

Browse files
committed
Make nextpnr the default pnr. Save yosys output to a log file.
1 parent 77c2951 commit 2540de0

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
*.blif
44
*.asc
55
*.json
6+
*.log
67
core

main.mk

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
all: $(PROJ).rpt $(PROJ).bin
33

44
%.blif: %.v $(ADD_SRC) $(ADD_DEPS)
5-
yosys -p 'synth_ice40 -top top -blif $@' $<
5+
yosys -ql $*.log -p 'synth_ice40 -top top -blif $@' $<
66

77
%.json: %.v $(ADD_SRC) $(ADD_DEPS)
8-
yosys -p 'synth_ice40 -top top -json $@' $<
8+
yosys -ql $*.log -p 'synth_ice40 -top top -json $@' $<
99

10-
ifeq ($(USE_NEXTPNR),)
11-
%.asc: $(PIN_DEF) %.blif
12-
arachne-pnr -d $(subst up,,$(subst hx,,$(subst lp,,$(DEVICE)))) -o $@ -p $^
13-
else
10+
ifeq ($(USE_ARACHNEPNR),)
1411
%.asc: $(PIN_DEF) %.json
1512
nextpnr-ice40 --$(DEVICE) --json $(filter-out $<,$^) --pcf $< --asc $@
13+
else
14+
%.asc: $(PIN_DEF) %.blif
15+
arachne-pnr -d $(subst up,,$(subst hx,,$(subst lp,,$(DEVICE)))) -o $@ -p $^
1616
endif
1717

1818

0 commit comments

Comments
 (0)