summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJulian Blake Kongslie2021-03-28 14:48:30 -0700
committerJulian Blake Kongslie2021-03-28 14:48:30 -0700
commit7a1311c16c36b18a66a5ee43511fb9ad5093ec3a (patch)
tree09df63644ac11dee4f2de25d476437e73fcdea84 /Makefile
downloadnoncpu-7a1311c16c36b18a66a5ee43511fb9ad5093ec3a.tar.xz
Initial commit.
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