From: Florent Kermarrec Date: Fri, 17 Feb 2017 10:42:55 +0000 (+0100) Subject: build/xilinx/vivado: set_property library only supported for vhdl X-Git-Tag: 24jan2021_ls180~1887 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=384f4f428e1e2e7416387d8e38383ec9911378ad;p=litex.git build/xilinx/vivado: set_property library only supported for vhdl --- diff --git a/litex/build/xilinx/vivado.py b/litex/build/xilinx/vivado.py index ef6c617e..b748ebbf 100644 --- a/litex/build/xilinx/vivado.py +++ b/litex/build/xilinx/vivado.py @@ -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)