diff --git a/Common/sim/ieee_proposed.make b/Common/sim/ieee_proposed.make new file mode 100644 index 0000000..1e5a658 --- /dev/null +++ b/Common/sim/ieee_proposed.make @@ -0,0 +1,31 @@ +# ------------------------------------------------- +# Compile script for GHDL +# ------------------------------------------------- + +# ------------------------------------------------- +# Global options +# ------------------------------------------------- +LANG_STD := 93c +IEEE_STD := standard +WORK_LIB := ieee_proposed + + +# ------------------------------------------------- +# Target options +# ------------------------------------------------- +TARGET := ieee_proposed + +LIB_PATH := ieee_proposed/modelsim + +SRCS := $(LIB_PATH)/standard_additions_c.vhdl +SRCS += $(LIB_PATH)/standard_textio_additions_c.vhdl +SRCS += $(LIB_PATH)/env_c.vhdl +SRCS += $(LIB_PATH)/std_logic_1164_additions.vhdl +SRCS += $(LIB_PATH)/numeric_std_additions.vhdl +SRCS += $(LIB_PATH)/numeric_std_unsigned_c.vhdl +SRCS += $(LIB_PATH)/fixed_float_types_c.vhdl +SRCS += $(LIB_PATH)/fixed_pkg_c.vhdl +SRCS += $(LIB_PATH)/float_pkg_c.vhdl + +include ../make/ghdl.mk + diff --git a/Common/sim/ieee_proposed/modelsim/Makefile.ghdl b/Common/sim/unisim.make similarity index 53% rename from Common/sim/ieee_proposed/modelsim/Makefile.ghdl rename to Common/sim/unisim.make index 3cba883..339f380 100644 --- a/Common/sim/ieee_proposed/modelsim/Makefile.ghdl +++ b/Common/sim/unisim.make @@ -7,23 +7,22 @@ # ------------------------------------------------- LANG_STD := 93c IEEE_STD := standard -WORK_LIB := ieee_proposed +WORK_LIB := unisim # ------------------------------------------------- # Target options # ------------------------------------------------- -TARGET := ghdl +TARGET := unisim +LIB_PATH := xilinx/libsrc -SRCS := standard_additions_c.vhdl -SRCS += standard_textio_additions_c.vhdl -SRCS += env_c.vhdl -SRCS += std_logic_1164_additions.vhdl -SRCS += numeric_std_additions.vhdl -SRCS += numeric_std_unsigned_c.vhdl -SRCS += fixed_float_types_c.vhdl -SRCS += fixed_pkg_c.vhdl -SRCS += float_pkg_c.vhdl +SRCS := $(LIB_PATH)/unisims/unisim_VPKG.vhd +SRCS += $(LIB_PATH)/unisims/unisim_VCOMP.vhd +SRCS += $(LIB_PATH)/unisims/unisim_SMODEL.vhd +SRCS += $(LIB_PATH)/unisims/unisim_VITAL.vhd + +GHDL_OPTS := -fsynopsys -fexplicit + +include ../make/ghdl.mk -include ../../../make/ghdl.mk