targets/versa_ecp5: fix compilation with diamond
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 6 Dec 2019 15:15:08 +0000 (16:15 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Fri, 6 Dec 2019 15:15:08 +0000 (16:15 +0100)
litex/boards/targets/versa_ecp5.py

index 81ad572b0b0135d771e4eb373b03b8898212dd80..ceee2f442f49ea5f849d7c853009912a5e7c2d75 100755 (executable)
@@ -139,7 +139,10 @@ def main():
     cls = EthernetSoC if args.with_ethernet else BaseSoC
     soc = cls(toolchain=args.toolchain, sys_clk_freq=int(float(args.sys_clk_freq)), **soc_sdram_argdict(args))
     builder = Builder(soc, **builder_argdict(args))
-    builder.build(**trellis_argdict(args))
+    builder_kargs = {}
+    if args.toolchain == "trellis":
+        builder_kargs == trellis_argdict(args)
+    builder.build(**builder_kargs)
 
 if __name__ == "__main__":
     main()