diff options
Diffstat (limited to '')
| -rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f4a0da8 --- /dev/null +++ b/Makefile | |||
| @@ -0,0 +1,16 @@ | |||
| 1 | SOURCES := $(shell find -name \*.sv -o -name \*.cpp) | ||
| 2 | COLLATERAL := $(shell find -name \*.hex -o -name \*.svh) | ||
| 3 | |||
| 4 | OPTS ?= | ||
| 5 | |||
| 6 | sim: build/Vtop | ||
| 7 | $< | ||
| 8 | .PHONY: sim | ||
| 9 | |||
| 10 | build/Vtop: $(SOURCES) $(COLLATERAL) | ||
| 11 | @mkdir -p build | ||
| 12 | verilator +1800-2017ext+sv -Wall -Wno-BLKSEQ -Wno-UNUSED -O3 -Ihdl $(OPTS) --Mdir build --trace --cc --build -j --exe --top-module top $(SOURCES) | ||
| 13 | |||
| 14 | clean: | ||
| 15 | rm -rf build | ||
| 16 | .PHONY: clean | ||
