diff options
Diffstat (limited to 'sem6/dig/common.mk')
-rw-r--r-- | sem6/dig/common.mk | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/sem6/dig/common.mk b/sem6/dig/common.mk new file mode 100644 index 0000000..266511b --- /dev/null +++ b/sem6/dig/common.mk @@ -0,0 +1,29 @@ + + +all: $(INPUTFILES) + +.PHONY: all clean + +%.o: %.vhdl + ghdl -a $^ + +$(INPUTFILES): %: %.o + ghdl -e $@ + +test_%.vhdl: %.vhdl ../generate_test_file.py + ../generate_test_file.py $< $@ + +test_%: test_%.o + ghdl -e $@ + +run_%: % + ghdl -r $^ + +sim_%: test_% % + -./$< --vcd=out.vcd + +clean: + ghdl --clean + rm -f work*.cf + rm -f test_*.vhdl + |