We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa515ba commit f4670cfCopy full SHA for f4670cf
verilog/Makefile
@@ -9,6 +9,9 @@ all:
9
# Don't delete these
10
.PRECIOUS: build/%.d build/%.blif build/%.bin build/%.asc
11
12
+# Top module
13
+TOP ?= top
14
+
15
# Tool paths
16
17
# Use apio toolchain
@@ -72,7 +75,7 @@ build/%.$(BOARD).blif: %.v build/%.d
72
75
$(YOSYS) $(YOSYS_OPTS) \
73
76
-p "verilog_defines -DBOARD_$(BOARD) -DBOARD=$(BOARD)" \
74
77
-p "read_verilog -noautowire $<" \
- -p "synth_ice40 -top top -blif $@"
78
+ -p "synth_ice40 -top -top $(TOP) -blif $@"
79
80
build/%.$(BOARD).asc: build/%.$(BOARD).blif pcf/$(BOARD).pcf
81
$(PNR) -p pcf/$(BOARD).pcf $(PNR_OPTS) $< -o $@
0 commit comments