aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp3/top/e31x/sim/dram_test/Makefile
diff options
context:
space:
mode:
authorWade Fife <wade.fife@ettus.com>2022-03-21 16:30:28 -0500
committerWade Fife <wade.fife@ettus.com>2022-03-23 08:55:36 -0500
commitc0015db3ea80117e8c66966e55f337e4fe8d29c2 (patch)
tree6d22db0492f4f928300781dde36b88d3f4c7348b /fpga/usrp3/top/e31x/sim/dram_test/Makefile
parentfebf339e0df412e54cf43a204c280128d8ca1ec3 (diff)
downloaduhd-c0015db3ea80117e8c66966e55f337e4fe8d29c2.tar.gz
uhd-c0015db3ea80117e8c66966e55f337e4fe8d29c2.tar.bz2
uhd-c0015db3ea80117e8c66966e55f337e4fe8d29c2.zip
fpga: e31x: Update DRAM IP simulation
Update the simulation to use the renamed IP. Add ModelSim support.
Diffstat (limited to 'fpga/usrp3/top/e31x/sim/dram_test/Makefile')
-rw-r--r--fpga/usrp3/top/e31x/sim/dram_test/Makefile26
1 files changed, 22 insertions, 4 deletions
diff --git a/fpga/usrp3/top/e31x/sim/dram_test/Makefile b/fpga/usrp3/top/e31x/sim/dram_test/Makefile
index 164f956f3..91c59b4a5 100644
--- a/fpga/usrp3/top/e31x/sim/dram_test/Makefile
+++ b/fpga/usrp3/top/e31x/sim/dram_test/Makefile
@@ -37,13 +37,31 @@ IP_DIR = ../../ip
# Include makefiles and sources for all IP components
# *after* defining the IP_DIR
-include $(IP_DIR)/mig_7series_0/Makefile.inc
+include $(IP_DIR)/ddr3_16bit/Makefile.inc
DESIGN_SRCS += $(abspath \
-$(IP_MIG_7SERIES_0_SRCS) \
+$(IP_DDR3_16BIT_SRCS) \
)
#-------------------------------------------------
+# ModelSim Specific
+#-------------------------------------------------
+
+MODELSIM_IP_SRCS = $(wildcard $(abspath \
+$(IP_BUILD_DIR)/ddr3_16bit/ddr3_16bit/user_design/rtl/ddr3_16bit.v \
+$(IP_BUILD_DIR)/ddr3_16bit/ddr3_16bit/user_design/rtl/ddr3_16bit_mig_sim.v \
+$(IP_BUILD_DIR)/ddr3_16bit/ddr3_16bit/user_design/rtl/*/*.v \
+$(VIVADO_PATH)/data/verilog/src/glbl.v \
+))
+
+MODELSIM_LIBS += \
+secureip \
+
+modelsim vlint : SIM_SRCS += $(MODELSIM_IP_SRCS)
+
+MODELSIM_ARGS = glbl -t 1fs
+
+#-------------------------------------------------
# Testbench Specific
#-------------------------------------------------
# Define only one toplevel module
@@ -51,8 +69,8 @@ SIM_TOP = dram_test_tb
SIM_SRCS = \
$(abspath dram_test_tb.sv) \
-$(IP_MIG_7SERIES_0_SIM_OUTS) \
-$(IP_MIG_7SERIES_TG_SRCS) \
+$(IP_DDR3_16BIT_SIM_OUTS) \
+$(IP_DDR3_16BIT_TG_SRCS) \
$(SIM_GENERAL_SRCS) \
$(SIM_AXI_SRCS)