diff options
| author | Julian Blake Kongslie | 2021-03-23 19:01:29 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2021-03-23 19:03:14 -0700 |
| commit | 0f95f3efbe4879bcf8b24aafda1c10dd95e9dd40 (patch) | |
| tree | b30ab627b29a881a2448bd28e6e02e4f8581ceba /Makefile | |
| parent | Clean up the preshifts on bin2bcd and ntoa. (diff) | |
| download | toycpu-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 '')
| -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 |
