aboutsummaryrefslogtreecommitdiffstats
path: root/fpga/usrp3/top/e31x/Makefile
diff options
context:
space:
mode:
authorWade Fife <wade.fife@ettus.com>2022-01-29 20:47:36 -0600
committerWade Fife <wade.fife@ettus.com>2022-02-10 18:13:44 -0700
commit788fef11ef890c6dcee3be495fc381bcf2990d3b (patch)
tree87e9c0da8b56e47e7f1a23aa0a6f8673dbe6d1e0 /fpga/usrp3/top/e31x/Makefile
parent8444f84add04f025b7e24855e0ba79446e615e01 (diff)
downloaduhd-788fef11ef890c6dcee3be495fc381bcf2990d3b.tar.gz
uhd-788fef11ef890c6dcee3be495fc381bcf2990d3b.tar.bz2
uhd-788fef11ef890c6dcee3be495fc381bcf2990d3b.zip
fpga: e31x: Add DRAM support
This adds DRAM support to E31x devices. Due to the size of the DDR3 memory controller, it is not enabled by default. You can include the memory controller IP in the build by adding the DRAM environment variable to your build. For example: DRAM=1 make E310_SG3
Diffstat (limited to 'fpga/usrp3/top/e31x/Makefile')
-rw-r--r--fpga/usrp3/top/e31x/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/fpga/usrp3/top/e31x/Makefile b/fpga/usrp3/top/e31x/Makefile
index 80752d738..d5131c852 100644
--- a/fpga/usrp3/top/e31x/Makefile
+++ b/fpga/usrp3/top/e31x/Makefile
@@ -63,12 +63,12 @@ E310_SG3_IDLE E3XX_idle_sg3: build/usrp_e310_sg3_idle_fpga.dts
##E310_SG1: Build USRP E3XX (Speed Grade 1).
E310_SG1 E310: build/usrp_e310_sg1_fpga.dts
- $(call vivado_build,E310_SG1, E310_SG1=1)
+ $(call vivado_build,E310_SG1, E310_SG1=1 $(if $(DRAM),ENABLE_DRAM=1,))
$(call post_build,$@,E310_SG1)
##E310_SG3: Build USRP E3XX (Speed Grade 3).
E310_SG3 E310_sg3: build/usrp_e310_sg3_fpga.dts
- $(call vivado_build,E310_SG3, E310_SG3=1)
+ $(call vivado_build,E310_SG3, E310_SG3=1 $(if $(DRAM),ENABLE_DRAM=1,))
$(call post_build,$@,E310_SG3)
@@ -93,6 +93,8 @@ help: ##Show this help message.
##
##Supported Options
##-----------------
+##DRAM=1 Include DDR3 SDRAM memory controller IP in the FPGA build.
+## Note: The RFNoC image core must also be configured to use DRAM.
##GUI=1 Launch the build in the Vivado GUI.
##CHECK=1 Launch the syntax checker instead of building a bitfile.
##SYNTH=1 Launch the build but stop after synthesis.