From: Florent Kermarrec Date: Fri, 19 Apr 2019 07:18:25 +0000 (+0200) Subject: build/xilinx/vivado: only set library for vhdl files (not supported for verilog/syste... X-Git-Tag: 24jan2021_ls180~1324 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a78ca2de927f1b6955aad19530210970417d71b4;p=litex.git build/xilinx/vivado: only set library for vhdl files (not supported for verilog/system-verilog) --- diff --git a/litex/build/xilinx/vivado.py b/litex/build/xilinx/vivado.py index 81af2b0c..09a19411 100644 --- a/litex/build/xilinx/vivado.py +++ b/litex/build/xilinx/vivado.py @@ -1,4 +1,4 @@ -# This file is Copyright (c) 2014 Florent Kermarrec +# This file is Copyright (c) 2014-2019 Florent Kermarrec # 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)