From: Florent Kermarrec Date: Thu, 10 Oct 2019 17:36:17 +0000 (+0200) Subject: xilinx/vivado: replace "xy" == language with language == "xy" X-Git-Tag: 24jan2021_ls180~927 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f3ba078882e2516a2a4982b3d1c7cad9ad5a457e;p=litex.git xilinx/vivado: replace "xy" == language with language == "xy" --- diff --git a/litex/build/xilinx/vivado.py b/litex/build/xilinx/vivado.py index 540e030f..1be23874 100644 --- a/litex/build/xilinx/vivado.py +++ b/litex/build/xilinx/vivado.py @@ -126,11 +126,11 @@ class XilinxVivadoToolchain: # "-include_dirs {}" crashes Vivado 2016.4 for filename, language, library in sources: filename_tcl = "{" + filename + "}" - if ("systemverilog" == language): + if (language == "systemverilog"): tcl.append("read_verilog -sv " + filename_tcl) - elif ("verilog" == language): + elif (language == "verilog"): tcl.append("read_verilog " + filename_tcl) - elif ("vhdl" == language): + elif (language == "vhdl"): tcl.append("read_vhdl " + filename_tcl) tcl.append("set_property library {} [get_files {}]" .format(library, filename_tcl))