summaryrefslogtreecommitdiff
path: root/verilator_example_systemc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'verilator_example_systemc/Makefile')
-rw-r--r--verilator_example_systemc/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/verilator_example_systemc/Makefile b/verilator_example_systemc/Makefile
new file mode 100644
index 0000000..d2925ac
--- /dev/null
+++ b/verilator_example_systemc/Makefile
@@ -0,0 +1,12 @@
+all: obj_dir/Vhello
+
+check: all
+ obj_dir/Vhello
+
+clean:
+ rm -fr obj_dir
+
+.PHONY: all check clean
+
+obj_dir/Vhello: hello.v sc_main.cc
+ verilator --sc --exe --build -j 0 -Wall sc_main.cc hello.v