summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d270ffb..9eff3ef 100644
--- a/Makefile
+++ b/Makefile
@@ -3,6 +3,8 @@ HEADERS := $(wildcard **.svh)
3CPPSRCS := $(wildcard **.cpp) 3CPPSRCS := $(wildcard **.cpp)
4COLLATERAL := $(wildcard **.hex) 4COLLATERAL := $(wildcard **.hex)
5 5
6OPTS ?=
7
6QUARTUS ?= /opt/quartus-lite/20.1.1.720/ 8QUARTUS ?= /opt/quartus-lite/20.1.1.720/
7 9
8QUARTUS_SH := $(QUARTUS)/quartus/bin/quartus_sh 10QUARTUS_SH := $(QUARTUS)/quartus/bin/quartus_sh
@@ -23,7 +25,7 @@ pof: build/toycpu.pof
23 25
24build/Vtop: $(VERILOG) $(HEADERS) $(CPPSRCS) $(COLLATERAL) 26build/Vtop: $(VERILOG) $(HEADERS) $(CPPSRCS) $(COLLATERAL)
25 @mkdir -p build 27 @mkdir -p build
26 verilator +1800-2017ext+sv -Wall -Wno-BLKSEQ -O3 --Mdir build --trace --cc --build --exe --top-module top $(VERILOG) $(CPPSRCS) 28 verilator +1800-2017ext+sv -Wall -Wno-BLKSEQ -O3 $(OPTS) --Mdir build --trace --cc --build --exe --top-module top $(VERILOG) $(CPPSRCS)
27 29
28build/toycpu.pof: build/toycpu.qpf $(VERILOG) $(COLLATERAL) 30build/toycpu.pof: build/toycpu.qpf $(VERILOG) $(COLLATERAL)
29 cd build; $(QUARTUS_SH) --flow compile toycpu 31 cd build; $(QUARTUS_SH) --flow compile toycpu