diff options
| author | Julian Blake Kongslie | 2021-04-05 13:36:31 -0700 |
|---|---|---|
| committer | Julian Blake Kongslie | 2021-04-05 13:38:24 -0700 |
| commit | 50032620a7743795ceee1b0ecda1a01f8296a6d4 (patch) | |
| tree | 38c250cd3e2826f9d7738111ffa20845afd20173 /Makefile | |
| parent | Change the null byte from no-op to halt. (diff) | |
| download | noncpu-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 'Makefile')
| -rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -1,5 +1,6 @@ | |||
| 1 | SOURCES := $(shell find -name \*.sv -o -name \*.cpp) | 1 | SOURCES := $(shell find -name \*.sv -o -name \*.cpp) |
| 2 | COLLATERAL := $(shell find -name \*.hex -o -name \*.svh) | 2 | HEADERS := $(shell find -name \*.svh) |
| 3 | MEMORIES := $(shell find -name \*.hex) | ||
| 3 | 4 | ||
| 4 | OPTS ?= | 5 | OPTS ?= |
| 5 | 6 | ||
| @@ -7,7 +8,7 @@ sim: build/Vtop | |||
| 7 | $< | 8 | $< |
| 8 | .PHONY: sim | 9 | .PHONY: sim |
| 9 | 10 | ||
| 10 | build/Vtop: $(SOURCES) $(COLLATERAL) | 11 | build/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) |
