From c176046dff4941bcec27b0b72e5a68264c4808e5 Mon Sep 17 00:00:00 2001 From: Wade Fife Date: Wed, 25 Aug 2021 09:24:05 -0500 Subject: fpga: Set default part for sim in setupenv.sh This sets the ARCH and PART_ID environment variables so that the selected part family is used for simulations by default. This can be overridden by changing them in the Makefile for the testbench if a testbench requires a specific part family. Prior to this change, the default was always ARCH=kintex7, PART_ID=xc7k410t/ffg900/-2, which required support for that part to be installed. --- fpga/usrp3/tools/make/viv_sim_preamble.mak | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'fpga/usrp3/tools') diff --git a/fpga/usrp3/tools/make/viv_sim_preamble.mak b/fpga/usrp3/tools/make/viv_sim_preamble.mak index 514b06a0a..f7dfd4503 100644 --- a/fpga/usrp3/tools/make/viv_sim_preamble.mak +++ b/fpga/usrp3/tools/make/viv_sim_preamble.mak @@ -12,13 +12,12 @@ SIM_RUNTIME_US = 1000000000 # Define part using PART_ID (//) # and architecture (zynq, kintex7, or artix7) -# -# Most simulations are part agnostic, but the user can override +# +# Most simulations are part agnostic, but the user can override # these if needed in the makefile in the simulation directory # -# TODO : Update to set from setupenv.sh ARCH ?= kintex7 -PART_ID ?= xc7k410t/ffg900/-2 +PART_ID ?= xc7k410t/ffg900/-2 # Include makefiles and sources for the DUT and its dependencies include $(BASE_DIR)/../lib/sim/Makefile.srcs @@ -48,7 +47,7 @@ vars:: env @echo "ARCH=$(ARCH)" @echo "PART_ID=$(PART_ID)" - + all: $(error "all" or "" is not a valid target. Run make help for a list of supported targets.) -- cgit v1.2.3