From c0015db3ea80117e8c66966e55f337e4fe8d29c2 Mon Sep 17 00:00:00 2001 From: Wade Fife Date: Mon, 21 Mar 2022 16:30:28 -0500 Subject: fpga: e31x: Update DRAM IP simulation Update the simulation to use the renamed IP. Add ModelSim support. --- fpga/usrp3/top/e31x/sim/dram_test/Makefile | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'fpga/usrp3/top') 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,12 +37,30 @@ 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 #------------------------------------------------- @@ -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) -- cgit v1.2.3