From d91458c3e6bf1dbefed640a66822bf6ec0035db9 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 6 Dec 2019 16:16:19 +0100 Subject: [PATCH] targets/versa_ecp5: fix compilation with diamond --- litex_boards/official/targets/versa_ecp5.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/litex_boards/official/targets/versa_ecp5.py b/litex_boards/official/targets/versa_ecp5.py index 1e7ffa9..9f71e5a 100755 --- a/litex_boards/official/targets/versa_ecp5.py +++ b/litex_boards/official/targets/versa_ecp5.py @@ -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()