summaryrefslogtreecommitdiff
path: root/sim/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sim/Makefile')
-rw-r--r--sim/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/sim/Makefile b/sim/Makefile
new file mode 100644
index 0000000..af9d22a
--- /dev/null
+++ b/sim/Makefile
@@ -0,0 +1,12 @@
1run: build/Vtop
2 $<
3.PHONY: run
4
5build/Vtop: $(wildcard *.cpp *.sv)
6 @rm -rf verilator
7 @mkdir -p build verilator
8 verilator +1800-2017ext+sv -Wall -Wno-BLKSEQ -Wno-UNUSED -O3 -Ihdl --Mdir verilator --trace --cc --build -j --exe --top-module top $(wildcard *.cpp *.sv)
9 @ln -t build -f verilator/Vtop
10 @rm -rf verilator
11
12.SECONDARY: