build/xilinx/vivado: set_property library only supported for vhdl
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 17 Feb 2017 10:42:55 +0000 (11:42 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 17 Feb 2017 10:42:55 +0000 (11:42 +0100)
litex/build/xilinx/vivado.py

index ef6c617eed7f1a697bef66de5c0a1e3e524958aa..b748ebbf14bd0a0b2b9a0764d8eea375d835e5d1 100644 (file)
@@ -91,8 +91,9 @@ class XilinxVivadoToolchain:
         for filename, language, library in sources:
             filename_tcl = "{" + filename + "}"
             tcl.append("add_files " + filename_tcl)
-            tcl.append("set_property library {} [get_files {}]"
-                       .format(library, filename_tcl))
+            if language == "vhdl":
+                tcl.append("set_property library {} [get_files {}]"
+                           .format(library, filename_tcl))
 
         tcl.append("read_xdc {}.xdc".format(build_name))
         tcl.extend(c.format(build_name=build_name) for c in self.pre_synthesis_commands)