From a78ca2de927f1b6955aad19530210970417d71b4 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 19 Apr 2019 09:18:25 +0200 Subject: [PATCH] build/xilinx/vivado: only set library for vhdl files (not supported for verilog/system-verilog) --- litex/build/xilinx/vivado.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/litex/build/xilinx/vivado.py b/litex/build/xilinx/vivado.py index 81af2b0c1..09a19411c 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)