]> rtime.felk.cvut.cz Git - fpga/quadcount.git/blobdiff - Makefile
+ Makefile, DFF for input synchronization, ab carry corrected
[fpga/quadcount.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..0a1a454
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+VHDL_MAIN=qctest
+VHDL_SUB=dff.o qcounter.o
+
+all: $(VHDL_MAIN)
+
+run: $(VHDL_MAIN)
+       ghdl -r $< --stop-time=8us --vcd=$<.vcd
+
+$(VHDL_MAIN): $(VHDL_MAIN).o $(VHDL_SUB)
+       ghdl -e --ieee=synopsys $@
+
+%.o: %.vhdl
+       ghdl -a --ieee=synopsys $<
+
+clean:
+       rm -Rf *.o qctest