summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJulian Blake Kongslie2021-04-05 13:36:31 -0700
committerJulian Blake Kongslie2021-04-05 13:38:24 -0700
commit50032620a7743795ceee1b0ecda1a01f8296a6d4 (patch)
tree38c250cd3e2826f9d7738111ffa20845afd20173 /Makefile
parentChange the null byte from no-op to halt. (diff)
downloadnoncpu-50032620a7743795ceee1b0ecda1a01f8296a6d4.tar.xz
Don't rebuild verilator just for memory file changes.
(These files are read when the simulator starts, not when it's built)
Diffstat (limited to '')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 601e946..51d0a70 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
1SOURCES := $(shell find -name \*.sv -o -name \*.cpp) 1SOURCES := $(shell find -name \*.sv -o -name \*.cpp)
2COLLATERAL := $(shell find -name \*.hex -o -name \*.svh) 2HEADERS := $(shell find -name \*.svh)
3MEMORIES := $(shell find -name \*.hex)
3 4
4OPTS ?= 5OPTS ?=
5 6
@@ -7,7 +8,7 @@ sim: build/Vtop
7 $< 8 $<
8.PHONY: sim 9.PHONY: sim
9 10
10build/Vtop: $(SOURCES) $(COLLATERAL) 11build/Vtop: $(SOURCES) $(HEADERS)
11 @rm -rf verilator 12 @rm -rf verilator
12 @mkdir -p build verilator 13 @mkdir -p build verilator
13 verilator +1800-2017ext+sv -Wall -Wno-BLKSEQ -Wno-UNUSED -O3 -Ihdl $(OPTS) --Mdir verilator --trace --cc --build -j --exe --top-module top $(SOURCES) 14 verilator +1800-2017ext+sv -Wall -Wno-BLKSEQ -Wno-UNUSED -O3 -Ihdl $(OPTS) --Mdir verilator --trace --cc --build -j --exe --top-module top $(SOURCES)