summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJulian Blake Kongslie2021-03-23 19:01:29 -0700
committerJulian Blake Kongslie2021-03-23 19:03:14 -0700
commit0f95f3efbe4879bcf8b24aafda1c10dd95e9dd40 (patch)
treeb30ab627b29a881a2448bd28e6e02e4f8581ceba /Makefile
parentClean up the preshifts on bin2bcd and ntoa. (diff)
downloadtoycpu-0f95f3efbe4879bcf8b24aafda1c10dd95e9dd40.tar.xz
Replace dibble dabble algorithm with variant that tests after the add.
This makes it really easy to support odd bases.
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