From 0f95f3efbe4879bcf8b24aafda1c10dd95e9dd40 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Tue, 23 Mar 2021 19:01:29 -0700 Subject: Replace dibble dabble algorithm with variant that tests after the add. This makes it really easy to support odd bases. --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index d270ffb..9eff3ef 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,8 @@ HEADERS := $(wildcard **.svh) CPPSRCS := $(wildcard **.cpp) COLLATERAL := $(wildcard **.hex) +OPTS ?= + QUARTUS ?= /opt/quartus-lite/20.1.1.720/ QUARTUS_SH := $(QUARTUS)/quartus/bin/quartus_sh @@ -23,7 +25,7 @@ pof: build/toycpu.pof build/Vtop: $(VERILOG) $(HEADERS) $(CPPSRCS) $(COLLATERAL) @mkdir -p build - verilator +1800-2017ext+sv -Wall -Wno-BLKSEQ -O3 --Mdir build --trace --cc --build --exe --top-module top $(VERILOG) $(CPPSRCS) + verilator +1800-2017ext+sv -Wall -Wno-BLKSEQ -O3 $(OPTS) --Mdir build --trace --cc --build --exe --top-module top $(VERILOG) $(CPPSRCS) build/toycpu.pof: build/toycpu.qpf $(VERILOG) $(COLLATERAL) cd build; $(QUARTUS_SH) --flow compile toycpu -- cgit v1.2.3