From c3fbef6e64506057e832334e1dfa26efde67777e Mon Sep 17 00:00:00 2001 From: jjsuperpower Date: Wed, 10 Aug 2022 22:16:20 -0500 Subject: added make file --- Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3