build/xilinx/vivado: enable xpm libraries
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 18 Oct 2018 07:25:34 +0000 (09:25 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 18 Oct 2018 07:25:34 +0000 (09:25 +0200)
litex/build/xilinx/vivado.py

index 3d40e9be1e583fd1b8ef9b3be5c08aba4a51b09f..10a795bd7665533e1f88f5a63179b51621ddf803 100644 (file)
@@ -109,6 +109,7 @@ class XilinxVivadoToolchain:
     def _build_batch(self, platform, sources, edifs, ips, build_name):
         tcl = []
         tcl.append("create_project -force -name {} -part {}".format(build_name, platform.device))
+        tcl.append("set_property XPM_LIBRARIES {XPM_CDC XPM_MEMORY} [current_project]")
         for filename, language, library in sources:
             filename_tcl = "{" + filename + "}"
             tcl.append("add_files " + filename_tcl)