build/xilinx/vivado: only set library for vhdl files (not supported for verilog/system-verilog)

This commit is contained in:
Florent Kermarrec 2019-04-19 09:18:25 +02:00
parent a92e90b215
commit a78ca2de92
1 changed files with 4 additions and 3 deletions

View 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 # License: BSD
import os import os
@ -118,8 +118,9 @@ class XilinxVivadoToolchain:
for filename, language, library in sources: for filename, language, library in sources:
filename_tcl = "{" + filename + "}" filename_tcl = "{" + filename + "}"
tcl.append("add_files " + filename_tcl) tcl.append("add_files " + filename_tcl)
tcl.append("set_property library {} [get_files {}]" if language == "vhdl":
.format(library, filename_tcl)) tcl.append("set_property library {} [get_files {}]"
.format(library, filename_tcl))
for filename in edifs: for filename in edifs:
filename_tcl = "{" + filename + "}" filename_tcl = "{" + filename + "}"
tcl.append("read_edif " + filename_tcl) tcl.append("read_edif " + filename_tcl)