aboutsummaryrefslogtreecommitdiffstats
path: root/fpga
diff options
context:
space:
mode:
authorWade Fife <wade.fife@ettus.com>2021-06-09 10:09:22 -0500
committerWade Fife <wade.fife@ettus.com>2021-06-17 08:16:59 -0500
commit4dc2b7010c0f3e41758b8192636ef7672caae0f7 (patch)
treeddd120f8750bc08b4c4ff935a3b03888f5e89a89 /fpga
parent9ff2dd8e41e6f34d99cba28640ab00290906cae6 (diff)
downloaduhd-4dc2b7010c0f3e41758b8192636ef7672caae0f7.tar.gz
uhd-4dc2b7010c0f3e41758b8192636ef7672caae0f7.tar.bz2
uhd-4dc2b7010c0f3e41758b8192636ef7672caae0f7.zip
fpga: tools: Add ip target to simulation makefiles
Allow building of just the IP by running "make ip" in simulation directories.
Diffstat (limited to 'fpga')
-rw-r--r--fpga/docs/usrp3/sim/running_testbenches.md1
-rw-r--r--fpga/usrp3/tools/make/viv_simulator.mak7
2 files changed, 6 insertions, 2 deletions
diff --git a/fpga/docs/usrp3/sim/running_testbenches.md b/fpga/docs/usrp3/sim/running_testbenches.md
index 2b56af86d..136834bc6 100644
--- a/fpga/docs/usrp3/sim/running_testbenches.md
+++ b/fpga/docs/usrp3/sim/running_testbenches.md
@@ -15,6 +15,7 @@ all supported simulator targets. Currently, the following targets will work:
ipclean: Cleanup all IP intermediate files
clean: Cleanup all simulator intermediate files
cleanall: Cleanup everything!
+ ip: Generate the IP required for this simulation
xsim: Run the simulation using the Xilinx Vivado Simulator
xclean: Cleanup Xilinx Vivado Simulator intermediate files
vsim: Run the simulation using ModelSim simulator via Vivado
diff --git a/fpga/usrp3/tools/make/viv_simulator.mak b/fpga/usrp3/tools/make/viv_simulator.mak
index 66af10fec..eaa23adcc 100644
--- a/fpga/usrp3/tools/make/viv_simulator.mak
+++ b/fpga/usrp3/tools/make/viv_simulator.mak
@@ -86,6 +86,9 @@ SETUP_AND_LAUNCH_MODELSIM = \
.SECONDEXPANSION:
+##ip: Generate the IP required for this simulation
+ip: $(DESIGN_SRCS)
+
##xsim: Run the simulation using the Xilinx Vivado Simulator
xsim: .check_tool $(DESIGN_SRCS) $(SIM_SRCS) $(INC_SRCS)
$(call SETUP_AND_LAUNCH_SIMULATION,XSim)
@@ -111,7 +114,7 @@ modelsim: .check_tool vlint
# NOTE: VHDL files require a correct compile order. This script compiles files
# in the order they are defined in $(DESIGN_SRC), then $SIM_SRC)
-##vlint: Run ModelSim compiler to lint files.
+##vlint: Run ModelSim compiler to lint files
vlint: .check_tool $(COMPLIBDIR) $(DESIGN_SRCS) $(SIM_SRCS) $(INC_SRCS)
$(call SETUP_AND_LAUNCH_VLINT)
@@ -127,4 +130,4 @@ clean:: xclean vclean
help::
@grep -h "##" $(abspath $(lastword $(MAKEFILE_LIST))) | grep -v "\"##\"" | sed -e 's/\\$$//' | sed -e 's/##//'
-.PHONY: xsim xsim_hls xclean vsim vlint vclean clean help
+.PHONY: ip xsim xsim_hls xclean vsim vlint vclean clean help