aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp3/export
diff options
context:
space:
mode:
Diffstat (limited to 'fpga/usrp3/export')
-rw-r--r--fpga/usrp3/export/x300/radio/Makefile71
-rw-r--r--fpga/usrp3/export/x300/radio/build.tcl8
-rw-r--r--fpga/usrp3/export/x300/radio/setupenv.sh11
3 files changed, 90 insertions, 0 deletions
diff --git a/fpga/usrp3/export/x300/radio/Makefile b/fpga/usrp3/export/x300/radio/Makefile
new file mode 100644
index 000000000..d5d28e08c
--- /dev/null
+++ b/fpga/usrp3/export/x300/radio/Makefile
@@ -0,0 +1,71 @@
+#
+# Copyright 2015 Ettus Research LLC
+#
+
+# Define BASE_DIR to point to the "top" dir
+BASE_DIR = $(abspath ../../../top)
+# Include viv_sim_preample after defining BASE_DIR
+include $(BASE_DIR)/../tools/make/viv_design_builder.mak
+
+#-------------------------------------------------
+# Design Specific
+#-------------------------------------------------
+ifndef PRODUCT
+PRODUCT=X310
+endif
+
+ARCH=$(XIL_ARCH_${PRODUCT})
+PART_ID=$(XIL_PART_ID_${PRODUCT})
+
+# Include makefiles and sources for the DUT and its dependencies
+include $(LIB_DIR)/control/Makefile.srcs
+include $(LIB_DIR)/fifo/Makefile.srcs
+include $(LIB_DIR)/timing/Makefile.srcs
+include $(LIB_DIR)/packet_proc/Makefile.srcs
+include $(LIB_DIR)/vita/Makefile.srcs
+include $(LIB_DIR)/dsp/Makefile.srcs
+include $(LIB_DIR)/axi/Makefile.srcs
+include $(LIB_DIR)/radio/Makefile.srcs
+include $(BASE_DIR)/x300/coregen_dsp/Makefile.srcs
+
+DESIGN_SRCS = $(abspath \
+$(FIFO_SRCS) \
+$(CONTROL_LIB_SRCS) \
+$(TIMING_SRCS) \
+$(PACKET_PROC_SRCS) \
+$(VITA_SRCS) \
+$(DSP_SRCS) \
+$(AXI_SRCS) \
+$(RADIO_SRCS) \
+$(COREGEN_DSP_SRCS) \
+)
+
+TOP_MODULE = radio
+
+#-------------------------------------------------
+# IP Specific
+#-------------------------------------------------
+# If simulation contains IP, define the IP_DIR and point
+# it to the base level IP directory
+IP_DIR = $(BASE_DIR)/x300/ip
+
+# Include makefiles and sources for all IP components
+# *after* defining the IP_DIR
+include $(IP_DIR)/fifo_short_2clk/Makefile.inc
+include $(IP_DIR)/fifo_4k_2clk/Makefile.inc
+
+DESIGN_SRCS += $(abspath \
+$(IP_FIFO_4K_2CLK_SRCS) \
+$(IP_FIFO_SHORT_2CLK_SRCS) \
+)
+
+# DESIGN_SRCS and VERILOG_DEFS must be defined
+.DEFAULT_GOAL := netlist
+netlist: .prereqs $(DESIGN_SRCS)
+ $(call BUILD_VIVADO_DESIGN,$(abspath ./build.tcl),$(TOP_MODULE),$(PART_ID))
+
+clean:
+ @rm -rf build
+ @rm -rf build-ip
+
+.PHONY: netlist clean \ No newline at end of file
diff --git a/fpga/usrp3/export/x300/radio/build.tcl b/fpga/usrp3/export/x300/radio/build.tcl
new file mode 100644
index 000000000..b06b40847
--- /dev/null
+++ b/fpga/usrp3/export/x300/radio/build.tcl
@@ -0,0 +1,8 @@
+# Copyright 2015 Ettus Research
+
+source $::env(VIV_TOOLS_DIR)/scripts/viv_utils.tcl
+
+vivado_utils::initialize_project
+vivado_utils::synthesize_design
+vivado_utils::write_netlist_outputs
+vivado_utils::close_batch_project \ No newline at end of file
diff --git a/fpga/usrp3/export/x300/radio/setupenv.sh b/fpga/usrp3/export/x300/radio/setupenv.sh
new file mode 100644
index 000000000..308d69eff
--- /dev/null
+++ b/fpga/usrp3/export/x300/radio/setupenv.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+VIVADO_VER=CMDLINE_ARG
+DISPLAY_NAME="USRP Radio"
+REPO_BASE_PATH=$(cd "$(dirname "${BASH_SOURCE[0]}")/../../.." && pwd)
+
+declare -A PRODUCT_ID_MAP
+PRODUCT_ID_MAP["X300"]="kintex7/xc7k325t/ffg900/-2"
+PRODUCT_ID_MAP["X310"]="kintex7/xc7k410t/ffg900/-2"
+
+source $REPO_BASE_PATH/tools/scripts/setupenv_base.sh