diff --git a/make/defs.mk b/make/defs.mk index f12edfb..9ea5646 100644 --- a/make/defs.mk +++ b/make/defs.mk @@ -1,3 +1,2 @@ -ROOT_PATH := $(VHDL_HOME) LIB_PATH := $(ROOT_PATH)/lib diff --git a/make/package.inc.new b/make/package.inc.new new file mode 100644 index 0000000..7da9222 --- /dev/null +++ b/make/package.inc.new @@ -0,0 +1,14 @@ +# ----------------------------------------------------------- +include $(VHDL_HOME)/make/defs.mk +# ----------------------------------------------------------- +include package_other.inc + +# ----------------------------------------------------------- +PKG_NAME := PACKAGE_NEW + +# ----------------------------------------------------------- +$(PKG_NAME)_SRCS += $(PKG_OTHER_SRC) +$(PKG_NAME)_SRCS += $(LIB_PATH)/pkg_new.vhd + +# ----------------------------------------------------------- + diff --git a/make/tb.make.new b/make/tb.make.new new file mode 100644 index 0000000..647472a --- /dev/null +++ b/make/tb.make.new @@ -0,0 +1,21 @@ +# ----------------------------------------------------------- +include $(VHDL_HOME)/make/defs.mk +# ----------------------------------------------------------- +include package1.inc +include package2.inc + +# ----------------------------------------------------------- +SRCS := $(PACKAGE1_SRCS) +SRCS += $(PACKAGE2_SRCS) +SRCS += $(LIB_PATH)/tb_new.vhd + +# ----------------------------------------------------------- +# Compile +TARGET := tb_new +ENTITY := tb_new +WITH_VCD := y +RUN_TIME := 1us + +include $(VHDL_HOME)/make/ghdl.mk +# ----------------------------------------------------------- +