summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
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 @@
1SOURCES := $(shell find -name \*.sv -o -name \*.cpp)
2COLLATERAL := $(shell find -name \*.hex -o -name \*.svh)
3
4OPTS ?=
5
6sim: build/Vtop
7 $<
8.PHONY: sim
9
10build/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
14clean:
15 rm -rf build
16.PHONY: clean