From 88975a56a0cacb71a071583700a862e3f80c8cd3 Mon Sep 17 00:00:00 2001 From: Jens Ahrensfeld Date: Fri, 19 Mar 2021 11:05:04 +0000 Subject: [PATCH] - added GHDL make stuff git-svn-id: http://moon:8086/svn/vhdl/trunk@1387 cc03376c-175c-47c8-b038-4cd826a8556b --- Common/make/ghdl.mk | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Common/make/ghdl.mk diff --git a/Common/make/ghdl.mk b/Common/make/ghdl.mk new file mode 100644 index 0000000..11fe45e --- /dev/null +++ b/Common/make/ghdl.mk @@ -0,0 +1,28 @@ +# NAME +# BUILD_DIR +# SRCS +# ENTITY_RUN + + +all: analyze + +$(BUILD_DIR): + mkdir -p $@ + +analyze: $(BUILD_DIR) $(SRCS) + ghdl -a --work=$(NAME) --workdir=$(BUILD_DIR) $(SRCS) + +run: analyze + -ghdl -r --work=$(NAME) --workdir=$(BUILD_DIR) $(ENTITY_RUN) --wave=$(BUILD_DIR)/$(NAME).ghw --assert-level=error >$(BUILD_DIR)/$(NAME).log + +sim: run + exec gtkwave -f $(BUILD_DIR)/$(NAME).ghw & + +clean: + rm -f $(BUILD_DIR)/$(NAME)*.cf + +mrproper: + rm -rf $(BUILD_DIR) + + +