summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorjjsuperpower <jjs29356@gmail.com>2022-08-10 22:16:20 -0500
committerjjsuperpower <jjs29356@gmail.com>2022-08-10 22:16:20 -0500
commitc3fbef6e64506057e832334e1dfa26efde67777e (patch)
tree3e0ef3cdfd3f6830832cc53102b38df5be95cb12 /Makefile
parent965821b9bcf018173e0a60f49382568724a5b589 (diff)
added make file
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..64ce203
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,21 @@
+
+HDL_FOLDER = ./hdl
+HDL = $(wildcard $(HDL_FOLDER)/*.py)
+
+sim: $(HDL)
+ python3 $< sim
+
+cc: $(HDL)
+ python3 $< cc $(basename $< .py)
+
+v: $(HDL)
+ python3 $< v
+
+test:
+ py.test --disable-pytest-warnings -v $(HDL)
+
+test-w:
+ py.test -v $(HDL)
+
+clean:
+ $(RM) -rf $(HDL_FOLDER)/*.cc $(HDL_FOLDER)/*.v $(HDL_FOLDER)/*.vcd \ No newline at end of file