From f3ba078882e2516a2a4982b3d1c7cad9ad5a457e Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 10 Oct 2019 19:36:17 +0200 Subject: [PATCH] xilinx/vivado: replace "xy" == language with language == "xy" --- litex/build/xilinx/vivado.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)) -- 2.30.2