summaryrefslogtreecommitdiff
path: root/tests/xsthammer/Makefile
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2013-06-11 19:49:35 +0200
committerClifford Wolf <clifford@clifford.at>2013-06-11 19:49:35 +0200
commit4b311b7b99f55ee4bfe43447067b177fb2f90a82 (patch)
tree193d4d97230bd7665846293a4229312d2227b0e6 /tests/xsthammer/Makefile
parent8ce99fa6863a8e43b889a11c13e45f317fff11b3 (diff)
Further improved and extended xsthammer
Diffstat (limited to 'tests/xsthammer/Makefile')
-rw-r--r--tests/xsthammer/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/xsthammer/Makefile b/tests/xsthammer/Makefile
new file mode 100644
index 00000000..ab7aebdc
--- /dev/null
+++ b/tests/xsthammer/Makefile
@@ -0,0 +1,28 @@
+
+include generate.lst
+
+test: $(TARGETS)
+
+check/%.log: rtl/%.v xst/%.v
+ bash run-check.sh $(notdir $(basename $<))
+
+xst/%.v: rtl/%.v
+ bash run-xst.sh $(notdir $(basename $<))
+
+generate.lst: generate.cc
+ clang -Wall -o generate generate.cc -lstdc++
+ ./generate
+ { echo -n "TARGETS := "; ls rtl/ | sed 's,\.v$$,.log,; s,^,check/,;' | tr '\n' ' '; } > generate.lst
+
+check_xl_cells:
+ ../../yosys xl_cells_tb.ys
+
+clean:
+ rm -rf generate generate.lst check_temp xst_temp
+
+mrproper: clean
+ rm -rf rtl xst check
+
+.PHONY: test check_xl_cells clean mrproper
+.PRECIOUS: check/%.log xst/%.v rtl/%.v generate.lst
+