aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue450/cocotb/Makefile
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-11-02 05:15:41 +0100
committerTristan Gingold <tgingold@free.fr>2017-11-02 05:15:41 +0100
commit0b950a4ceec7501c680f45b43ff001fc35f927f0 (patch)
tree040c5c14a4e8173459c9ce36bc636d23007b5a67 /testsuite/gna/issue450/cocotb/Makefile
parent1c1ca0a5e7c6ba9427db3d24167545d5cada9085 (diff)
downloadghdl-0b950a4ceec7501c680f45b43ff001fc35f927f0.tar.gz
ghdl-0b950a4ceec7501c680f45b43ff001fc35f927f0.tar.bz2
ghdl-0b950a4ceec7501c680f45b43ff001fc35f927f0.zip
File cocotb example for #450
https://stackoverflow.com/questions/46988237/unusable-module-names-with-generate-statement-in-cocotb
Diffstat (limited to 'testsuite/gna/issue450/cocotb/Makefile')
-rw-r--r--testsuite/gna/issue450/cocotb/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/testsuite/gna/issue450/cocotb/Makefile b/testsuite/gna/issue450/cocotb/Makefile
new file mode 100644
index 000000000..e740fd2a2
--- /dev/null
+++ b/testsuite/gna/issue450/cocotb/Makefile
@@ -0,0 +1,17 @@
+CWD = $(shell pwd)
+COCOTB = $(CWD)/../../..
+
+TOPLEVEL_LANG = vhdl
+
+VHDL_SOURCES = $(CWD)/../hdl/top.vhd
+
+SIM = ghdl
+CMD_BIN = ghdl
+
+TOPLEVEL=top
+MODULE=$(TOPLEVEL)_cocotb
+
+include $(COCOTB)/makefiles/Makefile.inc
+include $(COCOTB)/makefiles/Makefile.sim
+
+sim: $(MODULE).py