xilinx/vivado: replace "xy" == language with language == "xy"
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 10 Oct 2019 17:36:17 +0000 (19:36 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Thu, 10 Oct 2019 17:36:17 +0000 (19:36 +0200)
litex/build/xilinx/vivado.py

index 540e030f16230c649e8d2267ed92a0c28131c094..1be23874a4ad4a8960fd02c4be08c670e860913e 100644 (file)
@@ -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))