diff options
author | Julian T <julian@jtle.dk> | 2021-02-08 16:16:54 +0100 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2021-02-08 16:16:54 +0100 |
commit | 8a37c059748673e14f352fa70dbf974f33310c43 (patch) | |
tree | 8de5665d9445ee08e57ab0ffe11bd1dff3836b61 /sem6/dig/m2/Makefile | |
parent | b7693c4b70ba2514d9007891b267f1876473258e (diff) |
Add Makefile and testgenerator to run vhdl files
Diffstat (limited to 'sem6/dig/m2/Makefile')
-rw-r--r-- | sem6/dig/m2/Makefile | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sem6/dig/m2/Makefile b/sem6/dig/m2/Makefile new file mode 100644 index 0000000..2731d67 --- /dev/null +++ b/sem6/dig/m2/Makefile @@ -0,0 +1,30 @@ + +INPUTFILES=nor_gate + +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_$(INPUTFILES): %: %.o + ghdl -e $@ + +run_%: % + ghdl -r $^ + +sim_%: test_% % + -./$< --vcd=out.vcd + +clean: + ghdl --clean + rm -f work*.cf + rm -f test_*.vhdl + |