From ef58f681268c5c5777c5d266bc3de6875a22466e Mon Sep 17 00:00:00 2001 From: Greg Davill Date: Sun, 3 Jul 2022 00:55:08 +0930 Subject: [PATCH] build/lattice/trellis: Fix float(freq) parsing --- litex/build/lattice/trellis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/build/lattice/trellis.py b/litex/build/lattice/trellis.py index 4cea92be6..2a03fa4c8 100644 --- a/litex/build/lattice/trellis.py +++ b/litex/build/lattice/trellis.py @@ -257,7 +257,7 @@ def trellis_argdict(args): "ignoreloops": args.nextpnr_ignoreloops, "bootaddr": args.ecppack_bootaddr, "spimode": args.ecppack_spimode, - "freq": float(args.ecppack_freq), + "freq": float(args.ecppack_freq) if args.ecppack_freq is not None else None, "compress": args.ecppack_compress, "seed": args.nextpnr_seed, }