build/xilinx/vivado: only set library for vhdl files (not supported for verilog/syste...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 19 Apr 2019 07:18:25 +0000 (09:18 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 19 Apr 2019 07:18:25 +0000 (09:18 +0200)
litex/build/xilinx/vivado.py

index 81af2b0c17ab78e10e961779f743f717397aa7dd..09a19411cd00521939f8bf193ddb4b85e6acbacc 100644 (file)
@@ -1,4 +1,4 @@
-# This file is Copyright (c) 2014 Florent Kermarrec <florent@enjoy-digital.fr>
+# This file is Copyright (c) 2014-2019 Florent Kermarrec <florent@enjoy-digital.fr>
 # License: BSD
 
 import os
@@ -118,8 +118,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))
         for filename in edifs:
             filename_tcl = "{" + filename + "}"
             tcl.append("read_edif " + filename_tcl)