litex/build: Always run Vivado.
authorTim 'mithro' Ansell <me@mith.ro>
Mon, 29 Oct 2018 09:04:44 +0000 (02:04 -0700)
committerTim 'mithro' Ansell <me@mith.ro>
Mon, 29 Oct 2018 09:04:44 +0000 (02:04 -0700)
When using Yosys for synthesis, still need Vivado for place and route.

litex/build/xilinx/vivado.py

index 3b431e696dda292731d1a59284fcf7a573dd1b21..115fd8fa5249d51b716637a69276603348dbdab9 100644 (file)
@@ -243,10 +243,9 @@ class XilinxVivadoToolchain:
         if run:
             if synth_mode == "yosys":
                 common._run_yosys(platform.device, sources, platform.verilog_include_paths, build_name)
-            elif synth_mode == "vivado":
-                _run_vivado(build_name, toolchain_path, source)
             else:
                 raise OSError("Error!")
+            _run_vivado(build_name, toolchain_path, source)
 
 
         os.chdir(cwd)