diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -3,6 +3,8 @@ HEADERS := $(wildcard **.svh) | |||
| 3 | CPPSRCS := $(wildcard **.cpp) | 3 | CPPSRCS := $(wildcard **.cpp) |
| 4 | COLLATERAL := $(wildcard **.hex) | 4 | COLLATERAL := $(wildcard **.hex) |
| 5 | 5 | ||
| 6 | OPTS ?= | ||
| 7 | |||
| 6 | QUARTUS ?= /opt/quartus-lite/20.1.1.720/ | 8 | QUARTUS ?= /opt/quartus-lite/20.1.1.720/ |
| 7 | 9 | ||
| 8 | QUARTUS_SH := $(QUARTUS)/quartus/bin/quartus_sh | 10 | QUARTUS_SH := $(QUARTUS)/quartus/bin/quartus_sh |
| @@ -23,7 +25,7 @@ pof: build/toycpu.pof | |||
| 23 | 25 | ||
| 24 | build/Vtop: $(VERILOG) $(HEADERS) $(CPPSRCS) $(COLLATERAL) | 26 | build/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 | ||
| 28 | build/toycpu.pof: build/toycpu.qpf $(VERILOG) $(COLLATERAL) | 30 | build/toycpu.pof: build/toycpu.qpf $(VERILOG) $(COLLATERAL) |
| 29 | cd build; $(QUARTUS_SH) --flow compile toycpu | 31 | cd build; $(QUARTUS_SH) --flow compile toycpu |
